Package: minicom / 2.7-1.1

03norzsz.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Index: minicom-2.6.1/src/updown.c
===================================================================
--- minicom-2.6.1.orig/src/updown.c	2011-09-07 23:04:32.000000000 +0200
+++ minicom-2.6.1/src/updown.c	2013-01-13 14:32:06.000000000 +0100
@@ -426,6 +426,22 @@
   mcd("");
   timer_update();
 
+  /* return code == 1 if exeve failed, see #111060 et al */
+  if (win && status == 0x0001) {
+#if VC_MUSIC
+	if (P_SOUND[0] == 'Y') {
+		mc_wprintf(win, _("\n Failure executing protocol. Press any key to continue..."));
+		music();
+	} else
+		sleep(1);
+#else
+	/* MARK updated 02/17/94 - If there was no VC_MUSIC capability, */
+	/* then at least make some beeps! */
+	if (P_SOUND[0] == 'Y') wprintf(win, "\007\007\007");
+	sleep(1);
+#endif
+  } else
+
   /* If we got interrupted, status != 0 */
   if (win && (status & 0xFF00) == 0) {
 #if VC_MUSIC