Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Dec 2004 10:39:30 +0100 (CET)
From:      Hanspeter Roth <hampi@rootshell.be>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/74577: [patch] decorating space in Beastie menu
Message-ID:  <200412010939.iB19dU7J002696@goofy.here>
Resent-Message-ID: <200412010940.iB19eOq8033178@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         74577
>Category:       misc
>Synopsis:       [patch] decorating space in Beastie menu
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 01 09:40:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hanspeter Roth
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD goofy.here 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	The Beastie menu makes it convenient choosing boot options.
	The Beastie decorating space right to the menu reflects the 
	preference of the majority or all of the FreeBSD developers.
	Their opinion is documented in
	http://www.freebsd.org/copyright/daemon.html .

	However there are users which have a different opinion and which
	don't like the Beastie mascot to be displayed during boot time.

	The question is: are such users
	- welcome
	- tolerated
	- disliked.

	In case they are more or less tolerated what should they do in order
	to switch the Beastie splash screen?

	- renounce of the Beastie menu (beastie_disable="YES") ?
	- spend some hours to dig in mailing lists or dig in
	  http://www.forth.org/tutorials.html ?
	- or have an convenient flag in loaders.conf that allows to
	  run Beastie menu but display some other decoration?

	This patch is related to PR 70231. Just the default behavior is 
	different. The Beastie is still displayed by default. But it
	allows to turn the Beastie splash off more easily.


diff -ru sys.orig/boot/forth/beastie.4th sys/boot/forth/beastie.4th
--- sys.orig/boot/forth/beastie.4th	Sat Oct 30 15:45:13 2004
+++ sys/boot/forth/beastie.4th	Wed Dec  1 10:08:16 2004
@@ -94,7 +94,33 @@
 	     at-xy ."        `--{__________)"
 ;
 
+: print-banner ( x y -- )
+	2dup at-xy ."  " 1+
+	2dup at-xy ."  " 1+
+	2dup at-xy ."        ______" 1+
+	2dup at-xy ."       / ____/_______  ___" 1+
+	2dup at-xy ."      / /_  / ___/ _ \/ _ \" 1+
+	2dup at-xy ."     / __/ / /  /  __/  __/" 1+
+	2dup at-xy ."    /_/   /_/   \___/\___/" 1+
+	2dup at-xy ."  " 1+
+	2dup at-xy ."                ____ _____ ____" 1+
+	2dup at-xy ."               / __ ) ___// __ \" 1+
+	2dup at-xy ."              / __  \__ \/ / / /" 1+
+	2dup at-xy ."             / /_/ /__/ / /_/ /" 1+
+	     at-xy ."            /_____/____/_____/"
+	     exit
+;
+
 : print-beastie ( x y -- )
+	s" loader_banner" getenv
+	dup -1 = if
+		drop
+	else
+		s" YES" compare-insensitive 0= if
+			print-banner
+			exit
+		then
+	then
 	s" loader_color" getenv
 	dup -1 = if
 		drop
diff -ru sys.orig/boot/forth/loader.conf sys/boot/forth/loader.conf
--- sys.orig/boot/forth/loader.conf	Sun Nov  7 18:01:08 2004
+++ sys/boot/forth/loader.conf	Wed Dec  1 10:06:24 2004
@@ -36,6 +36,7 @@
 bitmap_name="splash.bmp"	# Set this to the name of the bmp or pcx file
 bitmap_type="splash_image_data" # and place it on the module_path
 loader_color="NO"		# Set this to YES to enable splash screen colors
+loader_banner="NO"		# Set thie to YES to display banner else Beastie
 
 
 ##############################################################

>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:



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