Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72cdb70

Browse files
committed
[Bug #790356] unctrl() doesn't work for full printable charset. Fix by Dave Cinege.
1 parent e752e20 commit 72cdb70

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/curses/ascii.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def alt(c):
8787
return _ctoi(c) | 0x80
8888

8989
def unctrl(c):
90+
if isprint(c):
91+
return chr(_ctoi(c))
9092
bits = _ctoi(c)
9193
if bits == 0x7f:
9294
rep = "^?"

0 commit comments

Comments
 (0)