few more CLI tweaks

This commit is contained in:
Alex Mikhalev 2019-05-23 12:38:14 -07:00
parent 2cbf80f293
commit 9d6d68efc1

View File

@ -65,7 +65,7 @@ class UGV_CLI:
print("{}: {}".format(names, cmd.description))
print()
@cli_cmd(names=["exit", "q"], description="Quit the program")
@cli_cmd(names=["exit", "q", "C-d", "C-c"], description="Quit the program")
def exit(self):
self.is_running = False
@ -149,6 +149,7 @@ class UGV_CLI:
time.sleep(0.2)
last_line = None
try:
print("Run 'help' to find out what commands are available")
while self.is_running:
line = input("UGV> ")
if len(line) is 0 and last_line is not None: