if (!strcmp(section, c.section_name))
{
// Set configuration parameter if found
- if (!strcmp(name, "tty"))
+ if (!strcmp(name, "device") || !strcmp(name, "tty"))
{
asprintf(&c.tty, value, c.match);
option.tty_device = c.tty;
{
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;
{
if (c.path != NULL)
{
- tio_printf(" Path: %s", c.path);
+ tio_printf(" Active configuration file: %s", c.path);
if (c.section_name != NULL)
{
tio_printf(" Active sub-configuration: %s", c.section_name);