mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add mute feature
This will make tio go fully silent and not print anything.
This commit is contained in:
parent
784201ea2e
commit
c80f833a06
3 changed files with 23 additions and 0 deletions
|
|
@ -302,6 +302,17 @@ static int data_handler(void *user, const char *section, const char *name,
|
|||
{
|
||||
option.alert = alert_option_parse(value);
|
||||
}
|
||||
else if (!strcmp(name, "mute"))
|
||||
{
|
||||
if (!strcmp(value, "enable"))
|
||||
{
|
||||
option.mute = true;
|
||||
}
|
||||
else if (!strcmp(value, "disable"))
|
||||
{
|
||||
option.mute = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue