1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

handle sigterm, inform about exit

resolves #445
This commit is contained in:
Ludwig Ortmann 2013-12-19 12:52:32 +01:00
parent 37a7393a6b
commit 754881f5f0

View File

@ -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)