Date: Tue, 31 Mar 2015 23:00:49 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r280925 - head/sys/boot/forth Message-ID: <201503312300.t2VN0nCh068256@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 - ." [37;44mBooting...[0m" 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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503312300.t2VN0nCh068256>