From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24366 invoked by alias); 4 Dec 2012 14:11:28 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17453 Received: (qmail 3844 invoked from network); 4 Dec 2012 14:11:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_NUMERIC_HELO,SPF_HELO_PASS autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.3 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Yuri D'Elia Subject: Re: Problems with precmd/urxvt Date: Tue, 04 Dec 2012 15:10:52 +0100 Message-ID: References: <121203074835.ZM20740@torch.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.106.183.18 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11 In-Reply-To: <121203074835.ZM20740@torch.brasslantern.com> On 12/03/2012 04:48 PM, Bart Schaefer wrote: > 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. Humm, I tried with just "[ -t 0 ] && .." and seems to be enough. Strangely enough, not only I don't get the error anymore, but the terminal title also seem to be always correctly set on startup (which is weird, since I would expect to start the default once in a while).