4 * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
15 * Revision 1.2 2008/02/04 20:23:55 james
16 * *** empty log message ***
18 * Revision 1.1 2008/02/03 23:31:25 james
19 * *** empty log message ***
29 #define CRT_CELS (CRT_ROWS*CRT_COLS)
30 #define CRT_ADDR(r,c) (((r)*CRT_COLS)+(c))
31 #define CRT_ADDR_POS(p) ((((p)->y)*CRT_COLS)+((p)->x))
33 #define CRT_ATTR_NORMAL 0x0
34 #define CRT_ATTR_UNDERLINE 0x1
35 #define CRT_ATTR_REVERSE 0x2
36 #define CRT_ATTR_BLINK 0x4
37 #define CRT_ATTR_BOLD 0x8
51 CRT_CA screen[CRT_CELS];
57 static inline crt_ca_cmp(CRT_CA a,CRT_CA b) {
58 return memcmp(&a,&b,sizeof(a));
61 #endif /* __CRT_H__ */