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 11:53:16PM +1000, Simon Burge wrote:
> 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?

       $NetBSD: termcap.src,v 1.101 2008/03/11 18:47:57 agc Exp $
...
# As the ANSI/ECMA-48 standard and variants take firmer hold, and as
# character-cell terminals are increasingly replaced by X displays, much of
# this file is becoming a historical document (this is part of the reason for
# the new organization, which puts ANSI types, xterm, free-Unix consoles,
# and vt100 up front in confidence that this will catch 95% of new hardware).

Andrew


Home | Main Index | Thread Index | Old Index