Re: Feature request: Changing colors



hi,

I did similar. Just add a section at ~/.mc/ini file like:

[colors]
qansi-m=dhotfocus=yellow,magenta:dfocus=black,magenta:normal=ligthgrey,black:selected=gray,lightgray:menu=black,lightgray:menuhot=yellow,lightgray:marked=yellow,cyan:markselect=yellow,lightgray:input=black,magenta:directory=white,black:executable=lightgray,black:device=lightcyan,black:link=lightmagenta,black:editnormal=lightgrey,black:editbold=yellow,cyan:editmarked=lightgrey,cyan
pterm=dhotfocus=yellow,magenta:dfocus=black,magenta:normal=ligthgrey,black:selected=gray,lightgray:menu=black,lightgray:menuhot=yellow,lightgray:marked=yellow,cyan:markselect=yellow,lightgray:input=black,magenta:directory=white,black:executable=lightgray,black:device=lightcyan,black:link=lightmagenta,black:editnormal=lightgrey,black:editbold=yellow,cyan:editmarked=lightgrey,cyan
linux=normal=lightgray,black:selected=gray,lightgray:marked=white,cyan:markselect=white,lightgray:gauge=magenta,black:viewunderline=magenta,black:reverse=,:dnormal=black,ligthgray:dfocus=black,lightgray:dhotnormal=yellow,lightgray:dhotfocus=yellow,lightgray:input=magenta,black:menu=black,lightgray:menusel=white,black:menuhot=yellow,lightgray:menuhotsel=yellow,black:editnormal=lightgray,black:editbold=yellow,cyan:editmarked=ligthgray,cyan:directory=white,black:executable=brown,black:device=cyan,black:link=magenta,black:special=magenta,black:core=magenta,black
xterm=normal=lightgray,black:selected=gray,lightgray:marked=white,cyan:markselect=white,lightgray:gauge=magenta,black:viewunderline=magenta,black:reverse=,:dnormal=black,ligthgray:dfocus=black,lightgray:dhotnormal=yellow,lightgray:dhotfocus=yellow,lightgray:input=magenta,black:menu=black,lightgray:menusel=white,black:menuhot=yellow,lightgray:menuhotsel=yellow,black:editnormal=lightgray,black:editbold=yellow,cyan:editmarked=ligthgray,cyan:directory=white,black:executable=brown,black:device=cyan,black:link=magenta,black:special=magenta,black:core=magenta,black

----
This is for different terminals (TERM environment variable)
qansi-m, pterm, linux and xterm each one configuration (most
the same), each one line.

Figure out mc-4.5.1.orig/src/color.c. There is a 'struct
colorpair color_map[]' for all categories to paint and a
'struct color_table_s color_table[]' for all possible
color-names.

Your root identity may be visible at the file browsers table
headline.

Note also that I altered some Linux colors like brown became
a half bright yellow.

Additionally you may have to change some colors at the
/usr/lib/mc/syntax/language.syntax (highlighting) files
cause they are designed for blue screens :). The location
changes from OS to OS. May, watch out for a 'c.syntax' file
for instance.

Also note that just change terminal defaults will also work.

Edit your ini file with vi cause the "save on exit" option
of mc will override the file.

Hope that helps. Play around. It works.

MfG or Regards Holger




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