Skip to main content

change_mode

Function change_mode 

fn change_mode(
    api: &dyn WindowsApi,
    handle: HANDLE,
    change: impl FnOnce(CONSOLE_MODE) -> CONSOLE_MODE,
) -> Result<(isize, CONSOLE_MODE)>
Expand description

Apply change to the console mode of handle.

ยงReturns

The handle and its original mode.