Comment 2 for bug 330633

Nuno Silva (nuno-nunosilva) wrote :

Just to give some more details:
The "complex" PS1 is set in ~/.bashrc, and comes from /etc/skel.

This happens when TERM=xterm, here:
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"

Midnight Commander doesn't like it, and the sub-shell prompt looks like this, while in the home dir:
--------------------------
Hint: You may specify the external viewer with the shell vars VIEWER or PAGER.
0;nuno@kubuntu: ~nuno@kubuntu:~$
1Help 2Menu 3View 4Edit 5Copy 6RenMov 7Mkdir 8Delete 9PullDn 10Quit
--------------------------

This happens in konsole and xterm. The easy workaround is to comment out the PS1 line mentioned above. The Right Way (C) would be to fix mc.

This is only "cosmetic", but I'm addicted to mc since 199x, so... :-)

Regards,