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

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue
Date Tue, 26 Nov 2019 08:44:18 -0500
Lines 12
Approved bug-bash@gnu.org
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>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace usenet.stanford.edu 1574775863 16334 209.51.188.17 (26 Nov 2019 13:44:23 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
Mail-Followup-To bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <CANaoh6JYE8PjT5xJQVCDOF8sCgkH5fQq=0XacM8h9PwNfJ-bwQ@mail.gmail.com>
User-Agent Mutt/1.10.1 (2018-07-13)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 139.137.100.1
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20191126134418.GP851@eeg.ccf.org>
X-Mailman-Original-References <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <5DDC8DEC.7000602@tlinx.org> <7e3b83df07c20ccd75373f8804d2b0f2f930c773.camel@mail.ru> <CANaoh6JYE8PjT5xJQVCDOF8sCgkH5fQq=0XacM8h9PwNfJ-bwQ@mail.gmail.com>
Xref csiph.com gnu.bash.bug:15654

Show key headers only | 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