Re: Visual artifacts left in command line when text scrolled
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 )) REPLY+=$'\1\e[31m\1'$e|$'\1\e[0m\1' Maybe \e[1;31m for bold red… bye, //mirabilos -- [ Natureshadow über meine Tendenz, seine IRL-Aussprüche zu siggen ] (er) „Du bist besser als Twitter“ (ich) „Wieso? Weil ich das Wichtige herausfiltere?“ (er) „Und weil Du einfacher zu bedienen bist“
Re: Visual artifacts left in command line when text scrolled
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, //mirabilos -- 22:20⎜asarch The crazy that persists in his craziness becomes a master 22:21⎜asarch And the distance between the craziness and geniality is only measured by the success 18:35⎜asarch Psychotics are consistently inconsistent. The essence of sanity is to be inconsistently inconsistent