i'm working on a text-based interface using curses, and i recently
decided to add keypad support. unfortunately, while turning the keypad
on works fine for 24x80 windows (consistent with the termcap), it causes
lots of strange behavior when i stty it to anything larger (but not
smaller), most notably that getch() treats some non-escape characters as
though they were potential multiple-character codes, waiting for the
second keystroke, and that some characters simply return the wrong
values (probably the cause of the first problem). i'm not sure exactly
what i have to do to get it to work regardless of the terminal size --
the LINES and COLS variables are set correctly, and i haven't had any
luck figuring out what else to try. it seems like something's getting
trashed, but i don't have any good ideas what it might be. any
suggestions appreciated, by email please.
ps apologies if this is an inappropriate place to post. i looked for a
while and it seemed like the right place.