diff options
Diffstat (limited to 'src/client.py')
-rw-r--r-- | src/client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client.py b/src/client.py index df7f62d5..db1af8fe 100644 --- a/src/client.py +++ b/src/client.py @@ -25,8 +25,10 @@ from handler import Handler from gui import Gui from curses import wrapper, initscr -if len(sys.argv) == 1: # not debug, so hide any error message +if len(sys.argv) == 1: # not debug, so hide any error message and disable C-c + import signal sys.stderr = open('/dev/null', 'a') + signal.signal(signal.SIGINT, signal.SIG_IGN) class Client(object): """ |