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:
Pasi Kallinen
2025-07-12 18:21:09 +03:00
parent 65774372e6
commit e240efa10b
11 changed files with 28 additions and 2 deletions

View File

@@ -2453,6 +2453,8 @@ tty: hide cursor unless waiting for user input; now extended to include tty
platforms that define NO_TERMS, rather than just on those using
termcap/terminfo, namely Windows console and msdos (text-mode
implemented; vga and vesa just have stubs currently)
tty+curses: if terminal goes away while in the wishing prompt, return to the
wish prompt when game is restored
Unix: when user name is used as default character name, keep hyphenated value
intact instead stripping off dash and whatever follows as if that
specified role/race/&c (worked once upon a time; broken since 3.3.0)