[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash 4.4.18 return to new line
From: |
Chet Ramey |
Subject: |
Re: bash 4.4.18 return to new line |
Date: |
Fri, 2 Feb 2018 14:41:46 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
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/
- bash 4.4.18 return to new line, Alexander Kozlenkov, 2018/02/02
- Re: bash 4.4.18 return to new line, Chet Ramey, 2018/02/02
- Re: bash 4.4.18 return to new line, Alexander Kozlenkov, 2018/02/02
- Re: bash 4.4.18 return to new line,
Chet Ramey <=
- Re: bash 4.4.18 return to new line, Alexander Kozlenkov, 2018/02/03
- Re: bash 4.4.18 return to new line, Chet Ramey, 2018/02/03
- Re: bash 4.4.18 return to new line, Alexander Kozlenkov, 2018/02/04
- Re: bash 4.4.18 return to new line, Chet Ramey, 2018/02/04
- Re: bash 4.4.18 return to new line, Alexander Kozlenkov, 2018/02/04
- Re: bash 4.4.18 return to new line, Chet Ramey, 2018/02/04