-
Notifications
You must be signed in to change notification settings - Fork 0
/
sb.h
56 lines (44 loc) · 975 Bytes
/
sb.h
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
/*
* Copyright (C) 2019 Edward LEI <[email protected]>
*
* The code is licensed under the MIT license
*/
#ifndef _SB_H_
#define _SB_H_
#include "type.h"
/*
* Initialize screenbuffer
*/
void sbInit();
/*
* Return: the number of character columns of the visible screen
*/
int sbNCols();
/*
* Return:the number of character rows of the visible screen
*/
int sbNRows();
/*
* Return: the current character column number
*/
int sbCol();
/*
* Return: the current character row number
*/
int sbRow();
/*
* Emulates the putc function
* ch - character to be put in framebuffter
* dw - double width character?
* fg - font type(bold) | font foreground color
* bg - background color
*/
void sbPutc(u16_t ch, int dw, ft32_t fg, ft32_t bg);
/*
* Emulates the puts function
* txt - text to be printed
* fg - font type(bold) | font foreground color
* bg - background color
s*/
void sbPuts(u16_t *txt, ft32_t fg, ft32_t bg);
#endif