mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +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
|
|
@ -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"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue