[Top][All Lists]

[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: Sat, 03 Feb 2018 07:21:10 +0000

I changed my PS1 to:
(cmd):09:37:53:sah4ez@PC001:~$ printenv PS1
\e[1;95m\t\]\e[0m:\]\e[0;92m\u@\h\]\e[0m:\]\e[0;34m\w\a\]\]\e[0m$ \]

But line break still does not work:

Else I have the file:
$ cat ~/.inputrc
set show-mode-in-prompt on
set vi-ins-mode-string \1\e[32;1m\2(ins)\1\e[0m:\2
set vi-cmd-mode-string \1\e[34;1m\2(cmd)\1\e[0m:\2

If I removed this '~/.inpurtrc' file, and set to PS1:
Line break continues does not work:

As you can see number of 'f' letters changed after which began input from
start line.

пт, 2 февр. 2018 г. в 22:41, Chet Ramey <chet.ramey@case.edu>:

> On 2/2/18 2:39 PM, Alexander Kozlenkov wrote:
> > $ printenv PS1
> > \e[1;95m\t\e[0m:\[\e]0;\u@\h:
> > \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@
> \h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
> There are a bunch of invisible characters at the beginning of the prompt
> that aren't enclosed in \[ and \]. That will throw off the cursor location
> calculations.
> --
> ``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]