diff --git a/README.md b/README.md index 501be0b..d78a3ee 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ The command-line interface is straightforward as reflected in the output from -m, --map Map special characters -c, --color 0..255|none|list Colorize tio text (default: 15) -S, --socket Redirect I/O to socket - -x, --hex Enable hexadecimal mode + -x, --hexadecimal Enable hexadecimal mode -v, --version Display version -h, --help Display help diff --git a/man/tio.1.in b/man/tio.1.in index fe273b1..c25de10 100644 --- a/man/tio.1.in +++ b/man/tio.1.in @@ -124,7 +124,7 @@ If defining more than one flag, the flags must be comma separated. .RE .TP -.BR \-x ", " \-\-hex\-mode +.BR \-x ", " \-\-hexadecimal Enable hexadecimal mode. @@ -260,7 +260,7 @@ Set timestamp format Map special characters on input or output .IP "\fBcolor" Colorize tio text using ANSI color code ranging from 0 to 255 -.IP "\fBhex-mode" +.IP "\fBhexadecimal" Enable hexadecimal mode .IP "\fBsocket" Set socket to redirect I/O to diff --git a/src/configfile.c b/src/configfile.c index 41c95bc..f48772c 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -171,7 +171,7 @@ static int data_handler(void *user, const char *section, const char *name, option.local_echo = false; } } - else if (!strcmp(name, "hex-mode")) + else if (!strcmp(name, "hexadecimal")) { if (!strcmp(value, "enable")) { diff --git a/src/options.c b/src/options.c index bc05bc7..0d71517 100644 --- a/src/options.c +++ b/src/options.c @@ -88,7 +88,7 @@ void print_help(char *argv[]) printf(" -m, --map Map special characters\n"); printf(" -c, --color 0..255|none|list Colorize tio text (default: 15)\n"); printf(" -S, --socket Redirect I/O to socket\n"); - printf(" -x, --hex-mode Enable hexadecimal mode\n"); + printf(" -x, --hexadecimal Enable hexadecimal mode\n"); printf(" -v, --version Display version\n"); printf(" -h, --help Display help\n"); printf("\n");