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
Common Desktop Environment: Advanced User's and System Administrator's Guide > Chapter 10 Creating Actions Manually

Windowing Support and Terminal Emulators for COMMAND Actions

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

There are several ways that COMMAND actions support windows on the desktop.

  • If the application has its own window, the action can be written to provide no additional window support. This option is also used when an action runs a command that requires no direct user input and has no output.

  • If the application must run in a terminal emulator window, the action can be written to open a window and then run the application. There are several terminal options.

Specifying the Window Support for the Action

Use the WINDOW_TYPE field to specify the type of windowing support required by the action.

WINDOW_TYPE

Windowing Support Provided

NO_STDIO

None. Use NO_STDIO if the application has its own window, or if the command has no visible output.

PERM_TERMINAL

Permanent terminal emulator window. The action opens a terminal window that remains open until the user explicitly closes it. The user can enter data into the window. Use with commands that take some input, produce some output, then terminate (for example, ls directory).

TERMINAL

Temporary terminal emulator window. The action opens a terminal window that closes as soon as the command is completed. Use with full-screen commands (for example, vi).

Specifying Command-Line Options for the Terminal Emulator

Use the TERM_OPTS field in the action definition to specify command-line options for the terminal emulator.

For example, the following action prompts for the execution host:

ACTION OpenTermOnSystemUserChooses
{
WINDOW_TYPE PERM_TERMINAL
EXEC_HOST %(String)"Remote terminal on:"%
TERM_OPTS -title %(String)"Window title:"%
EXEC_STRING $SHELL
}

Specifying a Different Default Terminal Emulator

The default terminal emulator used by actions is dtterm. You can change this to another terminal emulator. The default terminal emulator is used when the action does not explicitly specify a terminal emulator to use.

The terminal emulator used by actions must have these command-line options:

  • -title window_title

  • -e command

Two resources determine the default terminal emulator used by actions:

  • The localTerminal resource specifies the terminal emulator used by local applications.

    *localTerminal:    terminal

    For example:

    *localTerminal: xterm

  • The remoteTerminal resource specifies the terminal emulator used by remote applications.

    *remoteTerminal:   host:terminal [,host:terminal...]

    For example:

    *remoteTerminal: sysibm1:/usr/bin/xterm,syshp2:/usr/bin/yterm
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.