Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fakedos() should exit on non-ASCII keys (F1...F12, directional keys, etc) #4

Open
MestreLion opened this issue Mar 31, 2015 · 0 comments

Comments

@MestreLion
Copy link
Owner

Currently the only way to exit fakedos() is to type a fake rogue command, but the original also returned to game on any non-ASCII key press. The culprit is that now getinfo() ignores non-ASCII keys instead of aborting entry, which is suitable for all other text entries like Rogue's Name on title screen, naming potions and scrolls, etc, but it breaks fakedos() original functionality.

A possible solution is to split getinfo() in 2 methods: one for "regular" text entries, possibly a thin wrapper to curse's getnstr(), and another one dedicated to fakedos, reverted to original behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant