From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21652 invoked from network); 14 Dec 1999 11:15:25 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Dec 1999 11:15:25 -0000 Received: (qmail 3516 invoked by alias); 14 Dec 1999 11:15:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9040 Received: (qmail 3509 invoked from network); 14 Dec 1999 11:15:18 -0000 Message-ID: <385626C0.826ECADE@u.genie.co.uk> Date: Tue, 14 Dec 1999 11:15:12 +0000 From: Oliver Kiddle X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Zsh workers Subject: Re: PATCH: zftp xterm titlebar References: <000a01bf4562$b5378750$21c9ca95@mow.siemens.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > AB> BTW is it possible to get the current window title? > > I could print it with : > > $ echo '' > > But does someone know how to catch this in a shell script ? Is there > a better way than using script(1) ? Try getting the setterm program at http://www.moria.de/~michael/setterm/. It lets you read back responses from the terminal easily. It would be easy to add handling for dtterm and the escape code you mentioned above for getting the window title. I did a similar thing with it to read the colour settings for an SGI xwsh. Oliver Kiddle