A Bit About EVE

Talk about commercial or opensource products that already exist for OpenVMS or may be available in the future.

Topic author
meyer_d
Newbie
Posts: 4
Joined: Tue Oct 31, 2023 10:18 pm
Reputation: 0
Status: Offline

A Bit About EVE

Post by meyer_d » Fri Nov 03, 2023 6:26 am

I wrote a short survival guide for the EVE editor. Fellow OpenVMS newbies may find it useful. Suggestions for improvement are welcome.

https://papa.sdf.org/cave/vms/a-bit-about-eve.html

UPDATE: I changed the URI.
Last edited by meyer_d on Sun Nov 05, 2023 9:50 am, edited 1 time in total.

User avatar

imiller
Master
Posts: 147
Joined: Fri Jun 28, 2019 8:45 am
Reputation: 0
Location: South Tyneside, UK
Status: Offline
Contact:

Re: A Bit About EVE

Post by imiller » Fri Nov 03, 2023 6:32 am

Ian Miller
[ personal opinion only. usual disclaimers apply. Do not taunt happy fun ball ].

User avatar

martinv
Master
Posts: 104
Joined: Fri Jun 14, 2019 11:05 pm
Reputation: 0
Location: Goslar, Germany
Status: Offline
Contact:

Re: A Bit About EVE

Post by martinv » Fri Nov 03, 2023 8:13 am

Open the EVE command line with DO (keypad -)
Historically, the DO key is located on F16. As the regular PC keyboard has only 12 function keys, it depends on your terminal emulation how F16 is mapped (common choices are Shift-F6, or Ctrl-F6).
There is something wrong with everything that is popular.
(Charles Fort)

User avatar

arne_v
Master
Posts: 347
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Offline
Contact:

Re: A Bit About EVE

Post by arne_v » Fri Nov 03, 2023 9:29 am

Note that EVE supports multiple keypads.

I assume the above describe the default EVE keypad.

SET KEYPAD EDT will switch to EDT keypad, which a lot of VM people are familar with.

SET KEYPAD WPS will switch to WPS keypad, which probably nobody knows (WPS was a DEC word processor from the 80's - ALLIN1).

It is also possible to setup ones own keypad. I use a total custom keypad design (no gold key!).
Arne
arne@vajhoej.dk
VMS user since 1986

User avatar

cct
Master
Posts: 127
Joined: Sat Aug 15, 2020 9:00 am
Reputation: 0
Location: Cambridge, UK
Status: Offline

Re: A Bit About EVE

Post by cct » Fri Nov 03, 2023 9:35 am

lt of the default key mapping is dependant on termnal type - including the (optional) keypad.

The default mapping for VT100 does have the full keypad, and maps DO to PF4, usually the KP -, and Help to PF2, usually the KP / key.

If you press the Help key you get a grhical display of the keypad, otherways DO (default PF4) the enter HELP KEY does the same.

Note there are subtle differences from the EDT layout and effect of some keys.

Chris
--
Chris

User avatar

arne_v
Master
Posts: 347
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Offline
Contact:

Re: A Bit About EVE

Post by arne_v » Fri Nov 03, 2023 9:57 am

And in case someone wonders about my keypad layout:

PF1: Exit.
PF2: Quit.
PF3: Goto top.
PF4: Goto bottom.

KP0: Undo delete.
KP1: Goto begin of line.
KP2: Goto middle of line.
KP3: Goto end of line.
KP4: Change forward/reverse direction.
KP5: Change insert/overstrike mode.
KP6: Change 80/132 character width.
KP7: Delete character.
KP8: Delete word.
KP9: Delete line.

Minus: Join lines.
Comma: Split lines.
Enter: Insert line.
Period: Goto next word.

F7: Spawn.
F8: Mark primarytarget.
F9: Goto mark primarytarget.
F10: Mark secondarytarget.
F11: Goto mark secondarytarget.
F12: Display two windows.
F13: Display one window.
F14: Change window.

Help: Activate help.
Do: Prompt for command line command.

F17: Delete to begin of line.
F18: Delete to end of line.
F19: Insert blank lines.
F20: Delete blank lines.
Arne
arne@vajhoej.dk
VMS user since 1986


Topic author
meyer_d
Newbie
Posts: 4
Joined: Tue Oct 31, 2023 10:18 pm
Reputation: 0
Status: Offline

Re: A Bit About EVE

Post by meyer_d » Sat Nov 04, 2023 5:05 am

Thanks for the suggestions.

I've changed the OpenVMS User's Manual reference to link to VSI's updated version, mentioned alternative mappings for the DO key, and clarified assumptions about the terminal emulator used.


jhamby
Contributor
Posts: 22
Joined: Wed Oct 04, 2023 8:59 pm
Reputation: 0
Status: Offline

Re: A Bit About EVE

Post by jhamby » Sat Nov 04, 2023 7:09 pm

This is a very useful resource, thanks for making it! I'm reminded of my first year in college, looking at a printed photocopied "getting started" guide to the EVE editor in the library lab of Wyse VT200-compatible terminals.

I hadn't really tested the keypad mapping until now, but PuTTY on Windows does a nice job. The top row of the number pad work like PF1 to PF4, so you can push "/" for help, and "-" for DO, and it looks fairly close to the VT200 layout. A real LK201-style keyboard has terminal functions where F1-F3 and F5 are on a PC keyboard, so the numbering of the top row goes from F6-F13, Help, Do, then F16-F19 immediately above PF1-PF4 at the top row of the numpad. So you do likely have to use Shift- or Ctrl- to get F11-F19.

As a long-time Vim user (RIP, Bram Moolenaar), I'm grateful that Vim's Git source compiles and runs quite nicely on VMS. So I use vim and its color syntax highlighting for most of my editing needs, but it's nice to learn more about EVE.

I know at least two interesting things about TPU. You can use it as a sort of quasi-Perl or awk to do automated editing of files. Some of the GNV ports have .TPU files that modify the upstream GNU code. Also, the Freeware CD archive has a version of the vi editor implemented in TPU. I think one of the GNV packages used to install it automatically. The default DCL command for "VI" in VMS is the CDA "DDIF" compound document format viewer, which I doubt anyone here has ever used. Or have you?

https://www.digiater.nl/openvms/freeware/v50/vitpu/

The DDIF viewer has probably been invoked accidentally 10000x more than it has been on purpose. The battle over compound document formats in the 1990s was COM/Microsoft vs. OpenDoc/Bento, and the first was vastly more popular, due to Microsoft Office. "DIGITAL Document Interchange Format" wasn't on anyone's mind. These days, the .zip archive format is the universal compound document interchange file format (used for .jar, .apk, ODF to name a few).
Last edited by jhamby on Sat Nov 04, 2023 7:14 pm, edited 1 time in total.

User avatar

arne_v
Master
Posts: 347
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Offline
Contact:

Re: A Bit About EVE

Post by arne_v » Sat Nov 04, 2023 7:30 pm

EVE and TPU are very powerful.

TPU is really a Pascal like programming language with some editor builtins.

So it is absolutely possible to code editing scripts in it. Not quite as powerful as Perl, but way more readable! :-)

Back in the 1990's there was an mail-list INFO-TPU dedicated to TPU and EVE.

You can find the source code for EVE in SYS$EXAMPLES:EVE$*.TPU (about 60000 lines of code).

EVE can actually be customized at 3 levels:

1) EVE$INIT logical pointing to a .EVE file with EVE commands

2) TPU$COMMAND logical pointing to a .TPU file with TPU code (for starters one can just put in ones EVE commands with underscore instead of space and a semicolon at end of line - but then one can start writing procedures with control structures and ...).

3) TPU$SECTION logical pointing to .TPU$SECTION file with "compiled code" / "binary dump of loaded code". You can either create one from standard + incremental modifications or create a complete one from scratch.
Arne
arne@vajhoej.dk
VMS user since 1986

User avatar

tomwade
Member
Posts: 6
Joined: Wed Jun 19, 2019 12:46 pm
Reputation: 0
Location: Dublin, Ireland
Status: Offline
Contact:

Re: A Bit About EVE

Post by tomwade » Mon Nov 06, 2023 9:06 am

I've long ago redefined the DO command in my EVE$INIT to CTRL/D, and the FIND command to CTRL/F. Not only are they easy to remember, but they work with any keyboard, and is actually quicker to reach with the fingers on the 'home' keys.

If I find myself on a customer site with a PC keyboard trying to edit their SYSTARTUP_VMS.COM, it takes only a moment to create an EVE$INIT.EVE with

Define Key = CTRL/F Find
Define Key = CTRL/D Do

I no longer miss the DO key.
Last edited by tomwade on Mon Nov 06, 2023 9:06 am, edited 1 time in total.
Tom Wade
tom dot wade at tomwade dot eu

Post Reply