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 [email protected] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline