mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Add config support for hex-mode
This commit is contained in:
parent
1b2f445ed9
commit
f48402f7ed
2 changed files with 13 additions and 1 deletions
|
|
@ -257,6 +257,8 @@ Set timestamp format
|
||||||
Map special characters on input or output
|
Map special characters on input or output
|
||||||
.IP "\fBcolor"
|
.IP "\fBcolor"
|
||||||
Colorize tio text using ANSI color code ranging from 0 to 255.
|
Colorize tio text using ANSI color code ranging from 0 to 255.
|
||||||
|
.IP "\fBhex-mode"
|
||||||
|
Enable hexadecimal mode
|
||||||
.IP "\fBsocket"
|
.IP "\fBsocket"
|
||||||
Set socket path (must include
|
Set socket path (must include
|
||||||
.BR unix: ).
|
.BR unix: ).
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,17 @@ static int data_handler(void *user, const char *section, const char *name,
|
||||||
{
|
{
|
||||||
option.local_echo = false;
|
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"))
|
else if (!strcmp(name, "timestamp"))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue