up | Inhaltsverzeichniss | Kommentar

Manual page for DWRITE(1)

dwrite - write to the defaults database

SYNOPSIS

dwrite
dwrite owner name value
dwrite -g name value

DESCRIPTION

dwrite 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/ | dwrite

SEE ALSO

dread(1), dremove(1), csh(1)


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97