[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: changing colours in midnight commander



Jason Pepas wrote:
> 
> On Thursday 10 October 2002 10:02 pm, Russell wrote:
> > Hi all,
> >
> > None of the command-line options of midnight commander
> > (mc --help-colors) seems to have an effect. Is there
> > something i'm missing? I really want to change the
> > colours of mc in an xterm because somehow they change
> > from the normal console colors.
> 
> that's because xterm doesn't use the same colors as a standard linux tty
> console.  If you just want mc to look like it should, I would try to correct
> the xterm's behavior, so that all console apps have the same color.
> 
> I unfortunately have never figured out how to do this, because it was always
> easier to just use a different term which did colors the same as the linux
> console.
> 
> open question to everyone:  which does colors "correctly", xterm or the linux
> console?  And why does the one which does them incorrectyl choose to do so?

I think the linux console does correct colors, because the blue
looks like a pure saturated rgb:0,0,255 blue. The xterm is a pale
washed-out light blue, whereas red still displays as a pure red
like the linux console.

I fixed the problem by putting xterm*color4: blue
into ~/.Xresources.

I think xterm has a bug where the default blue is something
other than rgb:0,0,255. See "man xterm" and search for color4.
How can such a stupid bug go unnoticed for so long?

To change foreground and background colours in midnight
commander, see: mc --help-colors. I found another bug
where the colour of executeable files can't be changed:
  mc -C execute=yellow,red

Just to be sure of other colours in xterm, i put this
into ~/.Xresources:

xterm*color0: black
xterm*color1: red
xterm*color2: green
xterm*color3: yellow
xterm*color4: blue
xterm*color5: magenta
xterm*color6: cyan
xterm*color7: white
xterm*color8: black
xterm*color9: red
xterm*color10: green
xterm*color11: yellow
xterm*color12: blue
xterm*color13: magenta
xterm*color14: cyan
xterm*color15: white

These colours are defined in /etc/X11/rgb.txt.

Another thing, to make your monitor colours nice and bright,
adjust the gamma of your monitor with a site like:
  http://home.online.no/~ptrptr/back/monitor/gamma.htm
  http://www.google.com/search?hl=en&ie=ISO-8859-1&q=gamma+xf86config

Put an entry like this (with suitable adjustments) into the monitor
section of /etc/X11/XF86Config-4: Gamma 2.4 2.3 2.5



Reply to: