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.
Changing Resources with Style Manager |
 |
Choose the Style Manager control in the front panel.
Choose 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).
The writeXrdbImmediate resource determines when new values for
color, fonts, and mouse double-click speed are available.
The default value is True.
- 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.
Setting Resources Using the EditResources Action |
 |
Choose the arrow above the Tools control on the Front Panel. The Tools
subpanel appears.
Choose General in the Tools subpanel to open the General Toolbox.
Double-click the System_Admin icon to open the system administration
tools.
Double-click EditResources in the system administration 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 environment 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.
Store the edited file.
Close the editor window.
Restart Workspace Manager.
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:
Creating a Backup Resource File |
 |
It's a good idea to have a backup of your resource file. You can do this
with the EditResources action or by using xrdb.
EditResources action.
Use the EditResources action to display your current resources in an editor
window.
Use the feature of your editor that allows you to save the contents under
a different name.
xrdb .
Execute the following command to create a file containing the current
resources:
xrdb -edit filename Enter
|
Adding Resources Using xrdb |
 |
Interactively .
Execute
Type in resource names and values. Each resource must be on a separate
line.
When you have entered all the resources, press
CTRL d twice.
Choose Restart Workspace Manager from the Workspace menu.
Resource file.
Create a temporary file containing your new resources.
Execute
xrdb -merge -nocpp filename Enter
|
Choose Restart Workspace Manager from the Workspace menu.
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 scroll bars 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
|
For more information, see:
Using the X Window System for information on how to specify resources
and the xrdb client.
The xrdb(1) man page for explanations of all the options for xrdb.
Replacing Current Resources Using xrdb |
 |
Create a temporary file containing the current resources:
xrdb -edit filename Enter
|
Edit filename.
Execute
xrdb -nocpp filename Enter
|
Choose Restart Workspace Manager from the Workspace menu.
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.
xrdb -nocpp myresources Enter
|
For more information, see:
Using the X Window System for information about the xrdb client.
The xrdb(1) man page for explanations of all the options for xrdb.
Deleting Resources |
 |
Use the EditResources action to remove the resource from the list.
Choose Restart Workspace Manager from the Workspace menu.
When a resource is "deleted", it is removed from the Resource_Manager
property.