From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86120 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: xterm dynamic title Date: Wed, 29 Jan 2014 12:33:25 +0100 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <20140129123325.6fe94177@sole.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1390995207 4888 80.91.229.3 (29 Jan 2014 11:33:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jan 2014 11:33:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 29 12:33:35 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8TOh-0001W1-64 for gctc-ntg-context-518@m.gmane.org; Wed, 29 Jan 2014 12:33:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8BDA1101EB; Wed, 29 Jan 2014 12:33:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 57WnQLYZ53aG; Wed, 29 Jan 2014 12:33:31 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7A227101E6; Wed, 29 Jan 2014 12:33:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4199101E6 for ; Wed, 29 Jan 2014 12:33:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id q85-eXQ6qPLe for ; Wed, 29 Jan 2014 12:33:28 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 26115101E1 for ; Wed, 29 Jan 2014 12:33:27 +0100 (CET) Original-Received: from sainfoin-out.extra.cea.fr (sainfoin-out.extra.cea.fr [132.167.192.145]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0TBXPd3021783 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 29 Jan 2014 12:33:27 +0100 Original-Received: from epeire2.extra.cea.fr (epeire2.extra.cea.fr [132.167.198.32]) by sainfoin.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.3) with ESMTP id s0TBXP9e021403 for ; Wed, 29 Jan 2014 12:33:25 +0100 Original-Received: from epeire2.extra.cea.fr (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 51BAD545462 for ; Wed, 29 Jan 2014 12:33:25 +0100 (CET) Original-Received: from orpin1.extra.cea.fr (orpin1.extra.cea.fr [132.167.198.4]) by epeire2.extra.cea.fr (Postfix) with ESMTP id 3FCC75451E7 for ; Wed, 29 Jan 2014 12:33:25 +0100 (CET) Original-Received: from sole.extra.cea.fr (iram-ha-003840.extra.cea.fr [132.166.25.152]) by orpin1.extra.cea.fr (8.13.8/8.13.8/CEAnet-Extranet-out-1.2) with ESMTP id s0TBXPtZ007641 for ; Wed, 29 Jan 2014 12:33:25 +0100 X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=132.167.192.145; country=FR; region=A3; city=Gif-sur-yvette; latitude=48.6833; longitude=2.1333; http://maps.google.com/maps?q=48.6833,2.1333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VLjLxpsc - dd2b92bc7056 - 20140129 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86120 Archived-At: Hello, Using xterm and related emulators, one can set a dynamic title. Many applications set this title. (Of course, the user can program the emulator to ignore such dynamic titles, if preferred). I find it useful, especially when I have many terminal windows open, all running different processes in parallel. May I suggest the following simple change to the context script: #!/bin/sh case "$TERM" in *xterm*) echo -e -n "\e]0;${0##*/} $*\a" ;; esac mtxrun --script context "$@" 1. Perhaps it would be preferred to implement such a feature in the mtx-context.lua script, for example, rather than the shell script, as one could then add useful information such as the run number. Also, one may (or may not) want to do this when running -batch, etc. 2. On non-unix-like systems, perhaps the $TERM case would be different. Alan ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________