]> skyeroc.xyz Git - dgamelaunch/commitdiff
Prevent input of non-ascii characters (from Edoardo Spadolini)
authorPasi Kallinen <paxed@alt.org>
Mon, 4 Mar 2013 15:03:53 +0000 (17:03 +0200)
committerPasi Kallinen <paxed@alt.org>
Mon, 4 Mar 2013 15:03:53 +0000 (17:03 +0200)
TODO
mygetnstr.c

diff --git a/TODO b/TODO
index 7a1e36d341b306875a4f8da50a79ea2d9f0d4c97..afc41403abf8841d36a97796e4b0514fdf4f383f 100644 (file)
--- a/TODO
+++ b/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.
index 38e479af914c92ceb2bfdabc781fe5e7d0399596..2d5980f46b26823863aa0ed1b2115c08b6f45880 100644 (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)
            {