Go to file
2020-03-24 16:17:13 -05:00
.github/workflows Build on develop also 2020-03-14 22:57:01 -05:00
src Fixed tests and renamed Color16Bit 2020-03-24 16:17:13 -05:00
testing Fixed tests and renamed Color16Bit 2020-03-24 16:17:13 -05:00
.gitignore Basic testing groundwork 2020-03-12 13:34:48 -05:00
Cargo.toml Drawing text 2020-03-24 15:44:30 -05:00
Changelog.md Fixed tests and renamed Color16Bit 2020-03-24 16:17:13 -05:00
LICENSE-APACHE Added licenses 2020-03-12 17:43:09 -05:00
LICENSE-MIT Added licenses 2020-03-12 17:43:09 -05:00
README.md Fixed tests and renamed Color16Bit 2020-03-24 16:17:13 -05:00
rust-toolchain Initial commit 2020-03-12 12:10:18 -05:00

Build Status Docs.rs Badge

vga

This crate provides vga specific functions, data structures, and access to various registers.

Memory addresses 0xA0000 -> 0xBFFFF must be readable and writeable this crate to work properly.

Note: This crate is currently experimental and subject to change since it's in active development.

Usage

use vga::colors::{Color16, TextModeColor};
use vga::writers::{ScreenCharacter, TextWriter, Text80x25};

let text_mode = Text80x25::new();
let color = TextModeColor::new(Color16::Yellow, Color16::Black);
let screen_character = ScreenCharacter::new(b'T', color);

text_mode.set_mode();
text_mode.clear_screen();
text_mode.write_character(0, 0, screen_character);