bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] miscalculation with wrapped prompt line


From: Chet Ramey
Subject: Re: [Bug-readline] miscalculation with wrapped prompt line
Date: Sun, 13 Dec 2015 20:12:01 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

On 12/10/15 3:41 PM, Per Bothner wrote:
> Here is another cute one:
> 
> PS1='\[\033[1m\]'ABCDEFGHIJKLMNOPGRSTUVWXYZ"[\#]"ABCDEFGHIJKLMNOPGRSTUVWXYZ:"\[\e[0m\]"
> 
> 
> Start xterm; narrow the width to 50 columns; and type:
> TERM=vt100
> 
> Now type a letter - say 'p'.
> Readline echos the 'p' followed by "\e[C\e[C\e[C\e[C"
> so the cursor is 4 spaces ahead of the 'p'.

Thanks for the report. This will be fixed in the next version of readline.
(It's in a code path that is little used; the vt100 triggers it because it
doesn't have the capabilities of most modern terminal emulators.)

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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