From: gerard@uwovax.uwo.ca (Gerard Stafleu)
Subject: Re: Want DECwindows Customizations (via Resources???)
Date: Wed, 29 Jul 1992 19:12:30 GMT [thread overview]
Message-ID: <1992Jul29.151230.1@uwovax.uwo.ca> (raw)
In-Reply-To: JYM.92Jul28185158@remarque.berkeley.edu
> Problem 5 Has anyone figured out how to have multiple default
> ~~~~~~~~~ title and icon names that aren't "DECterm <n>"?
Assum that the symbol Pwin has the title in it you want for the window,
and Picon for the icon:
$ dev_type = F$getdvi("TT","DEVTYPE")
$ IF dev_type .EQ. 112 !DECterm window
$ THEN
$ OSC[0,8] = 157
$ ST[0,8] = 156
$ WRITE SYS$OUTPUT OSC,"21;''Pwin'",ST !set window name
$ WRITE SYS$OUTPUT OSC,"2L;''Picon'",ST !set icon name
$ ELSE ! Something else, presumably Xterm
$ write sys$output "<ESC>]2;"+ "''pwin'" +"^G"
$ ENDIF
[<ESC> is the Escape character]
The ELSE part works for Xterm windows (I don't know if you can do
icons). I discovered that that code will hang up a DECterm, hence the
check on device type. That is a bit of a workaround, as type 112 is
something like a VT340. I don't know of any way to find out if your
terminal is a DECterm. Xterms are VT100's, so the trick works.
----
Gerard Stafleu
email: gerard@uwo.ca
CCS, NSC 202, University of Western Ontario,
London, Ontario, Canada N6A 5B7
(519)661-2151
prev parent reply other threads:[~1992-07-29 19:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-07-28 23:51 Want DECwindows Customizations (via Resources???) Jym Dyer
1992-07-29 19:12 ` Gerard Stafleu [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox