try to fix the ^? issue

This commit is contained in:
mathieui 2012-12-18 13:01:42 +01:00
parent b0e9e0919f
commit cae7ccf132

View file

@ -115,7 +115,7 @@ def get_char_list_new(s):
pass
else:
key = '%s-%s' % (key, part)
if key == '\x7f':
if key == '\x7f' or key == '\x08':
key = '^?'
elif key == '\r':
key = '^M'