home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!ukma!darwin.sura.net!aplcen.apl.jhu.edu!ddsdx2.jhuapl.edu!dlc
- From: dlc@ddsdx2.jhuapl.edu (Dave Collard x7468)
- Subject: Re: DECterm and resources
- Message-ID: <1992Nov17.195039.20796@aplcen.apl.jhu.edu>
- Sender: news@aplcen.apl.jhu.edu (USENET News System)
- Organization: Johns Hopkins University
- References: <BxvEJw.BA4@gpu.utcs.utoronto.ca>
- Distribution: usa
- Date: Tue, 17 Nov 92 19:50:39 GMT
- Lines: 29
-
- In <BxvEJw.BA4@gpu.utcs.utoronto.ca> scanlan@gpu.utcs.utoronto.ca (B. Scanlan) writes:
- >I am having a problem getting DECterm applying the resource "title"
- >when the DECterm first creates itself and appears on the DISPLAY crt.
-
- >It appears that in order for the resource to be applied, the window must have
- >focus applied to explicitly by positioning the pointer over the window and
- >clicking the right mouse button. The title then changes.
-
- Yes this is a *feature*, not a bug. We use the following command file, it
- works on VMS 5.5 but I don't think it worked on 5.4. Anyway, it is a pain
- because you have to execute it in the decterm so maybe it does not fit your
- needs. However, if you are running something in the decterm on creation,
- just execute this com file prior to running whatever program you are running
- in the decterm:
-
- $!-----------------------------------------------------------------------------
- $! This command procedure sets a DECterm's title to P1 and its iconname to P2.
- $! If P1 is not specified, then the nodename is used. If P2 is not specified,
- $! then P1 is used.
- $!
- $ OSC = ""
- $ ST = ""
- $ OSC[0,8] = 157
- $ ST[0,8] = 156
- $!
- $ If P1 .EQS. "" then P1 = F$GetSyI("NODENAME")
- $ If P2 .EQS. "" then P2 = P1
- $!
- $ Write Sys$Output "''OSC' 21;''P1' ''ST' ''OSC' 2L;''P2' ''ST'"
-