pkgsrc/mail/nmh/patches/patch-ce
kim 4782f7c5e5 Make mhshow look at the user input for "Press <return> to show..." (like
MH 6.8.4 did).  The responses checked for (first letter) are:
- "n" skips the next content (i.e. "no")
- "q" exits mhshow immediately (i.e. "quit")
1999-03-07 19:39:19 +00:00

17 lines
455 B
Text

$NetBSD: patch-ce,v 1.1 1999/03/07 19:39:19 kim Exp $
--- uip/mhshowsbr.c.orig Wed Sep 9 16:59:17 1998
+++ uip/mhshowsbr.c Sun Mar 7 14:14:59 1999
@@ -509,10 +509,11 @@
read (fileno (stdout), prompt, sizeof(prompt));
}
SIGNAL (SIGINT, istat);
- if (intr != OK) {
+ if (intr != OK || prompt[0] == 'n') {
(*ct->c_ceclosefnx) (ct);
return (alternate ? DONE : NOTOK);
}
+ if (prompt[0] == 'q') done(OK);
}
}