9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: andrey mirtchovski <mirtchov@cpsc.ucalgary.ca>
To: 9fans@cse.psu.edu
Subject: [9fans] scrollbuttons 2.0
Date: Fri, 15 Oct 2004 14:36:18 -0600	[thread overview]
Message-ID: <fc8f4c2c061263e93ed354e399b8db80@plan9.ucalgary.ca> (raw)

this is my mouse (well, a latter iteration of it, actually):

	http://www-132.ibm.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=-840&langId=-1&partNumber=31P8700&storeId=1

the blue thing at the middle is a scroll button named ScrollPoint.
it's not a scroll wheel and resembles the cat tongue found on ibm
laptops.  i find myself using it more and more in X and lacking the
functionality in Plan 9.  to aleviate the problem i've implemented a
very simple change (hack?) to drawterm to make it use the ScrollPoint.

ScrollPoint works by sending 'Button 4' and 'Button 5' press/release X
events whenever it is pushed up or down.  drawterm now knows about
those two buttons and whenever it sees those events it sends a Kup and
Kdown keyboard commands to Plan 9.  it's strange that way, but it
actually works out amazingly well for terminals, acme and everything
else, even for vnc sessions initiated from Plan 9 (i run drawterm
fullscreen on lunux and then vnc back to the same box to get a browser
in my Plan 9 window).

the only problem i've seen so far with it is that pressing the button
in X terminals causes the bash history to appear (Kup) instead of a
scroll (Kpgup).  i could change Kup → Kpgup and Kdown → Kpgdown but
then the scrolling in Plan 9 would be much faster and imprecise...

because i don't have any other wheel mice around here i'd like to ask
those of you who are interested to give it a try to download the
drawterm-linux.gz and drawterm-freebsd.gz clients from
http://pages.cpsc.ucalgary.ca/~mirtchov/p9/ and see if their scroll
buttons work with them.  if you can compile drawterms for MacOSX,
Windows and your favuorite other OS i'd gladly put them on my page.
the source is in the same location -- drawterm.tgz.

i'd also like to ask for suggestions on how to implement it natively
in Plan 9.  the 'send keyboard command instead of a mouse event'
requires very little change, but is it 9-ish enough?

andrey



             reply	other threads:[~2004-10-15 20:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-15 20:36 andrey mirtchovski [this message]
2004-10-15 22:23 ` [9fans] mk question rog
2004-10-15 22:47   ` Russ Cox
2004-10-16  8:01     ` Bruce Ellis
2004-10-16 11:23   ` Charles Forsyth
2004-10-15 23:37 ` [9fans] scrollbuttons 2.0 Enache Adrian
2004-10-15 23:54   ` andrey mirtchovski
2004-10-18  9:38   ` Fco. J. Ballesteros
2004-10-20 17:49     ` Enache Adrian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fc8f4c2c061263e93ed354e399b8db80@plan9.ucalgary.ca \
    --to=mirtchov@cpsc.ucalgary.ca \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).