From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: Problems with precmd/urxvt
Date: Mon, 03 Dec 2012 07:48:35 -0800 [thread overview]
Message-ID: <121203074835.ZM20740@torch.brasslantern.com> (raw)
In-Reply-To: <k9hqsl$s4a$1@ger.gmane.org>
On Dec 3, 10:20am, Yuri D'Elia wrote:
}
} precmd() { print -Pn '\e]2;%~\a' }
}
} it works ok, but from time to time, when I fire up a new urxvt terminal,
} I get the following:
}
} precmd:print: write error: interrupt
I don't have the error, but this probably means urxvt is starting up
the shell before it has the window open and is ready to display.
You could try something like
precmd() { [[ -t 0 && -w 0 ]] && print -Pn '\e]2;%~\a' }
but that may not help.
} Also, since print is builtin, I wasn't able to silence the error anyway.
You can redirect internal errors from builtins by using braces:
precmd() { { print -Pn '\e]2;%~\a' } 2>/dev/null }
next prev parent reply other threads:[~2012-12-03 15:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-03 9:20 Yuri D'Elia
2012-12-03 15:48 ` Bart Schaefer [this message]
2012-12-04 14:10 ` Yuri D'Elia
2012-12-04 16:01 ` Bart Schaefer
2012-12-05 14:35 ` Yuri D'Elia
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=121203074835.ZM20740@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/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).