Browse Source

stty: order was backwards for size...

K. Lange 2 years ago
parent
commit
10406545a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/stty.c

+ 1 - 1
apps/stty.c

@@ -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[]) {