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