Skip to contentSkip to conversation

usage with libgpm

DISCUSSION Ryan Underwood 2 participants 4 messages Mar 11, 2005 – Mar 13, 2005

lore
Share & tools
lore
#0 lore raw

When dosemu is built with libgpm support, what $_mouse and $_mouse_dev should be used? When they are commented out, no DOS program can see the mouse. $_mouse = (microsoft) and $_mouse_dev = "/dev/gpmdata" works, but I thought this was not supposed to be necessary when libgpm is used.

Signature · 1 line
Ryan Underwood, <[email protected]>
#1 lore raw

Just to elaborate on what Stas said....

Quoted 2 lines · Ryan Underwood

When dosemu is built with libgpm support, what $_mouse and $_mouse_dev should be used?

these settings are irrelevant when libgpm is used. libgpm is only used for the console in terminal mode, that is, when dosemu is as useful as when you run it in an xterm (no graphics, just text mode).

This is sometimes useful because VC switching is much smoother if you run dosemu in terminal mode than in console graphics, and it doesn't sacrifice security either.

But since 99% of all Linux desktop users seem to use X 100% of the time it is not really so important I think.

Quoted 4 lines

When they are commented out, no DOS program can see
the mouse. $_mouse = (microsoft) and $_mouse_dev = "/dev/gpmdata" works, but I thought this was not supposed to be necessary when libgpm is used.

It is necessary. The long story is that dosemu sends an ioctl(console_fd, KDSETMODE, KD_GRAPHICS); because once the VBIOS does all its stuff all the Linux console management goes out of the window and gpm can't trust it anymore.

For 2.6 kernels it would perhaps be simpler to use the mouse event device instead of all this manual business.

It doesn't quite help that by the standard of "dead" that was used in the threads here, gpm is very much dead by now. libgpm can also be binary incompatible from one distro to another one which is another PITA for the binaries on dosemu.org.

Bart

#2 lore raw
Quoted 7 lines · Bart Oldeman
Quoted 3 lines

When dosemu is built with libgpm support, what $_mouse and $_mouse_dev should be used?

these settings are irrelevant when libgpm is used. libgpm is only used for the console in terminal mode, that is, when dosemu is as useful as when you run it in an xterm (no graphics, just text mode).

Yeah, Stas already told me that. It was only strange that I was able to get mouse usage in the console when specifying those things, but not without specifying them, even when libgpm was enabled.

Quoted 4 lines

It doesn't quite help that by the standard of "dead" that was used in the threads here, gpm is very much dead by now. libgpm can also be binary incompatible from one distro to another one which is another PITA for the binaries on dosemu.org.

So what's the best way to set things up so that mouse works in both console graphics mode (i.e. $_mouse + $_mouse_dev set) as well as in terminal mode using libgpm without changing the conffile in between invocations?

Signature · 1 line
Ryan Underwood, <[email protected]>
#3 lore raw
Quoted 4 lines · Ryan Underwood

So what's the best way to set things up so that mouse works in both console graphics mode (i.e. $_mouse + $_mouse_dev set) as well as in terminal mode using libgpm without changing the conffile in between invocations?

basically dosemu has 6 mouse frontends:
1. X
2. xterm
3. via gpm
4. SDL
5. console graphics (internal mouse driver)
6. console graphics (serial mouse with DOS mouse driver)

$_mouse_dev and $_mouse *only* affect the mouse in console graphics mode (5 and 6).

If these settings change the behaviour of dosemu in terminal mode then that's a bug.

Bart