Xyris
0.5
console.hpp
Go to the documentation of this file.
1
/**
2
* @file console.hpp
3
* @author Keeton Feavel (
[email protected]
)
4
* @brief Framebuffer console
5
* @version 0.3
6
* @date 2019-09-26
7
*
8
* @copyright Copyright Keeton Feavel (c) 2019
9
*
10
*/
11
#pragma once
12
13
#include <stdint.h>
14
#include <stdarg.h>
15
16
#define VGA_DEFAULT_BACK VGA_Black
17
#define VGA_DEFAULT_FORE VGA_White
18
19
namespace
Console
{
20
21
void
write
(
const
char
c);
22
23
void
write
(
const
char
* str);
24
25
[[gnu::format (
printf
, 1, 0)]]
26
int
vprintf
(
const
char
* fmt, va_list args);
27
28
[[gnu::format (
printf
, 1, 2)]]
29
int
printf
(
const
char
* fmt, ...);
30
31
void
reset
(uint32_t fore, uint32_t back);
32
33
void
reset
();
34
35
}
Console::write
void write(const char c)
Definition:
console.cpp:257
Console::vprintf
int vprintf(const char *fmt, va_list args)
Definition:
console.cpp:248
Console::printf
int printf(const char *fmt,...)
Definition:
console.cpp:273
Console::reset
void reset(uint32_t fore, uint32_t back)
Definition:
console.cpp:287
Console
Definition:
console.cpp:20
Kernel
Devices
Graphics
console.hpp
Generated by
1.8.17