Have separate settings for intype

Old: `/intype on|of`
Typing information is printed in console and titlebar.

New: `/intype titlebar|console on|off`
Typing information can be configured in more detail.

Regards https://github.com/profanity-im/profanity/issues/1516
This commit is contained in:
Michael Vetter
2021-05-08 19:33:58 +02:00
parent 1ef700f918
commit 1d8061e89b
7 changed files with 62 additions and 14 deletions

View File

@@ -1716,9 +1716,14 @@ void
cons_intype_setting(void)
{
if (prefs_get_boolean(PREF_INTYPE))
cons_show("Show typing (/intype) : ON");
cons_show("Show typing in titlebar (/intype titlebar) : ON");
else
cons_show("Show typing (/intype) : OFF");
cons_show("Show typing in titlebar (/intype titlebar) : OFF");
if (prefs_get_boolean(PREF_INTYPE_CONSOLE))
cons_show("Show typing in console (/intype console) : ON");
else
cons_show("Show typing in console (/intype console) : OFF");
}
void