ReadRope:
PUBLIC
PROC [prompt: Rope.
ROPE]
RETURNS [stop:
BOOL] ~ {
Read a rope from TerminalIO. If it is quit then set stop = TRUE
lastRope ¬ TerminalIO.RequestRope[prompt];
stop ¬ FALSE;
IF Rope.Equal[lastRope, "quit", FALSE] THEN stop ¬ TRUE;
IF Rope.Equal[lastRope, "cf",
FALSE]
THEN {
IF TerminalIO.Confirm["Press Here", "This Selection returns TRUE", 0, TRUE] THEN
TerminalIO.PutRope["Confirm TRUE \n"]
ELSE TerminalIO.PutRope["Confirm FALSE \n"];
};
};