Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15654

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

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue
Date 2019-11-26 08:44 -0500
Message-ID <mailman.2696.1574775863.13325.bug-bash@gnu.org> (permalink)
References <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <5DDC8DEC.7000602@tlinx.org> <7e3b83df07c20ccd75373f8804d2b0f2f930c773.camel@mail.ru> <CANaoh6JYE8PjT5xJQVCDOF8sCgkH5fQq=0XacM8h9PwNfJ-bwQ@mail.gmail.com> <20191126134418.GP851@eeg.ccf.org>

Show all headers | View raw


On Tue, Nov 26, 2019 at 07:35:09AM -0600, Dennis Williamson wrote:
> On Tue, Nov 26, 2019, 5:46 AM Алексей Шилин <rootlexx@mail.ru> wrote:
> > And they *are* enclosed: PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot...
> 
> You have printable characters enclosed. For example, \u. _Each_ sequence of
> unprintable characters needs to be separately enclosed _without_ enclosing
> the printable ones.

You're misunderstanding.  The entire sequence from \e]0; to \a is a single
terminal escape sequence that says "all this stuff in between, put that
in the status title meta area, instead of writing it on the terminal".

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue Greg Wooledge <wooledg@eeg.ccf.org> - 2019-11-26 08:44 -0500

csiph-web