From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11087 invoked from network); 11 Jul 2004 20:00:30 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.85) by ns1.primenet.com.au with SMTP; 11 Jul 2004 20:00:30 -0000 Received: (qmail 3154 invoked from network); 11 Jul 2004 20:03:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Jul 2004 20:03:14 -0000 Received: (qmail 20324 invoked by alias); 11 Jul 2004 19:59:51 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7679 Received: (qmail 20314 invoked from network); 11 Jul 2004 19:59:51 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.85) by sunsite.dk with SMTP; 11 Jul 2004 19:59:51 -0000 Received: (qmail 2110 invoked from network); 11 Jul 2004 20:02:41 -0000 Received: from mail.bluffton.edu (205.133.211.10) by a.mx.sunsite.dk with SMTP; 11 Jul 2004 20:02:28 -0000 Received: from localhost ([10.4.1.111]) by mail.bluffton.edu with Microsoft SMTPSVC(5.0.2195.6713); Sun, 11 Jul 2004 15:59:09 -0400 Date: Sun, 11 Jul 2004 15:59:07 -0400 From: Nathan Sommer To: zsh-users@sunsite.dk Subject: Re: terminal resizing and prompt problem Message-Id: <20040711155907.2e984e23@localhost> In-Reply-To: References: <20040710172553.168f14b9@localhost> <20040711002054.3d469d20@localhost> X-Mailer: Sylpheed version 0.9.11claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Jul 2004 19:59:09.0870 (UTC) FILETIME=[87B8E4E0:01C46781] X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On Sat, 10 Jul 2004 22:56:13 -0700 (PDT) Bart Schaefer wrote: > However, it occurs to me that you can make it look pretty much the same by > printing the first line yourself in the precmd function and having the > second line as the value of $PS1. > > E.g. > > precmd() { print -rP $'\e[1;32m[%d]\e[0m' } > PS1=$'%{\e[1;34m%}[%T]%{\e[1;32m%}%%%{\e[0m%} ' That works like a charm. I'm pretty new to zsh, so I hadn't played around with the precmd function yet. Pretty cool. > Incidentally, I also use fvwm, but I almost never resize a window by > dragging. I have a title-bar button using a function for "Maximize 0 100" > and simply toggle back and forth between having the window be the full > height of the display, and whatever height it started at. What's the > point of mucking around with anything in between? That's what I do too, most of the time. But sometimes I want my windows just so. Thanks a lot for your responses. Nate -- sommena@cs.earlham.edu http://cs.earlham.edu/~sommena