Function setMode [src]

Sets the output device(s) to a specified mode.

Prototype

pub fn setMode(self: *SimpleTextOutput, mode_number: usize) SetModeError!void

Parameters

self: *SimpleTextOutputmode_number: usize

Possible Errors

DeviceError
Unexpected UnexpectedError
Unsupported

Source

pub fn setMode(self: *SimpleTextOutput, mode_number: usize) SetModeError!void { switch (self._set_mode(self, mode_number)) { .success => {}, .device_error => return Error.DeviceError, .unsupported => return Error.Unsupported, else => |status| return uefi.unexpectedStatus(status), } }