[−][src]Function winconsole::console::write_output
pub fn write_output(string: &str, column: u16, row: u16) -> WinResult<u32>
Writes characters to the output at a specified position, and returns the number of cells which were written to.
Note that this method writes characters directly to the output buffer (i.e., newline characters do not move output to the next line, but instead write the newline character).
Arguments
string
- The string to write to the output.column
- The column at which writing will begin.row
- The row at which writing will begin.
Examples
Writes "Hello, world!"
on the 10th row starting at the 10th column.
console::write_output("Hello, world!", 10, 10).unwrap();
Errors
ArgumentError
: Returned ifcolumn
orrow
is not within the output buffer.InvalidHandleError
: Returned if an invalid handle to the console output is retrieved or used.IoError
: Returned if an OS error occurs.