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

Macros

Structs

Enums

Traits