Re: xterm title in the prompt


-------- Original-Nachricht --------
> Datum: Thu, 1 Nov 2007 16:14:35 +0100
> Von: Vladimir Nadvornik
> CC: Lukasz Stelmach
> Betreff: Re: xterm title in the prompt

> 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.

Patching strip_ctrl_codes() is not a good idea. There are a lot of
sequnces that can appear in the prompt (see ctlseqs.txt from the
xterm tarball) and adding code for each one of them when someone
encounters it in his/her prompt is something that I do not like.
Either we fix it so that it handles all sequences properly or
MC should be changed to support it own prompt as discussed in
the TODO.

Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen:

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