Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-05-2011, 07:30 AM   #16
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,677

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388

Originally Posted by MTK358 View Post
Bad advice
Found and tried it with

 echo -e "\e[1;34mThis is a blue text.\e[0m this is not"
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-05-2011, 07:52 AM   #17
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Originally Posted by RockDoctor View Post
Bad advice
Found and tried it with

 echo -e "\e[1;34mThis is a blue text.\e[0m this is not"
I never said you can't do colors. But what you can't do is make bash dynamically highlight different commands as you type them, which is what the OP wanted.
Old 04-05-2011, 02:00 PM   #18
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,398
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I've never looked at the tab-completion code, which I assume is somewhere in the readline library, but my guess is that most of the machinery to detect 'keywords' already exists, and for someone modestly industrious, you could add color to the commandline as keywords are detected. Sounds like an interesting project for someone asking one of those 'what should I do with my new programming skills?' questions.

--- rod.
Old 04-07-2011, 01:28 PM   #19
Registered: Mar 2011
Posts: 45

Original Poster
Rep: Reputation: 0
Yeah i guess It'd be a very useful thing to have keywords automatically highlighted.. Languages like c, c++ etc can already do it..
It'd really be nice if any program out there reading it could work on this project..
It'd be really soothing to eyes in distinguishing commands in terminal.. :P


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check missing header files included from another header file adisan82 Linux - Software 1 01-28-2011 04:57 AM
LXer: Customizing vim and coloring the terminal in OpenSolaris 2009.06 LXer Syndicated Linux News 0 07-12-2009 12:10 PM
customizing login on terminal balusss Linux - Software 1 04-22-2008 11:52 AM
Customizing Desktop thru Terminal burningsun1981 Linux - Newbie 8 07-03-2005 10:00 PM
c header files in linux in place of header files in windows? harun_acs Programming 1 03-17-2004 03:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:17 PM.

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