From: Zoltan Hidvegi <hzoli@ny.frontiercomm.net>
To: ockman@cs.stanford.edu (Sam Ockman)
Cc: zsh-users@math.gatech.edu
Subject: Re: Getting xterm title bar to display last command...
Date: Wed, 21 May 1997 23:29:19 -0400 (EDT) [thread overview]
Message-ID: <199705220329.XAA05045@hzoli.home> (raw)
In-Reply-To: <19970521193846.02664@pasta.stanford.edu> from Sam Ockman at "May 21, 97 07:38:46 pm"
> Okay, so I have the neat function from the zsh web site to get my xterm to
> display the current directory....Anyone know how to use that basic idea to
> get my xterm to display the last thing entered at the command line
> instead?
In zsh-3.1.2 (coming soon), thanks to Zefram, you can do:
zle -N my-accept-line
my-accept-line () { print -nr -- "^[]2;$BUFFER^G"; zle accept-line; }
bindkey '^M' my-accept-line
Note that you have to type real ESC and CTRL-G instead of ^[ and ^G. In
zsh-3.0, and probably in zsh-3.1.1 too, there is no way to do that.
Zoltan
next prev parent reply other threads:[~1997-05-22 3:53 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 [this message]
1997-05-22 15:47 ` Zefram
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=199705220329.XAA05045@hzoli.home \
--to=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).