Attention flag for chat windows

User is able to toggle a flag for chat windows. This flag should be used to mark
the window for "Attention".

Use Ctrl+f to mark the window.
This commit is contained in:
DebXWoody
2021-05-29 08:05:03 +02:00
parent 69e3cebf26
commit 3520645366
8 changed files with 48 additions and 1 deletions

View File

@@ -487,6 +487,18 @@ _show_privacy(ProfChatWin* chatwin)
return;
}
if (chatwin->has_attention) {
wprintw(win, " ");
wattron(win, bracket_attrs);
wprintw(win, "[");
wattroff(win, bracket_attrs);
wattron(win, encrypted_attrs);
wprintw(win, "ATTENTION");
wattroff(win, encrypted_attrs);
wattron(win, bracket_attrs);
wprintw(win, "]");
wattroff(win, bracket_attrs);
}
if (chatwin->pgp_send || chatwin->pgp_recv) {
GString* pgpmsg = g_string_new("PGP ");