PlumbCommandImpl.mesa
Copyright Ó 1990, 1992 by Xerox Corporation. All rights reserved.
Norman Adams, March 13, 1990 3:22 pm PST.
PlumbCommandImpl:
CEDAR
PROGRAM
IMPORTS
Commander, PlumbCommandsCommon
~ {
PlumbCommandProc: Commander.CommandProc ~ {
PROC [cmd: Handle] RETURNS [result: REF ← NIL, msg: ROPE ← NIL]
RETURN PlumbCommandsCommon.PlumbAndTermCommand[ cmd, FALSE];
};
Commander.Register[
key: "Plumb",
proc: PlumbCommandProc,
doc: "run a Unix process with standard streams connected to a typescript
-E => exec the command,
-T => pass -t tty and -p pty arguments to command,
-W => wait for the command to complete,
-term name => use a terminal emulator for the named device,
&rest => command to hand to a shell (default: LocalShell)."];
}.