blob: e33ce4a5047004111fbb9ef494006a93238c82b0 [file] [log] [blame]
Damien Miller874d77b2000-10-14 16:23:11 +11001#ifndef CLI_H
2#define CLI_H
3
4/*
5 * Presents a prompt and returns the response allocated with xmalloc().
6 * Uses /dev/tty or stdin/out depending on arg. Optionally disables echo
7 * of response depending on arg. Tries to ensure that no other userland
8 * buffer is storing the response.
9 */
10char* cli_read_passphrase(char* prompt, int from_stdin, int echo_enable);
11char* cli_prompt(char* prompt, int echo_enable);
12void cli_mesg(char* mesg);
13
14#endif /* CLI_H */