LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-05-2011, 06:30 AM   #16
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427

Quote:
Originally Posted by MTK358 View Post
No.
Bad advice
Found http://webhome.csc.uvic.ca/~sae/seng265/fall04/tips/s265s047-tips/bash-using-colors.html and tried it with

Code:
 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, 06:52 AM   #17
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by RockDoctor View Post
Bad advice
Found http://webhome.csc.uvic.ca/~sae/seng265/fall04/tips/s265s047-tips/bash-using-colors.html and tried it with

Code:
 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, 01:00 PM   #18
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
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, 12:28 PM   #19
EzioAuditore
Member
 
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
 
  


Reply



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 03:57 AM
LXer: Customizing vim and coloring the terminal in OpenSolaris 2009.06 LXer Syndicated Linux News 0 07-12-2009 11:10 AM
customizing login on terminal balusss Linux - Software 1 04-22-2008 10:52 AM
Customizing Desktop thru Terminal burningsun1981 Linux - Newbie 8 07-03-2005 09:00 PM
c header files in linux in place of header files in windows? harun_acs Programming 1 03-17-2004 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:45 AM.

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
Open Source Consulting | Domain Registration