aboutsummaryrefslogtreecommitdiffstats
path: root/termcast.py
diff options
context:
space:
mode:
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 c701f6a..da0f5ce 100644
--- a/termcast.py
+++ b/termcast.py
@@ -12,6 +12,9 @@ class Handler(object):
def process(self, data):
self.buf += data
+ clear = self.buf.rfind("\033[2J")
+ if clear != -1:
+ self.buf = self.buf[clear + 4:]
self.vt.process(data)
def get_term(self):