mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
r_cons_yesno() is now echo-ing the pressed key
This commit is contained in:
parent
ca8eac68c2
commit
6ac290eaec
@ -489,6 +489,8 @@ R_API int r_cons_yesno(int def, const char *fmt, ...) {
|
||||
fflush (stderr);
|
||||
r_cons_set_raw (true);
|
||||
(void)read (0, &key, 1);
|
||||
write (2, " ", 1);
|
||||
write (2, &key, 1);
|
||||
write (2, "\n", 1);
|
||||
if (key == 'Y') {
|
||||
key = 'y';
|
||||
|
Loading…
Reference in New Issue
Block a user