From owner-freebsd-current Fri Nov 6 14:48:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA15267 for freebsd-current-outgoing; Fri, 6 Nov 1998 14:48:39 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from ceia.nordier.com (m1-7-dbn.dial-up.net [196.34.155.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA15212 for ; Fri, 6 Nov 1998 14:48:31 -0800 (PST) (envelope-from rnordier@nordier.com) Received: (from rnordier@localhost) by ceia.nordier.com (8.8.7/8.6.12) id AAA04580; Sat, 7 Nov 1998 00:45:55 +0200 (SAT) From: Robert Nordier Message-Id: <199811062245.AAA04580@ceia.nordier.com> Subject: Re: ficl In-Reply-To: from Andrzej Bialecki at "Nov 6, 98 09:59:46 pm" To: abial@nask.pl (Andrzej Bialecki) Date: Sat, 7 Nov 1998 00:45:53 +0200 (SAT) Cc: mike@smith.net.au, jkh@time.cdrom.com, rnordier@nordier.com, chuckr@mat.net, freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andrzej Bialecki wrote: > > I have a question concerning at-xy, cls, and perhaps get-xy words. They > are clearly arch dependent, so if I come to implementing them (I said: > "IF" ;-), where I should add them? And, is this so simple as > vidc_getchar() suggests? I'd suppose in libi386/vidconsole.c. The actual primitive should be fairly simple, anyway. One way to clear (actually reinitialize) the screen is to "get video mode, set video mode" (mov ah,0xf; int 0x10; and ax,0x7f; int 0x10), so: static void vidc_cls(void) { v86.ctl = 0; v86.addr = 0x10; v86.eax = 0xf << 8; v86int(); v86.eax &= 0x7f; v86int(); } I suppose that, at least with the present struct console, you'd need to complicate the present vidc_putchar() and vidc_getchar() considerably, though. -- Robert Nordier To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message