Skip to content

Commit

Permalink
handle sigterm, inform about exit
Browse files Browse the repository at this point in the history
resolves #445
  • Loading branch information
LudwigKnuepfer committed Dec 19, 2013
1 parent 37a7393 commit 754881f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dist/tools/pyterm/pyterm.py
Expand Up @@ -146,4 +146,7 @@ def reader(ser, logger):
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)

0 comments on commit 754881f

Please sign in to comment.