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


Groups > gnu.bash.bug > #15661

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

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Алексей Шилин <rootlexx@mail.ru>
Newsgroups gnu.bash.bug
Subject Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue
Date Wed, 27 Nov 2019 19:24:59 +0300
Lines 30
Approved bug-bash@gnu.org
Message-ID <mailman.2891.1574872053.13325.bug-bash@gnu.org> (permalink)
References <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <68c76159-3cf3-b12f-9145-f0578d5415a3@case.edu> <db11c81c9312dec35fa6579db44dc03d03bb27fd.camel@mail.ru>
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 1574872054 5326 209.51.188.17 (27 Nov 2019 16:27:34 GMT)
X-Complaints-To action@cs.stanford.edu
To chet.ramey@case.edu, bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:To:From:Subject:Message-ID; bh=Nfw0JkiZuHYCLYoAsfv+afZn9zLfKxtzKCtplb1MZig=; b=Gq7f59I71FBzx2Xj7OgpwRJcYxB+7k531Bmme4Am8uPJD6hVSeTb67Y1vdXUFCBr2cOo+yWaYQALJ3YmBSmnSenc3Cz8FsypCitVVeJ86WxBd/iDJ7Mcos3vNiGOyBLCJo1I1oKBeLrvVJ60krwBY4AO2w58XzA4fyG3eLD3PkI=;
In-Reply-To <68c76159-3cf3-b12f-9145-f0578d5415a3@case.edu>
User-Agent Evolution 3.30.5-1.1
Authentication-Results smtp36.i.mail.ru; auth=pass smtp.auth=rootlexx@mail.ru smtp.mailfrom=rootlexx@mail.ru
X-77F55803 257C4F86AB09C89C5A78504BD2AC2941988784FC6C4AE31F87CEA219DE2A7C4FEE188C260DC114728F9431131B96A1B3084BD48627309F69
X-7FA49CB5 0D63561A33F958A5C1FA8F892639E4742ABE6DB38875A1EB20BE7034397D837A8941B15DA834481FA18204E546F3947CB861051D4BA689FCF6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8B3A703B70628EAD7BA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249A64C4E77951A82EE76E601842F6C81A12EF20D2F80756B5F5C318D1F9ECD513A76E601842F6C81A127C277FBC8AE2E8B30996C0F5C7D003E3AA81AA40904B5D99449624AB7ADAF37BCC85A7874001769725E5C173C3A84C3A1C30C8AFC676C8BE42EAEE784412632837C4FEFBD186071C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F93F060FBA3C93C613B503F486389A921A5CC5B56E945C8DA
X-Mailru-Sender FD65D7C492470CAED3DD1703795F7E028A6F71888AEEBDA16CF1D319D1951429B881E0367C2B2B3015D893B5EE9B869EC77752E0C033A69ED2A0601D20520849A97B7613133B5FEC3453F38A29522196
X-Mras OK
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 94.100.177.96
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 <db11c81c9312dec35fa6579db44dc03d03bb27fd.camel@mail.ru>
X-Mailman-Original-References <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <68c76159-3cf3-b12f-9145-f0578d5415a3@case.edu>
Xref csiph.com gnu.bash.bug:15661

Show key headers only | View raw


В Ср, 27/11/2019 в 11:02 -0500, Chet Ramey пишет:
> On 11/25/19 10:05 AM, Алексей Шилин wrote:
> 
> > Bash Version: 5.0
> > Patch Level: 11
> > Release Status: release
> > 
> > Description:
> > 
> > I'm using the following PS1 prompt (Debian's default for normal
> > users):
> > 
> > \[\e]0;\u@\h:
> > \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[
> > 00m\
> > ]:\[\033[01;34m\]\w\[\033[00m\]\$
> > 
> > ...where the first block '\[\e]0;\u@\h: \w\a\]' is for setting
> > xterm's
> > title, and the rest is Debian's "fancy" shell prompt.
> 
> Is there a literal newline in the prompt string? And is it in the
> middle
> of the non-printing character block?
> 

No, of course not. It's Evolution doing its thing, splitting the line.
Sorry for the confusion.

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


Thread

Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue Алексей Шилин <rootlexx@mail.ru> - 2019-11-27 19:24 +0300

csiph-web