MacTerm keysÿÿþQ€M&ÿþ@-hKËÔuÀ6 @tËÔûTEXTMACA,&3˜f—¸˜f—»HnÿüNºH/+N­ª/+,N­cat/desc/key=macterminal [71735,1675] TERVAX.TXT 29-Nov-84 2655 193 Keywords: MACTERMINAL BACKSPACE DEL BS VAX VMS EDT Instructions to patch MacTerminal so that it sends an ASCII DEL instead of an ASCII BS when Backspace is typed. Useful for those who talk to VAX/VMS with MacTerminal [75076,3204] TXTEDT.REV 24-Dec-84 1910 251 Keywords: MACWRITE EDITOR TEXT FILES MACINTOSH MACTERMINAL DOCUMENT This file contains a comparison of the editor program in DL5 (EDITOR.HCX) and Macwrite. Particular attention is paid to working with long files and re-formatting files by changing fonts and sizes. The results are important to you if you have long Macterminal files, etc. Let me know any other observations. Bob Gross [75076,3204] [76174,105] KEYPAD.HCX 24-Dec-84 4910 220 Keywords: MACTERMINAL DOCUMENT MODIFICATION PATCH KEYPAD KEYBOARD MAPPING This MacTerminal DOCUMENT contains modified resources which affect the function of the MacTerminal APPLICATION. Two modifications were made. The more important is that it allows use of the keypad keys from the keyboard. More details are contained within the document. Secondly, check out the Commands Menu! Clone this document to start other documents with these features. - Jonathan E. Hardis [76174,105] [76174,105] MACTER.KEY 23-Dec-84 5235 143 Keywords: MACTERMINAL PATCHS KEYS KEYCODES KEYPAD KEYBOARD MAPPING RESOURCES An explanation of how the resources are used in MacTerminal to map the individual keys into transmitted characters. Also outlined is the method for mapping keyboard keys into keypad keys. This file is for experienced bit twiddlers who want to change the behavior of MacTerminal to fit their needs on their particular host computer. - Jonathan E. Hardis [76174,105] DL 4: type tervax.txt Instructions to change MacTerminal to transmit an ASCII DEL when Backspace is depressed The VMS operating system (as well as other DEC and probably some other manufacturers) makes heavy use of the ASCII DEL (or RUBOUT) (hex 7F) code for correcting errors. When using MacTerminal, there is no single-key way to generate the DEL code. Command-Backspace does generate this code, but this is awkward. Worse, it is non-standard with respect to other Mac usage. If you use several editors, some on the VAX and others on the Mac, it is not automatic to figure out what you have to do to wipe out the last character you typed. Fortunately, MacTerminal can convert each keystroke before it transmits it. Thus it is possible to change MacTerminal to generate the DEL when Backspace alone is typed. It is obviously also possible to remap anything; this is left as an exercise for the reader. The conversion tables are stored near the beginning of MacTerminal's resource fork. There are two tables, one for the VT100 mode and one for the TTY mode (this is actually gueswork). The tables have one entry for each key, with sixteen values per entry (apparently covering all combinations of Caps Lock, Shift, Option, and Command). The first value in each pair is the un-command one; the second is the command one. What has to be done is to change Uncommand-Backspace to generate an ASCII DEL (7F in hex), and Command-Backspace to generate an ASCII BS (08 in hex). In all eight words have to be changed to handle the Shift/Option/ Caps Lock cases. At this point, I have already told you more than I know. Detailed Instructions: 1. Use the Finder to copy MacTerminal to a different disk 2. Launch FEdit 3. Choose "Display in Hex" from "Options" Menu 4. Horizontal Scroll to Blk : 0007 5. Choose "Hex Modify" from "Edit" Menu 6. Click at 00A6 (the "0" in the first of eight "087F"s) 7. Type "7F087F087F08...." until all eight "087F"s become "7F08" 8. Choose "Write Block" from "Edit" Menu (this changes VT100 mode) 9. Click "OK" in dialog box 10. Horizontal Scroll to Blk : 000B 11. Choose "Hex Modify" from "Edit" Menu 12. Click at 0136 (the 0 in the first of eight "087F"s) 12. Type "7F087F087F08..." until all eight "087F"s become "7F08" 14. Choose "Write Block" from "Edit" Menu (this changes TTY mode) 15. Click "OK" in dialog box 16. Choose "Quit" from "Edit" Menu 17. Rename the file MacTerminal (VAX) 18. Choose "Get Info" from the "File" meno 19. Type a comment in the Description field indicating that you have changed the Backspace key to generate ASCII DEL DL 4: type macter.key CUSTOMIZING MACTERMINAL 12/23/84 The following was posted to info-mac, a Macintosh news group on Arpanet. I have copied it by hand, and hopefully have not introduced any errors. Notes in brackets refer to my footnotes at the end of the document. From: lsr@apple.UUCP (Larry Rosenstein) Date: 4 Dec 84 01:35:37 GMT Organization: Apple Computer, Inc. After all the complaints about the MacTerminal keyboard, I feel compelled to post this message. The mapping between keycaps and ASCII characters is totally defined in resource files (of course)! Because of the way resources are found, it is possible to setup the keyboard mapping on a document-by-document basis, which is much better than having multiple copies of MacTerminal around. There are 3 resource types to consider. (In the following, I describe the contents of the resource in terms of a Pascal declaration.) (1) Type KCKI: PACKED ARRAY[KeyCode] OF KeyIndex, where KeyCode = 0..95 and KeyIndex = 1..71. This maps the standard keycode numbers into the range 1..71. [Note 1] (2) Type KICH: ARRAY[KeyIndex] OF Entry, where Entry = PACKED ARRAY[0..15] OF CHAR. This maps the KeyIndex and the state of the modifier keys into an ASCII character. (The modifier bits are in the same order as in the EventRecord.) [Note 2] (3) Type CHRT: PACKED ARRAY[Boolean, Char] of Boolean. This maps the state of the command key and the ASCII character (from (2)) into TRUE if repeating is allowed for that key if the Repeat Ctrls option is off. (I am not 100% sure about this, however.) There are 2 resources of each type; ID = 256 is for VT100/TTY mode and ID = 257 if for IBM mode. I was able to customize one of my documents by using RMover [Note 3] to copy the appropriate resources into the document, and using FEdit [Note 4] to modify them. NOTE: I believe this information is accurate, but I have not verified this with the MacTerminal authors. (So don't blame them or Apple if something goes wrong, blame me.) Good Luck, and Enjoy! Larry Rosenstein - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Note 1]: Keycodes are discussed in Event Manager section of Inside Macintosh. Quickly, each physical button on the keyboard and the keypad send a "Keycode" to the machine, which has nothing to do with what letter is printed on the key or any particular character set (ASCII or EBCDIC, for example). The key codes are, row by row on the keyboard: 50 18 19 20 21 23 22 26 28 25 29 27 24 51 48 12 13 14 15 17 16 32 34 31 35 33 30 42 00 01 02 03 05 04 38 40 37 41 39 36 06 07 08 09 11 45 46 43 47 44 Space Bar = 49, Enter = 52 And on the optional keypad: 71 78 70 66 89 92 93 77 86 87 88 72 83 84 85 76 82 65 [Note 2]: Option, Caps Lock, Shift, and Command keys do not generate keycodes. Instead, they make up, in that order, the four- bit (0-15) modifier field. For example, you should usually treat Caps Lock (4) and Shift (2) the same. Command/Shift would be represented as 3. [Note 3]: RMOVER can be found in DL 5. It is very buggy, and should be used with caution on backup copies only. [Note 4]: As of this writing, FEDIT is no longer in MAUG. The author has indicated that a new, improved version may be posted soon. It is a public domain program which may be found at your local Apple dealer or User Group on their public domain disks. REDIT (Resource Editor) is a newer program on DL 5 which can (in theory) do the same thing, and is easier since it knows how to find and display the particular resources in an orderly way. As of this writing, REDIT is in its first debut outside of Apple and is very buggy. Use with caution only on backup copies. It can (in theory) both edit and move resources between the MacTerminal application and individual MacTerminal documents. So what does all this mean? It means if there are characters you need to get to on the keyboard, such as the tilde (~) or rubout (found on many terminals and used a lot on DEC computers) you can change any key, with or without any combination of Option, Caps Lock, Shift, and Command, to transmit the correct code. It also means that you can map the keypad keys (if you don't have a keypad) into keyboard keys! For example, you can make Option-1 equal to 1 on the Keypad. (And I just bought my keypad two days ago. AARGH!) Instead of detailing for the novice on how to do all the patches, if you succeed in making good resources for a particular situation, such as a popular keypad editor on a popular computer, put the modified resources into a MacTerminal _document_ and upload the document. - Jonathan E. Hardis [76174,105] document. - Jonathan E. Hardis