Skip to content
Snippets Groups Projects
Commit 557f7a4e authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'master' into 'master'

Annotate the tuple returned by terminal_size()

See merge request !179
parents 8054e082 d6f42c9d
No related branches found
No related tags found
1 merge request!179Annotate the tuple returned by terminal_size()
Pipeline #10698 failed
......@@ -10,7 +10,7 @@ struct TermSize {
x: c_ushort,
y: c_ushort,
}
/// Get the size of the terminal.
/// Get the size (columns, rows) of the terminal.
pub fn terminal_size() -> io::Result<(u16, u16)> {
unsafe {
let mut size: TermSize = mem::zeroed();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment