diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-03-16 03:47:50 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-03-16 03:47:50 -0400 |
| commit | 6e90f345474ea3f54d1bcbe69c5118f6fbcd42a0 (patch) | |
| tree | 0b3df7b1bdb6b4d838bc4d53317658ea8d88b416 | |
| parent | 2888682e7b4911d2b999402f66686f3d02bae9df (diff) | |
| download | bw-atari8-tools-6e90f345474ea3f54d1bcbe69c5118f6fbcd42a0.tar.gz | |
a8cat: use correct ANSI code to turn off inverse.
| -rw-r--r-- | a8cat.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -14,8 +14,12 @@ const char **table = ata2utf; /* XXX: hard-coded ANSI/vt100 escape sequences. would be better but more complex to use terminfo to support any ol' terminal... */ -const char *inverse_on = "\x1b[7m"; +/* 20250316 bkw: used to use this: const char *inverse_off = "\x1b[0m"; + ...but 27m is widely supported, and makes it easier for + colorize-amsb to postprocess a8cat's output. */ +const char *inverse_on = "\x1b[7m"; +const char *inverse_off = "\x1b[27m"; int verbose = 0; int underline = 0, reverse = 0, textmode = 0, ics = 0; |
