r4181 - trunk/bootscripts/lfs/init.d

nathan at linuxfromscratch.org nathan at linuxfromscratch.org
Tue Sep 21 20:17:08 PDT 2004


Author: nathan
Date: 2004-09-21 21:17:06 -0600 (Tue, 21 Sep 2004)
New Revision: 4181

Modified:
   trunk/bootscripts/lfs/init.d/functions
Log:
Added additional comments, CURS_UP goes to first character

Modified: trunk/bootscripts/lfs/init.d/functions
===================================================================
--- trunk/bootscripts/lfs/init.d/functions	2004-09-20 08:59:21 UTC (rev 4180)
+++ trunk/bootscripts/lfs/init.d/functions	2004-09-22 03:17:06 UTC (rev 4181)
@@ -31,16 +31,16 @@
 WCOL=$(($COLUMNS - 30))
 
 # Set Cursur Position Commands, used via echo -e
-SET_COL="\\033[${COL}G"
-SET_WCOL="\\033[${WCOL}G"
-CURS_UP="\\033[A"
+SET_COL="\\033[${COL}G"      # at the $COL char
+SET_WCOL="\\033[${WCOL}G"    # at the $WCOL char
+CURS_UP="\\033[1A \\033[0G"  # Up one line, at the 0'th char
 
 # Set color commands, used via echo -e
-NORMAL="\\033[0;39m"
-SUCCESS="\\033[1;32m"
-WARNING="\\033[1;33m"
-FAILURE="\\033[1;31m"
-BRACKET="\\033[1;34m"
+NORMAL="\\033[0;39m"         # Standard console grey
+SUCCESS="\\033[1;32m"        # Success is green
+WARNING="\\033[1;33m"        # Warnings are yellow
+FAILURE="\\033[1;31m"        # Failures are red
+BRACKET="\\033[1;34m"        # Brackets are blue
 
 # Set screen and bootlog message values to ero
 BOOTMESG=""




More information about the lfs-book mailing list