stty: order was backwards for size...

This commit is contained in:
K. Lange 2019-01-14 20:32:16 +09:00
parent c4e0562753
commit 10406545a5

View File

@ -227,7 +227,7 @@ static int show_settings(int all) {
static void show_size(void) { static void show_size(void) {
struct winsize w; struct winsize w;
ioctl(STDERR_FILENO, TIOCGWINSZ, &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[]) { int main(int argc, char * argv[]) {