9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: yy <yiyu.jgl@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Drawterm Trouble
Date: Wed, 25 Nov 2009 11:08:48 +0100	[thread overview]
Message-ID: <a81fe9be0911250208m6c79f240i16cf016667a1f6b9@mail.gmail.com> (raw)
In-Reply-To: <0cd53c93-5aa7-4909-ad35-9389532bdcd0@u20g2000vbq.googlegroups.com>

2009/11/24 Martin Gansel <ganselmartin@googlemail.com>:
> Drawterm for Linux(I currently run Arch Linux) doesn't allow me to use
> the middle mouse button emulation(Shift + right mouse button).
> For example if I run Acme, I can't exec any command via middle button
> emulation. There is simply no reaction. Is there any known bug?
> Drawterm for Windows works perfectly.
>
> Martin Gansel
>
>

It is not implemented, but it  has an easy solution. I sent the fix
for 9vx to this list some time ago
(http://9fans.net/archive/2009/03/250). I will send to Russ patches
for 9vx and drawterm fixing this issue, but I cannot guarantee when
(or even if) they will be applied.

This was the fix for 9vx:
diff -r a18e9872164b src/9vx/x11/x11-itrans.c
--- a/src/9vx/x11/x11-itrans.c	Wed Dec 10 03:29:15 2008 -0800
+++ b/src/9vx/x11/x11-itrans.c	Mon Mar 09 16:29:39 2009 +0100
@@ -229,7 +229,7 @@
 	if(s & Button2Mask)
 		m->buttons |= 2;
 	if(s & Button3Mask)
-		m->buttons |= 4;
+		m->buttons |= s & ShiftMask ? 2 : 4;
 	if(s & Button4Mask)
 		m->buttons |= 8;
 	if(s & Button5Mask)

You want to apply a similar patch to gui-x11/screen.c

--
- yiyus || JGL . 4l77.com



      reply	other threads:[~2009-11-25 10:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-24 11:52 Martin Gansel
2009-11-25 10:08 ` yy [this message]

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=a81fe9be0911250208m6c79f240i16cf016667a1f6b9@mail.gmail.com \
    --to=yiyu.jgl@gmail.com \
    --cc=9fans@9fans.net \
    /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).