DWRITE(1)DWRITE(1)NAMEdwrite - write to the defaults database
SYNOPSISdwrite
dwrite owner name value
dwrite-g name value
DESCRIPTIONdwrite writes a variable and its value into the user's defaults
database. If no command-line arguments are given, the standard input
(see csh(1)) is read.
owner is the application associated with the variable name. value
becomes the value of the variable name. If -g is specified, the value
of the variable holds for all applications that access the variable via
NXGetDefaultValue(). It is a global backdrop variable.
There are two ways a default value for a variable can be set, and one
way a default value can be overridden. From lowest precedence to
highest precedence, these are:
The default value may be set with the -g flag.
The default value may be set for a particular application.
The default value may be overridden by a command line option.
For example, the following command would make Courier the default value
of the NXFont variable in all applications that don't have their own
application-specific default value:
dwrite-g NXFont Courier
If an application-specific default value is not found in the database,
this global default value is used (assuming, of course, that the
application checks for the value of this variable). So Edit, as well
as other applications, would start to use Courier font by default. The
following command would cause Edit to override the global value for the
Font variable and use Helvetica instead:
dwrite Edit NXFont Helvetica
Other applications that access the NXFont variable would continue to
use Courier.
To override either the global or application-specific default value for
a single session, specify a value for the appropriate command-line
option when launching the application. For example:
Edit -NXFont Courier
The owner, name, and value fields output by dread are separated by
spaces, so that those values can be used as input to dwrite. For
example:
dread -l | sed s/Ohlfs/Helvetica/ | dwriteSEE ALSOdread(1), dremove(1), csh(1)NeXT Computer, Inc. February 28, 1989 DWRITE(1)