mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #8970 from aabadie/pr/tools/pyterm_ctrl_d
dist/tools/pyterm: handle ctrl+d nicely
This commit is contained in:
commit
57ada27dae
6
dist/tools/pyterm/pyterm
vendored
6
dist/tools/pyterm/pyterm
vendored
@ -288,6 +288,12 @@ class SerCmd(cmd.Cmd):
|
||||
"""
|
||||
self.ser.write("help\n".encode("utf-8"))
|
||||
|
||||
def do_EOF(self, line):
|
||||
"""Handle EOF (Ctrl+D) nicely."""
|
||||
self.logger.debug("Received EOF")
|
||||
self.do_PYTERM_exit("")
|
||||
sys.exit(0)
|
||||
|
||||
def complete_date(self, text, line, begidx, endidm):
|
||||
"""Auto completion for date string.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user