mc toggle-panels and terminal text



Hello.

I have a problem with mc 4.7.0.5:

What I have:
fc10
in /etc/bashrc:

COLOR1="\[\033[1;33m\]"
COLOR2="\[\033[1;33m\]"
COLOR3="\[\033[0m\]"
COLOR4="\[\033[1;36m\]"
COLOR5="\[\033[1;30m\]"

if [ "$UID" = 0 ]; then
    # I am root
    COLOR1="\[\033[1;31m\]"
    PS1="$COLOR1\u$COLOR1 $COLOR1\h$COLOR2 $COLOR5[$COLOR4\W$COLOR5]$COLOR1# $COLOR3"
else
    PS1="$COLOR1\u$COLOR1 $COLOR1\h$COLOR2 $COLOR5[$COLOR4\W$COLOR5]$COLOR1> $COLOR3"
fi


What I do:
1) run terminal  - I see "red" text
2) run mc - OK
3) ctrl-O (toggle-panels): - I see default "black" text in terminal window
4) push enter (or some command and push enter) - I see "red" text
(screenshoots in tarball)

In mc-4.6.2 - I always see "red" text. 

How it can be corrected?


Best regards, Leontiev Danil.

Attachment: screens.tar.bz2
Description: BZip2 compressed data



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