diff --git a/dist/tools/pyterm/pyterm.py b/dist/tools/pyterm/pyterm.py index d01a33fb3b..726f339b66 100755 --- a/dist/tools/pyterm/pyterm.py +++ b/dist/tools/pyterm/pyterm.py @@ -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)