Skip to content

Commit d0f0394

Browse files
fix control-c? (Seems to work, could use review)
1 parent b80b400 commit d0f0394

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bpython/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,9 @@ def p_key(self, key):
999999
elif key == '\x18':
10001000
return self.send_current_line_to_editor()
10011001

1002+
elif key == '\x03':
1003+
raise KeyboardInterrupt()
1004+
10021005
elif key[0:3] == 'PAD' and not key in ('PAD0', 'PADSTOP'):
10031006
pad_keys = {
10041007
'PADMINUS': '-',

0 commit comments

Comments
 (0)