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§

prelude
vga_screen
Controls vga screen.

Macros§

eprint
eprint macro for VGA.
eprintln
eprintln macro for VGA.
print
print macro for VGA.
println
println macro for VGA.

Structs§

VgaOutStream
Provides vga stream.
VgaOutStreamColor
Provides vga stream color.

Enums§

VgaStreamError
Error for VgaRead and VgaWrite.

Traits§

PrintFmt
Print format. No return Result<(), Error>.
VgaRead
Read vga strean.
VgaWrite
Write vga strean.