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: Bob Proulx
Subject: Re: Home key doesn't work on properly on prompts with ANSI escapes
Date: Mon, 29 Oct 2007 11:26:06 -0600
User-agent: Mutt/1.5.13 (2006-08-11)

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]