Subversion Repositories SvarDOS

Rev

Rev 1661 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1661 Rev 1905
Line 30... Line 30...
30
 
30
 
31
/* inits the subsystem, fills arguments with:
31
/* inits the subsystem, fills arguments with:
32
 * w = screen width
32
 * w = screen width
33
 * h = screen height
33
 * h = screen height
34
 * Any of these arguments may be passed as NULL
34
 * Any of these arguments may be passed as NULL
35
 * Returns a color flag (0=mono, non-zero=color) */
35
 * Returns a color flag (0=mono, 1=color) */
36
unsigned char mdr_cout_init(unsigned char *w, unsigned char *h);
36
unsigned char mdr_cout_init(unsigned char *w, unsigned char *h);
37
 
37
 
38
/* get current attribute value under cursor and returns it */
38
/* get current attribute value under cursor and returns it */
39
int mdr_cout_getcurattr(void);
39
int mdr_cout_getcurattr(void);
40
 
40
 
Line 48... Line 48...
48
void mdr_cout_locate(unsigned char row, unsigned char column);
48
void mdr_cout_locate(unsigned char row, unsigned char column);
49
 
49
 
50
/* print a single character on screen */
50
/* print a single character on screen */
51
void mdr_cout_char(unsigned char y, unsigned char x, char c, unsigned char attr);
51
void mdr_cout_char(unsigned char y, unsigned char x, char c, unsigned char attr);
52
 
52
 
53
/* print a single character on screen, repeated count times */
53
/* print a single character on screen, repeated count times (count=0 prints nothing) */
54
void mdr_cout_char_rep(unsigned char y, unsigned char x, char c, unsigned char attr, unsigned char count);
54
void mdr_cout_char_rep(unsigned char y, unsigned char x, char c, unsigned char attr, unsigned char count);
55
 
55
 
56
/* print a nul-terminated string on screen, up to maxlen characters
56
/* print a nul-terminated string on screen, up to maxlen characters
57
 * returns the number of characters actually displayed */
57
 * returns the number of characters actually displayed */
58
unsigned char mdr_cout_str(unsigned char y, unsigned char x, const char *s, unsigned char attr, unsigned char maxlen);
58
unsigned char mdr_cout_str(unsigned char y, unsigned char x, const char *s, unsigned char attr, unsigned char maxlen);
59
 
59
 
60
/* clears screen, filling it with a single color attribute */
60
/* clears screen, filling it with a single color attribute */
61
void mdr_cout_cls(unsigned char colattr);
61
void mdr_cout_cls(unsigned char colattr);
62
 
62
 
-
 
63
/* provides properties of the current video mode:
-
 
64
 * termwidth = terminal's width
-
 
65
 * termheight = terminal's height
-
 
66
 * colorflag = mono/color flag (0=mono 1=color)
-
 
67
 * NOTE: all arguments must be valid pointers (NULL not allowed) */
63
void mdr_cout_getconprops(unsigned char *termwidth, unsigned char *termheight, unsigned char *colorflag);
68
void mdr_cout_getconprops(unsigned char *termwidth, unsigned char *termheight, unsigned char *colorflag);
64
 
69
 
65
 
70
 
66
/*****************************************************************************
71
/*****************************************************************************
67
 * functions below do not need mdr_cout_init() initialization, they can be   *
72
 * functions below do not need mdr_cout_init() initialization, they can be   *