Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Drawterm Trouble

0 views
Skip to first unread message

Martin Gansel

unread,
Nov 24, 2009, 6:52:45 AM11/24/09
to
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

yy

unread,
Nov 25, 2009, 5:12:15 AM11/25/09
to
2009/11/24 Martin Gansel <gansel...@googlemail.com>:

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

0 new messages