Query Color Support (QsnQryColorSup) API


  Omissible Parameter Group:


  Returned Value:


  Default Public Authority: *USE

  Service Program: QSNAPI

  Threadsafe: No

The Query Color Support (QsnQryColorSup) API determines whether the current display device supports color or not.


Authorities and Locks

None.


Omissible Parameter Group

Color indication
OUTPUT; CHAR(1)

Whether the device supports color or not. This information will be set based on the results of the 5250 Query command, if the display supports it; otherwise, certain defaults are assumed. See Device Support for details. The possible values are:


Low-level environment handle
INPUT; BINARY(4)

The low-level environment that the operation applies to. If this parameter is omitted or given with a value of zero, the default low-level environment is used.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter. If this parameter is omitted, diagnostic and escape messages are issued to the application.


Returned Value

Color indication
OUTPUT; BINARY(4)

This API returns the value for the color indication parameter if successful, or -1 otherwise.


Error Messages



API introduced: V2R3

[ Back to top | Dynamic Screen Manager APIs | APIs by category ]