bug-ncurses
[Top][All Lists]
Advanced

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

Re: AW: AW: Mouse movement - no events?


From: Thomas Dickey
Subject: Re: AW: AW: Mouse movement - no events?
Date: Mon, 16 Mar 2015 05:28:37 -0400 (EDT)

----- Original Message -----
| From: "Gerrit Hohl" <address@hidden>
| To: address@hidden
| Cc: address@hidden
| Sent: Monday, March 16, 2015 5:22:08 AM
| Subject: AW: AW: Mouse movement - no events?
| 
| Hello Thomas,
| 
| ah, okay. I didn't know that. Thanks for the information. :)
| Just because I'm curious: In which constelation (operating system,
| mouse library, etc.) are mouse movement events supported?

xterm does this (if ncurses is told to initialize that mode, based on
the hint in the xterm-1003 terminal description).  Some other programs
implement that mode.

It is not the default because it has the potential for confusing programs...

| Regards
| Gerrit
| 
| -----Ursprüngliche Nachricht-----
| Von: Thomas Dickey [mailto:address@hidden
| Gesendet: Montag, 16. März 2015 10:18
| An: Hohl, Gerrit
| Cc: address@hidden
| Betreff: Re: AW: Mouse movement - no events?
| 
| 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
| 

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



reply via email to

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