LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2016, 05:10 PM   #1
Zagiewa
LQ Newbie
 
Registered: Oct 2015
Posts: 15

Rep: Reputation: Disabled
xfce4-terminal - syntax coloring


Hi. Is there a way to change syntax color in xfce4-terminal? In settings I can change font color or background but I want for example echo "hello green world" and change that "green" word to green font color. Are there any color:green changing tricks?
 
Old 01-12-2016, 05:50 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Like this?
Code:
echo -e hello "\033[0;32m"green"\033[0m" world
You can of course use variables
Code:
GREEN="\033[0;32m"
NOCOLOR="\033[0m"
echo -e hello ${GREEN}green${NOCOLOR} world

Last edited by suicidaleggroll; 01-12-2016 at 05:51 PM.
 
Old 01-12-2016, 06:15 PM   #3
Zagiewa
LQ Newbie
 
Registered: Oct 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
This is exactly what I need. Thank you
 
  


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
LXer: Coloring grep output to easier research in your Linux terminal LXer Syndicated Linux News 0 11-25-2012 04:11 PM
[SOLVED] terminal font coloring questions Tux Rules Linux - Software 4 12-02-2010 08:05 AM
LXer: Customizing vim and coloring the terminal in OpenSolaris 2009.06 LXer Syndicated Linux News 0 07-12-2009 11:10 AM
vi terminal coloring issue feetyouwell Linux - Software 1 01-05-2005 03:58 PM
turning off syntax coloring in vim, permanently davalos Linux - Newbie 5 08-18-2003 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:12 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
Open Source Consulting | Domain Registration