Up: GEOS SDK TechDocs | Up | Prev: addr-parse ... | Next: assign ...

alias

alias [<name> [<body>]]

Examples:

"alias p print"
Execute "print" when the user types the command "p". Any arguments to "p" get passed to "print" in the order they were given.
"alias while {for {} $1 {} $2}"
Executes an appropriate "for" loop when the "while" command is executed with its two arguments: a test expression and a body of commands to execute.
"alias"
Prints all the defined aliases.
"alias while"
Prints what the "while" command is aliased to.

This is a short-cut to allow you to make commands you commonly type easier to use, and to define simple new commands quickly.

See Also: unalias.

alignFields

var alignFields [(0|1)]

Examples:

"var alignFields 1"
Sets the "print" command to align the values for all the fields of a given structure.

Determines whether structure-field values follow immediately after the field name or if all values are indented to the same level. The "print" command and other display commands use this variable when formatting their output.

See Also: print.

antifreeze

antifreeze <patient>
antifreeze :<n>
antifreeze <patient>:<n>
antifreeze <id>

Examples:

"antifreeze term"
Promotes the application thread for "term" to be the "most-runnable"
"antifreeze :1"
Does likewise for thread #1 of the current patient
"antifreeze 16c0h"
Does likewise the thread whose handle is 16c0h
"antifreeze"
Promotes the current thread to be the "most-runnable."

See Also: freeze.

antithaw

antithaw <patient>
antithaw :<n>
antithaw <patient>:<n>
antithaw <id>

Examples:

"antithaw term"
Allows the application thread for "term" to run normally.
"antithaw :1"
Allows thread #1 of the current patient to run normally.
"antithaw 16c0h"
Allow the thread whose handle is 16c0h to run normally.

See Also: thaw.

appobj

   appobj [<patient>]

Examples:

"pobj [appobj draw]"
prints the GenApplication object for draw.
"pobj [appobj]"
prints the GenApplication object for the current application (equivalent to "pobj -a").

Returns the address of the GenApplication object for the given patient, or the current one if you give no patient.

See Also: impliedgrab.

apropos

apropos [<string>]

Examples:

"apropos vis"
Find all commands related to vis
"apropos text"
Find all commands related to text

Search the list of commands and command help for all entries containing <string>. Lists each command and its synopsis.

<string> may actually be a pattern, as described in the help for the "string" command (under "string match"). It automatically has a leading and following * tacked onto it to cause it to match anywhere within a help string.

See Also: help.

aset

aset <array-name> <index> <value>

Examples:

"aset foo $i $n"
Sets the $i'th element (counting from zero) of the value stored in the variable foo to $n.

Allows you to treat a list stored in a variable as an array, setting arbitrary elements of that array to arbitrary values.

See Also: index.

assoc

assoc <list> <key>

Examples:

"assoc $classes GenPrimaryClass"
Examines the sublists of $classes and returns the first one whose first element is the string GenPrimaryClass.

Searches an associative list to find an element with a particular key. The list is itself made up of lists, each of whose first element is a key.

See Also: car, cdr, range, list, delassoc.


Up: GEOS SDK TechDocs | Up | Prev: addr-parse ... | Next: assign ...