Next: Wordstar Emulation Up: Emulating Other Editors Previous: Emacs Emulation Contents

## EDT Emulation

For EDT emulation, `edt.sl` must be loaded. This is accomplished by ensuring that the line

          evalfile ("edt"); pop ();

is in present in the `jed.rc` (`.jedrc`) Startup File. jed is distributed with EDT emulation enabled on VMS and Unix systems but the above line is commented out in the `jed.rc` file on MS-DOS systems.

This emulation provides a near identical emulation of the EDT keypad key commands. In addition, the smaller keypad on the newer DEC terminals is also setup. It is possible to have both EDT and Emacs emulation at the same time. The only restriction is that `emacs.sl` must be loaded before `edt.sl` is loaded.

One minor difference between jed's EDT emulation and the real EDT concerns the CTRL-H key. EDT normally binds this to move the cursor to the beginning of the line. However, jed uses it as a help key. Nevertheless, it is possible to re-bind it. See the section on re-binding keys as well as the file `edt.sl` for hints. Alternatively, simply put

          unsetkey ("^H"); setkey ("bol", "^H");

in the `jed.rc` startup file after `edt.sl` is loaded. Keep in mind that the CTRL-H key will no longer function as a help key if this is done.

EDT emulation for PCs only work with the enhanced keyboard. When `edt.sl` is loaded, a variable `NUMLOCK_IS_GOLD` is set which instructs jed to interpret the Num-Lock key on the square numeric keypad to function as the EDT GOLD key. In fact, this keypad should behave exactly like the keypad on VTxxx terminals. The only other problem that remains concerns the + key on the PC keypad. This key occupies two VTxxx key positions, the minus and the comma (delete word and character) keys. Thus a decision had to be made about which key to emulate. I chose the + key to return the characters ESC O L which jed maps to the delete character function. This may be changed to the delete word function if you prefer. See the file `edt.sl` for details.

The GOLD-GOLD key combination toggles the keypad between application and numeric states. On the PC, this is not possible. Instead, the PC F1 key has been instructed to perform this task.

Next: Wordstar Emulation Up: Emulating Other Editors Previous: Emacs Emulation Contents