Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Getting xterm title bar to display last command...
- X-seq: zsh-users 868
- From: Zefram <zefram@xxxxxxxxxxxxxxxxx>
- To: hzoli@xxxxxxxxxxxxxxxxxxx (Zoltan Hidvegi)
- Subject: Re: Getting xterm title bar to display last command...
- Date: Thu, 22 May 1997 16:47:26 +0100 (BST)
- Cc: ockman@xxxxxxxxxxxxxxx, zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <199705220329.XAA05045@xxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author