svn commit: r280925 - head/sys/boot/forth

Devin Teske dteske at FreeBSD.org
Tue Mar 31 23:00:49 UTC 2015


Author: dteske
Date: Tue Mar 31 23:00:48 2015
New Revision: 280925
URL: https://svnweb.freebsd.org/changeset/base/280925

Log:
  Optimize bootmsg to use fg/bg/me from screen.4th
  NB: screen.4th is included by way of check-password.4th
  
  MFC after:	3 days
  X-MFC-to:	stable/10

Modified:
  head/sys/boot/forth/loader.4th

Modified: head/sys/boot/forth/loader.4th
==============================================================================
--- head/sys/boot/forth/loader.4th	Tue Mar 31 22:32:35 2015	(r280924)
+++ head/sys/boot/forth/loader.4th	Tue Mar 31 23:00:48 2015	(r280925)
@@ -43,15 +43,16 @@ s" arch-i386" environment? [if] [if]
 include /boot/support.4th
 include /boot/color.4th
 include /boot/delay.4th
+include /boot/check-password.4th
 
 only forth also support-functions also builtins definitions
 
 : bootmsg ( -- )
-  loader_color? if
-    ." Booting..." cr
-  else
-    ." Booting..." cr
-  then
+  loader_color? dup ( -- bool bool )
+  if 7 fg 4 bg then
+  ." Booting..."
+  if me then
+  cr
 ;
 
 : try-menu-unset
@@ -128,8 +129,6 @@ builtin: boot-conf
 
 only forth definitions also support-functions
 
-include /boot/check-password.4th
-
 \ ***** start
 \
 \       Initializes support.4th global variables, sets loader_conf_files,


More information about the svn-src-all mailing list