Colors
The Midnight Commander will try to detect if your terminal
supports
color using the terminal database and your terminal name.
Sometimes it
gets confused, so you may force color mode or disable color mode
using
the -c and -b flag respectively.
If the program is compiled with the Slang screen manager
instead of
ncurses, it will also check the variable COLORTERM, if it is
set, it
has the same effect as the -c flag.
You may specify terminals that always force color mode by
adding the
color_terminals variable to the Colors section of the
initialization
file. This will prevent the Midnight Commander from trying
to detect
if your terminal supports color. Example:
[Colors]
color_terminals=linux,xterm
color_terminals=terminal-name1,terminal-name2...
The program can be compiled with both ncurses and slang,
ncurses does
not provide a way to force color mode: ncurses uses just the
informa-
tion in the terminal database.
The Midnight Commander provides a way to change the default
colors.
Currently the colors are configured using the environment
variable
MC_COLOR_TABLE or the Colors section in the initialization file.
In the Colors section, the default color map is loaded from
the
base_color variable. You can specify an alternate color map for
a ter-
minal by using the terminal name as the key in this section.
Example:
[Colors]
base_color=
xterm=menu=magenta:marked=,magenta:markselect=,red
The format for the color definition is:
<keyword>=<foregroundcolor>,<backgroundcolor>:<keyword>= ...
The colors are optional, and the keywords are: normal,
selected,
marked, markselect, errors, input, reverse, gauge. Menu
colors are:
menu, menusel, menuhot, menuhotsel. Dialog colors are: dnormal,
dfo-
cus, dhotnormal, dhotfocus. Help colors are: helpnormal,
helpitalic,
helpbold, helplink, helpslink. Viewer color is:
viewunderline. Spe-
cial highlighting colors are: executable, directory, link,
stalelink,
device, special, core. Editor colors are: editnormal, editbold,
edit-
marked.
input determines the color of input lines used in query dialogs.
gauge determines the color of the filled part of the
progress bar
(gauge), which is used to show the user the progress of file
opera-
tions, such as copying.
The dialog boxes use the following colors: dnormal is used for
the nor-
mal text, dfocus is the color used for the currently selected
compo-
nent, dhotnormal is the color used to differentiate the hotkey
color in
normal components, whereas the dhotfocus color is used for the
high-
lighted color in the currently selected component.
Menus use the same scheme but uses the menu, menusel,
menuhot and
menuhotsel tags instead.
Help uses the following colors: helpnormal is used for normal
text,
helpitalic is used for text which is emphasized in italic in the
manual
page, helpbold is used for text which is emphasized in bold in
the man-
ual page, helplink is used for not selected hyperlinks and
helpslink is
used for selected hyperlink.
Special highlight colors determine how files are displayed when
file
highlighting is enabled (see the section on Layout). directory
is used
for directories or symbolic links to directories; executable
for exe-
cutable files; link is used for symbolic links which are neither
stale
nor linked to a directory; stalelink is used for stale symbolic
links;
device - character and block devices; special is used for
special
files, such as pipes and sockets; core is for core files.
The possible colors are: black, gray, red, brightred, green,
bright-
green, brown, yellow, blue, brightblue, magenta, brightmagenta,
cyan,
brightcyan, lightgray and white. And there is a special
keyword for
transparent background. It is 'default'. The 'default' can only
be used
for background color. Example:
[Colors]
base_color=normal=white,default:marked=magenta,default
NOTE: These are from the man pages for MC.
stephen kuhn - owner
==============================
illawarra computer services
a kuhn media australia company
http://kma.0catch.com
------------------------------------------------------------------
* This message was composed on a 100% Microsoft free computer *
We expressly refuse to utilise Microsoft DRM encoded documents
------------------------------------------------------------------
The meek shall inherit the earth; but by that time there won't be
anything left worth inheriting.
____________________________________________________
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________