From 737bbbface3998ac9b97948e6ae16ab90a1130d2 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sun, 10 Apr 2011 17:00:29 +0200 Subject: Fix the read_keyboard on ^C --- src/windows.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/windows.py b/src/windows.py index b56a7d37..c8476d18 100644 --- a/src/windows.py +++ b/src/windows.py @@ -50,8 +50,6 @@ import wcwidth import singleton import collections -from keyboard import read_char - Line = collections.namedtuple('Line', 'text text_offset nickname_color time nickname') g_lock = Lock() @@ -1109,7 +1107,7 @@ class MessageInput(Input): """ Read one more char (c) and add \x19c to the string """ - attr_char = read_char(self.core.stdscr) + attr_char = self.core.read_keyboard() if attr_char in self.text_attributes or (attr_char.isdigit() and int(attr_char) < 7): self.do_command('\x19', False) self.do_command(attr_char) -- cgit v1.2.3