Merge branch 'master' into 'master'

Annotate the tuple returned by terminal_size()

See merge request redox-os/termion!179
This commit is contained in:
Jeremy Soller 2022-10-21 06:47:13 +00:00
commit 557f7a4e6f
1 changed files with 1 additions and 1 deletions

View File

@ -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();