Bug 33132

Summary: Patch to handle otherscreens similiar to allscreens
Product: Base System Reporter: rand
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description rand 2001-12-24 00:20:00 UTC
	The allscreens_flags is very nice for changing  the default syscons
	mode. The one thing I dislike about it is that it clears the screen.
	This patch doesn't preserve the screen contents, it just introduces
	a new /etc/defaults/rc.conf knob called otherscreens_flags that
	affects all screens /except/ ttyv0.

	We use this in /etc/rc.local, but I thought others might enjoy it.
	The ttyv? devices other than ttyv0 are changed with the otherscreens_flags
	knob, this preserves the contents of the boot screen, which I find
	useful. I can then use the other screens at other modes, say 132x60.

Fix: Here is a patch to /etc/rc.syscons:
How-To-Repeat: 	Have a boot problem, especially with a RC script, and try to debug it when
	allscreens_flags clears the screen on you.  :)
Comment 1 Sheldon Hearn 2002-01-09 14:37:20 UTC
On Sun, 23 Dec 2001 18:15:22 CST, "Douglas K. Rand" wrote:

> >Description:
> 	The allscreens_flags is very nice for changing  the default syscons
> 	mode. The one thing I dislike about it is that it clears the screen.
> 	This patch doesn't preserve the screen contents, it just introduces
> 	a new /etc/defaults/rc.conf knob called otherscreens_flags that
> 	affects all screens /except/ ttyv0.

Could you show an allscreens_flags value that clears vty0?

Ciao,
Sheldon.
Comment 2 Sheldon Hearn freebsd_committer freebsd_triage 2002-01-09 14:52:16 UTC
State Changed
From-To: open->feedback

Waiting for a "how to repeat". 

Please copy your feedback to <bug-followup@freebsd.org>, using the 
subject line of this message.
Comment 3 rand 2002-01-09 15:24:08 UTC
Sheldon> Could you show an allscreens_flags value that clears vty0?

Sure.

=46rom the /etc/rc.conf of one of our FreeBSD 4.4 systems:

allscreens_flags=3D"132x60"

When it is going through rc.syscons, it clears the screen just after
"allscreens". =


Oh dear.  The text is still there in the scroll back buffer.  I had
checked that on another system that was running and older version of
FreeBSD. =


Seeing the text in the scroll back buffer seriously undermines my
bugreport.  ;^)
Comment 4 Sheldon Hearn 2002-01-09 15:57:33 UTC
On Wed, 09 Jan 2002 09:24:08 CST, "Douglas K. Rand" wrote:

> Seeing the text in the scroll back buffer seriously undermines my
> bugreport.  ;^)

*lol*

Can I close the PR?

Ciao,
Sheldon.
Comment 5 rand 2002-01-09 16:34:13 UTC
Doug> Seeing the text in the scroll back buffer seriously undermines
Doug> my bugreport.  ;^)

Sheldon> *lol*

Sheldon> Can I close the PR?

You bet.  Sorry for the hassle.
Comment 6 Sheldon Hearn freebsd_committer freebsd_triage 2002-01-09 16:37:46 UTC
State Changed
From-To: feedback->closed

Closed with originator's permission.