KernOS
VGA Namespace Reference

Video Graphics Array namespace. More...

Classes

class  Vga
 Manages access to VGA driver. More...
 

Typedefs

typedef uint8_t VgaColor
 
typedef uint16_t VgaChar
 

Enumerations

enum  COLOR : uint8_t {
  COLOR::BLACK = 0, COLOR::BLUE, COLOR::GREEN, COLOR::CYAN,
  COLOR::RED, COLOR::MAGENTA, COLOR::BROWN, COLOR::LIGHT_GREY,
  COLOR::DARK_GREY, COLOR::LIGHT_BLUE, COLOR::LIGHT_GREEN, COLOR::LIGHT_CYAN,
  COLOR::LIGHT_RED, COLOR::LIGHT_MAGENTA, COLOR::LIGHT_BROWN, COLOR::WHITE
}
 VGA text buffer convention. More...
 

Variables

Vga Display
 

Detailed Description

Video Graphics Array namespace.

Typedef Documentation

◆ VgaChar

typedef uint16_t VGA::VgaChar

Definition at line 42 of file vga.h.

◆ VgaColor

typedef uint8_t VGA::VgaColor

Definition at line 41 of file vga.h.

Enumeration Type Documentation

◆ COLOR

enum VGA::COLOR : uint8_t
strong

VGA text buffer convention.

See also
VGA compatible text mode
________________________________________________
|         Attribute           |    Character    |
|   7   |   6 5 4  | 3 2 1 0  | 7 6 5 4 3 2 1 0 |
| Blink | Bg color | Fg color | Code point      |
Enumerator
BLACK 
BLUE 
GREEN 
CYAN 
RED 
MAGENTA 
BROWN 
LIGHT_GREY 
DARK_GREY 
LIGHT_BLUE 
LIGHT_GREEN 
LIGHT_CYAN 
LIGHT_RED 
LIGHT_MAGENTA 
LIGHT_BROWN 
WHITE 

Definition at line 21 of file vga.h.

Variable Documentation

◆ Display

Vga VGA::Display

Definition at line 9 of file vga.cpp.