You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

176 lines
4.7 KiB

  1. /*
  2. * libcaca Colour ASCII-Art library
  3. * Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
  4. * All Rights Reserved
  5. *
  6. * $Id$
  7. *
  8. * This library is free software. It comes without any warranty, to
  9. * the extent permitted by applicable law. You can redistribute it
  10. * and/or modify it under the terms of the Do What The Fuck You Want
  11. * To Public License, Version 2, as published by Sam Hocevar. See
  12. * http://sam.zoy.org/wtfpl/COPYING for more details.
  13. */
  14. /*
  15. * This header contains a conio.h reimplementation.
  16. */
  17. #ifndef __CACA_CONIO_H__
  18. #define __CACA_CONIO_H__
  19. /* Since we're going to redefine standard functions, include these
  20. * headers first to avoid errors upon later inclusion. */
  21. #if !defined(__KERNEL__)
  22. # include <stdio.h>
  23. #endif
  24. #include <caca.h>
  25. #if !defined _DOXYGEN_SKIP_ME && !defined __LIBCACA__
  26. # undef BLINK
  27. # define BLINK CACA_CONIO_BLINK
  28. # undef BLACK
  29. # define BLACK CACA_CONIO_BLACK
  30. # undef BLUE
  31. # define BLUE CACA_CONIO_BLUE
  32. # undef GREEN
  33. # define GREEN CACA_CONIO_GREEN
  34. # undef CYAN
  35. # define CYAN CACA_CONIO_CYAN
  36. # undef RED
  37. # define RED CACA_CONIO_RED
  38. # undef MAGENTA
  39. # define MAGENTA CACA_CONIO_MAGENTA
  40. # undef BROWN
  41. # define BROWN CACA_CONIO_BROWN
  42. # undef LIGHTGRAY
  43. # define LIGHTGRAY CACA_CONIO_LIGHTGRAY
  44. # undef DARKGRAY
  45. # define DARKGRAY CACA_CONIO_DARKGRAY
  46. # undef LIGHTBLUE
  47. # define LIGHTBLUE CACA_CONIO_LIGHTBLUE
  48. # undef LIGHTGREEN
  49. # define LIGHTGREEN CACA_CONIO_LIGHTGREEN
  50. # undef LIGHTCYAN
  51. # define LIGHTCYAN CACA_CONIO_LIGHTCYAN
  52. # undef LIGHTRED
  53. # define LIGHTRED CACA_CONIO_LIGHTRED
  54. # undef LIGHTMAGENTA
  55. # define LIGHTMAGENTA CACA_CONIO_LIGHTMAGENTA
  56. # undef YELLOW
  57. # define YELLOW CACA_CONIO_YELLOW
  58. # undef WHITE
  59. # define WHITE CACA_CONIO_WHITE
  60. #endif
  61. #if !defined _DOXYGEN_SKIP_ME && !defined __LIBCACA__
  62. # undef _NOCURSOR
  63. # define _NOCURSOR CACA_CONIO__NOCURSOR
  64. # undef _SOLIDCURSOR
  65. # define _SOLIDCURSOR CACA_CONIO__SOLIDCURSOR
  66. # undef _NORMALCURSOR
  67. # define _NORMALCURSOR CACA_CONIO__NORMALCURSOR
  68. #endif
  69. #if !defined _DOXYGEN_SKIP_ME && !defined __LIBCACA__
  70. # undef LASTMODE
  71. # define LASTMODE CACA_CONIO_LASTMODE
  72. # undef BW40
  73. # define BW40 CACA_CONIO_BW40
  74. # undef C40
  75. # define C40 CACA_CONIO_C40
  76. # undef BW80
  77. # define BW80 CACA_CONIO_BW80
  78. # undef C80
  79. # define C80 CACA_CONIO_C80
  80. # undef MONO
  81. # define MONO CACA_CONIO_MONO
  82. # undef C4350
  83. # define C4350 CACA_CONIO_C4350
  84. #endif
  85. #if !defined _DOXYGEN_SKIP_ME && !defined __LIBCACA__
  86. # undef directvideo
  87. # define directvideo caca_conio_directvideo
  88. # undef text_info
  89. # define text_info caca_conio_text_info
  90. # undef _wscroll
  91. # define _wscroll caca_conio__wscroll
  92. #endif
  93. #if !defined _DOXYGEN_SKIP_ME && !defined __LIBCACA__
  94. # undef cgets
  95. # define cgets caca_conio_cgets
  96. # undef clreol
  97. # define clreol caca_conio_clreol
  98. # undef clrscr
  99. # define clrscr caca_conio_clrscr
  100. # undef cprintf
  101. # define cprintf caca_conio_cprintf
  102. # undef cputs
  103. # define cputs caca_conio_cputs
  104. # undef cscanf
  105. # define cscanf caca_conio_cscanf
  106. # undef delay
  107. # define delay caca_conio_delay
  108. # undef delline
  109. # define delline caca_conio_delline
  110. # undef getch
  111. # define getch caca_conio_getch
  112. # undef getche
  113. # define getche caca_conio_getche
  114. # undef getpass
  115. # define getpass caca_conio_getpass
  116. # undef gettext
  117. # define gettext caca_conio_gettext
  118. # undef gettextinfo
  119. # define gettextinfo caca_conio_gettextinfo
  120. # undef gotoxy
  121. # define gotoxy caca_conio_gotoxy
  122. # undef highvideo
  123. # define highvideo caca_conio_highvideo
  124. # undef insline
  125. # define insline caca_conio_insline
  126. # undef kbhit
  127. # define kbhit caca_conio_kbhit
  128. # undef lowvideo
  129. # define lowvideo caca_conio_lowvideo
  130. # undef movetext
  131. # define movetext caca_conio_movetext
  132. # undef normvideo
  133. # define normvideo caca_conio_normvideo
  134. # undef nosound
  135. # define nosound caca_conio_nosound
  136. # undef printf
  137. # define printf caca_conio_printf
  138. # undef putch
  139. # define putch caca_conio_putch
  140. # undef puttext
  141. # define puttext caca_conio_puttext
  142. # undef _setcursortype
  143. # define _setcursortype caca_conio__setcursortype
  144. # undef sleep
  145. # define sleep caca_conio_sleep
  146. # undef sound
  147. # define sound caca_conio_sound
  148. # undef textattr
  149. # define textattr caca_conio_textattr
  150. # undef textbackground
  151. # define textbackground caca_conio_textbackground
  152. # undef textcolor
  153. # define textcolor caca_conio_textcolor
  154. # undef textmode
  155. # define textmode caca_conio_textmode
  156. # undef ungetch
  157. # define ungetch caca_conio_ungetch
  158. # undef wherex
  159. # define wherex caca_conio_wherex
  160. # undef wherey
  161. # define wherey caca_conio_wherey
  162. # undef window
  163. # define window caca_conio_window
  164. #endif
  165. #endif /* __CACA_CONIO_H__ */