xterm font colors - configuration question?


 
Thread Tools Search this Thread
Operating Systems Linux xterm font colors - configuration question?
# 1  
Old 04-12-2005
xterm font colors - configuration question?

When I telnet (ssh) over to my Fedora system, I find the colors horrible. For instance, regular files are white text, which is fine, but directories show up as dark blue which is virtually invisible against the black background). Additionally, when using vi, I find the colors great doing perl scripts as it differentiates from comments and active code, but again - I can't read the comments because they are practically invisible.

I want to keep using colors, but just change the dark blue and maybe the red to something easier to see. Does anyone know the name of the file that I can vi and know where get a list of colors?

TIA

- Matt
# 2  
Old 04-12-2005
For the xterm at least, take a look at ~/.Xresources (or ~/.Xdefaults)
http://www.strath.ac.uk/CC/Courses/o...tion3_9_4.html

The list of colours varies depending on OS
Try /usr/openwin/lib/rgb.txt or /usr/lib/X11/rgb.txt

Cheers
ZB
# 3  
Old 04-14-2005
vi or vim? If using vim you can change the color while using vim, using

:color desert
or
:color elflord

Depending on which OS, and if using vim, you should be able to find the colors in /usr/share/vim/vim63/colors, path may vary slightly.
# 4  
Old 04-14-2005
check your aliases, you may find that ls is aliased to "ls --color=tty". You can unalias that, or remove it from your login scripts.

Also, I use /bin/vi instead of /usr/bin/vim, and I don't get colors. If I use /usr/bin/vim, I get color. Again, check your aliases.

Try vim.org to get some info about how to turn it off...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Question about xterm session $HOME

Hello and thanks in advance for any assistance anyone can offer me The fast & dirty question is... Could someone please tell me which file would open an xterm session into $HOME/Desktop instead of /$HOME? The longer version is.... I was reading about login scripts when I noticed my SSH... (3 Replies)
Discussion started by: bodisha
3 Replies

2. Shell Programming and Scripting

[Solved] Background and foreground colors for xterm

Hi all, I used the code given by cfajohnson on this forum to generate background colors for xterm. Thanks cfajohnson... (sorry wasnt allowed to past the complete url) n=200 ## adjust to taste: higher value, lighter background n1=$(( 256 - $n )) bg=$( printf "#%x%x%x\n" $(( $RANDOM % $n1 +... (2 Replies)
Discussion started by: carv_13
2 Replies

3. Solaris

Xterm font in JDE or Java apps in CDE

Hello, I'm trying to find out which font xterm uses by default in CDE. I like it, it's nice and clean. My problem is that Java based applications like jEdit cannot find it. Could anybody tell me what is the name of the font? Example is attached. Thank You, PN. (1 Reply)
Discussion started by: pn8830
1 Replies

4. UNIX for Advanced & Expert Users

Xterm configuration : how to copy/paste in the CLIPBOARD

Hi, I can paste what is in the CLIPBOARD but I can't get xterm copy. and in fact I think I'm not able to select well with the cursor (I don't want to use the mouse)... here is my ~/.Xresources file : XTerm*highlightSelection: true XTerm*VT100.translations: #override \n\ None ... (5 Replies)
Discussion started by: xib.be
5 Replies

5. Red Hat

Sometimes my xterm colors get inverted

I don't know exactly when or why, maybe running less or some command, my white text on a black background gets inverted and all the text looks like it is "selected", it is white background with black text. it is very annoying. I found this solution.;. export TERM=vt100 vi This... (0 Replies)
Discussion started by: srhadden
0 Replies

6. Linux

xterm font size and utf8

Hi everyone! I want to change the default font size of xterm. I tried appending the following line in .Xresources xterm -fn -*-fixed-medium-*-*-*-14-*-*-*-*-*-*-* The size changes, but when I try to write in greek, nothing is printed on the screen. I tried appending a similar line to... (0 Replies)
Discussion started by: kerb41
0 Replies

7. UNIX for Dummies Questions & Answers

.bashrc question re: rm -i & ls --colors

QUESTION #1: I have this in my .bashrc file: alias rm='rm -i' Problem is, there are 3 files that I remove many times a day and would like this command to ignore these 3 files. In other words, prompt me on everything EXCEPT these 3 files. Is this possible? QUESTION #2: Also in... (16 Replies)
Discussion started by: kthatch
16 Replies

8. UNIX for Dummies Questions & Answers

Correct switches for xterm command to make font larger

Dear Sirs Whenever I bring up an xterm window on my laptop running Mandrivia Linux, the font in the xterm window is so small that it is practically unreadable ! What switches do I need to use with the xterm command xterm -?? in order to make the font larger ? (3 Replies)
Discussion started by: kanejm
3 Replies

9. UNIX Desktop Questions & Answers

XTerm has garbled font

On my Yellow Dog Linux/PPC system, any XTerm, regardless of whether it be local or remote, displays a garbled font. When I change the font using the -fn option, XTerm displays a different garbled font. I have had no trouble running any other applications on this computer's X server, nor have I... (1 Reply)
Discussion started by: awenocur
1 Replies

10. UNIX Desktop Questions & Answers

xterm colors

I'm a new user to unix and I want to be able to pick and choose different xterm colors via 3rd botton menu. I'm currently pico'd into my .fvwm2rc file and this is what I have under my bottons: Please advise ############ # Button 1 #... (2 Replies)
Discussion started by: blica777
2 Replies
Login or Register to Ask a Question