IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
vmem.hpp File Reference

VGA memory low-level operations. More...

#include <bit>
#include <string_view>
#include <arch/types.hpp>
Include dependency graph for vmem.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  igros::arch::vmemSymbol
 VGA memory symbol representation. More...
struct  igros::arch::vmemCursor
 VGA memory cursor struct. More...

Namespaces

namespace  igros
 IgrOS kernel: common types and literals.
namespace  igros::arch
 Architecture-independent interface: drivers and aliases of current architecture types.

Enumerations

enum class  igros::arch::vmemColor : igros_byte_t {
  igros::arch::Black = 0x00_u8 , igros::arch::Blue = 0x01_u8 , igros::arch::Green = 0x02_u8 , igros::arch::Cyan = 0x03_u8 ,
  igros::arch::Red = 0x04_u8 , igros::arch::Magenta = 0x05_u8 , igros::arch::Brown = 0x06_u8 , igros::arch::LightGray = 0x07_u8 ,
  igros::arch::DarkGray = 0x08_u8 , igros::arch::LightBlue = 0x09_u8 , igros::arch::LightGreen = 0x0A_u8 , igros::arch::LightCyan = 0x0B_u8 ,
  igros::arch::LightRed = 0x0C_u8 , igros::arch::LightMagenta = 0x0D_u8 , igros::arch::Yellow = 0x0E_u8 , igros::arch::White = 0x0F_u8
}
 VGA memory colors enumeration. More...

Functions

void igros::arch::vmemCursorSet (const igros_byte_t x, const igros_byte_t y) noexcept
 Set VGA memory cursor position.
void igros::arch::vmemCursorSet (const vmemCursor cursor) noexcept
 Set VGA memory cursor position.
auto igros::arch::vmemCursorGet () noexcept -> vmemCursor
 Get VGA memory cursor position.
void igros::arch::vmemCursorDisable () noexcept
 Disable VGA memory cursor.
void igros::arch::vmemCursorEnable () noexcept
 Enable VGA memory cursor.
void igros::arch::vmemSetColor (const igros_byte_t background, const igros_byte_t foreground) noexcept
 Set VGA memory color.
void igros::arch::vmemWrite (const char symbol) noexcept
 Write symbol to VGA memory.
void igros::arch::vmemWrite (const char *const message) noexcept
 Write string to VGA memory.
void igros::arch::vmemWrite (const std::string_view message) noexcept
 Write fixed-width string to VGA memory.
void igros::arch::vmemClear () noexcept
 Clear VGA console.
auto igros::arch::vmemInit () noexcept -> bool
 Init VGA console.

Variables

static constexpr auto igros::arch::VIDEO_MEM_WIDTH {80_usize}
 VGA console max width.
static constexpr auto igros::arch::VIDEO_MEM_HEIGHT {25_usize}
 VGA console max height.
static constexpr auto igros::arch::VIDEO_MEM_SIZE {VIDEO_MEM_WIDTH * VIDEO_MEM_HEIGHT}
 VGA console size.
static constexpr auto igros::arch::VIDEO_MEM_TAB_SIZE {8_usize}
 TAB size.
static constexpr auto igros::arch::VIDEO_MEM_CURSOR_START {0x0A_u8}
 VGA cursor start register.

Detailed Description

VGA memory low-level operations.

Date
03 Nov 2026
Author
Igor Baklykov

Definition in file vmem.hpp.