Fixed cntrld issue (#1952)

This commit is contained in:
Colin Delahunty
2022-06-16 10:13:55 -04:00
committed by GitHub
parent fd81deac20
commit 82e38cfdc1
2 changed files with 2 additions and 2 deletions

View File

@@ -553,7 +553,7 @@ class BaseController(metaclass=ABCMeta):
# Get input from user without auto-completion
else:
an_input = input(f"{get_flair()} {self.PATH} $ ")
except KeyboardInterrupt:
except (KeyboardInterrupt, EOFError):
# Exit in case of keyboard interrupt
an_input = "exit"

View File

@@ -489,7 +489,7 @@ def terminal(jobs_cmds: List[str] = None, appName: str = "gst"):
completer=t_controller.completer,
search_ignore_case=True,
)
except KeyboardInterrupt:
except (KeyboardInterrupt, EOFError):
print_goodbye()
break
# Get input from user without auto-completion