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

Re: Justifying text output



* Bart Schaefer (2004-03-12 11:55 +0100)
> On Mar 12,  3:01am, Thorsten Kampe wrote:
> }
> } there any way to make the "[ ok ]"/"[ failed ]" messages on the right
> } justified?
> 
> Change each "echo" from e.g. this:
> 
>   echo "${ltgreen}* ${white}compiling $file  [ ${ltgreen}ok ${white}]"
> 
> To this:
> 
>   echo ${(r:70:):-"${ltgreen}* ${white}compiling $file"}"[ ${ltgreen}ok ${white}]"

I'm sorry but that outputs something like this:
*                                                             [ ok ] compiling                                                             [ ok ]                                                                       [ ok ]



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