Skip to content
Snippets Groups Projects
Unverified Commit 57ada27d authored by Alexandre Abadie's avatar Alexandre Abadie Committed by GitHub
Browse files

Merge pull request #8970 from aabadie/pr/tools/pyterm_ctrl_d

dist/tools/pyterm: handle ctrl+d nicely
parents db773426 75dba75f
No related branches found
No related tags found
No related merge requests found
......@@ -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.
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment