aboutsummaryrefslogtreecommitdiff
path: root/listbas.c
diff options
context:
space:
mode:
Diffstat (limited to 'listbas.c')
-rw-r--r--listbas.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/listbas.c b/listbas.c
index 000cc95..beacdf0 100644
--- a/listbas.c
+++ b/listbas.c
@@ -104,7 +104,8 @@ void color_on(unsigned char c) {
}
void color_off(void) {
- fputs("\x1b[0m", outfh);
+ /* fputs("\x1b[0m", outfh); */ /* NO: clears inverse, too! */
+ fputs("\x1b[39;49m", outfh);
}
void print_number(unsigned int pos) {
@@ -156,7 +157,8 @@ void start_inv(unsigned char c) {
void end_inv(unsigned char c) {
if(utf8) {
- fputs("\x1b[0m", outfh);
+ /* fputs("\x1b[0m", outfh); */ /* NO: turns off color, too. */
+ fputs("\x1b[27m", outfh);
inv = 0;
} else if(magazine) {
if(affects_inv(c)) {