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

Re: command substitution with control chars?

On Sun, 25 Mar 2007, Mikael Magnusson wrote:

It sounds like you just need to put your escape sequences inside %{ %} pairs?

then i wind up getting colored "%{" and colored "%}" in the prompt, and things are still hosed. maybe there's a way to do it, but i haven't figured it out yet...

basically, i'm taking this idea <http://swicked.net/pages/bat_mon.html> and trying to convert it from linux to bsd and from bash to zsh. i've got a script that outputs battery status, and uses different colors to display the output depending on the status... now to get the output into my prompt...

anyway, it seems that if the output of the script includes the zsh escape sequences it doesn't work as expected.


 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808

	"Insanity is doing the same thing over and over
	 again and expecting different results."
		-- Albert Einstein

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