10.4. System-Dependent Graphics Information

This section describes factors affecting how graphics display on different hardware systems. You should read this information before you activate the graphical user interface.

10.4.1. Adjusting Input Focus

To enable the display, meshing, and listing interrupts to work correctly, you must set the input focus in the text window from which the program is executing. You can set the focus in either of two ways:

  • Position the mouse pointer within the text window. (Use this method only if the window manager sets the focus automatically.)

  • Place the mouse pointer on the text window and click the mouse button.

10.4.2. Displaying X11 Graphics Over Networks

You can display X11 graphics within the program over the network if the following conditions exist:

  • All computer systems have X11 software installed.

  • The program is linked with the X11 driver.

  • A /SHOW device type of x11 or x11c is used. (You can use either uppercase or lowercase characters to specify device types.)

  • The /etc/hosts file on the host machine contains the hostname and the IP address of the remote machine.

  • The environment variable DISPLAY is set to Hostname:0.0, where Hostname is either the host name or the IP address of the machine that will display the graphics.

For example, suppose that you want to run the program remotely from another Linux system for local display of X11 graphics on your workstation monitor. You would perform these steps:

  1. Open a window on your workstation and issue the following command to authorize remote hosts to access the display:

    /usr/bin/X11/xhost +
  2. Log onto a remote host (via Telnet, login, etc.). Type the following command or commands to tell the remote host to display X11 graphics on your workstation.

    C Shell:

    setenv DISPLAY Your_Workstation:0.0

    Bourne or Korn Shell:

    DISPLAY=Your_Workstation:0.0
    export DISPLAY

    Your_Workstation is either the host name of the IP address of your workstation.

  3. Execute the program and X11 graphics will be displayed on your workstation monitor:

    ansys242 -d x11 -g