[lug] terminal text kde

Scott A. Herod herod at interact-tv.com
Thu Oct 11 13:13:54 MDT 2001


Do you mean to display different files in different colors?  Then
something like this .cshrc block works.

#
# Below are the color init strings for the basic file types. A color
init
# string consists of one or more of the following numeric codes:
#
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
#
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
#
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
#
# no=NORMAL     # global default, although everything should be
something.
# fi=FILE       # normal file
# di=DIR4       # directory
# ln=LINK6      # symbolic link
# pi=FIFO       # pipe
# so=SOCK5      # socket
# bd=BLK        # block device driver
# cd=CHR        # character device driver
# or=ORPHAN     # symlink to nonexistent file
# ex=EXEC       # executable
#
setenv LS_COLORS
'no=01;37:fi=01;37:di=01;31:ln=01;35:pi=01;36:so=01;34:bd=01;36;01:cd=01;36;01:or=00;35;00:ex=01;31:*.tar=00;36:*.tgz=00;36:*.arj=00;36:*.taz=00;36:*.lzh=00;36:*.zip=00;36:*.z=00;36:*.Z=00;36:*.gz=00;36:*.deb=00;36:*.jpg=00;36:*.gif=00;36:*.bmp=00;36:*.ppm=00;36:*.tga=00;36:*.xbm=00;36:*.xpm=00;36:*.tif=00;36:*.mpg=00;36:*.avi=00;36:*.gl=00;36:*.dl=00;36:*.C=00;32:*.c=00;32:*.cpp=00;32:*.java=00;32:*.h=00;35:*.o=00;37:*.class=00;30'

To make everything a color, try something like:

echo -en "\\033[1;32m"  

That will do green as noted above.  See also,

http://www.geocities.com/SiliconValley/Pines/5004/linux-console.html

Scott

Jason Davis wrote:
> 
> does anybody know where to change text color for emulated terminals
> using rh7.1 and kde?
> 
> thanks,
> Jason Davis
> jd_480 at hotmail.com



More information about the LUG mailing list