MOS Source Code
Loading...
Searching...
No Matches
console.hpp File Reference
+ Include dependency graph for console.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Buffer< buf_size >
 
struct  Console
 

Enumerations

enum  console_caps {
  CONSOLE_CAP_COLOR = 1 << 0 , CONSOLE_CAP_CLEAR = 1 << 1 , CONSOLE_CAP_GET_SIZE = 1 << 2 , CONSOLE_CAP_CURSOR_HIDE = 1 << 3 ,
  CONSOLE_CAP_CURSOR_MOVE = 1 << 4 , CONSOLE_CAP_READ = 1 << 6
}
 

Functions

void console_register (Console *con)
 
Consoleconsole_get (const char *name)
 
Consoleconsole_get_by_prefix (const char *prefix)
 

Variables

list_head consoles
 

Enumeration Type Documentation

◆ console_caps

Enumerator
CONSOLE_CAP_COLOR 
CONSOLE_CAP_CLEAR 
CONSOLE_CAP_GET_SIZE 
CONSOLE_CAP_CURSOR_HIDE 
CONSOLE_CAP_CURSOR_MOVE 
CONSOLE_CAP_READ 

console supports read

Definition at line 14 of file console.hpp.

Function Documentation

◆ console_register()

void console_register ( Console * con)

Definition at line 92 of file console.cpp.

Referenced by limine_entry(), and platform_startup_early().

+ Here is the call graph for this function:

◆ console_get()

Console * console_get ( const char * name)

Definition at line 117 of file console.cpp.

Referenced by MOS_SETUP().

+ Here is the call graph for this function:

◆ console_get_by_prefix()

Console * console_get_by_prefix ( const char * prefix)

Definition at line 130 of file console.cpp.

Referenced by MOS_SETUP().

+ Here is the call graph for this function:

Variable Documentation

◆ consoles

list_head consoles
extern

Definition at line 17 of file console.cpp.

Referenced by console_get(), console_get_by_prefix(), console_register(), and lvprintk().