LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-22-2009, 11:39 AM   #1
phys
Member
 
Registered: Jun 2006
Location: Istanbul, Turkey
Distribution: Slackware
Posts: 90

Rep: Reputation: 23
Enabling color function on Xfce Terminal


Hello;
I want "Xfce Terminal" to view files and folders in different color as in below link. I could not enable this function on my Slack box.
http://www.xfce.org/projects/terminal
Thanks...
 
Old 05-22-2009, 02:25 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
It depends on the program. Certainly your terminal has color support already, but the program you use also has to provide its output in color (or to be more accurate, to insert ascii color escape sequences into its output that can be read by the display). for example, try "ls --color=auto" or "--color=always". grep also has a color option.

For a pager, like less, you also need to enable display of "raw control characters" (the -r or -R options in less).
 
Old 05-22-2009, 02:40 PM   #3
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 37
Try adding this to your ~/.bashrc file:
Code:
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
    #alias rm 'mv \!* ~/TRASH'
    #alias dir='ls --color=auto --format=vertical'
    #alias vdir='ls --color=auto --format=long'
fi
Save, then restart your window manager.
 
1 members found this post helpful.
Old 05-22-2009, 03:00 PM   #4
phys
Member
 
Registered: Jun 2006
Location: Istanbul, Turkey
Distribution: Slackware
Posts: 90

Original Poster
Rep: Reputation: 23
Thank you very much David and mdg. It did work.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How would a combination of Xfce and FVWM function? ambivispice Linux - Desktop 5 05-11-2008 08:59 AM
Terminal and gnome-terminal crashing X in Xfce Warren Watts Arch 3 12-12-2007 11:33 PM
Terminal color m2azer Linux - General 3 02-10-2007 12:22 AM
XFCE:: (2 questions) -enabling transparency-adding icons mrgrieves Linux - Software 1 07-26-2004 10:47 PM
get terminal color? cratos Programming 0 07-16-2003 03:04 PM


All times are GMT -5. The time now is 01:50 AM.

Main Menu
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