X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/9e2dbb033282c4b408061ed1d1da9c88f87d0cfe..9d83a701e5abb6f9577ab43b6904bd50afa186bc:/uip/whatnowsbr.c diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 7b637628..6830bfb3 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -249,7 +249,11 @@ WhatNow (int argc, char **argv) snprintf (prompt, sizeof(prompt), myprompt, invo_name); for (;;) { +#ifdef READLINE_SUPPORT + if (!(argp = getans_via_readline (prompt, aleqs))) { +#else /* ! READLINE_SUPPORT */ if (!(argp = getans (prompt, aleqs))) { +#endif /* READLINE_SUPPORT */ unlink (LINK); done (1); }