Find a file
RKennedy9064 da70b96ce5 Merge pull request #1 from rust-osdev/fix-cargo-toml
Fix case of Cargo.toml file in testing crate
2020-03-13 10:54:32 -05:00
.github/workflows Revert "Disable testing for now" 2020-03-13 16:45:40 +01:00
src Removed test mod 2020-03-12 14:38:32 -05:00
testing Fix Cargo.toml file name 2020-03-13 16:45:16 +01:00
.gitignore Basic testing groundwork 2020-03-12 13:34:48 -05:00
Cargo.toml Update cargo 2020-03-12 17:30:32 -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 Added example to README.md 2020-03-12 17:40:53 -05:00
rust-toolchain Initial commit 2020-03-12 12:10:18 -05:00

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.

Usage

use vga::colors::{Color16Bit, TextModeColor};
use vga::Text80x25;

let text_mode = Text80x25::new();
let color = TextModeColor::new(Color16Bit::Yellow, Color16Bit::Black);

text_mode.set_mode();
text_mode.clear_screen();
text_mode.write_character(0, 0, b'H', color);