Path: csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: L A Walsh Newsgroups: gnu.bash.bug Subject: Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue Date: Mon, 25 Nov 2019 18:29:00 -0800 Lines: 19 Approved: bug-bash@gnu.org Message-ID: References: <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <5DDC8DEC.7000602@tlinx.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1574735821 26509 209.51.188.17 (26 Nov 2019 02:37:01 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org, rootlexx@mail.ru Envelope-to: bug-bash@gnu.org User-Agent: Thunderbird In-Reply-To: <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 173.164.175.65 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: <5DDC8DEC.7000602@tlinx.org> X-Mailman-Original-References: <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> Xref: csiph.com gnu.bash.bug:15648 On 2019/11/25 07:05, wrote: > # As you see, now everything works as expected i.e. the issue seems > # to be in the way readline is handling multibyte invisible characters > # in a prompt, *probably* in the rl_redisplay() function. > ---- Multi-byte or not, invisible characters need to be enclosed as documented under 'PROMPTING': \[ begin a sequence of non-printing characters, which could be used to embed a terminal control sequence into the prompt \] end a sequence of non-printing characters