![]() |
Midnight Commander Help
Hi,
I need to know how to check the current colour for mc and how to change it. I google it and they talk about changeing some initial file /.mc/ini which i have no idea (no one ever gives full filename.)and i cant find it at all. Wasted an hour of my life. I just need the simplest way to change it, not another 10+ steps to change a stupid colour. |
in some distros (mine, e.g.) it is located in ~/.local/mc/ini
|
This is the full filename. Mind you on my distro it's in ~/.config/mc/ini
Find / Create this file and add the following (obviously change the colour values): The syntax is: variable=foreground_colour,background_colour Code:
[Colors] Also, have a look at this: http://blog.mybox.ro/2010/05/10/skin...ght-commander/ |
Member response
Hi,
Be sure to use 'man mc' to get loads of information relative to 'mc'. |
Once you delve into mc, you will be surprised at how much it can do.
|
Quote:
I always have it running in an xterm it makes it simple to do the almost impossable like work with files that have spaces in there names (downloaded videos I would NEVER!EVER! include a space in a file name ) |
I echo onebuck's advice. Become accustomed to checking man pages. They usually have the answers to most "frequently asked questions," including the locations of configuration files. mc's man page in particular has extensive information on colours.
|
Hi, after a few days...
tried everything mentioned, but it doesnt work or not how i wanted it. (using Debian stable) I found that my midnight commander was actually using the env COLORTERM=gnome-terminal. So i realise that bash and gnome terminal was the same thing, i think? Under gnome terminal, edit, profile perferences, color I found that gnome is actually forcing the mc to use a specific color palette scheme, i can change it and it will change the mc color, but every other program using color in the terminal will change too, so does anyone know how to fix it? |
Install a different terminal (xfce4-terminal, LXDE terminal, Sakura, etc.) and in the line COLORTERM=gnome-terminal, change gnome-terminal to the new terminal?
(If that does not work, you could always replace Gnome with a different GUI.:D) |
Quote:
Code:
usr/share/mc/skins/modarin256.ini Code:
$ mc -S gotar Another way to use skins (the way I do it) is to use the MC_SKIN environment variable. I export it in my ~/.bashrc file. Midnight commander looks for the skin defined in MC_SKIN in ~/.local/share/mc/skins first. Creating one of these skins is rather simple, just look at the provided example skins and write your own, here's the one I'm currently using: Code:
[skin] |
Are you sure it is a skin issue? The part of the problem's description that stands out for me is this:
Quote:
Edit: On second thought, it appears CrazyCatLover is changing MC's colours by using Gnome, instead of MC's configuration file. So you are probably correct. :o |
Quote:
|
Ok, good news, i did it though i still dunno some stuff.
I still have no idea why the gnome-terminal does what it does, so anyone who knows do let me know. I realise why changing the colors in ~/.config/mc/ini doesnt not work, i think its because i have the line above skin=default so no matter what color you change, it doesnt matter as it still uses the default skin.(let me know if i am wrong) quote from man "A skin-file is searched on the following algorithm (to the first one found): 1) command line option -S <skin> or --skin=<skin> 2) Environment variable MC_SKIN 3) Parameter skin in section [Midnight-Commander] in config file. 4) File /etc/mc/skins/default.ini 5) File /usr/share/mc/skins/default.ini " Easiest way What i did was just to open the /usr/share/mc/skins/default.ini file, just edit the file (make sure that color is available) save it and your done. You will need to use root to do this, i have no idea how to use normal account, seems locked to read-only. Thanks everyone for all the tips, very much appreciated. |
I change skin=default in ~/config/mc/ini to skin=name_of_skin.
|
Quote:
Just below the text you quoted from the man page, it reads: Quote:
|
All times are GMT -5. The time now is 03:33 AM. |