zsh-users
 help / color / mirror / code / Atom feed
From: Allan Poindexter <allan@royal-oak.csc.ti.com>
To: Julio Garcia <julio@mddjg.fc.hp.com>
Cc: zsh-users@math.gatech.edu
Subject: Re: beyond zsh v2.3.1
Date: 26 Aug 1996 17:23:11 -0500	[thread overview]
Message-ID: <b8pw4deqeo.fsf@royal-oak.csc.ti.com> (raw)
In-Reply-To: Julio Garcia's message of Mon, 26 Aug 1996 14:34:27 -0600 (MDT)

 Julio> o I have been using a function that gets called by chpwd that looks
 Julio> like this:

 Julio>                 function print_banner { print -n "\e]0;$1\a" }

 Julio>   The purpose of it is to set the title of the xterm to the first
 Julio> parameter.  With zsh 2.6 the title does not change and the string is
 Julio> simply output to stdout (tty maybe?).  I also tried to use a simple
 Julio> program that I have called xlabel which does the same thing as the
 Julio> print statement above.  I had used xlabel with ksh in the past, but it
 Julio> realy wedged zsh when I use it in chpwd().  I had this problem with
 Julio> 2.5 as well.

I use the escape feature in the prompt to do this:

PROMPT='%{^[]2;%M:%~\a%}%l %T %h%#'
RPROMPT=' %m:%~'

I define the following so I can turn it on and off at will:

noactiveprompt() { PROMPT='%l %T %h%#' }
activeprompt() { PROMPT='%{^[]2;%M:%~\a%}%l %T %h%#' }
alias nap=noactiveprompt
alias ap=activeprompt


  reply	other threads:[~1996-08-27  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-26 20:34 Julio Garcia
1996-08-26 22:23 ` Allan Poindexter [this message]
1996-08-27  8:21 ` Swen Thuemmler
1996-08-27  8:42   ` Duncan Sargeant
     [not found]   ` <swen@uni-paderborn.de>
1996-08-27  9:41     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b8pw4deqeo.fsf@royal-oak.csc.ti.com \
    --to=allan@royal-oak.csc.ti.com \
    --cc=allan@csc.ti.com \
    --cc=julio@mddjg.fc.hp.com \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).