[][src]Function winconsole::console::read_output

pub fn read_output(
    column: u16,
    row: u16,
    max_length: impl Into<Option<u32>>
) -> WinResult<String>

Reads a string from the console output starting at a specified location. Note that this method reads the output buffer directly (i.e., an empty end of a line will be made up of multiple space characters rather than a newline character sequence).

Arguments

Examples

Reads the entire console output buffer.

let output = console::read_output(0, 0, None).unwrap();
println!("{}", output.len());

Errors