bug-bash
[Top][All Lists]
Advanced

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

Re: bash 4.4.18 return to new line


From: Alexander Kozlenkov
Subject: Re: bash 4.4.18 return to new line
Date: Sun, 04 Feb 2018 16:31:14 +0000

Ok. But I not understand, because my PS1 work well in bash-4.3.30 and
failed in bash-4.4.18.
--
Best regards
Alexandr Kozlenkov

вс, 4 февр. 2018 г. в 18:34, Chet Ramey <chet.ramey@case.edu>:

> On 2/4/18 10:09 AM, Alexander Kozlenkov wrote:
> > I bracketed \[ and \] each prompt variables and simple symbols and line
> > break does work right.
> > Example:
> >> \[\e[1;32m\]\u\[\e[m\]\[\e[1;32m\]@\[\e[m\]\[\e[1;32m\]\h\[\e[m\]
> > But if I bracketed sequences some symbols, line break does not work .
> > Example:
> >>  \[\e[1;32m\]\u@\h\[\e[m\]
>
> You need to identify non-printing sequences so readline knows the visible
> length of the prompt and can accurately calculate the cursor position.
>
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/
>


reply via email to

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