1 #pragma once
2 
3 #include <libc/src/sys/types.h>
4 #include <stdarg.h>
5 
6 // 字体颜色的宏定义
7 #define COLOR_WHITE 0x00ffffff  //白
8 #define COLOR_BLACK 0x00000000  //黑
9 #define COLOR_RED 0x00ff0000    //红
10 #define COLOR_ORANGE 0x00ff8000 //橙
11 #define COLOR_YELLOW 0x00ffff00 //黄
12 #define COLOR_GREEN 0x0000ff00  //绿
13 #define COLOR_BLUE 0x000000ff   //蓝
14 #define COLOR_INDIGO 0x0000ffff //靛
15 #define COLOR_PURPLE 0x008000ff //紫
16 
17 #define SEEK_SET 0 /* Seek relative to start-of-file */
18 #define SEEK_CUR 1 /* Seek relative to current position */
19 #define SEEK_END 2 /* Seek relative to end-of-file */
20 
21 #define SEEK_MAX 3
22 
23 /**
24  * @brief 往屏幕上输出字符串
25  *
26  * @param str 字符串指针
27  * @param front_color 前景色
28  * @param bg_color 背景色
29  * @return int64_t
30  */
31 int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color);
32 
33 int printf(const char *fmt, ...);
34 int sprintf(char *buf, const char *fmt, ...);
35 int vsprintf(char *buf, const char *fmt, va_list args);