summaryrefslogtreecommitdiff
path: root/kernel/console.h
blob: e304773d465d03e35b9ce6c08f35d8db68310a00 (plain)
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
#define SCR_VIDEOMEM 0xb8000

#define SCR_WIDTH 80
#define SCR_HEIGHT 23

#define SCR_CTRL 0x3D4
#define SCR_DATA 0x3D5

#define SCR_BLACK 0x0
#define SCR_BLUE 0x1
#define SCR_GREEN 0x2
#define SCR_CYAN 0x3
#define SCR_RED 0x4

// TODO: more colors here...

# define SCR_WHITE 0xf

//autoscroll
void print_nextline();
void print_hex(uint16_t val);

//no autoscroll
void print_str(int x,int y,char *str);
void print_str_col(int x,int y,char *str, char col);
void print_char(int x, int y, char c);
void print_char_col(int x, int y, char c, char col);