[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Console mouse support (i386) added



On Sat, Sep 02, 2000 at 01:41:03PM +0200, Christian Weisgerber wrote:
> Aaron Campbell <aaron@cs.dal.ca> wrote:
> 
> > Last night I committed code from Jean-Baptiste.Marchand@epita.fr that adds
> > console mouse support for PCs to the system. This is a long-awaited
> > feature that provides copy/paste functionality when not in X a la gpm in
> > Linux or FreeBSD's sysmouse stuff.
> 
> FWIW, gpm and sysmouse also support passing mouse events to
> applications.  If somebody wants to work on this, I have some
> comments from experience gained by adding sysmouse support to aumix
> and w3m.  (Not having an OpenBSD/i386 machine hopefully excuses me
> somewhat from contributing code.)

There is something to decide here.

Specifically, xterm already declares a way to pass mouse events to
applications. Instead of reinventing the wheel, like gpm probably did,
and maybe FreeBSD as well, I would definitely be for implementing xterm-like
mouse control sequences, so that ALL applications that work with xterm work
with our mouse support transparently.

Stupid question: how does FreeBSD handles sharing the mouse between the
console and X ?

> On a related note, since there seems to be a slow move to wscons
> on at least some architectures: Does wscons have hooks for console
> mouse support?

Jean-Baptiste is aware of the issue, and is probably going to spend a bit
of time making wscons work with it. We discussed this before-hand, so the
mouse code is reasonably clean, and hopefully easy to migrate from one 
console to another.
-- 
	Marc Espie		
|anime, sf, juggling, unicycle, acrobatics, comics...
|AmigaOS, OpenBSD, C++, perl, Icon, PostScript...
| `real programmers don't die, they just get out of beta'