1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
|
/*
** console.h -- prototypes for support routines
*/
#ifndef PP
#define PP(x) x
#endif
/*
** Backspace character
*/
#define CONSOLE_BS 0
/*
** TRUE if the current multi-screen is active
*/
extern boolean console_is_active;
/*
** Initialize, returns 0 if OK
**
** repaint is routine that will repaint the screen
** needed because switches out of graphics mode do not preserve the image
*/
int console_init PP(( void (*repaint) PP(( void )) ));
/*
** Finish, returns 0 if OK
*/
int console_finish PP(( void ));
/*
** Return TRUE if console is in graphics mode
*/
int console_in_graphics_mode PP(( void ));
/*
** Enter text mode
*/
int console_text_mode PP(( int force ));
/*
** Return to graphics mode
*/
int console_graphics_mode PP(( int force ));
/*
** Set the current colors
*/
void console_setcolor PP(( int color ));
/*
** Set the current screen location
*/
void console_gotorc PP(( int row, int col ));
/*
** Write a string at the current cell, can handle backspaces
*/
void console_putstr PP(( const char *str, int len ));
/*
** Clear the screen to black
*/
int console_clear PP(( void ));
/*
** get size of display area in pixels
*/
void console_displaysize PP(( int *len, int *wid ));
/*
** get size of a character cell in pixels
*/
void console_fontsize PP(( int *len, int *wid ));
/*
** Draw a string within a pixel area, does not change background
*/
void console_drawstr PP(( int row, int col, int len, int wid,
const char *str, int slen, int color ));
/*
** Fill in a box
*/
void console_box PP(( int row, int col, int len, int wid, int color ));
/*
** Draw the mouse
** clears the previous mouse image
** set to -1 -1 to make the mouse go away
*/
void console_place_mouse PP(( int row, int col));
/*
** Beep
*/
void console_beep PP(( void ));
|