You are not logged in.

#1 2004-12-25 08:28:49

skaught
Member
Registered: 2004-12-24
Posts: 10

Application colors in X terminals

Hey all,

I'm new to Arch -- so far I've been really enjoying it. I had one quick question though, what's the deal with emacs and vim losing color in an X terminal (both xterm and gnome-terminal)? I've got colors showing up as bolded instead of the appropriate color.

Dir colors works just fine however, so I'm a little bit perplexed smile In the console both the aformentioned editors work as expected.

Thanks,

- Scott

Offline

#2 2004-12-25 23:25:51

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Application colors in X terminals

I've experienced this too. The strange thing is, the colors do show up when I start screen and then run the coloured applications.  :?:


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#3 2004-12-26 00:24:32

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: Application colors in X terminals

add to your ~/.bashrc the following line :

TERM=xterm-color

Offline

#4 2004-12-26 04:49:04

skaught
Member
Registered: 2004-12-24
Posts: 10

Re: Application colors in X terminals

z4ziggy, thanks -- that works great.

Offline

#5 2005-02-05 17:02:48

gaspojo
Member
From: Portugal
Registered: 2004-04-27
Posts: 33

Re: Application colors in X terminals

z4ziggy wrote:

add to your ~/.bashrc the following line :

TERM=xterm-color

I had the same problem. Now it's working fine. Shouln't this be the default? neutral

Offline

#6 2005-02-05 17:42:57

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Application colors in X terminals

Seems it has been filed into flyspray some time ago already.

http://bugs.archlinux.org/index.php?do=details&id=1316

Offline

#7 2005-02-05 18:03:57

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Application colors in X terminals

I don't think it could really be in the default bashrc, as xterm-color causes other problems depending on the terminal. IIRC, it causes problems with the HOME  and END keys in some terminals, and confuses Konsole to no end.

More sensible would be if xterm set the terminal when it was opened.

Dusty

Offline

#8 2005-02-05 20:49:54

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: Application colors in X terminals

Dusty is right, .bashrc is not the right place to put this. This is what the .Xdefaults file is for. Go ahead and create the file in your home directory if needed (note the capital X), and add this line to the file:

xterm*termname: xterm-color

From now on, when xterm is loaded, it sets the $TERM variable properly, thus enabling colour in vi and emacs. If you use another terminal emulator, open up the man page and look for the RESOURCES section to see if it supports the .Xdefaults file and termName variable. I myself use rxvt-unicode, and setting "Rxvt*termName: rxvt" has a similar effect to the above.

Offline

#9 2005-02-06 11:19:47

skoal
Member
From: Frequent Flyer Underworld
Registered: 2004-03-23
Posts: 612
Website

Re: Application colors in X terminals

Dusty wrote:

[...]More sensible would be if xterm set the terminal when it was opened.

That's exactly what I do:

xterm -fa andale -fs 12 -bg black -fg white -geometry 80x25 -tn xterm-color -sl 1000

Offline

#10 2005-02-06 11:51:45

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: Application colors in X terminals

Dusty wrote:

I don't think it could really be in the default bashrc, as xterm-color causes other problems depending on the terminal. IIRC, it causes problems with the HOME  and END keys in some terminals, and confuses Konsole to no end.

More sensible would be if xterm set the terminal when it was opened.

Dusty

Use xterm-xfree86 instead of xterm-color. That fixes HOME  and END keys so I think this could be the default setting.

Offline

#11 2005-02-06 13:22:40

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: Application colors in X terminals

paranoos and dusty have both stated the "correct" way to handle this issue.

Which kind of sucks since I figured it out for myself earlier this week with rxvt. =P


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

Board footer

Powered by FluxBB