tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* freezing a dxterm title
@ 1999-06-18 13:46 Lucio Chiappetti
  0 siblings, 0 replies; only message in thread
From: Lucio Chiappetti @ 1999-06-18 13:46 UTC (permalink / raw)
  To: tru64-unix-managers

I regularly use dxterm for my terminal emulator windows. 

While in most of them I just run an ordinary shell session (i.e. they are
actual terminal emulator windows), in a few of them I run a fixed application
(e.g. Pine for mail).

I have a little script "identframe" which writes in the title bar (of dxterms,
xterms, Sun shelltool etc. etc. via appropriate escape sequences) an
identification with the hostname, username and tty name (in the icon title I
have only the tty name). This script is run automatically by .cshrc (thus I
know on which machine I'm logged and if as me, as root or as somebody else),
and also (via aliases) automatically on return from rlogin, telnet, su (so
that it is appropriately reset).

On the other hand for the "fixed application" dxterms I invoke them via
aliases of the form   dxterm -setup resourcefile -e command, and place
in resourcefile the appropriate X resources, e.g.

DXterm.main.terminal.defaultTitle:      Mail (Pine)
DXterm.main.terminal.defaultIconName:   MAIL

Now I've noted that sometimes these titles get reset to the "identframe"
style, which is annoying (specially if I keep the mail dxterm iconized, and
want to look at mail ... it's much easier to click on an icon saying "mail"
than on one saying "ttyp2"). I have no time to trace what causes this
(probably some printing or web-viewing script run within pine). 

I would find simpler to FREEZE the titles. Is there some X resource of dxterm
or mwm which allows to freeze such resources once set ?

----------------------------------------------------------------------------
Lucio Chiappetti - IFCTR/CNR - via Bassini 15 - I-20133 Milano (Italy)      
----------------------------------------------------------------------------
L'Italia ripudia la guerra [...] come    Italy repudiates war {...] as a
mezzo di risoluzione delle controversie  way of resolution of  international
internazionali                           controversies
                [Art. 11 Constitution of the Italian Republic]
----------------------------------------------------------------------------
For more info : http://www.ifctr.mi.cnr.it/~lucio/personal.html             
----------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-06-18 13:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-18 13:46 freezing a dxterm title Lucio Chiappetti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox