GDDM-PGF V2R1.3 OPS User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF | BOOK


Coloring text

GDDM-PGF V2R1.3 OPS User's Guide
SC33-1776-00



Specify the color of text with the COLOR command:


          color red
          col red

Text is not limited to the seven colors valid for alphanumeric fields but can be written with any of the basic GDDM colors listed below.

All color values may be expressed either by number (-2 to 16), or by a valid, unique abbreviation of the English color name.

The full range of color values and their associated names looks as follows, with minimum abbreviations shown in uppercase:


    ___ Basic GDDM colors __________________________________________________ 
   |                                                                        |
   |                                                                        |
   | 1    Blue                                                              |
   |                                                                        |
   | 2    Red                                                               |
   |                                                                        |
   | 3    Pink or MAgenta                                                   |
   |                                                                        |
   | 4    Green                                                             |
   |                                                                        |
   | 5    Turquoise or Cyan                                                 |
   |                                                                        |
   | 6    Yellow                                                            |
   |                                                                        |
   | 7    White                                                             |
   |                                                                        |
   |                                                                        |
   | (for text and graphics also):                                          |
   |                                                                        |
   |                                                                        |
   |                                                                        |
   | -2   WW  (always white)                                                |
   |                                                                        |
   | -1   NN  (always black)                                                |
   |                                                                        |
   | 0    Default                                                           |
   |                                                                        |
   | 8    None or NEutral                                                   |
   |                                                                        |
   | 9    DArkblue                                                          |
   |                                                                        |
   | 10   Orange                                                            |
   |                                                                        |
   | 11   PUrple                                                            |
   |                                                                        |
   | 12   DARKGreen                                                         |
   |                                                                        |
   | 13   DARKTurqoise                                                      |
   |                                                                        |
   | 14   Mustard                                                           |
   |                                                                        |
   | 15   GRAy or GREY                                                      |
   |                                                                        |
   | 16   BRown                                                             |
   |                                                                        |
   |                                                                        |
   |________________________________________________________________________|


-2 (always white) appears white on a display, and white on a hardcopy. -1 (always black) is black on a display and black on a hardcopy. 0 (default) is green on a display, and black on a hardcopy.

The hue of values above 8 depends on the device. If the device supports only eight colors, which is true for all IBM plotters and displays except the PS/2 and 3270 PC (AT)/GX, the values 9 to 16 are mapped onto 1 to 8 by GDDM. The following scheme applies (where PS/2 also covers the GX):


       Color
      number
             
 Hue on PS/2
              
              
 Hue on
 non-PS/2
              
        6-pen
  plotter pen
       number
       8-pen
 plotter pen
      number
          -2  White  White          none         none
          -1  Black  Black             6            7
           0  Green  Green             6            8
           1  Blue  Blue             1            1
           2  Red  Red             2            2
           3  Pink  Pink             3            3
           4  Green  Green             4            4
           5  Turquoise  Turquoise             5            5
           6  Yellow  Yellow             6            6
           7  White  White             6            7
           8  None  None          None         None
           9  Dark blue  Blue             1            1
          10  Orange  Red             2            2
          11  Purple  Pink             3            3
          12  Dark green  Green             4            4
          13
             
 Dark
 Turquoise
 Turquoise
              
            5
              
           5
             
          14  Mustard  Yellow             6            6
          15  Gray  White             6            7
          16  Brown  Green             6            8


To get a graphic overview of available colors, type ? after COLOR:


          color ?

If the infile contains TRC control characters in column 2, you can define a color for up to four TRC-values using the COLOR command. The following example:


          color r g brown pu

makes text in lines with TRC-value 0 red, text in lines with TRC-value 1 green, and so on.

If you specify fewer colors than the number of TRC-values, the last color defined is used for the additional TRC-values. However, OPS will select unique colors for codes that do not have their own symbol set, so you can always distinguish the different TRC-coded lines, either because of the symbol set or because of the color.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012