Prints ^C in CLI mode when Ctrl+C is pressed

This commit is contained in:
Salvo 'LtWorf' Tomaselli 2015-02-19 12:57:02 +01:00
parent 991b0d9942
commit 06c5047c8f

View File

@ -322,7 +322,7 @@ def main(files=[]):
if isinstance(line, str) and len(line) > 0:
exec_line(line)
except KeyboardInterrupt:
print ()
print ('^C\n')
continue
except EOFError:
print ()