Skip to main content

reset

Function reset 

Source
pub fn reset() -> Result<(), Error>
Expand description

Repair the kernel TTY state and reset the attached terminal emulator.

§Errors

Returns Error when no terminal is available, the process is a background job, terminal state cannot be changed, or the terminfo entry cannot be read.

§Examples

ree::reset()?;