Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Preexec & Printf
- X-seq: zsh-users 4871
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Joshua Symons <vmcore@xxxxxxxxx>
- Subject: Re: Preexec & Printf
- Date: Thu, 25 Apr 2002 18:16:06 -0700 (PDT)
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <1eed22689c.2689c1eed2@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: schaefer@xxxxxxxxxxxxxxxx
On Thu, 25 Apr 2002, Joshua Symons wrote:
> preexec () {
> print -Pn "\e]0;%m:%l - ${(z)1} \a"
> }
> [(ichirou:152:pts/33)~ %] printf '^[[32;40mwith quotes\n'
> [32;40mwith quotes
> ' with quotes
Your specific problem there is that the titlebar escape sequence appears
literally in the command that you're trying to put into the titlebar, so
strange things happen. I missed that before. Try ${(qVz)1}.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author