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 c...@case.edu http://tiswww.cwru.edu/~chet/