mirror of
https://github.com/wassname/pyreadline.git
synced 2026-08-12 12:20:28 +08:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user