From c4a74406fd9fc0f7d91ad428a9c28b5369e5c51a Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 11 Dec 2020 04:48:26 +0100
Subject: [PATCH] Make CHATFACE trigger screen refresh.

---
 rogue_chat.html      | 1 +
 rogue_chat_curses.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/rogue_chat.html b/rogue_chat.html
index 5a55f3b..5e66398 100644
--- a/rogue_chat.html
+++ b/rogue_chat.html
@@ -541,6 +541,7 @@ let server = {
              tui.log_msg('# ' + tokens[1], 1);
         } else if (tokens[0] === 'CHATFACE') {
             tui.draw_face = tokens[1];
+            tui.full_refresh();
         } else if (tokens[0] === 'REPLY') {
              tui.log_msg('#MUSICPLAYER: ' + tokens[1], 1);
         } else if (tokens[0] === 'PLAYER_ID') {
diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py
index 7d2a3b1..2858892 100755
--- a/rogue_chat_curses.py
+++ b/rogue_chat_curses.py
@@ -202,6 +202,7 @@ cmd_CHAT.argtypes = 'string'
 
 def cmd_CHATFACE(game, thing_id):
     game.tui.draw_face = thing_id
+    game.tui.do_refresh = True
 cmd_CHATFACE.argtypes = 'int:pos'
 
 def cmd_PLAYER_ID(game, player_id):
-- 
2.30.2