aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2026-01-03 10:11:32 +0000
committerRon Yorston <rmy@pobox.com>2026-01-03 10:11:32 +0000
commit78417c202393af53b78c1bc2268555bb26bf04d7 (patch)
tree7882b38e5ae37d6914947da2fd7f2a3b5bb5f43f
parent6075ab704a0fc5b9d888097b781c2e8271102a64 (diff)
downloadbusybox-w32-master.tar.gz
busybox-w32-master.tar.bz2
busybox-w32-master.zip
stty: reinstate functionality of 'stty size'HEADmaster
Commit 3681e397f (stty: drop 'rows' and 'columns' settings) had the unfortunate side effect of preventing 'stty size' from working. Reinstate the necessary code. Adds 64-72 bytes. (GitHub issue #553)
-rw-r--r--coreutils/stty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c
index c064ad90a..db4e2299d 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -1645,6 +1645,12 @@ int stty_main(int argc UNUSED_PARAM, char **argv)
1645 stty_state |= (STTY_require_set_attr | STTY_speed_was_set); 1645 stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
1646 } /* else - impossible (caught in the first pass): 1646 } /* else - impossible (caught in the first pass):
1647 bb_error_msg_and_die("invalid argument '%s'", arg); */ 1647 bb_error_msg_and_die("invalid argument '%s'", arg); */
1648#else /* ENABLE_PLATFORM_MINGW32 */
1649#ifdef TIOCGWINSZ
1650 case param_size:
1651 display_window_size(0);
1652 break;
1653#endif
1648#endif 1654#endif
1649 } 1655 }
1650 } 1656 }