cmenu: reset attributes instead of using ANSI sequence 22
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Mon, 31 Aug 2009 06:47:46 +0000 (23:47 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Tue, 1 Sep 2009 18:45:11 +0000 (11:45 -0700)
commitbe67a5d4fa9705b36fe36bebed708a0a2e95946b
treea7dfe5e3e1f93ce2bb39e1218ce059cb259d458c
parent1a5c2f5761210a05602c7c7e799ccb0f059b42ff
cmenu: reset attributes instead of using ANSI sequence 22

hpa advised not to use ANSI sequence 22, as it may not work everywhere.
Instead, let's reset attributes and set last_attr to unknown. The next
background/foreground tests are then guaranteed to fire. We take a small
hit in terms of performance though.

Misc.: change initialization of last_attr to 0x300 (unknown) to trigger
properly the tests the first time.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/cmenu/libmenu/com32io.c