aboutsummaryrefslogtreecommitdiffstats
path: root/termcast.py
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-15 22:55:24 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-15 22:55:24 -0400
commite73211f67f5679cf2aa6127c82b83435933efbaa (patch)
tree748a7dd28e4296adbbd747890fbd4bdf3bdfd256 /termcast.py
parent1e977327a4a7e2757567ce97738d95d4e3e7686d (diff)
downloadpython-termcast-server-e73211f67f5679cf2aa6127c82b83435933efbaa.tar.gz
python-termcast-server-e73211f67f5679cf2aa6127c82b83435933efbaa.zip
comment
Diffstat (limited to 'termcast.py')
-rw-r--r--termcast.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/termcast.py b/termcast.py
index 63cf9c8..c86a9af 100644
--- a/termcast.py
+++ b/termcast.py
@@ -41,6 +41,9 @@ class Handler(object):
if clear != -1:
self.buf = self.buf[clear + 4:]
+ # XXX need to check how much was actually processed here, to avoid
+ # breaking when escape sequences or utf-8 sequences are split across
+ # reads
self.vt.process(data)
self.idle_since = time.time()