Curses - key mappings
Before anything else...
- Windows XP Terminal
- Portuguese keyboard layout
- Win32 for MinGW Win32
I'm using the PDCurses port of curses. I found myself having to (re)define most of the key mappings. Some keys are absent(!) from curses.h (most notable return, enter, escape, spacebar,...), while others have the wrong codes. Only a small subset of the constants defined in curses.h were compatible with my system.
Everything is working fine. But I do have a couple questions...
First, is this expected? PDCurses documentation makes no mention at the need to have to redefine the key mappings. I'm particularly curious because instead of compiling the source code myself I downloaded a port for MinGW for Win32.
Second, I'm expecting the key mappings to not be portable across systems, so I added them to a solo header file and documented them as non portable. But can I expect them to also be non portable across different terminals on the same system? And what of keyboards?
EDIT: Should this be on the C board instead?
What is the Portuguese keyboard layout?
It introduces a new key "ç", and introduces ª and º into another key. Also moves some keys around to allow for the new ones. It stays QWERTY.
This is becoming a little annoying. Not that I'm complaining not getting any answers concerning curses (well, I am)... but on comp.lang.c++ I'm told to go to a specific newsgroup which is fine but there is no curses specific group and windows groups give me 0 answers. Here apparently no one is using it and on ncurses mailing list traffic is 0...
I'm out of options. So the question is now, does anyone know where I can post curses specific answers with a reasonable chance of having them answered? I do have a few more, But I reckon I'll just be cluttering the forums.
Never used it before, but this is one. Hope that helps :)
Most excellent! Thanks Manutd.