set [, visual=visual] [, /set, /reset, /showalloc,
/whitebackground, /ulimcoords, /allowpromts, /xsynchronize,
Modifies the default behavior of various commands and aspects of LUX. By default, binary keyword selections are added to those already in place. The binary keywords are:
Clear all previous specifications and set only the specified selections.
Reset the specified selections so they are no longer active.
[debug] Display information about allocation and freeing of memory.
Make white rather than black the default window background, and
black rather than white the default line color. This setting has effect
only when opening a new window with
tv or one of
Count image placement coordinates from the upper left-hand corner rather than the lower left-hand corner.
When set, images are displayed with image element (0,0) in the upper left-hand corner rather than the lower left-hand corner. This reversed display is the native format of the x window system, so it may (slightly) speed up display of images.
When this is set, the user can enter one of the valid LUX prompts at the very start of an input line and such prompts will be ignored. This is convenient for entering a set of lines using cut-and-paste with the mouse pointer.
[x11] When set, internal x window commands are executed in the exact
order in which they are encountered, so that error messages (if any) are
displayed right when the LUX command that generates them is being
executed. When reset, and by default, x window commands are executed in
the most efficient order, which generally yields faster execution than
with synchronization, but may result in error messages appearing when
much later LUX commands are already being executed. Synchronization is
useful to find out exactly which LUX command generates a particular
x error message.
When set, instructs the parser to not issue warnings at all when
encountering patently unbalanced parentheses, square brackets, or
quotes, mimicking LUX 1, and to issue only bare-bones messages
associated with other parser errors. Ordinarily, unbalanced items and
other syntax errors yield full-scale error messages. Note: Before
version 3.2.19, a key
/parsewarn with the opposite meaning to
/parsesilent was used instead. With the key, the default
behavior has also switched, to full warnings and error messages.
[x11] When set, images are displayed by default
with the greatest integer zoom factor that allows them to fit in the
window, similar to
visual is specified, then its
string value specifies the visual class you wish to use for the output
of graphics, such as images and plots. There are six different visual
classes, which differ in whether they support color or only grayscale,
dynamic (changeable) or static colors, and linked or independent primary
colors. Valid names for
visual come in three sets. Names
from the first set all have three characters, the first a
grayscale or a
c for color, the second a
s for static or a
d for dynamic, and the third an
l for linked or an
i for independent. The first set is:
cdi. Names from the second
set are the x window designations for these visual classes. They are,
given in the same order as for the first set:
DirectColor. Names from the third set
consist of the capital letters from the corresponding names of the
second set, i.e.,
dc. Any one of these 18 names may be specified for
visual, and all characters may be specified in either lower
case or upper case.
There may be more than one visual for your screen of the class you specify. In that case, one is selected according to unspecified rules.
If a connection to the x server was already established (e.g., if you
already opened a LUX window), then a visual has already been selected.
It is an error to call
set if a visual is already active that
does not match
visual. If you wish to change to a
different visual class, then you must first explicitly close the current
connection to the x server (using
xclose), which will delete all
open graphical LUX windows.
See also: xport, setforeground, setbackground, trace, step, tv, xclose, xopen