summaryrefslogtreecommitdiff
path: root/debian/patches/41_nicify_wait.patch
blob: ad121cc38bf335f3b76eaaf9d54b32df15343e81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
When --wait is on jack always display "press ENTER to exit" when leaving
the signal handler.  This message is not optimal since it's also displayed
when you e.g. kill a ripper or encoder.  Check whether sig is set and adapt
the message accordingly.

Depends on 40_enable_term.patch


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-21 00:39:23.000000000 +0000
+++ jack-3.1.1+cvs20050801/jack_display.py	2006-02-21 00:39:50.000000000 +0000
@@ -95,7 +95,10 @@
         progress("all", "err", "abnormal exit (code %i), check %s and %s" % (exit_code, cf['_err_file'], cf['_out_file']))
 
     if cf['_wait_on_quit']:
-        raw_input("press ENTER to exit")
+        if sig:
+            raw_input("press ENTER\n")
+        else:
+            raw_input("press ENTER to exit\n")
 
     if sig:
         jack_term.enable()