Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Add a "scroll" keyword to boot.cfg



On Wed, May 21, 2008 at 06:41:18PM +1000, Simon Burge wrote:

> I've got an almost useful serial BIOS redirection on one board here, but
> the biggest usability problem is that the NetBSD bootloader starts in
> the middle of the screen without clearing it.  To work around this, I'm
> using the attached patch which adds a "scroll" keyword which just prints
> that many blank lines before it does anything else.
>
> Any interest in adding this to the source tree (and of course an
> update to share/man/man5/boot.cfg.5)?  Or put another way, any active
> disinterest in not adding it?  :)

Are you using the redirection for boot loader output? The clear screen thing
from yesterday should work. What about this instead?

Andrew

Index: lib/pcio.c
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/stand/lib/pcio.c,v
retrieving revision 1.23
diff -u -r1.23 pcio.c
--- lib/pcio.c  21 May 2008 13:36:45 -0000      1.23
+++ lib/pcio.c  21 May 2008 13:37:10 -0000
@@ -201,9 +201,11 @@
        conputc('\n');
        strncpy(btinfo_console.devname, iodev == CONSDEV_PC ? "pc" : "com", 16);
 
+       /* Clear screen. */
        if (iodev == CONSDEV_PC) {
-               /* Clear screen if on a glass tty. */
                conclr();
+       } else {
+               printf("\033[H\033[J");
        }
 #else /* !SUPPORT_SERIAL */
        btinfo_console.devname[0] = 'p';


Home | Main Index | Thread Index | Old Index