From 4cfd4855537b0c04b0ef56545ee420bcc1e13e1c Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Tue, 31 Mar 2015 23:00:48 +0000 Subject: [PATCH] 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 --- sys/boot/forth/loader.4th | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sys/boot/forth/loader.4th b/sys/boot/forth/loader.4th index b1645291943..87d11ad9267 100644 --- a/sys/boot/forth/loader.4th +++ b/sys/boot/forth/loader.4th @@ -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,