Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

174 rader
4.6 KiB

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