Subject: Re: wscons ioctl's
To: Julio Merino <juli@merino.net>
From: R. C. Dowdeswell <elric@mabelode.imrryr.org>
List: tech-kern
Date: 03/08/2002 13:14:50
On 718187325 seconds since the Beginning of the UNIX epoch
Julio Merino wrote:
>

>I need to add two new ioctl's to wsdisplay, to get the mouse working.
>I've added the following to wsconsio.h:
>
>/* Character/attributes of a position */
>struct wsdisplay_poscontent {
>	struct wsdisplay_curpos pos;		/* position */
>	u_int16_t character;			/* character */
>	u_int16_t attr;				/* attributes */
>};
>#define WSDISPLAYIO_GETCHAR	_IOWR('W', 84, struct wsdisplay_poscontent)
>#define WSDISPLAYIO_PUTCHAR	_IOW('W', 85, struct wsdisplay_poscontent)
>
>I've been looking at wscons sources a bit more, and it seems that
>the putchar function is already implemented (not ioctl). So I only need
>to program getchar.

Sorry that I didn't respond earlier but there is a significant
problem with WSDISPLAYIO_GETCHAR which is, wscons may not `know'
what character is there.  If you consider the framebuffer devices
which are not backed by a cell-map then what you have at the end
of the day is a bunch of bits on the screen that putchar, copycols,
copyrows, etc, just blit around.

 == Roland Dowdeswell                      http://www.Imrryr.ORG/~elric/  ==
 == The Unofficial NetBSD Web Pages        http://www.Imrryr.ORG/NetBSD/  ==
 == The NetBSD Project                            http://www.NetBSD.ORG/  ==