zsh-users
 help / color / mirror / code / Atom feed
* zcurses scrolling
@ 2015-11-17 17:34 Ray Andrews
  2015-11-19 15:47 ` Ray Andrews
  0 siblings, 1 reply; 2+ messages in thread
From: Ray Andrews @ 2015-11-17 17:34 UTC (permalink / raw)
  To: Zsh Users

All:

I'm experimenting with mouse input and getting strange results with the 
scrolling wheel. If I grab input like this:

     zcurses input status key keypad

... then the scroll wheel returns either 'UP' or 'DOWN' in '$keypad'. So 
it simulates the arrow keys, which is logical and it works fine. 
However, when I attempt to handle mouse events explicitly:

     zcurses input status key keypad mouse

... things change.  Now, if I scroll up:

     $keypad is 'MOUSE' and
     $mouse is  '0 40 18 0 PRESSED4'

... but if I scroll down:

     $keypad is 'MOUSE' and
     $mouse is  [unset]

So if I want to capture mouse clicks (which is working fine) then I'm 
not able to capture scrolling down, tho I can capture scrolling up.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-19 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-17 17:34 zcurses scrolling Ray Andrews
2015-11-19 15:47 ` Ray Andrews

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).