diff options
| author | Ron Yorston <rmy@pobox.com> | 2026-01-03 10:11:32 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2026-01-03 10:11:32 +0000 |
| commit | 78417c202393af53b78c1bc2268555bb26bf04d7 (patch) | |
| tree | 7882b38e5ae37d6914947da2fd7f2a3b5bb5f43f | |
| parent | 6075ab704a0fc5b9d888097b781c2e8271102a64 (diff) | |
| download | busybox-w32-master.tar.gz busybox-w32-master.tar.bz2 busybox-w32-master.zip | |
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.c | 6 |
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 | } |
