summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index dc30d541..a18785ad 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -245,12 +245,13 @@ class PrivateInfoWin(InfoWin):
def resize(self, height, width, y, x, stdscr):
self._resize(height, width, y, x, stdscr)
- def refresh(self, room, window):
+ def refresh(self, room, window, chatstate):
with g_lock:
self._win.erase()
self.write_room_name(room)
self.print_scroll_position(window)
+ self.write_chatstate(chatstate)
self.finish_line(theme.COLOR_INFORMATION_BAR)
self._refresh()
@@ -261,6 +262,10 @@ class PrivateInfoWin(InfoWin):
txt = ' from room %s' % room_name
self.addstr(txt, common.curses_color_pair(theme.COLOR_INFORMATION_BAR))
+ def write_chatstate(self, state):
+ if state:
+ self.addstr(' %s' % (state,), common.curses_color_pair(theme.COLOR_INFORMATION_BAR))
+
class ConversationInfoWin(InfoWin):
"""
The line above the information window, displaying informations