Curses - key mappings

This is a discussion on Curses - key mappings within the C++ Programming forums, part of the General Programming Boards category; Before anything else... - Windows XP Terminal - Portuguese keyboard layout - Win32 for MinGW Win32 I'm using the PDCurses ...

  1. #1
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,510

    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?
    Last edited by Mario F.; 11-19-2006 at 03:16 PM.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  2. #2
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    What is the Portuguese keyboard layout?
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  3. #3
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,510
    It introduces a new key "&#231;", and introduces &#170; and &#186; into another key. Also moves some keys around to allow for the new ones. It stays QWERTY.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,510
    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.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Never used it before, but this is one. Hope that helps
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  6. #6
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,510
    Most excellent! Thanks Manutd.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 12:48 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 09:00 AM
  3. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21