On Wed, 2006-03-22 at 10:53 -0800, Alan Coopersmith wrote: > Erast Benson wrote: > > And I always wanted to have a mouse support in console, ala gpm(Linux) > > and moused(BSD). Kernel support is needed. > > It's already there in Solaris SPARC, where graphics cards have in kernel > frame buffers with ioctls to draw the cursor - it's just not well known > and pretty much only used by the X server. > > I've got a bit of code tucked away here that I used to test the hwc > (hardware cursor) module from console mode to load the cursor and > have it track the mouse around the SPARC console screen - you could > also do it without hwc by having the application be responsible for the > cursor updates itself. (hwc is just an optimization - it's a streams > module that Xsun pushes on top of the mouse module that takes the movement > events from the mouse and makes direct calls to the frame buffer driver to > move the hardware cursor image, completely in kernel space without having > to wait for the mouse event to go up to the X server, wait for the X server > process to get a time slice and then to get to the right point in the code > to process it and then send it back down to the fb driver in the kernel. > It won't be in the initial OpenSolaris X code drop, but may be in a later > one.)
This is a nice feature. But this is not what I wanted. I'd like to have some way to distribute "cooked" mouse events to text only applications, like screen, ncurses-based apps, generic console, etc. -- Erast _______________________________________________ opensolaris-discuss mailing list [email protected]
