home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / vms / 12909 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.6 KB

  1. Xref: sparky comp.os.vms:12909 comp.sys.dec:4273 comp.windows.x:14577
  2. Newsgroups: comp.os.vms,comp.sys.dec,comp.windows.x
  3. Path: sparky!uunet!cs.utexas.edu!torn!newshost.uwo.ca!uwovax.uwo.ca!gerard
  4. From: gerard@uwovax.uwo.ca (Gerard Stafleu)
  5. Subject: Re: Want DECwindows Customizations (via Resources???)
  6. Organization: University of Western Ont, London
  7. Date: Wed, 29 Jul 1992 19:12:30 GMT
  8. Message-ID: <1992Jul29.151230.1@uwovax.uwo.ca>
  9. References: <JYM.92Jul28185158@remarque.berkeley.edu>
  10. Sender: news@julian.uwo.ca (USENET News System)
  11. Nntp-Posting-Host: hydra.uwo.ca
  12. Lines: 31
  13.  
  14. > Problem 5  Has anyone figured out how to have multiple default
  15. > ~~~~~~~~~  title and icon names that aren't "DECterm <n>"?
  16.  
  17. Assum that the symbol Pwin has the title in it you want for the window, 
  18. and Picon for the icon:
  19.  
  20. $ dev_type = F$getdvi("TT","DEVTYPE")
  21. $ IF dev_type .EQ. 112    !DECterm window
  22. $    THEN
  23. $    OSC[0,8] = 157
  24. $    ST[0,8] = 156
  25. $    WRITE SYS$OUTPUT OSC,"21;''Pwin'",ST    !set window name
  26. $    WRITE SYS$OUTPUT OSC,"2L;''Picon'",ST    !set icon name
  27. $ ELSE  ! Something else, presumably Xterm
  28. $    write sys$output "<ESC>]2;"+ "''pwin'" +"^G"
  29. $ ENDIF
  30.  
  31. [<ESC> is the Escape character]
  32.  
  33. The ELSE part works for Xterm windows (I don't know if you can do 
  34. icons).  I discovered that that code will hang up a DECterm, hence the 
  35. check on device type.  That is a bit of a workaround, as type 112 is 
  36. something like a VT340.  I don't know of any way to find out if your 
  37. terminal is a DECterm.  Xterms are VT100's, so the trick works.
  38.  
  39. ----
  40. Gerard Stafleu
  41. email: gerard@uwo.ca
  42. CCS, NSC 202, University of Western Ontario,
  43. London, Ontario, Canada N6A 5B7
  44. (519)661-2151
  45.