bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] miscalculation with wrapped prompt line


From: Per Bothner
Subject: [Bug-readline] miscalculation with wrapped prompt line
Date: Thu, 10 Dec 2015 11:00:55 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

Consider a long bash prompt, with a dummy escape sequence:
PS1=ABCDEFGHIJKLMNOPGRSTUVWXYZ"[\#]"ABCDEFGHIJKLMNOPGRSTUVWXYZ:"\[\e[0m\]"

Now create a terminal emulator window (xterm works); make it narrow
(say 50 characters); type Enter (to get a fresh bash prompt).
Now type ctrl-R.  I see:

(reverse-i-search)`': RSTU

I.e. "RSTU" didn't get erased.

The TERM is xterm-256color.

I tried with bash from git, and same result.
--
        --Per Bothner
address@hidden   http://per.bothner.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]