mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
edit-key is now complete
This commit is contained in:
parent
1a80de41a5
commit
5ae562b41d
48 changed files with 2044 additions and 984 deletions
12
util/ttyio.c
12
util/ttyio.c
|
@ -328,3 +328,15 @@ tty_kill_prompt()
|
|||
last_prompt_len = 0;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
tty_get_answer_is_yes( const char *prompt )
|
||||
{
|
||||
int yes;
|
||||
char *p = tty_get( prompt );
|
||||
tty_kill_prompt();
|
||||
yes = answer_is_yes(p);
|
||||
m_free(p);
|
||||
return yes;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue