mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 13:20:05 +03:00
stdout is techncially right check hre
This commit is contained in:
parent
ea09f6530a
commit
1c13f6fa53
1 changed files with 1 additions and 1 deletions
|
@ -2219,7 +2219,7 @@ http://msdn.microsoft.com/en-us/library/windows/desktop/ms683193%28v=vs.85%29.as
|
|||
return [cols, rows];
|
||||
} else {
|
||||
winsize w;
|
||||
ioctl(0, TIOCGWINSZ, &w);
|
||||
ioctl(1, TIOCGWINSZ, &w);
|
||||
return [w.ws_col, w.ws_row];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue