Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: code completition / cannot delete characters



Micah Cowan wrote:
It is probably longer than you believe. typescript will also contain the normally invisible escape sequences that zsh sends to your terminal to tell it to erase the first cd /usr/src (which you won't see if you cat it.

Just make sure to run script, do the whole tab thing so that it won't erase the first "cd /usr/src", and then provide the literal version of that script. :)

Michael Worobcuk wrote:
Ok. I'm sorry. Here it is:
http://www.michaelworobcuk.de/typescript/

Actually, I don't think I'll need your termcap anymore. Your PS1 would be the most helpful thing you could provide right now.

What are you using to colorize your prompt? The issue you're having almost certainly stems from that. If your PS1 contains any escape sequences (which it does, to produce the colors: plenty!), but doesn't protect them with zsh's %{ and %}, then you're going to see problems like you're currently seeing.

Did you modify your PS1 by hand, or was there a tool to colorize it?

Run that env | grep |sed stuff I gave you before (but without the ":"), and we should be able to fix it for you.

-Micah



Messages sorted by: Reverse Date, Date, Thread, Author