Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2019 15:26:13 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Ryan Moeller <ryan@ixsystems.com>, freebsd-hackers@freebsd.org
Subject:   Re: Resetting console on boot
Message-ID:  <1eab7d6a8ab3bb3670402ea888f223023841b98a.camel@freebsd.org>
In-Reply-To: <CAGuotKD9d4mXoWpH3Wy5r5COvwhQ4iGEfngPZ3COXFaz-5851A@mail.gmail.com>
References:  <CAGuotKD9d4mXoWpH3Wy5r5COvwhQ4iGEfngPZ3COXFaz-5851A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2019-07-15 at 16:29 -0400, Ryan Moeller wrote:
> Hello,
> 
> What do people think about having an early boot stage send some escape
> sequence to reset terminals to some sane default terminal settings? Often
> firmware or other causes will leave an unreadable font color or break line
> feeds, and the terminal tends to stay that way until a shell clears and
> resets the screen. If a shell can do it, surely loader could do it (or even
> earlier, if it is not too complex). To my knowledge it should be just a
> matter of printing some escape codes before starting the normal boot menus
> when using a serial console. I believe this is already done when the
> console is set to vidconsole or efi.
> 
> Thoughts? Suggestions?
> 

Your "sane" is my "who f*cked with my terminal setup?", so it needs to
be optional.  In my experience, the modern lua loader does send a reset
and other control commands, for both serial and video consoles, unless
you set beastie_disable=YES and loader_color=NO in loader.conf.  Before
I discovered the loader_color=NO, I hated that loader would always
reset my serial terminal to white-on-black.

-- Ian




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