All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
xterm-color and mc
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
xterm-color and mc - Nov. 24, '05, 7:47:00 PM
|
|
|
jumphigh
Posts: 61
Joined: Jul. 10, '04,
From: Germany
Status: offline
|
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
|
|
|
RE: xterm-color and mc - Nov. 24, '05, 8:44:56 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
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.
|
|
|
RE: xterm-color and mc - Nov. 25, '05, 1:42:12 PM
|
|
|
jumphigh
Posts: 61
Joined: Jul. 10, '04,
From: Germany
Status: offline
|
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
|
|
|
RE: xterm-color and mc - Nov. 25, '05, 7:10:53 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
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.
|
|
|
RE: xterm-color and mc - Nov. 27, '05, 7:41:49 AM
|
|
|
jon493
Posts: 56
Joined: Oct. 14, '05,
Status: offline
|
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)
|
|
|
RE: xterm-color and mc - Nov. 27, '05, 4:39:48 PM
|
|
|
jumphigh
Posts: 61
Joined: Jul. 10, '04,
From: Germany
Status: offline
|
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
|
|
|
RE: xterm-color and mc - Dec. 4, '05, 6:38:42 AM
|
|
|
jon493
Posts: 56
Joined: Oct. 14, '05,
Status: offline
|
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.
< Message edited by jon493 -- Dec. 4, '05, 6:39:56 AM >
|
|
|
RE: xterm-color and mc - Feb. 18, '06, 6:08:08 PM
|
|
|
bezroun
Posts: 1
Joined: Feb. 4, '06,
Status: offline
|
Interesting. I tryed to install mc and it does not have libintl.so library.
Where di you get it
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|