bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

curses vs. xterm key mismatch


From: Will Parsons
Subject: curses vs. xterm key mismatch
Date: Fri, 13 Apr 2007 23:13:34 +0000 (UTC)
User-agent: slrn/0.9.8.1 (FreeBSD)

I'm working on a curses application that is supposed to react to an End
key, but this does not seem to be recognized in a xterm under FreeBSD 6.1.
Investigation shows that when I press either of the End keys, what curses
sees is 0601, which seems to be defined as KEY_SELECT in curses.h.  (There
is no problem running under a real console.)  Is this an xterm issue, a
terminfo issue on FreeBSD, or something else, and what is the best/proper
way of handling this?  (Obviously, I can have my program simply look for 
KEY_SELECT in addition to KEY_END, but this doesn't seem right to me.)

The value of TERM is xterm.

- Will





reply via email to

[Prev in Thread] Current Thread [Next in Thread]