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 11:53:16PM +1000, Simon Burge wrote:
> > Andrew Doran wrote:
> > 
> > > + } 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).

Sure.  I couldn't think of anything that was remotely in use now that'd
react to an ANSI sequence badly.  Still, it's not something we can
guarantee is it?  Printing out a couple of (optional) newlines is always
going to be 100% safe.

Cheers,
Simon.


Home | Main Index | Thread Index | Old Index