-/* Asks yes/no from user on the input line. Returns TRUE on "yes" and
- FALSE on "no". */
-
-int silc_client_ask_yes_no(SilcClient client, char *prompt)
-{
-#if 0
- SilcClientInternal app = (SilcClientInternal)client->application;
- char answer[4];
- int ret;
-
- again:
- silc_screen_input_reset(app->screen);
-
- /* Print prompt */
- wattroff(app->screen->input_win, A_INVIS);
- silc_screen_input_print_prompt(app->screen, prompt);
-
- /* Get string */
- memset(answer, 0, sizeof(answer));
- echo();
- wgetnstr(app->screen->input_win, answer, sizeof(answer));
- if (!strncasecmp(answer, "yes", strlen(answer)) ||
- !strncasecmp(answer, "y", strlen(answer))) {
- ret = TRUE;
- } else if (!strncasecmp(answer, "no", strlen(answer)) ||
- !strncasecmp(answer, "n", strlen(answer))) {
- ret = FALSE;
- } else {
- silc_say(client, app->conn, "Type yes or no");
- goto again;
- }
- noecho();
-
- silc_screen_input_reset(app->screen);
-
- return ret;
-#endif
- return 0;
-}
-
-/* Lists supported (builtin) ciphers */