|
|
|
@ -65,7 +65,7 @@ class UGV_CLI:
@@ -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:
@@ -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: |
|
|
|
|