From 8f63f755daee2366ee7ace6e5ccc2713eea82221 Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Sat, 19 Feb 2022 09:45:02 +0100 Subject: [PATCH] Cleanup color option --- man/tio.1.in | 4 ++-- src/options.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/man/tio.1.in b/man/tio.1.in index c3658a3..006d062 100644 --- a/man/tio.1.in +++ b/man/tio.1.in @@ -108,9 +108,9 @@ If defining more than one flag, the flags must be comma separated. .RE .TP -.BR \-c ", " "\-\-color " \fI<0..255> +.BR \-c ", " "\-\-color " \fI -Colorize tio text using ANSI color code. +Colorize tio text using ANSI color code ranging from 0 to 255. If color code is negative a list of available ANSI colors will be printed. diff --git a/src/options.c b/src/options.c index 09eab0a..003277c 100644 --- a/src/options.c +++ b/src/options.c @@ -70,7 +70,7 @@ void print_help(char *argv[]) printf(" -L, --list-devices List available serial devices\n"); printf(" -l, --log[=] Log to file\n"); printf(" -m, --map Map special characters\n"); - printf(" -c, --color <0..255> Colorize tio text\n"); + printf(" -c, --color Colorize tio text\n"); printf(" -v, --version Display version\n"); printf(" -h, --help Display help\n"); printf("\n");