Mercurial > gftp.yaz
diff src/text/textui.c @ 460:075f89b4395c
2004-4-14 Brian Masney <masneyb@gftp.org>
* lib/sshv2.c lib/gftp.h src/text/textui.c src/gtk/gtkui.c - when
connecting with the SSH protocol, if the user is asked a question,
relay that question back to the user and allow them to answer it.
* doc/gftp-faq.sgml - moved the SSH troubleshooting section to the
issues for older releases section. All of the issues that this talks
about have been fixed in CVS.
* src/gtk/gftp-gtk.c (main) - call gdk_threads_init() on startup
* lib/cache.c lib/config_file.c lib/misc.c lib/protocols.c
lib/rfc2068.c lib/rfc959.c - removed some uses of strlen() so that
they only occur once on a string instead of multiple times in some
cases
* lib/sslcommon.c - fixed typo
* configure.in lib/gftp.h - added configure check for inttypes.h
* docs/gftp.lsm - updated with 2.0.17 information
author | masneyb |
---|---|
date | Thu, 15 Apr 2004 00:59:23 +0000 |
parents | 14ef37b62c20 |
children | 632036c6e4a4 |
line wrap: on
line diff
--- a/src/text/textui.c Sat Apr 10 20:39:06 2004 +0000 +++ b/src/text/textui.c Thu Apr 15 00:59:23 2004 +0000 @@ -243,3 +243,25 @@ gftp_disconnect (request); } + +int +gftpui_protocol_ask_yes_no (gftp_request * request, char *title, char *question) +{ + char buf[10]; + int ret; + + do + { + gftp_text_ask_question (question, 1, buf, sizeof (buf)); + if (strcasecmp (buf, "yes") == 0) + ret = 1; + else if (strcasecmp (buf, "no") == 0) + ret = 0; + else + ret = -1; + } + while (ret == -1); + + return (ret); +} +