diff options
author | B. Watson <urchlay@slackware.uk> | 2024-07-20 19:06:52 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-07-20 19:06:52 -0400 |
commit | c205442db594cb9c19de8b065f32ac837b220370 (patch) | |
tree | 0a0df374ca2242fc24cbd5e3158db5329660444e | |
parent | 4d71b6df11f8849095cb5a6c7b6e8678843b2a7e (diff) | |
download | bw-atari8-tools-c205442db594cb9c19de8b065f32ac837b220370.tar.gz |
listbas: decouple -a and -c options (so -a followed by -U won't be in mono).
-rw-r--r-- | listbas.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -211,7 +211,7 @@ void parse_args(int argc, char **argv, int from_env) { while( (opt = getopt(argc, argv, "r:Db:UCviamnBdhxulc:kt")) != -1) { switch(opt) { case 'U': output_mode = M_UTF8; break; - case 'a': output_mode = M_ATASCII; color = 0; break; + case 'a': output_mode = M_ATASCII; break; case 'm': output_mode = M_MAG; break; case 'd': output_mode = M_DOTS; break; case 'x': output_mode = M_UTF8_I; break; @@ -235,6 +235,8 @@ void parse_args(int argc, char **argv, int from_env) { } } + if(output_mode == M_ATASCII) color = 0; + if(!from_env) { if(optind >= argc) { die("No input file given (use - for stdin)."); |