X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fconio.h;h=9cd505766113ce9971f357a2b884b449d28b2632;hb=935f68f686ae13b93522d73bb0f9996eb9527489;hp=8638e94d425b26ceaf4fab599eacc1204ee4e805;hpb=877fd532c28e0a23f3d0d7253c6936d056d3b3ce;p=cc65 diff --git a/include/conio.h b/include/conio.h index 8638e94d4..9cd505766 100644 --- a/include/conio.h +++ b/include/conio.h @@ -63,12 +63,18 @@ # include #elif defined(__APPLE2__) # include +#elif defined(__ATARI5200__) +# include #elif defined(__ATARI__) # include #elif defined(__ATMOS__) # include #elif defined(__CBM__) # include +#elif defined(__CREATIVISION__) +# include +#elif defined(__GAMATE__) +# include #elif defined(__GEOS__) # include #elif defined(__LUNIX__) @@ -142,6 +148,23 @@ int cscanf (const char* format, ...); int __fastcall__ vcscanf (const char* format, va_list ap); /* Like vscanf(), but uses direct keyboard input */ +char cpeekc (void); +/* Return the character from the current cursor position */ + +unsigned char cpeekcolor (void); +/* Return the color from the current cursor position */ + +unsigned char cpeekrevers (void); +/* Return the reverse attribute from the current cursor position. +** If the character is reversed, then return 1; return 0 otherwise. +*/ + +void __fastcall__ cpeeks (char* s, unsigned int length); +/* Return a string of the characters that start at the current cursor position. +** Put the string into the buffer to which "s" points. The string will have +** "length" characters, then will be '\0'-terminated. +*/ + unsigned char __fastcall__ cursor (unsigned char onoff); /* If onoff is 1, a cursor is displayed when waiting for keyboard input. If ** onoff is 0, the cursor is hidden when waiting for keyboard input. The @@ -218,11 +241,11 @@ void __fastcall__ cputhex16 (unsigned val); #if defined(_bordercolor) # define bordercolor(x) _bordercolor(x) #endif +#if defined(_cpeekcolor) +# define cpeekcolor(x) _cpeekcolor(x) +#endif /* End of conio.h */ #endif - - -