Unix Technical Forum

Terminal colors

This is a discussion on Terminal colors within the Debian Linux support forums, part of the Debian Linux category; --> I run Sarge. Where is the colors for xterm or virtual terminal defined. Say if I want directories listed ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 09:00 AM
Salve =?iso-8859-1?Q?H=E5kedal?=
 
Posts: n/a
Default Terminal colors

I run Sarge.

Where is the colors for xterm or virtual terminal defined.
Say if I want directories listed with green color instead
of blue, and the other filetypes in different colors than
the current color?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 09:00 AM
Mumia W. (reading news)
 
Posts: n/a
Default Re: Terminal colors

On 09/24/2006 01:45 AM, Salve Håkedal wrote:
> I run Sarge.
>
> Where is the colors for xterm or virtual terminal defined.
> Say if I want directories listed with green color instead
> of blue, and the other filetypes in different colors than
> the current color?


The program dircolors outputs code to set the LS_COLORS environment
variable (which ls uses to display colors).

In Debian Sarge, dircolors is invoked from within ~/.bashrc

Do a "man dircolors." You'll probably want to use the --print-database
option to save the built-in list of colors to a file, then you'll make
your changes in that file and change ~/.bashrc to invoke dircolors with
the name of your changed colors file.

HTH

--
paduille.4058.mumia.w@earthlink.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 09:00 AM
Salve =?iso-8859-1?Q?H=E5kedal?=
 
Posts: n/a
Default Re: Terminal colors

On 2006-09-24, Mumia W. (reading news) wrote:
> On 09/24/2006 01:45 AM, Salve Håkedal wrote:
>> I run Sarge.
>>
>> Where is the colors for xterm or virtual terminal defined.
>> Say if I want directories listed with green color instead
>> of blue, and the other filetypes in different colors than
>> the current color?

>
> The program dircolors outputs code to set the LS_COLORS environment
> variable (which ls uses to display colors).
>
> In Debian Sarge, dircolors is invoked from within ~/.bashrc
>
> Do a "man dircolors." You'll probably want to use the --print-database
> option to save the built-in list of colors to a file, then you'll make
> your changes in that file and change ~/.bashrc to invoke dircolors with
> the name of your changed colors file.
>
> HTH
>

Thank You!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:19 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com