diff options
Diffstat (limited to 'textscreen/txt_io.h')
-rw-r--r-- | textscreen/txt_io.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/textscreen/txt_io.h b/textscreen/txt_io.h index dc25aa93..004fa562 100644 --- a/textscreen/txt_io.h +++ b/textscreen/txt_io.h @@ -29,12 +29,20 @@ #include "txt_main.h" +typedef struct +{ + int bgcolor; + int fgcolor; +} txt_saved_colors_t; + void TXT_PutChar(int c); void TXT_Puts(const char *s); void TXT_GotoXY(int x, int y); void TXT_GetXY(int *x, int *y); void TXT_FGColor(txt_color_t color); void TXT_BGColor(int color, int blinking); +void TXT_SaveColors(txt_saved_colors_t *save); +void TXT_RestoreColors(txt_saved_colors_t *save); void TXT_ClearScreen(void); #endif /* #ifndef TXT_IO_H */ |