diff options
| author | troido <troido@hotmail.com> | 2018-04-15 14:14:46 +0200 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2018-04-15 14:14:46 +0200 |
| commit | 3379696d9d79b4849b0615d45bc915bfe119e467 (patch) | |
| tree | d25b4fa01a0020fb4e78e4791086d82262791d6d /asciifarm/client/inputhandler.py | |
| parent | 1e390c939a11a2c610bda59e5204febfb27fc3a2 (diff) | |
chat scrolling works again
Diffstat (limited to 'asciifarm/client/inputhandler.py')
| -rw-r--r-- | asciifarm/client/inputhandler.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/asciifarm/client/inputhandler.py b/asciifarm/client/inputhandler.py index 79209bd..7fb18ad 100644 --- a/asciifarm/client/inputhandler.py +++ b/asciifarm/client/inputhandler.py @@ -24,7 +24,8 @@ class InputHandler: "select": self.select, "inputwithselected": self.actWithSelected, "eval": self.eval, - "exec": self.exec + "exec": self.exec, + "scrollchat": self.scrollChat } def execute(self, action): @@ -89,4 +90,7 @@ class InputHandler: text = " ".join(texts) exec(text, {"self": self, "client": self.client, "connection": self.connection, "display": self.display}) + def scrollChat(self, lines): + self.display.scrollBack(lines) + |
