Information Center

ANSI color attributes for VT Display sessions

The ANSI color attribute settings are listed under the heading ANSI Attributes on the left side of the Color (VT Display) configuration window.

Typically, you would not change the settings of these ANSI Attributes. The reason is that these ANSI Attributes do not affect the default colors with which Host On-Demand displays the text in the VT session window. (The default colors are controlled by the Normal selection under the Base Color heading.)

However, you would typically change the setting of one of these ANSI attributes under the following circumstances:

The ANSI color command sets either a foreground color or a background color for text. The list below shows the colors that can be set by the ANSI color command:

By default, if Host On-Demand receives an ANSI color command, it displays the foreground or background color of subsequent text using the color named in the command. For example, if the VT host application sends the ANSI color command "Set background color to White", then by default Host On-Demand uses white to display the text background. Similarly, if the VT host application sends the command "Set foreground color to Blue", then by default Host On-Demand uses blue to display text characters.

However, you can customize your Host On-Demand VT session to have Host On-Demand display a different color than the color named in the ANSI color command. To have Host On-Demand display a different color, follow these steps:

  1. Select Edit > Preferences > Color.
  2. In the Color (VT Display) configuration window, on the left side under ANSI Attributes, select the color of the ANSI color command. For example, if you want Host On-Demand to display Dark Turquoise as the foreground color when the VT host application sends "Set foreground color to Blue", then select Blue.
  3. Expand the drop-down list for the ANSI color command, either the Foreground color drop-down list or the Background color drop-down list. For example, for the ANSI color command "Set foreground color to blue", expand the Foreground color drop-down list.
  4. In the drop-down list, select the color that you want Host On-Demand to display when this ANSI color command is received. For example, if you want Host On-Demand to display Dark Turquoise as the foreground color when the VT host application sends "Set foreground color to Blue", then select Dark Turquoise in the drop-down list.

The standard replacement colors shown in the drop-down lists are:

If you prefer some other color, click the color icon at the right of the Foreground color drop-down list or the Background color drop-down list and select from a wide selection of colors, or create a custom color.

Remember that some VT hosts and applications do not send ANSI color commands. When you customize a VT session to display a custom color (such as Dark Turquoise) in response to an ANSI color command (such as "Set foreground color to Blue"), the color in your VT session window does not change unless and until the VT host application sends the appropriate ANSI color command.

Host On-Demand does not support the following options of the ANSI color command:

Related tasks

  • Understanding session colors
  • Using the host session default colors
  • Using custom colors with Java 2 browsers