mirror of
https://github.com/RfidResearchGroup/ChameleonUltra.git
synced 2026-05-12 11:22:59 -07:00
cli: skip empty lines when several cmd lines are copy/pasted
This commit is contained in:
@@ -114,12 +114,12 @@ class ChameleonCLI:
|
||||
cmd_strs = cmd_str.replace(
|
||||
"\r\n", "\n").replace("\r", "\n").split("\n")
|
||||
cmd_str = cmd_strs.pop(0)
|
||||
if cmd_str == "":
|
||||
continue
|
||||
except EOFError:
|
||||
cmd_str = 'exit'
|
||||
except KeyboardInterrupt:
|
||||
cmd_str = 'exit'
|
||||
if cmd_str == '':
|
||||
continue
|
||||
|
||||
# look for alternate exit
|
||||
if cmd_str in ["quit", "q", "e"]:
|
||||
|
||||
Reference in New Issue
Block a user