aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--listbas.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/listbas.c b/listbas.c
index 3226340..ab23fc3 100644
--- a/listbas.c
+++ b/listbas.c
@@ -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).");