Subject: Re: Mouse console support
To: Julio Merino <juli@merino.net>
From: Bang Jun-Young <junyoung@mogua.com>
List: tech-kern
Date: 01/30/2002 22:51:02
On Tue, Jan 29, 2002 at 08:19:38PM +0100, Julio Merino wrote:
> I don`t know if anybody is currently working on this, but I`ve started
> porting OpenBSD`s code to NetBSD-current`s wscons to use mouse.
> I`m a kernel newbie, so I may get it, or maybe not... at least, I`ve
> patched wsdisplay.c and other files, and the kernel compiles. Now I`ve
> to get it working together with the wsmoused program.
I was doing the same thing some time ago. IMHO, OpenBSD implementation
is misusing wscons events for control commands. Commands to turn wsmoused
on/off are not events since they are not generated by a mouse device.
So I changed them to WSDISPLAYIO_WSMOUSED_O{N|FF}. Along with this,
I wrote wsmoused from scratch. The OpenBSD version is unnecessarily
complicated and has a bunch of obsolete stuff for NetBSD.
I hope it will be completed and released some time soon after I
have finished work on framebuf and uwscons.
> Any advice? Should I leave this because nobody wants it? Or should
> I continue? ;)
I remember quite a number of people have wanted this feature so
far. Can I look at your patch?
> Where can I find docs related about how to debug a running kernel? Or
> is the debugging very similar to gdb?
I heavily depend on use of printf() ;-)
Jun-Young
--
Bang Jun-Young <junyoung@mogua.com>