On pátek 26 říjen 2007, Lukasz Stelmach wrote:
> Greetings.
>
> There is a problem in with mc trying to display bash prompt
> for xterm which contains window title
>
>         PS1='\[\033[?1034l\033]0;\h:\w\007\]\h:\W\$ '
>
> That is everything between \033]0; and \007. The patch removes
> this sequence.
>

Here is a similar patch that removes ESC(B sequence,
which appears in default prompt on openSUSE 10.3.

Vladimir Nadvornik
--- src/util.c
+++ src/util.c
@@ -1193,6 +1193,8 @@
 		/* strchr() matches trailing binary 0 */
 		while (*(++r) && strchr ("0123456789;?", *r));
 	    }
+	    else if (*r == '(')
+	        r++;
 
 	    /*
 	     * Now we are at the last character of the sequence.
_______________________________________________
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel

Reply via email to