From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,4248029a8fd8367c X-Google-Attributes: gidf7344,public X-Google-Thread: 103734,4248029a8fd8367c X-Google-Attributes: gid103734,public X-Google-Thread: 1164f8,4248029a8fd8367c X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-07-29 05:11:08 PST Xref: sparky comp.os.vms:12909 comp.sys.dec:4273 comp.windows.x:14577 Newsgroups: comp.os.vms,comp.sys.dec,comp.windows.x Path: sparky!uunet!cs.utexas.edu!torn!newshost.uwo.ca!uwovax.uwo.ca!gerard From: gerard@uwovax.uwo.ca (Gerard Stafleu) Subject: Re: Want DECwindows Customizations (via Resources???) Organization: University of Western Ont, London Date: Wed, 29 Jul 1992 19:12:30 GMT Message-ID: <1992Jul29.151230.1@uwovax.uwo.ca> References: Sender: news@julian.uwo.ca (USENET News System) Nntp-Posting-Host: hydra.uwo.ca > Problem 5 Has anyone figured out how to have multiple default > ~~~~~~~~~ title and icon names that aren't "DECterm "? 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 "]2;"+ "''pwin'" +"^G" $ ENDIF [ 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