2022-11-20 17:55:22 +01:00
|
|
|
#pragma once
|
2022-12-04 12:42:43 +01:00
|
|
|
#include <luna/Attributes.h>
|
|
|
|
#include <luna/Result.h>
|
|
|
|
#include <luna/Types.h>
|
2022-11-20 17:55:22 +01:00
|
|
|
|
|
|
|
namespace TextConsole
|
|
|
|
{
|
|
|
|
void clear();
|
2022-12-21 17:38:19 +01:00
|
|
|
Result<void> putchar(char c);
|
2022-12-18 13:09:37 +01:00
|
|
|
void putwchar(wchar_t c);
|
2022-11-20 17:55:22 +01:00
|
|
|
void set_foreground(u32 color);
|
|
|
|
void set_background(u32 color);
|
2022-11-30 13:29:28 +01:00
|
|
|
u32 foreground();
|
|
|
|
u32 background();
|
2022-11-20 17:55:22 +01:00
|
|
|
void move_to(u32 x, u32 y);
|
2022-12-21 17:38:19 +01:00
|
|
|
Result<void> print(const char* str);
|
2023-03-18 20:09:10 +01:00
|
|
|
Result<void> write(const char* str, usize len);
|
2022-12-21 19:41:13 +01:00
|
|
|
void wprint(const wchar_t* str);
|
2022-12-21 17:38:19 +01:00
|
|
|
Result<void> println(const char* str);
|
2022-12-21 19:41:13 +01:00
|
|
|
void wprintln(const wchar_t* str);
|
2022-12-21 17:38:19 +01:00
|
|
|
Result<usize> printf(const char* format, ...) _format(1, 2);
|
2023-01-02 13:07:29 +01:00
|
|
|
}
|