[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

679.0. "DECterm Icon Name" by QUARRY::PETRAITIS () Wed Apr 26 1989 06:35

I know this must have appeared here somewhere before but searching via the
DECwindows Notes interface hasn't found it.

Is it possible to change the Icon name for a DECterm from a .COM 
file run in that window? I can get it to do it out of the cutomization in the menu 
bar allright, but I want to run LAT and have it change the Icon name to "LAT."

Any suggestions?

David

T.RTitleUserPersonal
Name
DateLines
679.1LESLIE::LESLIEThere is no final frontierWed Apr 26 1989 08:593
    You want SET_TITLE. Do a search for that string and you'll find a
    location no doubt.

679.2VISA::BIJAOUITomorrow Never KnowsWed Apr 26 1989 09:229
    ... however, set_title needs the target window to have input focus.
    You'd better create the window with the right name _from the start_,
    using the \fabulous/ CHILD (according that you will be able to set
    plenty of other stuff, like the window size/position/title, the icon
    position, etc ...).
    
    
    Pierre.

679.3STAR::MFOLEYRebel without a ClueThu Apr 27 1989 01:2710
       
       
       
       
       	Do a DIR/ALL/AUTHOR=MFOLEY and you'll see a note or two from
       	me on how to use CHILD to start up your windows with all the
       	colors and sizes you want. Including LAT.
       
       							mike

679.4BUNYIP::QUODLINGApologies for what Doug Mulray said...Thu Apr 27 1989 03:187
        
        Given Mikeys prolific noting prowess, and his dislike for titles.
        yu may have difficulty finding it. Try note 470.1.
        
        q
        

679.5Wrong Icon NamesHAYAMA::FENNELLTim Fennell - HPS CADFri Nov 03 1989 10:2525
I have a problem with icons that I can't explain.

My workstation name is HAYAMA (Yamaha sort of...)  and the icon for the
session manager says "FENNELL on HAYAMA".

All of my DECTERMs are coming up with "Session 1 - MEARA" in the DECTERM
title bar and the icons are "1:MEARA".

MEARA is a node in our cluster that I had connected to yesterday for the
first time in a long time using VWSLAT.  Forgive me if I give out any
useless information, but I am at wits end...

First I stopped the session and started it up again.  Same result.

Next I rebooted.  Same result.

Next I rebooted with a hard power down.  Same result.

I can't figure out where this icon title is coming from.  Any help would be
appreciated.

Thanks.

						Tim
679.6HAYAMA::FENNELLTim Fennell - HPS CADFri Nov 03 1989 10:4615
I have found the problem...

Apparently something updated the icon name and title name fields in
decw$terminal_defaults.dat.  I changed the something in the DECTERM and
saved a new .DAT file yesterday afternoon.  I have deleted the file and the
prolem is gone.

I had checked for new .DAT files dated today as I was asked if I wanted to
save changes before I shut down the session manager.  The DECTERM .DAT file
was changed yesterday afternoon, so I didn't see it.

I am not sure how those fields got changed, but I suspect it has something
to do with VWSLAT.

						Tim
679.7QUARK::LIONELFree advice is worth every centFri Nov 03 1989 11:0610
This happened to me too, and I also blamed VWSLAT.  But I had done it to
myself.  What you probably did was in a DECterm window do a Customize -
Save Current Settings from a window with that icon name.  It stores the
icon name along with the rest of the settings, and thus gets used for
all new terminal windows.

Removing the line(s) in the DECW$TERMINAL_DEFAULT.DAT file is the way
to go.

		Steve
679.8SMAUG::MENDELWhat've we done to our fair sister?Fri Nov 03 1989 13:0013
    Running VMS 5.1, SET_TITLE doesn't work from my LOGIN.COM, although 
    it works from DCL. I'm setting the title of my current DECterm window.

    I narrowed it down to: SET_TITLE only works after you "click on" the
    DECterm window. If I'm fast, and I click on the window before the 
    LOGIN.COM executes the SET_TITLE, it works okay.

    SET_TITLE seems so nice as part of the login procedure. 

    Any workarounds, like upgrading VMS?

    Kevin
    
679.9Upgrade to VMS V5.3LARKAN::KRALLarry Kral N�AMP 592-5462Fri Nov 03 1989 15:014
    If you upgrade to VMS V5.3 you will be able to use <ESC> sequences to
    change the ICON and and BANNER of DECterm windows.  This will also work
    from LOGIN.COM.
    
679.10VANISH::BAILEYSS$_end_of_tetherFri Nov 03 1989 15:213


679.11What are they?DSTEG2::HOSSFELDI&#039;m so confused!Mon Nov 06 1989 07:553
Do you have the esc sequences for the icon and title changes?

Paul H.
679.12Title/icon OSC sequencesHANNAH::MESSENGERBob MessengerMon Nov 06 1989 12:1312
Re: .11

To change the title to "foo":

	<ESC>O21;foo<ESC>\

where <ESC> is an escape (ASCII 27), and "O21" is a capital "O" followed by a
"two" and a "one".  To change the icon name to "bar":

	<ECS>O2L;bar<ESC>\.

				-- Bob
679.13LESLIE::LESLIEAndy ��� LeslieMon Nov 06 1989 15:191
    Documented in the VMS 5.3 release notes...
679.14How do I get them to be seen?TOOK::C_PEREZThe InFAMous EightThu Jan 04 1990 13:149
  Ok, call me stupid if you want, but how do I get the <ESC> sequences
in .12 to be recognized so I can change the Icon name?

 I've put them in a file and typed the file out, that did nothing except
print the sequences on my DECterm. Am I missing something or do I have to
direct the <ESC> sequences someplace other than the DECterm output?

                                         Thanks,
                                          Craig
679.15Forgot the ] in the sequence...TOOK::C_PEREZThe InFAMous EightThu Jan 04 1990 15:486
  Well I found the answer to my own question in note 492 of the
DECTERM conference. I was indeed missing something...

   The sequence is <OSC>O21; which means you need <ESC>]O21;
for the action to take place...
                                      Craig
679.16BLUMON::QUODLINGI&#039;m Bob Vila... for &#039;This Old Vax&#039;Thu Jan 04 1990 18:0314
679.17a com file for all thisSTAR::MFOLEYRebel Without a ClueFri Jan 05 1990 00:1533
       
       
       	Here's a com file that allows you to change the icon and title bar
       and etc.. Works for VWS and DECwindows.
       
       "@comfile icon1" will change the icon. 
       
       							mike
       
$ OSC[0,8] = 157
$ ST[0,8]  = 156
$ Echo = "Write Sys$Output "
$!
$ If P1 .eqs. "ICON"     then Echo OSC,"2L;",P2,ST
$ If P1 .eqs. "ICON1"     then Echo OSC,"2L;",F$GetSYI("NodeName"),ST
$ If P1 .eqs. "BANNER"     then Echo OSC,"21;",P2,ST
$ If P1 .eqs. "BANNER2"    then Echo OSC,"21;Node: ", F$GetSYI("NodeName"),"  �",F$GetJPI("","PRCNAM"),"�  (",F$GetJPI("","PID"),")",ST
$ If P1 .eqs. "BANNER3"    then Echo OSC,"21;",F$GetSYI("NodeName"),"::",F$ENVIROMENT("DEFAULT"),"","   (",F$GetJPI("","PRCNAM"),")",ST
$ If P1 .eqs. "BANNER4"    then Echo OSC,"21;",F$GetSYI("NodeName"),"::",F$ENVIROMENT("DEFAULT"),"",ST
$!
$!---------------------------VWS Only-----------------------------------------
$!
$ If P1 .eqs. "SHRINKX"    then Echo OSC,"22;",P2,";",P3,ST
$ If P1 .eqs. "SHRINK"     then Echo OSC,"22;",P2,";",P3,ST
$ If P1 .eqs. "EXPAND"     then Echo OSC,"23;",P2,";",P3,ST
$ If P1 .eqs. "MOVE_TERM"  then Echo OSC,"24;",P2,ST
$ If P1 .eqs. "MOVE_ICON"  then Echo OSC,"25;",P2,ST
$ If P1 .eqs. "PUSH"       then Echo OSC,"29",ST
$ If P1 .eqs. "POP"        then Echo OSC,"2A",ST
$ If P1 .eqs. "FONT"       then Echo OSC,"2f;",P2,";",P3,";",P4,ST
$!----------------------------------------------------------------------------
$ Exit                                        
       
679.18Correction to the correctionNOON::MESSENGERBob MessengerFri Jan 05 1990 12:129
Re: .16

OSC is ESC ].  CSI is ESC [.  If you have an ASCII table, the easy way to
remember this is that both OSC and ] are in row 13, and both CSI and [
are in row 11.  The general rule is: subtract 64 (4 columns in the table)
from the 8 bit control character to get the second character in the 7 bit
equivalent.

				-- Bob
679.19It doesn't workESSAY::FRASCINELLAIn the beginning was the Word...Fri Jan 05 1990 14:1819
    Your command file didn't work for me.  I extracted it and deleted the
    VWS code.  I tried the following at the DCL prompt:
    @filename banner 
    @filename banner "test title" 
    @filename icon 
    @filename icon "test title"
    
    Nothing happened.  DCL simply returned another prompt, no errors.  I
    switched from window to icon and back and nothing changed.
    
    I'm not a programmer and I'm new to DECwindows and feeling like I'm
    getting nothing but frustration from this interface.
    Can you explain why this doesn't work?
    
    Michael F.
    
    VMS V5.2
    DECwindows V1
    VAXstation 3100
679.20Need VMS V5.3 or >BLOCKP::nethCraig NethFri Jan 05 1990 15:214
RE: .19

The command file doesn't work because the OSC sequences are not supported by
the DECTERM that comes with DECwindows V1.  You need DW V2 to do them.
679.21TRNSAM::HOLTRobert Holt ISV Atelier WestWed Jan 17 1990 15:463
    
    I'd like to put my 2 cents in for adding escapes for pushing
    the DECterm window and setting focus...
679.22sessionMAMIE::FEDORAdangerous but ineptWed Jun 20 1990 11:5513
    
    This has been bugging me for a while. Why on one system when I run
    VWSLAT and connect to some node, does the icon name say:   
    	1:NODENAME   
    and on another system  (running the same things) say:
        SESSION 1 - NODENAME  ? 
    
    Both systems have:  VMS V5.3  
    		        VWSLAT.EXE    same date and block size
    			CHILD.EXE     same date and block size
    			SYS$LOGIN:DECW$TERMINAL_DEFAULT.DAT  same
    
    Where does the word SESSION come from?