MM MM EEEEEEE MM MM OOOOOOO MMM MMM EE MMM MMM OO OO MM M MM EEEEE MM M MM OO OO MM MM EE MM MM OO OO MM MM EE MM MM OO OO MM MM EEEEEEE MM MM OOOOOOO ---------------------------------------------------------------- DATE: MONDAY, OCTOBER 11, 1982 FROM: Allen Watson TO: 11/70 programmers SUBJECT: EDT macro for inserting VT100 mode commands ---------------------------------------------------------------- I have created an EDT macro for people who would like to insert mode control sequences into command files for fancy typeout but don't quite know how, or, like me, can't be bothered sometimes to look up the exact VT100 escape sequences for doing so. The macro is stored in [1,5]MODES.EDT. If you simply copy it into your EDTINI.EDT file it will do the following: 1. Set up five buffers containing the escape sequences for altering the VT100 display mode. These buffers are called: 1. OF -- turns extra display modes off (back to normal). 2. BO -- turn on the bold display attribute. 3. UN -- turn on the underscore display attribute. 4. BL -- turn on the blink display attribute. 5. RE -- turn on the reverse display attribute. Only the REverse and OFf sequences work on VT100's without advanced video, but almost all our terminals have advanced video. One exception is the computer room VT100. 2. Set up CNTL/M as a macro that will prompt you for a mode. When you hit CNTL/M you are asked to enter "Mode: ". You enter one of the two character buffer names above. For example, to insert the escape sequence for bold, type CNTL/M and when prompted, type "BO" and then ENTER. The correct sequence will be inserted at the cursor. Remember that once an attribute is set on, it stays on for all output to the terminal, even if the command file exits, so be sure to do CNTL/M OF at the end of your command file. Modes may be combined by simply using CNTL/M twice: e.g. bold blink, bold reverse, blink reverse, etc.