diff options
| author | troido <troido@hotmail.com> | 2018-01-03 17:07:15 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2018-01-03 17:07:15 +0100 |
| commit | 99d7920cb3daf3fc5cb6f824eb4a639542d47974 (patch) | |
| tree | 62b2cbafbe2caf462fab7b7f4766c1d5eb63a8d8 /asciifarm/client/display/messagepad.py | |
| parent | 03d45d60b84c07c29a304301fb290aecee9cfa24 (diff) | |
added intermediary window wrapper for safety. also server now appends logs
Diffstat (limited to 'asciifarm/client/display/messagepad.py')
| -rw-r--r-- | asciifarm/client/display/messagepad.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asciifarm/client/display/messagepad.py b/asciifarm/client/display/messagepad.py index c9eaf85..cae66a4 100644 --- a/asciifarm/client/display/messagepad.py +++ b/asciifarm/client/display/messagepad.py @@ -18,7 +18,7 @@ class MessagePad(): def update(self): win = self.widget.getWin() - height, width = win.getmaxyx() + width, height = win.getSize() if height < 1: return lines = [] @@ -27,5 +27,5 @@ class MessagePad(): if len(lines) > height: lines = lines[len(lines)-height:] win.erase() - win.addstr(0,0,'\n'.join(lines)) + win.addLine((0,0),'\n'.join(lines)) win.noutrefresh() |
