Ask the user a question. More...
#include "config/lib.h"
Go to the source code of this file.
Functions | |
int | mutt_multi_choice (const char *prompt, const char *letters) |
Offer the user a multiple choice question. More... | |
enum QuadOption | mutt_yesorno (const char *msg, enum QuadOption def) |
Ask the user a Yes/No question. More... | |
enum QuadOption | query_quadoption (enum QuadOption opt, const char *prompt) |
Ask the user a quad-question. More... | |
Ask the user a question.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file lib.h.
int mutt_multi_choice | ( | const char * | prompt, |
const char * | letters | ||
) |
Offer the user a multiple choice question.
prompt | Message prompt |
letters | Allowable selection keys |
>=1 | 1-based user selection |
-1 | Selection aborted |
Definition at line 54 of file question.c.
enum QuadOption mutt_yesorno | ( | const char * | msg, |
enum QuadOption | def | ||
) |
Ask the user a Yes/No question.
msg | Prompt |
def | Default answer, MUTT_YES or MUTT_NO (see QuadOption) |
num | Selection made, see QuadOption |
Definition at line 194 of file question.c.
enum QuadOption query_quadoption | ( | enum QuadOption | opt, |
const char * | prompt | ||
) |
Ask the user a quad-question.
opt | Option to use |
prompt | Message to show to the user |
QuadOption | Result, e.g. MUTT_NO |
Definition at line 386 of file question.c.