handle sigterm, inform about exit

resolves #445
dev/timer
Ludwig Ortmann 10 years ago
parent 37a7393a6b
commit 754881f5f0

@ -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…
Cancel
Save