summaryrefslogtreecommitdiff
path: root/tcvt.py
diff options
context:
space:
mode:
Diffstat (limited to 'tcvt.py')
-rwxr-xr-xtcvt.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcvt.py b/tcvt.py
index 81572b0..b3ea5c6 100755
--- a/tcvt.py
+++ b/tcvt.py
@@ -518,7 +518,8 @@ def main():
elif key <= 0xff:
os.write(masterfd, chr(key))
else:
- raise ValueError("getch returned %d" % key)
+ if "TCVT_DEVEL" in os.environ:
+ raise ValueError("getch returned %d" % key)
elif masterfd in res:
try:
data = os.read(masterfd, 1024)