Prints ^C in CLI mode when Ctrl+C is pressed
This commit is contained in:
parent
991b0d9942
commit
06c5047c8f
@ -322,7 +322,7 @@ def main(files=[]):
|
|||||||
if isinstance(line, str) and len(line) > 0:
|
if isinstance(line, str) and len(line) > 0:
|
||||||
exec_line(line)
|
exec_line(line)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print ()
|
print ('^C\n')
|
||||||
continue
|
continue
|
||||||
except EOFError:
|
except EOFError:
|
||||||
print ()
|
print ()
|
||||||
|
Loading…
Reference in New Issue
Block a user