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



Andrew Doran wrote:

> 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?

I didn't notice that..  My /boot is a week or three old.  I'm currently
set up to use com0 as the console - using the BIOS redirection made the
bootblocks lose in ways that I can't remember anymore.

> +     } else {
> +             printf("\033[H\033[J");

Is it a bit dangerous to just spit out an ANSI escape sequence all the
time?

Cheers,
Simon.


Home | Main Index | Thread Index | Old Index