Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Using Your HP Workstation > Chapter 12 Customizing Your System

Setting Personal Resources for an Application

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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

  1. Choose the Style Manager control in the front panel.

  2. Choose the Style Manager component you want to change.

  3. Make and save the changes as directed in the component's dialog box.

  4. Close the Style Manager component window.

  5. 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

  1. Choose the arrow above the Tools control on the Front Panel. The Tools subpanel appears.

    Figure 12-18  Tools Subpanel

    Tools Subpanel
  2. Choose General in the Tools subpanel to open the General Toolbox.

    Figure 12-19  General Toolbox

    General Toolbox
  3. Double-click the System_Admin icon to open the system administration tools.

  4. 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.

  5. Edit the file. You can add, edit, or remove resources.

  6. Store the edited file.

  7. Close the editor window.

  8. 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. 

  1. Use the EditResources action to display your current resources in an editor window.

  2. 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 . 

  1. Execute

       xrdb -merge -nocpp Enter
    

  2. Type in resource names and values. Each resource must be on a separate line.

  3. When you have entered all the resources, press CTRL d twice.

  4. Choose Restart Workspace Manager from the Workspace menu.

Resource file. 

  1. Create a temporary file containing your new resources.

  2. Execute

       xrdb -merge -nocpp filename Enter
    

  3. 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

  1. Create a temporary file containing the current resources:

       xrdb -edit filename Enter
    

  2. Edit filename.

  3. Execute

       xrdb -nocpp filename Enter
    

  4. 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

  1. Use the EditResources action to remove the resource from the list.

  2. Choose Restart Workspace Manager from the Workspace menu.

When a resource is "deleted", it is removed from the Resource_Manager property.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© © 1983-1995 Hewlett-Packard Development Company, L.P.