2022-11-20 16:55:22 +00:00
|
|
|
#pragma once
|
2022-12-04 11:42:43 +00:00
|
|
|
#include <luna/Attributes.h>
|
|
|
|
#include <luna/Result.h>
|
|
|
|
#include <luna/Types.h>
|
2022-11-20 16:55:22 +00:00
|
|
|
|
|
|
|
namespace TextConsole
|
|
|
|
{
|
|
|
|
void clear();
|
|
|
|
void putchar(char c);
|
|
|
|
void set_foreground(u32 color);
|
|
|
|
void set_background(u32 color);
|
2022-11-30 12:29:28 +00:00
|
|
|
u32 foreground();
|
|
|
|
u32 background();
|
2022-11-20 16:55:22 +00:00
|
|
|
void move_to(u32 x, u32 y);
|
|
|
|
void print(const char* str);
|
|
|
|
void println(const char* str);
|
2022-12-16 17:32:29 +00:00
|
|
|
usize printf(const char* format, ...) _format(1, 2);
|
2022-11-20 16:55:22 +00:00
|
|
|
}
|