quit on ctrl+c
This commit is contained in:
parent
6d87b2f4bc
commit
8c8b6763b2
|
@ -3562,7 +3562,13 @@ def main():
|
|||
print("Type `help` to get the list of available command.")
|
||||
for line in torun_queue:
|
||||
gc.onecmd(line)
|
||||
gc.cmdloop()
|
||||
|
||||
while True:
|
||||
try:
|
||||
gc.cmdloop()
|
||||
except KeyboardInterrupt:
|
||||
print("\n")
|
||||
gc.do_quit(line)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue