summaryrefslogtreecommitdiff
path: root/tcvt.py
diff options
context:
space:
mode:
Diffstat (limited to 'tcvt.py')
-rwxr-xr-xtcvt.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tcvt.py b/tcvt.py
index 9fc70f0..e113c07 100755
--- a/tcvt.py
+++ b/tcvt.py
@@ -588,7 +588,13 @@ def main():
if not data:
break
for char in data:
- t.feed(char)
+ if "TCVT_DEVEL" in os.environ:
+ t.feed(char)
+ else:
+ try:
+ t.feed(char)
+ except ValueError:
+ t.feed_reset()
if refreshpending is None:
refreshpending = time.time() + 0.1
elif refreshpending is not None: