mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add visual or audible alert support on connect/disconnect
The feature is detailed via the following option:
--alert none|bell|blink
Set alert action on connect/disconnect.
It will sound the bell once or blink once on successful connect.
Likewise it will sound the bell twice or blink twice on disconnect.
Default value is "none" for no alert.
This commit is contained in:
parent
68fc159654
commit
dbc9a8e82d
12 changed files with 195 additions and 7 deletions
|
|
@ -280,8 +280,12 @@ static int data_handler(void *user, const char *section, const char *name,
|
|||
{
|
||||
rs485_parse_config(value);
|
||||
}
|
||||
|
||||
else if (!strcmp(name, "alert"))
|
||||
{
|
||||
option.alert = alert_option_parse(value);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue