ncurses + Alt-keys + NLS characters + xterm

ncurses + Alt-keys + NLS characters + xterm

Post by Andy K » Thu, 20 Aug 1998 04:00:00

In an xterm, running cat, if I press Alt+A I get a with acute, ASCII code
of 'a' with 0x80 or-ed in.

In my ncurses program, I also get the same thing.

My dilemma is, when I get 0xa1 character from getch(), how do I know the user
wanted whatever Alt+A is supposed to do, or whether they wanted the NLS
character a with acute?

{{{ Andy Key


1. ncurses: detecting ALT key??

Is there some way I can detect that the ALT key is pressed??  When I use
getch(), Alt-<key> seems to return the same as <key> in most cases...
I don't see any functions in ncurses for separately testing the state

        Dan Miller

2. Which OS supports POSIX.4 shared memory?

3. Ncurses, Xterm, ACS_ characters.

4. Linux Uninstall

5. Alt key not detected by xterm

6. patch -p0 patch-1.3.96 just hangs.

7. Alt key no longer working in xterm / aixterm / dtterm

8. Showmount ? when shutdown.

9. ALT Key not recognized in an Xterm!!!

10. Alt key binding for Xterm in Redhat 9.0

11. Netscape and ALT+Left,ALT+Right keys

12. Gnome or Sawfish is killing my ALT-keys

13. <alt gr> key as <alt>?