pyreadline: When allowing to bind ctrl-c we now issue a KeyBoardInterrupt if

control-c is pressed twice within ctrl_c_tap_time_interval which is defaulted 
to 0.3 s and can be set from the configfile.
This commit is contained in:
jstenar
2007-04-17 19:43:55 +00:00
parent d4f2cbeab8
commit ea4ef6e3d9
6 changed files with 29 additions and 2 deletions
+2 -1
View File
@@ -535,7 +535,8 @@ class Console(object):
'''Check event queue.'''
Cevent = INPUT_RECORD()
count = c_int(0)
status = PeekConsoleInput(self.hin, byref(Cevent), 1, byref(count))
status = self.PeekConsoleInputA(self.hin, byref(Cevent), 1, byref(count))
log_sock("%s %s %s"%(status,count,Cevent))
if status and count == 1:
return event(self, Cevent)