Re: problem with wait_key() and arrows
- Posted by DerekParnell (admin) Sep 17, 2011
- 3127 views
jeremy said...
You said key codes are set in stone in be_w.c, I didn't look at the code but I wonder if they could be made configurable at runtime? i.e.
ifdef WINDOWS then set_keycodes(...) els....
Not sure any of it makes sense. Just thinking aloud. That may make it easier as well to configure for exotic terminals in the Unix world as well?
Just like have a terminfo file ... ...
But yes, I can change this to be loadable at runtime, with a default set hard coded. There probably should be a command line switch (and/or environment symbol) to specify which virtual key set you want to run with too.