zsh-users
 help / color / mirror / code / Atom feed
From: Zefram <zefram@dcs.warwick.ac.uk>
To: hzoli@ny.frontiercomm.net (Zoltan Hidvegi)
Cc: ockman@cs.stanford.edu, zsh-users@math.gatech.edu
Subject: Re: Getting xterm title bar to display last command...
Date: Thu, 22 May 1997 16:47:26 +0100 (BST)	[thread overview]
Message-ID: <20056.199705221547@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <199705220329.XAA05045@hzoli.home> from "Zoltan Hidvegi" at May 21, 97 11:29:19 pm

Zoltan Hidvegi wrote:
>zle -N my-accept-line
>my-accept-line () { print -nr -- "^[]2;$BUFFER^G"; zle accept-line; }
>bindkey '^M' my-accept-line

A better way is:

xterm-accept-line () { print -nr -- "^[]2;$BUFFER^G"; zle .accept-line; }
zle -N accept-line xterm-accept-line

which replaces all instances of accept-line, rather than just '^M'.
It can be undone by

zle -A .accept-line accept-line

-zefram


  reply	other threads:[~1997-05-22 16:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-21 19:38 Sam Ockman
1997-05-22  3:29 ` Zoltan Hidvegi
1997-05-22 15:47   ` Zefram [this message]
1997-05-22 17:14   ` Greg Badros

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=20056.199705221547@stone.dcs.warwick.ac.uk \
    --to=zefram@dcs.warwick.ac.uk \
    --cc=hzoli@ny.frontiercomm.net \
    --cc=ockman@cs.stanford.edu \
    --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).