Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Justifying text output
- X-seq: zsh-users 7164
- From: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Justifying text output
- Date: Sat, 13 Mar 2004 00:24:09 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1mm7og67rpkdy.dlg@xxxxxxxxxxxxxxxx> <1040312105556.ZM22295@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
* 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