mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Only apply color formatting when using color option
To help the color blind who may use custom terminal foreground / background colors.
This commit is contained in:
parent
a699561211
commit
0e62995e6e
7 changed files with 28 additions and 28 deletions
|
|
@ -50,7 +50,7 @@ struct option_t option =
|
|||
.list_devices = false,
|
||||
.log_filename = "",
|
||||
.map = "",
|
||||
.color = 15,
|
||||
.color = -1,
|
||||
};
|
||||
|
||||
void print_help(char *argv[])
|
||||
|
|
@ -70,7 +70,7 @@ void print_help(char *argv[])
|
|||
printf(" -L, --list-devices List available serial devices\n");
|
||||
printf(" -l, --log <filename> Log to file\n");
|
||||
printf(" -m, --map <flags> Map special characters\n");
|
||||
printf(" -c, --color <0..255> Colorize tio text (default: 15)\n");
|
||||
printf(" -c, --color <0..255> Colorize tio text\n");
|
||||
printf(" -v, --version Display version\n");
|
||||
printf(" -h, --help Display help\n");
|
||||
printf("\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue