1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- #include <libc/sys/types.h>
- #include <stdarg.h>
- #define COLOR_WHITE 0x00ffffff
- #define COLOR_BLACK 0x00000000
- #define COLOR_RED 0x00ff0000
- #define COLOR_ORANGE 0x00ff8000
- #define COLOR_YELLOW 0x00ffff00
- #define COLOR_GREEN 0x0000ff00
- #define COLOR_BLUE 0x000000ff
- #define COLOR_INDIGO 0x0000ffff
- #define COLOR_PURPLE 0x008000ff
- #define SEEK_SET 0
- #define SEEK_CUR 1
- #define SEEK_END 2
- #define SEEK_MAX 3
- int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color);
- int printf(const char *fmt, ...);
- int sprintf(char *buf, const char *fmt, ...);
- int vsprintf(char *buf, const char *fmt, va_list args);
|