bug-bash
[Top][All Lists]
Advanced

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

Re: Home key doesn't work on properly on prompts with ANSI escapes


From: Christian Schubert
Subject: Re: Home key doesn't work on properly on prompts with ANSI escapes
Date: Mon, 29 Oct 2007 18:49:14 +0100
User-agent: KMail/1.9.7

Sorry for not reading the documentation ... it just used to work and I didn't 
expect it to break :)

Thanks for clarifying things.

Regards,
Christian


On Monday 29 October 2007 18:26:06 Bob Proulx wrote:
> Christian Schubert wrote:
> >     PS1='\e[32m$\e[m'
>
> Non-printing characters need to be bracked with \[...\] to inform bash
> that they do not display.  Please see the bash documentation in the
> section on "PROMPTING".
>
>         \[     begin  a sequence of non-printing characters, which could
>                be used to embed a terminal  control  sequence  into  the
>                prompt
>         \]     end a sequence of non-printing characters
>
> I believe that will fix your problem.
>
> Bob





reply via email to

[Prev in Thread] Current Thread [Next in Thread]