1
0
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:
Thomas Eichinger 2013-12-19 04:10:33 -08:00
commit f69d68584c

View File

@ -146,4 +146,7 @@ if __name__ == "__main__":
myshell = SerCmd(port) myshell = SerCmd(port)
myshell.prompt = '' myshell.prompt = ''
myshell.cmdloop("Welcome to pyterm") try:
myshell.cmdloop("Welcome to pyterm!\nType 'exit' to exit.")
except KeyboardInterrupt:
sys.exit(0)