Restoring a game can return to the wishing prompt
In TTY or curses, if the terminal goes away while you're in the wishing prompt, return to the prompt when the game is restored. Breaks saves.
This commit is contained in:
@@ -1026,6 +1026,7 @@ parse_escape_sequence(int key, boolean *keypadnum)
|
||||
ret = getch();
|
||||
|
||||
if (ret == ERR) {
|
||||
iflags.term_gone = 1;
|
||||
/* there was no additional char; treat as M-O or M-^O below */
|
||||
ret = (key == '\033') ? 'O' : C('O');
|
||||
} else if (ret >= 112 && ret <= 121) { /* 'p'..'y' */
|
||||
|
||||
Reference in New Issue
Block a user