Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 26 |
Nodes: | 6 (0 / 6) |
Uptime: | 63:28:50 |
Calls: | 633 |
Calls today: | 1 |
Files: | 1,188 |
D/L today: |
32 files (20,076K bytes) |
Messages: | 182,120 |
Digging into EVE and DECTPU I've found that you can use the EVE @
command to run a sequence of EVE commands stored in an .EVE file, and
the TPU command to run a TPU procedure defined in a .TPU file. You can
use DEFINE KEY to invoke a "@ ..." or "TPU ..." command with a
keystroke.
Is there a way to define a custom EVE command that can be invoked
directly from the DO prompt without prefixing "@" or "TPU"?
On 9/20/2025 9:15 AM, David Meyer wrote:
Digging into EVE and DECTPU I've found that you can use the EVE @
command to run a sequence of EVE commands stored in an .EVE file, and
the TPU command to run a TPU procedure defined in a .TPU file. You can
use DEFINE KEY to invoke a "@ ..." or "TPU ..." command with a
keystroke.
Is there a way to define a custom EVE command that can be invoked
directly from the DO prompt without prefixing "@" or "TPU"?
You can define EVE commands in your TPU$COMMAND file.
Example:
procedure eve_foo_bar
-a-a-a message("Hi from eve_foo_bar!");
endprocedure;
!
procedure eve_count(n)
-a-a-a local
-a-a-a-a-a-a-a msg, i;
-a-a-a msg := "Counting:";
-a-a-a i := 1;
-a-a-a loop
-a-a-a-a-a-a-a exitif i > int(n);
-a-a-a-a-a-a-a msg := msg + " " + str(i);
-a-a-a-a-a-a-a i := i + 1;
-a-a-a endloop;
-a-a-a message(msg);
endprocedure;
DO + foo bar
DO + count 3
(the examples only output a message, but they can obviously do anything)
Disclaimer: they seem to work, but I am a bit rusty in TPU - I have done
very little TPU in this century.