home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / oclsrc15.zip / OCL / Include / OVioHlp.h < prev    next >
C/C++ Source or Header  |  1996-08-12  |  4KB  |  127 lines

  1. /*
  2.  OCL - OS/2 Class Library
  3.  (c) Cubus 1995
  4.  All Rights Reserved
  5.  OVioHlp.h
  6. */
  7.  
  8. /*
  9.  * Redistribution and use in source and binary forms, with or without
  10.  * modification, are permitted provided that the following conditions
  11.  * are met:
  12.  * 1. Redistributions of source code must retain the above copyright
  13.  *    notice, this list of conditions and the following disclaimer.
  14.  * 2. Neither the name Cubus nor the name Team OCL may be used to
  15.  *    endorse or promote products derived from this software
  16.  *    without specific prior written permission.
  17.  * 3. See OCL.INF for a detailed copyright notice.
  18.  *
  19.  *              THIS SOFTWARE IS PROVIDED ``AS IS'' AND
  20.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  22.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  23.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  24.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  25.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  26.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  27.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  28.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  29.  * SUCH DAMAGE.
  30.  */
  31.  
  32.  
  33. /* $Header: W:/Projects/OCL/Include/rcs/OVioHlp.h 1.50 1996/08/11 23:47:35 B.STEIN Release $ */
  34.  
  35. #ifndef OVIOHLP_INCLUDED
  36.   #define OVIOHLP_INCLUDED
  37.  
  38. #define UP                   1
  39. #define LEFT                 2
  40. #define DOWN                 3
  41. #define RIGHT                4
  42. #define GOBBLE               5
  43. #define ZIG_UP               6
  44. #define BOX                  7
  45. #define ZIG_DOWN             8
  46.  
  47. #define WM_BLACK             0x00
  48. #define WM_BLUE              0x01
  49. #define WM_GREEN             0x02
  50. #define WM_CYAN              0x03
  51. #define WM_RED               0x04
  52. #define WM_MAGENTA           0x05
  53. #define WM_BROWN             0x06
  54. #define WM_PALEGREY          0x07
  55. #define WM_DKGREY            0x08
  56. #define WM_LBLUE             0x09
  57. #define WM_LGREEN            0x0A
  58. #define WM_LCYAN             0x0B
  59. #define WM_LRED              0x0C
  60. #define WM_LMAGENTA          0x0D
  61. #define WM_YELLOW            0x0E
  62. #define WM_WHITE             0x0F
  63. #define WM_MAX_COLOR         0X0F
  64.  
  65. #define MKATRB(a,b )     ((BYTE) (a << 4 ) + b )
  66.  
  67.  
  68. /* ANSI */
  69.  
  70. #define ESC "\x01B"
  71.  
  72. #define ANSI_NORMAL            "\x01B[0m"
  73. #define ANSI_HIGHINTENS        "\x01B[1m"
  74. #define ANSI_NORMINTENS        "\x01B[2m"
  75. #define ANSI_UNDERLINE         "\x01B[4m"
  76. #define ANSI_BLINKING          "\x01B[5m"
  77. #define ANSI_REVERSE           "\x01B[7m"
  78. #define ANSI_INVISIBLE         "\x01B[8m"
  79.  
  80.  
  81. /* Foreground */
  82.  
  83. #define ANSI_FORE_BLACK        "\x01B[30m"
  84. #define ANSI_FORE_RED          "\x01B[31m"
  85. #define ANSI_FORE_GREEN        "\x01B[32m"
  86. #define ANSI_FORE_YELLOW       "\x01B[33m"
  87. #define ANSI_FORE_BLUE         "\x01B[34m"
  88. #define ANSI_FORE_MAGENTA      "\x01B[35m"
  89. #define ANSI_FORE_CYAN         "\x01B[36m"
  90. #define ANSI_FORE_WHITE        "\x01B[37m"
  91.  
  92. /* highintens */
  93.  
  94. #define ANSI_FORE_LRED        "\x01B[1m\x01B[31m"
  95. #define ANSI_FORE_LGREEN      "\x01B[1m\x01B[32m"
  96. #define ANSI_FORE_LYELLOW     "\x01B[1m\x01B[33m"
  97. #define ANSI_FORE_LBLUE       "\x01B[1m\x01B[34m"
  98. #define ANSI_FORE_LMAGENTA    "\x01B[1m\x01B[35m"
  99. #define ANSI_FORE_LCYAN       "\x01B[1m\x01B[36m"
  100. #define ANSI_FORE_LWHITE      "\x01B[1m\x01B[37m"
  101.  
  102. /* Background */
  103.  
  104. #define ANSI_BACK_BLACK        "\x01B[40m"
  105. #define ANSI_BACK_RED          "\x01B[41m"
  106. #define ANSI_BACK_GREEN        "\x01B[42m"
  107. #define ANSI_BACK_YELLOW       "\x01B[43m"
  108. #define ANSI_BACK_BLUE         "\x01B[44m"
  109. #define ANSI_BACK_MAGENTA      "\x01B[45m"
  110. #define ANSI_BACK_CYAN         "\x01B[46m"
  111. #define ANSI_BACK_WHITE        "\x01B[47m"
  112.  
  113. /* highintens */
  114.  
  115. #define ANSI_BACK_LRED        "\x01B[1m\x01B[41m"
  116. #define ANSI_BACK_LGREEN      "\x01B[1m\x01B[42m"
  117. #define ANSI_BACK_LYELLOW     "\x01B[1m\x01B[43m"
  118. #define ANSI_BACK_LBLUE       "\x01B[1m\x01B[44m"
  119. #define ANSI_BACK_LMAGENTA    "\x01B[1m\x01B[45m"
  120. #define ANSI_BACK_LCYAN       "\x01B[1m\x01B[46m"
  121. #define ANSI_BACK_LWHITE      "\x01B[1m\x01B[47m"
  122.  
  123.  
  124. /* end of source */
  125.  
  126. #endif /* OVIOHLP_INCLUDED */
  127.