Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: agnew@gems.vcu.edu
Subject: Re: dxterm escape code documentation
Date: 1998/03/05	[thread overview]
Message-ID: <1998Mar5.090332.1@gems.vcu.edu> (raw)
In-Reply-To: 34FE61C3.6FC@GECITS-AP.com


In article <34FE61C3.6FC@GECITS-AP.com>, David Knodel <David.Knodel@GECITS-AP.com> 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.
$!<ESC>]21;Name on Window<ESC>\
$!sets the text on the title bar of the window.
$!<ESC>]2L;Icon Name<ESC>\
$!sets the Icon name.  In both cases <ESC> 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)



  reply	other threads:[~1998-03-05  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-05  5:00 dxterm escape code documentation David Knodel
1998-03-05  5:00 ` agnew [this message]
1998-03-05  5:00   ` Alan Frisbie
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