diff options
author | B. Watson <urchlay@slackware.uk> | 2024-07-11 16:54:52 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-07-11 16:54:52 -0400 |
commit | b4ae9905e11240d6a4061c03d0e78ff0b3f44229 (patch) | |
tree | cd76e18e83981fb8a778ecc3957a98720f23e5d4 | |
parent | d234b36005c8d30b144dce79c94a069b5f076191 (diff) | |
download | bw-atari8-tools-b4ae9905e11240d6a4061c03d0e78ff0b3f44229.tar.gz |
listbas: use correct ANSI codes to turn off reverse video and color separately; fixes broken string constant highlighting.
-rw-r--r-- | listbas.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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)) { |