Prevent input of non-ascii characters (from Edoardo Spadolini)

This commit is contained in:
Pasi Kallinen 2013-03-04 17:03:53 +02:00
parent 768cddff32
commit 1a08194dfe
2 changed files with 4 additions and 1 deletions

3
TODO
View File

@ -1,4 +1,7 @@
-pass the correct terminal size to nethack. (dgl handles
term resizes correctly, but nethack doesn't see the new size)
-allow setting banners for the internal menus, with the same method
as normal user-defined menus, but only the banner is used from them.
if no such menu is defined, then uses the default banner file.

View File

@ -81,7 +81,7 @@ mygetnstr(char *buf, int maxlen, int doecho)
addstr("\010 \010");
}
}
else if ((c >= ' ' && c <= '~') || (c >= 0xA0 && c <= 0xFF))
else if ((c >= ' ' && c <= '~'))
{
if (i < maxlen)
{