[][src]Struct uefi::proto::console::text::Output

#[repr(C)]pub struct Output<'boot> { /* fields omitted */ }

Interface for text-based output devices.

It implements the fmt::Write trait, so you can use it to print text with standard Rust constructs like the write!() and writeln!() macros.

Implementations

impl<'boot> Output<'boot>[src]

pub fn reset(&mut self, extended: bool) -> Result[src]

Resets and clears the text output device hardware.

pub fn clear(&mut self) -> Result[src]

Clears the output screen.

The background is set to the current background color. The cursor is moved to (0, 0).

pub fn output_string(&mut self, string: &CStr16) -> Result[src]

Writes a string to the output device.

pub fn test_string(&mut self, string: &CStr16) -> Result<bool>[src]

Checks if a string contains only supported characters.

UEFI applications are encouraged to try to print a string even if it contains some unsupported characters.

pub fn modes<'out>(&'out mut self) -> OutputModeIter<'out, 'boot>[src]

Returns an iterator of all supported text modes.

pub fn current_mode(&self) -> Result<Option<OutputMode>>[src]

Returns the the current text mode.

pub fn set_mode(&mut self, mode: OutputMode) -> Result[src]

Sets a mode as current.

pub fn cursor_visible(&self) -> bool[src]

Returns whether the cursor is currently shown or not.

pub fn enable_cursor(&mut self, visible: bool) -> Result[src]

Make the cursor visible or invisible.

The output device may not support this operation, in which case an Unsupported error will be returned.

pub fn cursor_position(&self) -> (usize, usize)[src]

Returns the column and row of the cursor.

pub fn set_cursor_position(&mut self, column: usize, row: usize) -> Result[src]

Sets the cursor's position, relative to the top-left corner, which is (0, 0).

This function will fail if the cursor's new position would exceed the screen's bounds.

pub fn set_color(&mut self, foreground: Color, background: Color) -> Result[src]

Sets the text and background colors for the console.

Note that for the foreground color you can choose any color. The background must be one of the first 8 colors.

Trait Implementations

impl<'boot> Identify for Output<'boot>[src]

impl<'boot> Protocol for Output<'boot>[src]

impl<'boot> !Send for Output<'boot>[src]

impl<'boot> !Sync for Output<'boot>[src]

impl<'boot> Write for Output<'boot>[src]

Auto Trait Implementations

impl<'boot> Unpin for Output<'boot>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.