|
|
Using the X Window System > Chapter 8 Using the X ClientsStarting Clients and Non-clients |
|
Programs can run as either background or foreground processes. In any X11 terminal window, you can run only one program as a foreground process, but you can run many programs as background processes. To run a program as a background process, add an ampersand (&) to the end of the command line that starts the program. The general syntax for the command line that starts a client is: client [-options] [&] An & at the end of the command line causes the client to start as a background process. Programs can be started:
Command-line options override all default files. If no options are specified, the client is started using resource values from the resource database, the client's app-defaults, or from defaults built into the client. Some toolkit options are common to most clients:
For a specific client's options, refer to the client's man page. Options have the syntax: - option argument For example, the following command line starts an hpterm window with a black background and white foreground:
The default display on which a client is displayed is obtained from the DISPLAY environment variable of the system on which the client starts. It sets the host, display number, and screen number to which the client directs its output. This is typically display 0, screen 0. Most clients have a -display option that lets you set the host, display number, and screen on which the client will display its output. The -display option has the syntax: -display [host:display.screen]
For example, executing the command:
starts an hpterm process on the local system and displays the window on display 0, screen 1 of the hpxhere system. The window has the default size, location, and color. |
|