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

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

Resets and clears the text output device hardware.

Clears the output screen.

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

Writes a string to the output device.

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.

Returns an iterator of all supported text modes.

Returns the the current text mode.

Sets a mode as current.

Returns whether the cursor is currently shown or not.

Make the cursor visible or invisible.

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

Returns the column and row of the cursor.

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.

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

Formats the value using the given formatter. Read more

Unique protocol identifier.

Writes a string slice into this writer, returning whether the write succeeded. Read more

Writes a char into this writer, returning whether the write succeeded. Read more

Glue for usage of the write! macro with implementors of this trait. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.