Luna/kernel/src/video/TextConsole.h
apio 27eacac19c
All checks were successful
continuous-integration/drone/push Build is passing
kernel: Add a blinking cursor to the terminal
2023-09-04 11:44:35 +02:00

29 lines
735 B
C++

#pragma once
#include <luna/Attributes.h>
#include <luna/Result.h>
#include <luna/Types.h>
namespace TextConsole
{
void clear();
Result<void> putchar(char c);
void putwchar(wchar_t c);
void set_foreground(u32 color);
void set_background(u32 color);
u32 foreground();
u32 background();
void move_to(u32 x, u32 y);
Result<void> print(const char* str);
Result<void> write(const char* str, usize len);
void wprint(const wchar_t* str);
Result<void> println(const char* str);
void wprintln(const wchar_t* str);
Result<usize> printf(const char* format, ...) _format(1, 2);
void tick_cursor();
void disable_cursor();
void enable_cursor();
u16 rows();
u16 cols();
}