Path: csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: =?koi8-r?Q?=E1=CC=C5=CB=D3=C5=CA_?= =?koi8-r?Q?=FB=C9=CC=C9=CE?= Newsgroups: gnu.bash.bug Subject: Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue Date: Tue, 26 Nov 2019 18:38:25 +0300 Lines: 15 Approved: bug-bash@gnu.org Message-ID: References: <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <5DDC8DEC.7000602@tlinx.org> <7e3b83df07c20ccd75373f8804d2b0f2f930c773.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 1574782715 21190 209.51.188.17 (26 Nov 2019 15:38:35 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash To: Dennis Williamson 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:Cc:To:From:Subject:Message-ID; bh=E52ATt6PjWtvlb3wLL+FU7UIGy7lNNJLdcvYLg7lvG8=; b=DoaLQ2Ynm1LINksGlFrJei2t5G36HtJ5ZCQJlqDjRfbyKfDxgGRQT153rXK40mKL45vskJOVQObyqqnxZv7SGDz4UehrGrNute2RPde8s4V2Y97docxaRj93Op0o+U5vb+kWkEnYFR+/MTdbJwZtxboOzMKwe1pNu9yMA/FTxhE=; In-Reply-To: User-Agent: Evolution 3.30.5-1.1 Authentication-Results: smtp45.i.mail.ru; auth=pass smtp.auth=rootlexx@mail.ru smtp.mailfrom=rootlexx@mail.ru X-77F55803: 6115F4D8777AF1675A78504BD2AC29411FA4F02123E218F91EEA6F0F12E2980FD76A4B301A795000438A051F885E961B X-7FA49CB5: 0D63561A33F958A5EDC94DEAD26012459E68DCBAD2159BFB8C84FAD85207F8BC8941B15DA834481FA18204E546F3947CEDCF5861DED71B2F389733CBF5DBD5E9C8A9BA7A39EFB7666BA297DBC24807EA117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C22498235E4873E4B603B76E601842F6C81A12EF20D2F80756B5F5C318D1F9ECD513A76E601842F6C81A127C277FBC8AE2E8B37333994EB6B909F3AA81AA40904B5D99449624AB7ADAF37F910319684D6E05D725E5C173C3A84C3AA93A90EDF72B43430D0E1B0078BF5A52629B07FD02F83A6C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F93F060FBA3C93C613B503F486389A921A5CC5B56E945C8DA X-Mailru-Sender: FD65D7C492470CAED3DD1703795F7E02DF1BBC3DFC17E07846024700A6286E24DF2ED311371FDF1D15D893B5EE9B869EC77752E0C033A69ED2A0601D20520849A97B7613133B5FEC3453F38A29522196 X-Mras: OK X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 94.100.177.105 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: X-Mailman-Original-References: <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <5DDC8DEC.7000602@tlinx.org> <7e3b83df07c20ccd75373f8804d2b0f2f930c773.camel@mail.ru> Xref: csiph.com gnu.bash.bug:15655 В Вт, 26/11/2019 в 07:35 -0600, Dennis Williamson пишет: > You have printable characters enclosed. For example, \u. _Each_ > sequence of unprintable characters needs to be separately enclosed > _without_ enclosing the printable ones. They're all part of the escape sequence. Try: printf '\e]0;hello@world /and/beyond\a' > The first part of your prompt is what needs to be corrected. The > latter part after "debian_chroot" is correct. See http://tldp.org/HOWTO/Xterm-Title-3.html#ss3.1