Merge branch 'master' into 'master'
Annotate the tuple returned by terminal_size() See merge request redox-os/termion!179
This commit is contained in:
commit
557f7a4e6f
|
@ -10,7 +10,7 @@ struct TermSize {
|
||||||
x: c_ushort,
|
x: c_ushort,
|
||||||
y: 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)> {
|
pub fn terminal_size() -> io::Result<(u16, u16)> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut size: TermSize = mem::zeroed();
|
let mut size: TermSize = mem::zeroed();
|
||||||
|
|
Loading…
Reference in New Issue