Today I logged into my Ubuntu server and noticed that Midnight Commander looks different:
Furthermore, I can't use functional keys (Mac keyboard with Fn key).
I tried to reinstall it, but with no luck. Can anybody help to fix this?
GNU Midnight Commander 4.8.11
Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-53-generic x86_64)
$ echo $TERM
ansi
I'm using macOS Teminal with oh-my-zsh.
$ sudo dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "ru_RU.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales...
en_US.UTF-8... up-to-date
Generation complete.
$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
C
C.UTF-8
en_US.utf8
POSIX
$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=ru_RU.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
echo $TERM
and which application you're using to connect to this server. – muru Jan 16 '17 at 07:51set TERM=xterm && export TERM
and try mc again ;) – Rinzwind Jan 16 '17 at 08:12@Rinzwind, no changes.
– chimit Jan 16 '17 at 08:18TERM=ansi mc
, and it works ok forTERM=xterm mc
– muru Jan 16 '17 at 08:54TERM=xterm mc
fixed the problem! But how can I make this behavior permanent? – chimit Jan 16 '17 at 09:57echo $TERM
ansi
? Do you have anything in your.bashrc
or the like which setsTERM
? – muru Jan 16 '17 at 10:19Thank you, @muru and @rinzwind!
– chimit Jan 17 '17 at 03:41