Expand description
vga-rs
Low level VGA(0xB8000) library in freestanding Rust.
Example
#![no_std]
extern crate vga_rs;
use vga_rs::*;
extern crate cursor_rs;
fn reset_screen() {
let buffer_slice=VgaBuffer::new().as_mut_slice(); // No error because lifetime of slice is free from VgaBuffer.
for vchar_ref in buffer_slice.iter_mut()
{
let vchar = vchar_ref.get_volatile();
vchar_ref.set_volatile(vchar & 0xff00);
}
cursor_rs::set_cursor(0,0);
}Structs
- Contains foreground and background colors.
- Contains 8 bit color.
- Containa a pointer to slice of Vga buffer.
- An element of video buffer, contains codepoint and attribute.
Traits
- Getter and Setter interface.