A From:	SMTP%"RELAY-INFO-VAX@CRVAX.SRI.COM" 25-MAY-1993 13:55:26.28  To:	EVERHART CC:	4 Subj:	Re: *** Q: MacX keybindings and VMS DecWindows   X-Newsgroups: comp.os.vms 0 From: flower@donald.etdesg.trw.com (Rick Flower)7 Subject: Re: *** Q: MacX keybindings and VMS DecWindows . Message-Id: <2C013143.493A@deneva.sdd.trw.com> Originator: flower@donald  Sender: news@deneva.sdd.trw.com ) Organization: TRW Inc., Redondo Beach, CA ! Date: Mon, 24 May 93 20:34:10 GMT 	 Lines: 93  To: Info-VAX@kl.sri.com  X-Gateway-Source-Info: USENET    Hi!   J I'm posting this (and mailing it to all that responded or were interested)I message regarding MacX usage with VAX/VMS Systems running DecWindows (and L some other Unix systems).  I would like to thank everyone that responded to N my question (see below for names) about keymapping under VMS.  I've summarized; the information that I received from various people below :   L Essentially it seems that the MAC's keyboard needs to be correctly mapped toJ make it appear to be a VT220 or similar keyboard.  So, there is a softwareN product that appears to come standard with VMS (??) called PathWorks.  As partK of this product, the are two files that are required in order to fix this :    	SYS$SYSTEM:MSAX$MODMAP.EXE 1 	SYS$SYSTEM:MSAX$POSITIONAL_EXTENDED_KEYBOARD.DAT   O Our System Admin person here dug these off of a CD rom as part of the PathWorks N distribution.  These files *MAY* be located in SYS$EXAMPLES.  I've included a N sample startup script that I got from STONE_L@Eisner.DECUS.Org below (he puts " this in their SYLOGIN.COM file ) :  A $    IF (F$SEARCH("SYS$SYSTEM:MSAX$MODMAP.EXE") .NES. "") .AND. - @ 	(F$SEARCH("SYS$SYSTEM:MSAX$POSITIONAL_EXTENDED_KEYBOARD.DAT") - 	  .NES. "")	 $    THEN ! $    DEFINE/USER SYS$OUTPUT NLA0:   $    DEFINE/USER SYS$ERROR NLA0:E $    MCR MSAX$MODMAP SYS$SYSTEM:MSAX$POSITIONAL_EXTENDED_KEYBOARD.DAT 
 $    ENDIF  I Below is a short description of the MSAX$POSITIONAL_EXTENDED_KEYBOARD.DAT # as found at the start of the file :   B ! MSAX$MODMAP input file which maps (under MacX) an Apple ExtendedB ! keyboard with best POSITIONAL match with the DEC LK-201 keyboard ! when using DECwindows clients   M I gather from poking around with the MSA$MODMAP, that it is a tweaked version O of the standard Xmodmap that comes as a standard feature of X.  The input files L seem to be in a slightly different format.  I've included below a copy of myO startup command file that MacX calls directly to login and startup a DecWindows L session.  Using this setup, if a user is not on his/her own MAC (eg. the oneO on his/her desk), he/she may still login without modifying their command file..   N $  OFS = F$LOCATE(":",P1)               ! Since it is like nnn.nnn.nnn.nnn:0.0C $  USER_MAC = F$EXTRACT(0,OFS,P1)       ! Chop garbage off the end! O $!----------------------------------------------------------------------------- M $!- If we get here, that means we are running on a MAC system running MAC-X.. 8 $!- Let's try to startup a few DECwindows applications..N $!----------------------------------------------------------------------------3 $ SET DISPLAY/CREATE/TRANS=TCPIP/NODE="''USER_MAC'"  $ DISPLAY :== "''USER_MAC':0"  $ DEFINE/USER SYS$OUTPUT NLA0: $ DEFINE/USER SYS$ERROR NLA0: - $ MSAX$MODMAP :== $SYS$SYSTEM:MSAX$MODMAP.EXE > $ MSAX$MODMAP SYS$SYSTEM:MSAX$POSITIONAL_EXTENDED_KEYBOARD.DAT $ @SYS$MANAGER:DECW$STARTSM.COM   N In order for the above to work, the MacX script line must look something like:  + 	@dk_user:[user]command_file.com "@display"   K where "command_file.com" is the name of the above command file and you MUST O REPLACE the "@" character above with a (R)egistered symbol (per the MacX docs). L That will enable MacX to pass the IP address of the Mac you are using to theM command file which will then create a "display" for DecWindows to communicate  through.  M Well, I think that I've covered all the information that I can recall on this J subject.. Now if Apple can get their act together and fix the bugs in MacXJ version 1.2 so it doesn't crash when you exit the application, I'd be alot happier!    N I would like to thank the following people for their contributions or interestJ in my MacX question (I may have missed a few people.. I think I lost some  mail!  (8-<  ) :   yoko@research.nj.nec.com wolfson@ll.mit.edu MICHELE@Orion.YorkU.CA dillonwr@msgate.corp.apple.com STONE_L@Eisner.DECUS.Org EWILTS@MARS.GOV.BC.CA  Bren@SSRL01.SLAC.Stanford.EDU  gronosr@ccsmtp.ccf.org dcoward@micrognosis.co.uk    --  O +---------------------+-------------------------------------------------------+ O |      Available      | Internet Addr: flower@donald.etdesg.TRW.COM or        | O |      for Lease      |                rickf@theweav.cts.com                  | O +---------------------+-------------------------------------------------------+   