diff --git a/man/tio.1.in b/man/tio.1.in index 048a5cd..cf72afb 100644 --- a/man/tio.1.in +++ b/man/tio.1.in @@ -257,6 +257,8 @@ 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" +Enable hexadecimal mode .IP "\fBsocket" Set socket path (must include .BR unix: ). diff --git a/src/configfile.c b/src/configfile.c index 8327775..617b31d 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -154,7 +154,17 @@ static int data_handler(void *user, const char *section, const char *name, { option.local_echo = false; } - + } + else if (!strcmp(name, "hex-mode")) + { + if (!strcmp(value, "enable")) + { + option.hex_mode = true; + } + else if (!strcmp(value, "disable")) + { + option.hex_mode = false; + } } else if (!strcmp(name, "timestamp")) {