LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-18-2005, 03:49 PM   #1
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,638

Rep: Reputation: 46
The coloured messages on the screen.


The following shows that the bash is on my system.
[ka@c83-250-94-177 ka]$ cat /etc/shells
/bin/bash
/bin/csh
/bin/sh
/bin/tcsh
[ka@c83-250-94-177 ka]$

-----------------------------------------------------------------------------------------

The following echo command prints message in Blue color on console. I found this on a website.
$ echo -e "\033[34m Hello Colorful World!"
Hello Colorful World!
-------------------------------------------------------------------------------------------------------------------

However, it didn't work the way it should work. Please read the following:

[ka@c83-250-94-177 ka]$ echo -e "\033[34m Hello Colorful World!"
bash: !": event not found
[ka@c83-250-94-177 ka]$


What is the problem?
 
Old 04-18-2005, 03:55 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,305

Rep: Reputation: 205Reputation: 205Reputation: 205
It works if you remove the !
 
Old 04-18-2005, 03:56 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Which website did it come from? I am guessing that you need to use the line as part of a script.
 
Old 04-18-2005, 03:59 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
{BBI}Nexus{BBI} is right and it turns the words dark blue
 
Old 04-18-2005, 04:28 PM   #5
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,638

Original Poster
Rep: Reputation: 46
BBI is great!

Now it works.

http://www.freeos.com/guides/lsst/mi...olorfunandmore
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Coloured tail??? bram2000 Linux - Software 1 01-28-2005 12:42 PM
Error messages on my screen Wimpie22 Linux - General 1 08-02-2004 05:35 PM
How to view bootup messages? (screen scrolls too fast) davidas Debian 6 04-18-2004 11:37 AM
Putting error messages on the screen into a file... tarballed Linux - Newbie 3 07-01-2003 03:01 PM
boot screen messages 9nine9 Linux - General 2 01-06-2003 03:50 PM


All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration