View Full Version : Green [ ok ] messages
rasher
December 18th, 2004, 06:24 PM
I was annoyed that during boot, only the status messages showing [fail] got coloured (red), so I created a very simple patch that makes the [ ok ] messages appear in green.
The patch applies to /lib/lsb/init-functions
--- init-functions.orig 2004-12-18 23:45:08.756780424 +0100
+++ init-functions 2004-12-18 23:44:52.699221544 +0100
@@ -190,9 +190,10 @@
END=`$TPUT hpa $COL`
START=`$TPUT hpa 0`
RED=`$TPUT setaf 1`
+ GREEN=`$TPUT setaf 2`
NORMAL=`$TPUT op`
if [ $1 -eq 0 ]; then
- echo "$UP$END[ ok ]"
+ echo "$UP$END[ ${GREEN}ok${NORMAL} ]"
else
echo -e "$UP$START $RED*$NORMAL$END[${RED}fail${NORMAL}]"
fi
I'm not at all sure this belongs in "Ubuntu Screenshots / Art Talk", but I figured it was about making Ubuntu pretty, and I didn't know where else to put it.
oddabe19
December 18th, 2004, 11:41 PM
I was annoyed that during boot, only the status messages showing [fail] got coloured (red), so I created a very simple patch that makes the [ ok ] messages appear in green.
The patch applies to /lib/lsb/init-functions
--- init-functions.orig 2004-12-18 23:45:08.756780424 +0100
+++ init-functions 2004-12-18 23:44:52.699221544 +0100
@@ -190,9 +190,10 @@
END=`$TPUT hpa $COL`
START=`$TPUT hpa 0`
RED=`$TPUT setaf 1`
+ GREEN=`$TPUT setaf 2`
NORMAL=`$TPUT op`
if [ $1 -eq 0 ]; then
- echo "$UP$END[ ok ]"
+ echo "$UP$END[ ${GREEN}ok${NORMAL} ]"
else
echo -e "$UP$START $RED*$NORMAL$END[${RED}fail${NORMAL}]"
fi
I'm not at all sure this belongs in "Ubuntu Screenshots / Art Talk", but I figured it was about making Ubuntu pretty, and I didn't know where else to put it.
I know what you're talking about, and how to apply it, but howabout explaining how to apply the patch for those that don't know.
Smash
December 25th, 2004, 04:55 AM
I think he would like to say to remove lines that starts with -, and add lines that starts with +.
Iive not already tried.
Good tip.
TNX
Rotarychainsaw
December 25th, 2004, 02:37 PM
oops, i didnt take out the minuses but it still works.
fng
January 8th, 2005, 08:34 PM
This patch should be default in ubuntu.
maart
January 9th, 2005, 06:12 PM
What are other possible colors to use?
zeroK
January 9th, 2005, 06:28 PM
This patch should be default in ubuntu.
Yeah, I was thinking exactly the same thing right after booting Ubuntu for the first time. Thanks rusher :-)
shimon
January 10th, 2005, 03:57 AM
This patch should be default in ubuntu.
yes another distros have it
but uslpash will hide this patch
heema
January 10th, 2005, 04:48 AM
Yeah thanks , as i have been used to seeing the OK green
it gives me a good feeling that everything is working right :smile:
Device
January 10th, 2005, 01:34 PM
I know what you're talking about, and how to apply it, but howabout explaining how to apply the patch for those that don't know.
patch -p0 < /path/to/this/patch
shimon
January 11th, 2005, 05:22 AM
<HostingGeek> Green [ ok ] messages? why not apply this patch by default like all other distros have?
<HostingGeek> http://ubuntuforums.org/showthread.php?t=8556
<fabbione> it has been discussed on the mailing list iirc
<fabbione> because it is a communityu decision done by all users
<fabbione> therefor discussed between all of them
<fabbione> and the verdic was something like: no thanks
<fabbione> for different reasons
<mjt> "quiet" graphical boot, green/red messages.. and a cup of coffee every morning pls. ugh.
<HostingGeek> link
<HostingGeek> i need to join more mailing lists
<Keybuk> fundamantally, colour should only be used to highlight problems
<Keybuk> in particular, that's a very silly patch -- the green and red are of the same intensity, so a colour blind person wouldn't see any difference
<Keybuk> by using red for fail, they stand out in the otherwise black/white boot sequence
<Treenaks> make it BLINK
<Treenaks> that's stand out for sure!
* Keybuk shakes his head
<Keybuk> it'll be colour prompts next
<Treenaks> Keybuk: Ubuntu needs more gentoo influence :P
--> Gorth (~Gorth@cpe.atm2-0-51110.0x50a4d38e.abnxx10.customer.tele.dk) has joined #ubuntu-devel
<Keybuk> we had gentoo influence for warty
* Mithrandir whacks Treenaks
<bob2> next you'll all be madly trying to get the boot time down to < 30 seconds
doobiest
April 11th, 2007, 02:20 PM
has anyone found out how to do this for newer versions? Feisty? I cant figure it out, the init-functions file is much different.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.