sbr/r1bindex.h \
sbr/read_line.h \
sbr/read_switch.h \
+ sbr/read_yes_or_no_if_tty.h \
sbr/readconfig.h \
sbr/refile.h \
sbr/remdir.h \
struct msgs_array;
-/*
- * If standard input is not a tty, return 1 without printing anything. Else,
- * print null-terminated PROMPT to and flush standard output. Read answers from
- * standard input until one is "yes" or "no", returning 1 for "yes" and 0 for
- * "no". Also return 0 on EOF.
- */
-int read_yes_or_no_if_tty(const char *PROMPT);
-
/*
* Print null-terminated PROMPT to and flush standard output. Read multi-word
* answers from standard input until a first word matches an entry in SWITCHES.
*/
#include "h/mh.h"
+#include "read_yes_or_no_if_tty.h"
#include "concat.h"
#include "context_read.h"
#include "context_find.h"
*/
#include "h/mh.h"
+#include "read_yes_or_no_if_tty.h"
#include "read_switch.h"
--- /dev/null
+/* read_yes_or_no_if_tty.h -- get a yes/no answer from the user
+ *
+ * This code is Copyright (c) 2017, by the authors of nmh. See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information. */
+
+/*
+ * If standard input is not a tty, return 1 without printing anything. Else,
+ * print null-terminated PROMPT to and flush standard output. Read answers from
+ * standard input until one is "yes" or "no", returning 1 for "yes" and 0 for
+ * "no". Also return 0 on EOF.
+ */
+int read_yes_or_no_if_tty(const char *);
*/
#include "h/mh.h"
+#include "read_yes_or_no_if_tty.h"
#include "concat.h"
#include "r1bindex.h"
#include "context_foil.h"
*/
#include "h/mh.h"
+#include "sbr/read_yes_or_no_if_tty.h"
#include "sbr/trimcpy.h"
#include "sbr/error.h"
#include <fcntl.h>
*/
#include "h/mh.h"
+#include "sbr/read_yes_or_no_if_tty.h"
#include "sbr/concat.h"
#include "sbr/error.h"
#include "h/mime.h"
*/
#include "h/mh.h"
+#include "sbr/read_yes_or_no_if_tty.h"
#include "sbr/concat.h"
#include "sbr/r1bindex.h"
#include "sbr/ruserpass.h"
*/
#include "h/mh.h"
+#include "sbr/read_yes_or_no_if_tty.h"
#include "sbr/concat.h"
#include "sbr/seq_setprev.h"
#include "sbr/seq_setcur.h"
*/
#include "h/mh.h"
+#include "sbr/read_yes_or_no_if_tty.h"
#include "sbr/concat.h"
#include "sbr/smatch.h"
#include "sbr/remdir.h"