From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,de647ab4fa9b3ad X-Google-Attributes: gid1164f8,public From: agnew@gems.vcu.edu Subject: Re: dxterm escape code documentation Date: 1998/03/05 Message-ID: <1998Mar5.090332.1@gems.vcu.edu>#1/1 X-Deja-AN: 331078704 Distribution: world References: <34FE61C3.6FC@GECITS-AP.com> Organization: Medical College of Virginia Newsgroups: comp.sys.dec In article <34FE61C3.6FC@GECITS-AP.com>, David Knodel writes: > I'm unable to find documentation for escape sequences for > "dxterm", the DECwindows terminal emulator. What I'd > like to be able to do is to send an escape sequence which > sets the title of the dxterm (and hopefully the icon title > as well). I've got some sort of documentation CD which > I'm accessing with "dxbook", but as far as I can tell, > my attempts at searches on it imply that no such information > is to be found therein. > > Any information would make me happier than > a pig in s...omething pigs like to be in. > > Thanks, > David here's something from Tom Wade that i've been running since i last chipped out my flint knive from a rock.... ;-) Jim UD$MED:[AGNEW.GLOBAL]DECWINDOW_SET_ICON_WINDOW_NAMES.COM;1 $! Set the Window name to reflect the host name. $ esc[0,8]=27 $ cr[0,8]=13 $ lf[0,8]=10 $ USERNAME = F$GETJPI( 0,"USERNAME" ) $ host := 'F$Getsyi ("SCSNODE")' $ proc_name = F$Getjpi (0, "prcnam") $ window_text = "''host'::''username' ""''proc_name'""" $ icon_text = "''host'''cr'''lf'''username'" $ window_string = esc + "]21;" + window_text + esc + "\" $ icon_string = esc + "]2L;" + icon_text + esc + "\" $ Write SYS$OUTPUT window_string+icon_string $ Exit $!------------------------------ Cut Here ---------------------------------- $! T_WADE%ccvax.ucd.ie@PUCC.PRINCETON.EDU $!The following escape sequences are the 7-bit equivalents of the OSC/ST $!strings recently posted to the net. $!]21;Name on Window\ $!sets the text on the title bar of the window. $!]2L;Icon Name\ $!sets the Icon name. In both cases is the Ascii Escape character $!(decimal 27). The command procedure below will, when run from your LOGIN.COM, $!automatically set the title bar and icon name to reflect your current node $!name, process name and username. The Title bar becomes: $!node::username [process-name], e.g. CCVAX::RTA1 [SpeakerToVaxes] $!and the Icon becomes node $! username $!e.g. CCVAX $! RTA1 ------------------------------------------------------------------------------ Tom Wade | Internet: T.Wade@cc.ucd.ie (all domain mailers). Speaker To VAXes | Bitnet: T_WADE@CCVAX EuroKom | PSI-Mail: PSI%27243154000712::T.WADE University College | DEC EASYnet: DECWRL::"t.wade@cc.ucd.ie" (VMS Mail) Belfield | JANET: t.wade%cc.ucd.ie@UK.AC.EARN-RELAY Dublin 4 | X400: [Address Exceeds 65536 byte buffer] Ireland | Telex: (0500) 91178 UCD EI ("TO: WADE" at start) --------------------+---------------------------------------------------------- Voice: +353-1-697890| Official Disclaimer: "This is not a disclaimer" Fax: +353-1-838605| ------------------------------------------------------------------------------- UD$MED:[AGNEW.GLOBAL]DECW_GLOBAL.COM;1 $ CREATE/TERMINAL/DETACH/LITTLE_FONT/WINDOW_ATTRIBUTES=(BACKGROUND=BLUE,FOREGROUND=WHITE,X_POSITION=5,Y_POSITION=100) $ SPAWN/NOWAIT/INPUT=NL: RUN SYS$SYSTEM:DECW$CALENDAR $ EXIT $ SPAWN/NOWAIT/INPUT=NL: RUN SYS$SYSTEM:DECW$CLOCK $ SPAWN/NOWAIT/INPUT=NL: RUN SYS$SYSTEM:DECW$CALC $ SPAWN/NOWAIT/INPUT=NL: RUN SYS$SYSTEM:DECW$BOOKREADER $ CREATE/TERMINAL/DETACH/LITTLE_FONT/WINDOW_ATTRIBUTES=(BACKGROUND=BLUE,FORGROUND=WHITE,X_POSITION=5,Y_POSITION=120,INITIAL_STATE=ICON) $ CREATE/TERMINAL/DETACH/LITTLE_FONT/WINDOW_ATTRIBUTES=(BACKGROUND=BLUE,FORGROUND=WHITE,X_POSITION=5,Y_POSITION=140,INITIAL_STATE=ICON)