[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: under ncurses, mouse events come as escape codes
From: |
Thomas Dickey |
Subject: |
Re: under ncurses, mouse events come as escape codes |
Date: |
Thu, 29 Sep 2005 16:20:29 -0400 (EDT) |
On Thu, 29 Sep 2005, Adam H. Peterson wrote:
I apologize if this is off-topic for this group. I'm having difficulty
finding a forum to ask help in using ncurses, so here goes....
I'm having difficulty reading mouse events under NCurses. Instead of
receiving KEY_MOUSE from getch(), I'm getting escape codes. For example,
this program:
...
Is there anything I'm doing wrong?
perhaps $TERM isn't set properly (even though gnome-terminal hardcodes
"xterm" rather than "gnome" ;-). ncurses is looking for "xterm" embedded
in the $TERM name, or kmous matching xterm's string in the corresponding
terminfo description.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net