Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Nov 1998 00:45:53 +0200 (SAT)
From:      Robert Nordier <rnordier@nordier.com>
To:        abial@nask.pl (Andrzej Bialecki)
Cc:        mike@smith.net.au, jkh@time.cdrom.com, rnordier@nordier.com, chuckr@mat.net, freebsd-current@FreeBSD.ORG
Subject:   Re: ficl
Message-ID:  <199811062245.AAA04580@ceia.nordier.com>
In-Reply-To: <Pine.BSF.4.02A.9811062153200.23415-100000@korin.warman.org.pl> from Andrzej Bialecki at "Nov 6, 98 09:59:46 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811062245.AAA04580>