dist/tools/pyterm: handle ctrl+d nicely
This commit is contained in:
parent
2350c46740
commit
75dba75fbb
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…
x
Reference in New Issue
Block a user