Path: csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Greg Wooledge 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: References: <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <5DDC8DEC.7000602@tlinx.org> <7e3b83df07c20ccd75373f8804d2b0f2f930c773.camel@mail.ru> <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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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> Xref: csiph.com gnu.bash.bug:15654 On Tue, Nov 26, 2019 at 07:35:09AM -0600, Dennis Williamson wrote: > On Tue, Nov 26, 2019, 5:46 AM Алексей Шилин 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".