mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-01-31 00:31:00 +00:00
EDIT: ESC now cancels at y/n prompt.
This commit is contained in:
parent
bc56885dee
commit
3a28375bcb
@ -281,7 +281,7 @@ char prompt_okay(char *msg) {
|
|||||||
revers(0);
|
revers(0);
|
||||||
while (1) {
|
while (1) {
|
||||||
c = cgetc();
|
c = cgetc();
|
||||||
if ((c == 'y') || (c == 'Y') || (c == 'n') || (c == 'N'))
|
if ((c == 'y') || (c == 'Y') || (c == 'n') || (c == 'N') || c == ESC)
|
||||||
break;
|
break;
|
||||||
beep();
|
beep();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user