pub unsafe fn new(config: VgaConfig) -> Vga {
        let mut vga = Vga {
            config,
            row:    0,
            col:    0,
            fg:     Color::LightGrey,
            bg:     Color::Black,
            attr:   Vga::attr(Color::LightGrey, Color::Black),
        };

        vga.reset().unwrap();

        vga
    }
/// Create a new VGA text-mode terminal controller with the given
/// dimensions, buffer, and port.
Create a new VGA text-mode terminal controller with the given
dimensions, buffer, and port.
Create a new VGA text - mode terminal controller with the given dimensions buffer and port .
pub unsafe fn new(config: VgaConfig) -> Vga {
        let mut vga = Vga {
            config,
            row:    0,
            col:    0,
            fg:     Color::LightGrey,
            bg:     Color::Black,
            attr:   Vga::attr(Color::LightGrey, Color::Black),
        };
        vga.reset().unwrap();
        vga
    }
pub unsafe fn new ( config : VgaConfig ) -> Vga { let mut vga = Vga { config , row : 0 , col : 0 , fg : Color :: LightGrey , bg : Color :: Black , attr : Vga :: attr ( Color :: LightGrey , Color :: Black ) , } ; vga . reset ( ) . unwrap ( ) ; vga }
Create a new VGA text-mode terminal controller with the given
dimensions, buffer, and port.
Create a new VGA text - mode terminal controller with the given dimensions buffer and port .
config
VgaConfig