aboutsummaryrefslogtreecommitdiff
path: root/listbas.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-11 16:54:52 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-11 16:54:52 -0400
commitb4ae9905e11240d6a4061c03d0e78ff0b3f44229 (patch)
treecd76e18e83981fb8a778ecc3957a98720f23e5d4 /listbas.c
parentd234b36005c8d30b144dce79c94a069b5f076191 (diff)
downloadbw-atari8-tools-b4ae9905e11240d6a4061c03d0e78ff0b3f44229.tar.gz
listbas: use correct ANSI codes to turn off reverse video and color separately; fixes broken string constant highlighting.
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)) {