diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-08 23:00:55 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-08 23:00:55 +0000 |
commit | 77df6feb973f93a4f3cd834322757db8e72ddf1a (patch) | |
tree | 3b32fbf23dd0d47980a9a6327a1c0d133eedb85a /src/keyboard.py | |
parent | 007466f6aa080539484870359fbd0a4590020099 (diff) | |
download | poezio-77df6feb973f93a4f3cd834322757db8e72ddf1a.tar.gz poezio-77df6feb973f93a4f3cd834322757db8e72ddf1a.tar.bz2 poezio-77df6feb973f93a4f3cd834322757db8e72ddf1a.tar.xz poezio-77df6feb973f93a4f3cd834322757db8e72ddf1a.zip |
remove one more possible ncurses glitch by using a muttex. Also correctly receive the error messages. And little cleanup
Diffstat (limited to 'src/keyboard.py')
-rw-r--r-- | src/keyboard.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.py b/src/keyboard.py index bf10ab8a..5f7411c1 100644 --- a/src/keyboard.py +++ b/src/keyboard.py @@ -42,7 +42,7 @@ def read_char(s): see http://en.wikipedia.org/wiki/UTF-8#Description """ (first, char) = get_next_byte(s) - if first == None: # Keyboard special, like KEY_HOME etc + if not isinstance(first, int): # Keyboard special, like KEY_HOME etc return char if first == 127 or first == 8: return "KEY_BACKSPACE" |