summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/curses/ascii.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/curses/ascii.py b/Lib/curses/ascii.py
index b8ae6f3..08b5b79 100644
--- a/Lib/curses/ascii.py
+++ b/Lib/curses/ascii.py
@@ -87,6 +87,8 @@ def alt(c):
return _ctoi(c) | 0x80
def unctrl(c):
+ if isprint(c):
+ return chr(_ctoi(c))
bits = _ctoi(c)
if bits == 0x7f:
rep = "^?"