tags 352755 + patch pending thanks * Martin Michlmayr <[EMAIL PROTECTED]> [2006-02-14 01:22]: > When I kill a ripper with ctrl-c, it is properly marked as "DAE failed > with status 15, wav removed". However, afterwards pressing any key > does precisely nothing, e.g. cursor keys or ctrl-l. ctrl-c does work, > but messes up the display.
The reason for that is that jack_term.disable() is called, but nobody calls jack_term.enable()... adding this works. In addition, let's ignore ctrl-c in the signal handler function because otherwise people could press ctrl-c again within the signal handler (e.g. while jack is waiting for the user to press enter when --wait is on), and then we get the display problem again because jack_term.enable() is not called. diff -urN jack-3.1.1+cvs20050801~/jack_display.py jack-3.1.1+cvs20050801/jack_display.py --- jack-3.1.1+cvs20050801~/jack_display.py 2006-02-20 23:08:48.000000000 +0000 +++ jack-3.1.1+cvs20050801/jack_display.py 2006-02-20 23:33:42.000000000 +0000 @@ -74,6 +74,10 @@ else: exit_code = 0 + # Ignore Ctrl-C while we disable and enable curses, otherwise there may + # be display problems. + sigint_handler = signal.getsignal(signal.SIGINT) + signal.signal(signal.SIGINT, signal.SIG_IGN) jack_term.disable() if sig: @@ -93,6 +97,9 @@ if cf['_wait_on_quit']: raw_input("press ENTER to exit") + jack_term.enable() + signal.signal(signal.SIGINT, sigint_handler) + sys.exit(exit_code) #/ end of sig_handler /# -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]