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'.
--
        --Per Bothner
[email protected]   http://per.bothner.com/

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to