ArvernOS
Loading...
Searching...
No Matches
console.h File Reference
#include <core/multiboot.h>
#include <stdbool.h>
#include <stddef.h>
#include <vtconsole.h>
Include dependency graph for console.h:

Functions

void console_init (multiboot_tag_framebuffer_common_t *common)
 
void console_putchar (char c)
 
size_t console_write (const char *s, size_t count)
 
bool console_mode_is_vbe ()
 
bool console_fullscreen ()
 

Function Documentation

◆ console_fullscreen()

bool console_fullscreen ( )

Switches a console into "fullscreen", i.e. respects the VBE dimensions instead of the default one.

Returns
true if the mode is VBE (graphics), false otherwise

◆ console_init()

void console_init ( multiboot_tag_framebuffer_common_t * common)

Initializes the console (VT100).

◆ console_mode_is_vbe()

bool console_mode_is_vbe ( )

Indicates whether the console is initialized with VBE mode.

Returns
true if the mode is VBE (graphics), false otherwise

◆ console_putchar()

void console_putchar ( char c)

Prints a character to the console.

Parameters
cthe character to print

◆ console_write()

size_t console_write ( const char * s,
size_t count )

Writes a string to the console.

Parameters
sthe string to write to the console
countthe number of characters to write
Returns
the number of characters printed to the console