This commit is contained in:
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 2010-09-10 22:34:21 +00:00
parent 22e05a229a
commit 92d155acf5

View file

@ -51,8 +51,8 @@ def read_char(s):
return "^"+chr(first + 64)
if first == 27:
(first, c) = get_next_byte(s)
if not isinstance(first, int): # Keyboard special, like KEY_HOME etc
return char
if not isinstance(first, int):
return None
return "M-"+chr(first)
if 194 <= first:
(code, c) = get_next_byte(s) # 2 bytes char