about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorDebXWoody <stefan@debxwoody.de>2021-05-29 20:44:17 +0200
committerDebXWoody <stefan@debxwoody.de>2021-05-29 20:44:17 +0200
commitb0a89db1d64893c2c5f5261c4b790165b16a442f (patch)
treec2b7ae4cd8bcbf6c3bbb5317c2d94856174ccc5c /src/ui
parent1526a00123f2a00447a2578a11a451c26025b101 (diff)
downloadprofani-tty-b0a89db1d64893c2c5f5261c4b790165b16a442f.tar.gz
Attention flag message ( enabled, disabled)
When the user enables or disabled the attention flag, a message will be
displayed in the chat window.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/inputwin.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c
index f8b67bfe..b2b2ea33 100644
--- a/src/ui/inputwin.c
+++ b/src/ui/inputwin.c
@@ -814,7 +814,12 @@ static int
 _inp_rl_win_attention_handler(int count, int key) {
     ProfWin* current = wins_get_current();
     if ( current ) {
-        win_toggle_attention(current); 
+        gboolean attention = win_toggle_attention(current);
+        if (attention) {
+            win_println(current, THEME_DEFAULT, "!", "Attention flag has been activated");
+        } else {
+            win_println(current, THEME_DEFAULT, "!", "Attention flag has been deactivated");
+        }
         win_redraw(current);
     }
     return 0;