xterm-color and mc (Full Version)

All Forums >> [SFU / Interix / SUA Technology] >> Tools Discussion Forum



Message


jumphigh -> xterm-color and mc (Nov. 24, '05, 7:47:00 PM)

Hi forum,

I use the XTerm provided from /tools. Normally I get color output but when starting mc (Midnight Commander) it turns black and white. In rxvt everything works fine. Do I have missed a posted in the forum covering this topic or does nobody else have that experience?

Andreas




Rodney -> RE: xterm-color and mc (Nov. 24, '05, 8:44:56 PM)

There was a whole tread about this just a short while ago.
Set the TERM environment variable from "xterm" to "xterm-256color" is the easiest for now
You have the ncurses 5.4 package installed to get this terminal definition.




jumphigh -> RE: xterm-color and mc (Nov. 25, '05, 1:42:12 PM)

I found the thread, but as I understand it, there is no "easy" solution yet. Ok, I use rxvt, which I like more. ;-)

Just a short second question:
Is there a way to force ls to use color output by default without the -color option? I use a alias in my .bashrc for ls to add the option, but it seems that my Linux works without such a workaraound. Maybe it checks if LS_COLOR is set and turns color on if so?

MfG
Andreas




Rodney -> RE: xterm-color and mc (Nov. 25, '05, 7:10:53 PM)

If the environment variable "LS_COLORS" (or "LS_COLOURS") is set then it is on automatically.
Refer to the manual page for ls for details.




jon493 -> RE: xterm-color and mc (Nov. 27, '05, 7:41:49 AM)

Don't set TERM to xterm-256color but set it to xterm-color. That's about as 'easy' as it gets (unless you want to compile your own xterm)




jumphigh -> RE: xterm-color and mc (Nov. 27, '05, 4:39:48 PM)

And where's the best place to set the TERM var? If I use .profile or .bashrc, it is also used for the non X11 shell windows. Are problems caused by that?

Andreas




jon493 -> RE: xterm-color and mc (Dec. 4, '05, 6:38:42 AM)

The best (and perhaps the only) places to set TERM will be /etc/profile.lcl and ~/.bashrc, or even ~/.profile (if you can't modify /etc/profile.lcl).

Sample code is given below:

if test "x$TERM" = "xxterm" ; then
TERM=xterm-color ;
reset ;
clear ;
fi


Your other shells (notably interix shell) will not be affected. If rxvt sets TERM=xterm then that is a bug in rxvt. However, xterm-color is a generic terminal type, and should work with rxvt. Just Like That.

UPDATE: You may omit the reset and/or clear commands if you like.




bezroun -> RE: xterm-color and mc (Feb. 18, '06, 6:08:08 PM)

Interesting. I tryed to install mc and it does not have libintl.so library.

Where di you get it




Page: [1]



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.031