stty: order was backwards for size...
This commit is contained in:
parent
c4e0562753
commit
10406545a5
@ -227,7 +227,7 @@ static int show_settings(int all) {
|
||||
static void show_size(void) {
|
||||
struct winsize w;
|
||||
ioctl(STDERR_FILENO, TIOCGWINSZ, &w);
|
||||
fprintf(stdout, "%d %d\n", w.ws_col, w.ws_row);
|
||||
fprintf(stdout, "%d %d\n", w.ws_row, w.ws_col);
|
||||
}
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
|
Loading…
Reference in New Issue
Block a user