-- SetPropertyDoc.tioga
-- This file same as SetProcessPropertyDoc.tioga
-- last edited by: L. Stewart, December 12, 1983 5:21 pm
name SetProperty:, SetProcessProperty:
syntax
SetProperty key value
SetProcessProperty key value
If key is of the form $key then it is interpreted as the name of an ATOM, otherwise it is interpreted as a rope. Commander.PutProperty is used, so ropes match bases on contents.
Values are always ropes, with the exception that the value NIL is interpreted as NIL. SetProperty key NIL essentially clears that property altogether.
description
These commands will set the values of properties on the commander or process properties lists.
examples
% SetProperty $Prompt "Hello "
Hello SetProperty $Prompt "%% "
%
You are probably wondering why "%% " is used above. The CommandTool uses ReadEvalPrint to manage user interaction, ReadEvalPrint uses IO.PutF to print prompts, and % is a special character to PutF. . .
% SetProperty $Prompt "% "
#####SetProperty $Prompt "%% "
%
Where ##### is the default PutF reaction to a malformed format string.
% SetProcessProperty $WorkingDirectory ///Wierd/
% PrintWorkingDirectory
///Wierd/
%
This is an effective way to change your working directory, but the ChangeWorkingDirectory or CD commands are more sensible.
warnings
Many properties are not Rope.ROPEs, so setting them to some rope value is likely to produce unusual results, such as an uncaught signal.
stop/undo
Probably too fast to stop.
implementation
InitialCommandsImpl.mesa in CommandTool.df
contact
L. C. Stewart <Stewart.pa>
keyword hints
help button info man
keywords
to be supplied by the Index Czar