Struct stivale_boot::v2::StivaleTerminalTag [−][src]
#[repr(C, packed)]pub struct StivaleTerminalTag { pub header: StivaleTagHeader, pub flags: u32, pub cols: u16, pub rows: u16, pub term_write_addr: u64, }
Expand description
If the terminal tag was requested through the terminal tag header and its supported by the stivale bootloader, this tag is returned to the kernel. This tag provides an interface to the stivale terminal.
Fields
header: StivaleTagHeader
flags: u32
cols: u16
The amount of columns in the stivale terminal setup by the bootloader.
rows: u16
The amount of rows in the stivale terminal setup by the bootloader.
term_write_addr: u64
The virtual address of the term_write
function, which is used to write to the stivale terminal. For
a more safer way use the StivaleTerminalTag::term_write
Implementations
Returns the terminal write function provided by the terminal stivale tag. This function returns the transmuted function for you to simplify the process of passing the string as a raw pointer and passing the string length.
Example
let terminal_tag = stivale_struct.terminal().expect("Terminal tag was provided by the stivale2 bootloader"); let term_write = terminal_tag.term_write(); term_write("Hello, Stivale!"); term_write("Hello, Rust!")
Safety
This function is not thread safe.