Xyris  0.5
console.cpp File Reference
+ Include dependency graph for console.cpp:

Go to the source code of this file.

Namespaces

 Console
 

Macros

#define PUSH_VAL(VAL)   ansiValues[ansiValuesIdx++] = (VAL)
 
#define POP_VAL()   ansiValues[--ansiValuesIdx]
 
#define CLEAR_VALS()   ansiValuesIdx = 0
 
#define ESC   ('\033')
 
#define TAB_WIDTH   4u
 

Enumerations

enum  Console::vgaColor : uint32_t {
  Console::VGA_Black = 0x000000, Console::VGA_Blue = 0x0000AA, Console::VGA_Green = 0x00AA00, Console::VGA_Cyan = 0x00AAAA,
  Console::VGA_Red = 0xAA0000, Console::VGA_Magenta = 0xAA00AA, Console::VGA_Brown = 0xAA5500, Console::VGA_LightGrey = 0xAAAAAA,
  Console::VGA_DarkGrey = 0x555555, Console::VGA_LightBlue = 0x5555FF, Console::VGA_LightGreen = 0x55FF55, Console::VGA_LightCyan = 0x55FFFF,
  Console::VGA_LightRed = 0xFF5555, Console::VGA_LightMagenta = 0xFF55FF, Console::VGA_Yellow = 0xFFFF55, Console::VGA_White = 0xFFFFFF
}
 
enum  Console::ansiColor : uint16_t {
  Console::Background = 10, Console::Black = 30, Console::Red = 31, Console::Green = 32,
  Console::Yellow = 33, Console::Blue = 34, Console::Magenta = 35, Console::Cyan = 36,
  Console::White = 37, Console::BrightBlack = 90, Console::BrightRed = 91, Console::BrightGreen = 92,
  Console::BrightYellow = 93, Console::BrightBlue = 94, Console::BrightMagenta = 95, Console::BrightCyan = 96,
  Console::BrightWhite = 97
}
 
enum  Console::ansiStateType { Console::Normal, Console::Esc, Console::Bracket, Console::Value }
 

Functions

int Console::vprintf (const char *fmt, va_list args)
 
void Console::write (const char c)
 
void Console::write (const char *str)
 
int Console::printf (const char *fmt,...)
 
void Console::reset (uint32_t fore, uint32_t back)
 
void Console::reset ()
 

Detailed Description

Framebuffer console.

Author
Keeton Feavel (keeto.nosp@m.nfea.nosp@m.vel@c.nosp@m.edar.nosp@m.ville.nosp@m..edu)
Version
0.3
Date
2020-07-09

Definition in file console.cpp.

Macro Definition Documentation

◆ CLEAR_VALS

#define CLEAR_VALS ( )    ansiValuesIdx = 0

Definition at line 24 of file console.cpp.

◆ ESC

#define ESC   ('\033')

Definition at line 25 of file console.cpp.

◆ POP_VAL

#define POP_VAL ( )    ansiValues[--ansiValuesIdx]

Definition at line 23 of file console.cpp.

◆ PUSH_VAL

#define PUSH_VAL (   VAL)    ansiValues[ansiValuesIdx++] = (VAL)

Definition at line 22 of file console.cpp.

◆ TAB_WIDTH

#define TAB_WIDTH   4u

Definition at line 26 of file console.cpp.