From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id EAA22725 for ; Sat, 13 Jul 1996 04:49:30 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id OAA17892; Fri, 12 Jul 1996 14:43:03 -0400 (EDT) Resent-Date: Fri, 12 Jul 1996 14:37:51 -0400 (EDT) From: unpingco@mpl.UCSD.EDU (Jose Unpingco) Message-Id: <9607121836.AA10161@cryptica.UCSD.EDU> Subject: Re: On the topic of prompts To: schaefer@nbn.com Date: Fri, 12 Jul 1996 11:36:55 -0700 (PDT) Cc: zsh-users@math.gatech.edu In-Reply-To: <960711160041.ZM10008@candle.brasslantern.com> from "Bart Schaefer" at Jul 11, 96 04:00:33 pm X-Mailer: ELM [version 2.4 PL25] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"OLtHx2.0.6M4.-jfvn"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/289 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu I've thought about sticking a highlighted status line on the last line of a vt100 or xterm which would contain handy info like PWD, but I could never figure out how. Could you be more specific about what you mention below? I've never programmed a terminal before and I'm not sure what you mean by games with the "termcap sequences". thanks Bart Schaefer said: > > You can play all sorts of games with %{...%} and termcap sequences if > your terminal can set scrolling regions and so forth. If you're using > an xterm, you can use something like this to change the title bar: > > if [[ "$TERM" =3D xterm* || "$TERM" =3D vs100 || "$TERM" =3D vs100s ]] > then > # Set top to introduce titlebar change > top=3D'=1B]0;' > # Set back to end titlebar change > back=3D'=07' > # Create precmd() to put stuff in the title bar > precmd() { print -nP "%{$top%m.%l:%2c - %t$back%}" } > fi > -- Thank you for your time and consideration. _ - - - _ /)- - _ _ / |_o_/ - _ \__ - _ \ \_ - _ _ _ _ _ _ _ _ _ _ __ __ _ _ - Jose Unpingco ECE 0407 (619) 546-8809