Subject: Re: Mouse console support
To: None <email@example.com>
From: Julio Merino <firstname.lastname@example.org>
Date: 02/01/2002 22:02:29
Content-Type: text/plain; charset=us-ascii
On Fri, Feb 01, 2002 at 02:07:09PM -0400, Jared D. McNeill wrote:
> On Sat, 2 Feb 2002, Bang Jun-Young wrote:
> > I had a look at the OpenBSD code before, and I came to the
> > following conclusion: It shouldn't be committed as it is. Other
> I had a talk with Julio on IRC, and suggested that most of the stuff in
> the kernel in OpenBSD's implementation simply didn't need to be there.
> The solution that he came up with (correct me if I'm wrong, Julio!) is to
> only add a getchar ioctl to the wsdisplay driver. Everything else could be
> done in user space simply by getchar, modify, putchar. The copy/paste
> buffer could easily be done in userspace instead of the kernel as well.
Yeah, my idea is the following: provide a getchar and a putchar ioctl, that
can access random postions on screen buffer (see my other post). Each ioctl
should return the letter in the position, as well as its attributes. Why?
wsmoused will need to change their color to make the cursor appere. Well,
I don't know how other archs work, but I guess they are still using
character+attributes. So, returning/setting a simple structure with both
fields would be the main idea.
Then, wsmoused is the program that will control mouse movement, selections,
and pastes. Kernel changes will be minimun, and can also be made optional.
So, what do you think?
Of course it runs NetBSD - http://www.netbsd.org
Julio Merino (Slink) <email@example.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----