bug-ncurses
[Top][All Lists]
Advanced

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

Re: AW: Mouse movement - no events?


From: Thomas Dickey
Subject: Re: AW: Mouse movement - no events?
Date: Mon, 16 Mar 2015 05:17:38 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Mon, Mar 16, 2015 at 09:23:55AM +0100, Hohl, Gerrit wrote:
> Hello Thomas,
> 
> I switched the TERM environment variable from "linux" to "xterm-1003" in the
> virtual console.  Afterwards I didn't get any mouse events at all.
> I also changed the "Terminal-type string" in PuTTY (which can be configured 
> at "Connection > Data". And I got the same result: No mouse events at all.
> 
> Maybe I should add that my mouse support currently depends on the GPM
> package.  I don't know if there are other ways and if GPM supports mouse
> movement events.

If you are using Linux console, then you have only GPM, and that interface
(as implemented in ncurses) does not support the any-event protocol.
 
> Regards
> Gerrit
> 
> -----Ursprüngliche Nachricht-----
> Von: Thomas Dickey [mailto:address@hidden 
> Gesendet: Samstag, 14. März 2015 01:05
> An: Hohl, Gerrit
> Cc: address@hidden
> Betreff: Re: Mouse movement - no events?
> 
> On Fri, Mar 13, 2015 at 02:34:33PM +0100, Hohl, Gerrit wrote:
> > Hello everyone,
> > 
> > I don't know if it is a bug or just me having the wrong expectations.
> > 
> > I've written the following small program. I get keyboard key events as 
> > well as resize events. I also get mouse key events (after I installed 
> > the GPM package in my Ubuntu 14). But I don't get any events about 
> > mouse movements.
> > 
> > I've seen that there is a REPORT_MOUSE_POSITION constant / macro. So I 
> > guess there must be a way also to get these events.
> 
> It depends upon the terminal description.  (xterm-1003 is one...)
> 
> --
> Thomas E. Dickey <address@hidden> http://invisible-island.net 
> ftp://invisible-island.net

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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