Crate vgastream_rs
source ·Expand description
vgastream-rs
- High level VGA(0xB8000) library in freestanding Rust.
- Provides
println
print
eprintln
eprint
macros.
Example
/*main.rs*/
#![no_std]
#![no_main]
mod multiboot;
mod panic;
extern crate vgastream_rs;
use vgastream_rs::prelude::*;
#[no_mangle]
pub extern "C" fn _start() -> ! {
use vga_rs::Color;
VgaOutStream::new().reset_with((Color::BLACK, Color::WHITE));
let _ = main();
unsafe { panic::halt() }
}
fn main() {
println!("Hello, World!");
}
Modules
- Controls vga screen.
Macros
- eprint macro for VGA.
- eprintln macro for VGA.
- print macro for VGA.
- println macro for VGA.
Structs
- Provides vga stream.
- Provides vga stream color.
Enums
- Error for VgaRead and VgaWrite.
Traits
- Print format. No return
Result<(), Error>
. - Read vga strean.
- Write vga strean.