[Gpm] gpm and screen

Johannes Zellner johannes@zellner.org
Thu, 30 Nov 2000 22:57:30 +0100


Hello,

I patched gpm to work with gnu screen. The patch is attached
and applies to a vanilla libgpm-1.19.3. I linked this patched
version successfully with vim and can use the mouse on a
console vim on a screen session.

There are still a two things to consider:

1) I wasn't able to connect to the screen socket for getting
   the window size.  I just hardcoded 80x25 for screen. I'm
   using this in a 128 x 48 fbdev console and it works w/o
   problems. I tried `mev' on a screened session with this
   size and it reports correctly 1 <= x <= 128, 1 <= y <= 48.
   So: What is this window size needed for ?

2) When connecting the gpm daemon, then switching to another
   region in screen /on the same vt/, using the mouse will
   apparently act inside the region where the gpm-enhanced
   application was started. This is probably a matter of
   screen telling an application when it looses focus, so
   that the application can close the connection to gpm.
   Maybe I find a way to do this, I just posted to the screen
   list.

btw.: I tried the patch on a debian woody with kernel 2.4.0test11.

Any comments are welcome.

-- 
   Johannes