zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: More on  zsh user's guide formatting glitch
Date: Mon, 29 Jan 2001 12:23:23 +0300	[thread overview]
Message-ID: <001501c089d5$20798c90$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <001401c089d3$6b0af980$21c9ca95@mow.siemens.ru>


In 3.3.3: compiling functions, Special functions:


  chpwd() {
    [[ -t 1 ]] || return
    case $TERM in
      sun-cmd

print -Pn "\e]l%~\e\\" ;; *xterm*|rxvt|(dt|k|E)term) print -Pn "\e]2;%~\a" ;;
esac } ) The first line tests that standard output is really a terminal ---
you don't want

i.e. formatting is broken.

Hmm ... in my experience, setting title in chpwd() turned out to be
suboptimal. If any external program (zsh subshell including) changed your
title, zsh won't notice it until next cd. So, I finally decided in favour of
preexec(). May be, trapping child exits could do the job, but it looks just
too complicated for this simple task.

-andrej


  reply	other threads:[~2001-01-29  9:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-29  9:11 Andrej Borsenkow
2001-01-29  9:23 ` Andrej Borsenkow [this message]
2001-01-29 15:52   ` Setting xterm title (Re: More on zsh user's guide formatting glitch) Bart Schaefer
2001-01-29 16:42     ` Andrej Borsenkow

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='001501c089d5$20798c90$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).