Prevent input of non-ascii characters (from Edoardo Spadolini)
This commit is contained in:
parent
768cddff32
commit
1a08194dfe
3
TODO
3
TODO
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue