From: john s. <sk...@us...> - 2012-05-24 10:20:14
|
On 24/05/2012, at 2:39 PM, john skaller wrote: > > Grrr .. works now I call keypad() *after* initscr :) Grrrrrrrr ... but only just. The arrow keys work. but on the **^&%^$$ ing MacBookPro, with its utterly stupid half size arrow keys and missing Home/End keypad keys, and ridiculous additional Apple key .. none of the other combinations (like Shift Left Arrow, which is marked "Home" on the keyboard) work, they just emit stupid escape sequence that xterm-color doesn't grok. The terminal program allows mapping these combinations to anything, and works with just about any terminal type, but it's a major pain now to go find what the terminfo data base says (since its compiled ..) and fix the keys. It's probably easier to add a "learning mode" to the application so you can just press the key you want for each function. Keyboard mapping is a pain. Keyboard mapping when 10 different application and OS layers intervene is a nightmare. -- john skaller sk...@us... http://felix-lang.org |