Resources can be changed or specified in several ways (listed in
order of preference):
Style Manager.
You can use Style Manager to change resources interactively.
This is the easiest method provided the resource is covered by Style Manager.
EditResources action.
The EditResources action lets you add, change, or delete current
resources using a text editor, or make a backup file of the current
resources.
xrdb client.
You can use the xrdb client to load or merge new resources into the
current resources.
You can add resources individually, or from a resource file.
This method allows you to easily add resources,
but you must create an intermediate resource file if you want to change
or delete a resource.
 |
 |  |
 |
 | NOTE:
Unless you are familiar with xrdb or need some special xrdb option,
use the EditResources
action instead.
|
 |
 |  |
 |
Command-line options.
This method is the most specific, and allows you to start an application with
exactly the resources you want, without affecting other versions of that
application you might be running. (Refer to
“Specifying resources in a command line” for more information.)
To change resources with Style Manager |
 |
Click on the Style Manager control in the front panel.
Click on the Style Manager component you want to change.
Make and save the changes as directed in the component's dialog box.
Close the Style Manager component window.
Exit Style Manager.
The Style Manager can be used to change resources if the resource in
question is one that Style Manager handles. Not all features handled by
Style Manager involve resources.
Additionally, there is usually a larger range of resources for a
particular feature than are managed with Style Manager (for instance,
Fonts). However, Style Manager does handle the most popular customization
features.
The writeXrdbImmediate resource determines when new values for
color, fonts, and mouse double-click speed are available.
The default value is True.
- Value
Description
- True
Changes you make using Style Manager take effect
in HP VUE windows and cooperating
clients immediately if possible,
or the next time the client is started.
This is the default value.
- False
The changes take effect at the beginning of the
next session.
If the value is False, you do not see the font or click-speed
changes you make during your current session, even if you start new
applications during the session.
To set resources using the EditResources action |
 |
Double-click EditResources in the System_Admin subdirectory of the
General Toolbox.
(In HP VUE Lite, execute vueaction EditResources.)
A list of your resources is loaded into a text file.
The editor used is the one specified in your EDITOR enviroment variable.
If you use an editor that opens its own window, you will see an extra
terminal window. Ignore it or close it. It will disappear when you
close the editor window.
Edit the file. You can add, edit, or remove resources from the file.
Store the edited file.
Close the editor window.
Depending on the kind of resource you set, restart the client, restart
Workspace Manager, or restart your session.
The EditResources action uses the xrdb client to store the current
resources in a temporary file for editing, then to load that file
back into the RESOURCE_MANAGER property.
If you want to change the editor used to edit the temporary file, either:
Change the EDITOR environment variable. This is the preferred method.
Change the EditResources action.
See Also.
To create a backup resource file |
 |
EditResoureces action.
Use the EditResources action to display your current resources in an editor
window.
Use the feature of your editor which allows you to save the contents under
a different name.
xrdb.
Issue the following command to create a file containing the current
resources:
To add resources using xrdb |
 |
Interactively .
Execute
Type in resource names and values. Each resource must be on a separate line.
When you've entered all the resources, press CTRL d twice.
*Depending on the kind of resource you set, restart the client, restart Workspace Manager, or restart your session.
Resource file.
Create a temporary file containing your new resources.
Execute
xrdb -merge -nocpp filename
|
*Depending on the kind of resource you set, restart the client, restart Workspace Manager, or restart your session.
The -merge option indicates that the resources in the file will be added to the current resources.
Example.
This example shows three resources commonly set by users. The first line indicates that scrollbars should appear on all hpterm windows. The second line sets "tty modes" to override the default terminal settings. The third line establishes four workspaces, named Home, Mail, Sheets, and Edit.
hpterm*scrollBar: True
*ttyModes: erase ^H intr ^C kill ^U start ^Q stop ^S swtch ^@
Vuewm*workspaceList: Home Mail Sheets Edit
|
See Also.
“Syntax of resource specifications” has information about how to specify resources.
Using the X Window System has information about the xrdb client.
The xrdb man page explains all the options for xrdb.
To replace current resources using xrdb |
 |
Create a temporary file containing the current resources:
Edit filename.
Execute
*Depending on the kind of resource you set, restart the client, restart
Workspace Manager, or restart your session.
The resource values in the file replace the existing current resources.
xrdb -nocpp filename is the same as xrdb -load -nocpp filename.
-load is the default option, and directs xrdb to replace the
current resources (-merge directs xrdb to add the new resources to
the current ones).
Example. This example loads a backup file named myresources, overwriting the current resources.
See Also.
Using the X Window System has information about the xrdb client.
The xrdb man page explains all the options.
To delete resources |
 |
Use the EditResources action to remove the resource from the list.
*Depending on the kind of resource you set, restart the client, restart Workspace Manager, or restart your session.
When a resource is "deleted", it is removed from the Resource_Manager property.