From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1383 invoked from network); 12 Mar 2004 23:24:35 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 12 Mar 2004 23:24:35 -0000 Received: (qmail 16454 invoked by alias); 12 Mar 2004 23:24:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7164 Received: (qmail 16419 invoked from network); 12 Mar 2004 23:24:14 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 12 Mar 2004 23:24:14 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [80.91.224.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 12 Mar 2004 23:24:14 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B1w0j-0002em-00 for ; Sat, 13 Mar 2004 00:24:13 +0100 Received: from isi-dialin-129-239.isionline-dialin.de ([195.158.129.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Mar 2004 00:24:13 +0100 Received: from thorsten by isi-dialin-129-239.isionline-dialin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Mar 2004 00:24:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: Re: Justifying text output Date: Sat, 13 Mar 2004 00:24:09 +0100 Message-ID: <16tfmamy8a3c9.dlg@thorstenkampe.de> References: <1mm7og67rpkdy.dlg@thorstenkampe.de> <1040312105556.ZM22295@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: isi-dialin-129-239.isionline-dialin.de User-Agent: 40tude_Dialog/2.0.10.1de Sender: news * 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 ]