PCedarCmdProc: PCRCmdGlue.CommandLineProc
-- [cmdLine, putProc, data] RETURNS [result] -- ~ {
cmdLineRope, outRope: Rope.ROPE;
outString: CString;
cmdLineRope ¬ UXStrings.ToRope[cmdLine];
[outRope, result] ¬ CommanderOps.DoCommandRope[cmdLineRope, NIL, NIL];
outString ¬ UXStrings.Create[outRope];
putProc[outString, Rope.Length[outRope]];
};
RegisterPCedarCmdWithPCR:
PROC ~ {
[] ¬ PCRCmdGlue.RegisterWithPCRCommandLoop[PCedarCmdProc, NIL, UXStrings.Create["PCedarCmd"], UXStrings.Create[""], UXStrings.Create["pcedar-command -- execute pcedar-command in a PCedar Commander"]];
};