pub struct Vga { /* private fields */ }
Expand description
Simple text-mode VGA console.
Implementations§
Source§impl Vga
impl Vga
pub const fn new() -> Self
pub fn set_cursor(&self, col: usize, row: usize)
Sourcepub fn set_color_code(&self, code: ColorCode)
pub fn set_color_code(&self, code: ColorCode)
Set the current attribute from a typed ColorCode.
Sourcepub fn set_colors(&self, fg: Color, bg: Color, blink: bool)
pub fn set_colors(&self, fg: Color, bg: Color, blink: bool)
Set fg/bg/blink with typed colors.
Sourcepub fn color_code(&self) -> ColorCode
pub fn color_code(&self) -> ColorCode
Read back the current color code (typed).
pub fn clear(&self)
pub fn write_byte(&self, byte: u8)
Auto Trait Implementations§
impl !Freeze for Vga
impl !RefUnwindSafe for Vga
impl Send for Vga
impl !Sync for Vga
impl Unpin for Vga
impl UnwindSafe for Vga
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more