Re: Visual artifacts left in command line when text scrolled

2013-10-08 Thread Thorsten Glaser
Chris Sutcliffe dixit: Thanks for the offer, below is my ps1 prompt based on the latest dot.mkshrc example where I'm trying to change the return code to red: OK, we can do this even without uu as it contains no magic chars. Use something like this: (( e ))

Re: Visual artifacts left in command line when text scrolled

2013-10-08 Thread Thorsten Glaser
Chris Sutcliffe dixit: Does it have something to do with the escape sequences being used inside Oh, ouch. (( e )) REPLY+=$'\''\1\e[31m\1'\''$e|$'\''\1\e[0m\1'\'' an inline function? It’s not a function, it’s a single-quoted string… at that time, anyway. Sorry about that. bye,

Re: Visual artifacts left in command line when text scrolled

2013-10-05 Thread Thorsten Glaser
Chris Sutcliffe dixit: Not sure if my mailer killed the escape sequences or not, but I don't see any '\r' in the example you provided. OK, then let’s send the stuff either uuencoded, or use the generic $'…' escaping form. to colour the return code red, if I understand correctly, I should do: