On Tue, 2004-03-09 at 16:55, Rajnish Tiwari wrote: > hi All, > > How do I disable the coloured fonts that display in > my xterm (rh 9.x) ? It was cool once .. but now it is > getting annoying.
setting the TERM variable to something that doesn't support colour would probably do the trick. To set individual colours you use X properties. I've got a .Xdefaults file with this in it (amongst other things): > *VT100*color0: black > *VT100*color1: red3 > *VT100*color2: green3 > *VT100*color3: yellow3 > *VT100*color4: DodgerBlue1 > *VT100*color5: magenta3 > *VT100*color6: cyan3 > *VT100*color7: gray90 > *VT100*color8: gray30 > *VT100*color9: red > *VT100*color10: green > *VT100*color11: yellow > *VT100*color12: blue > *VT100*color13: magenta > *VT100*color14: cyan > *VT100*color15: white > *VT100*colorUL: yellow > *VT100*colorBD: white it's largely standard. I pulled the DodgerBlue thing from a Debian box. Debian have done a really good job on xterm. I've got some other settings in there to make the text incomprehensibly small and so-on but that's not of interest here. I'm largely happy with it, but I would like to make the red a bit 'brighter' -- literals in vim are occasionally hard to read. The xrdb program is what 'actions' those files, so to experiment "real time", you'd do: xrdb < .Xdefaults and start another xterm. > > Or alternatively, is there a way to select my own colours > for different file types ? (less preferred option) I assume you're referring to ls here. Yeah, you can there's a LS_COLORS environment variable that dictates that stuff. I'm using this: > export > LS_COLORS='no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:' (which could have been stolen from a redhat box, I don't remember). That's set in .bashrc. HTH, James. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
