Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QWIKC20 & Multi-Level Virtual Windows - <b>attributes</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  ATTRIBUTES

  attr - Use the convenient attribute macros for the foreground and
  background colors supplied in the header file, for example:

    qwrite( 1, 1, WHITE+BLUE_BG, "My String" );

  will write the text with white on blue attributes.  The foreground macros
  are duplicates of those in conio.h:

    BLACK         0x00       DARKGRAY      0x08
    BLUE          0x01       LIGHTBLUE     0x09
    GREEN         0x02       LIGHTGREEN    0x0A
    CYAN          0x03       LIGHTCYAN     0x0B
    RED           0x04       LIGHTRED      0x0C
    MAGENTA       0x05       LIGHTMAGENTA  0x0D
    BROWN         0x06       YELLOW        0x0E
    LIGHTGRAY     0x07       WHITE         0x0F
    BLINK         0x80

  For convenience, background color macros were included so that the
  foreground and background macros could be added for the complete attribute.

    BLACK_BG     0x00
    BLUE_BG      0x10
    GREEN_BG     0x20
    CYAN_BG      0x30
    RED_BG       0x40
    MAGENTA_BG   0x50
    BROWN_BG     0x60
    LIGHTGRAY_BG 0x70
    SAMEATTR     -1

  SAMEATTR - A powerful and unique feature of all QWIKC routines is the use
  of the macro SAMEATTR.  If SAMEATTR, or a negative value, is used as an
  attribute, the routine will suppress any changes to the attributes and use
  what is currently on the screen.

  3270 PC Attributes - Be aware that the 3270 PC ignores the foreground
  intensity bit, so there are only 8 colors.  In addition, 4 colors have
  different tints:

    PC Color     3270 PC Color
    ------------ -------------
    Cyan         Turquoise
    Magenta      Pink
    Brown        Yellow
    Light Gray   White


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson