mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #448 from LudwigOrtmann/pyterm
handle sigterm, inform about exit
This commit is contained in:
commit
f69d68584c
5
dist/tools/pyterm/pyterm.py
vendored
5
dist/tools/pyterm/pyterm.py
vendored
@ -146,4 +146,7 @@ if __name__ == "__main__":
|
||||
myshell = SerCmd(port)
|
||||
myshell.prompt = ''
|
||||
|
||||
myshell.cmdloop("Welcome to pyterm")
|
||||
try:
|
||||
myshell.cmdloop("Welcome to pyterm!\nType 'exit' to exit.")
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(0)
|
||||
|
Loading…
Reference in New Issue
Block a user