bug-bash
[Top][All Lists]
Advanced

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

Re: [readline] Multibyte invisible chars cause weird prompt length calcu


From: Алексей Шилин
Subject: Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue
Date: Wed, 27 Nov 2019 20:25:05 +0300
User-agent: Evolution 3.30.5-1.1

> Debian's /etc/skel/.bashrc contains these lines:
> 
> if [ "$color_prompt" = yes ]; then
>     
> PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m
> \]:\[\033[01;34m\]\w\[\033[00m\]\$
>  '
> else
>     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
> fi
> 
> The leading \[\e]0... part appears to be a local addition.
> 

It's there, a few lines below. See 
https://sources.debian.org/src/bash/5.0-5/debian/skel.bashrc/#L69




reply via email to

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