We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18e94bb commit 781b6faCopy full SHA for 781b6fa
1 file changed
bpython/cli.py
@@ -902,12 +902,16 @@ def push(self, s):
902
s = s.rstrip('\n')
903
self.buffer.append(s)
904
905
+ # curses.raw(True) prevents C-c from causing a SIGINT
906
+ curses.raw(False)
907
try:
908
more = self.interp.runsource('\n'.join(self.buffer))
909
except SystemExit:
910
# Avoid a traceback on e.g. quit()
911
self.do_exit = True
912
return False
913
+ finally:
914
+ curses.raw(True)
915
916
if not more:
917
self.buffer = []
0 commit comments