Skip to content

Conversation

@xwang1498
Copy link
Contributor

OpenWrt (and perhaps other embedded systems):

  1. Doesn't have stty or tput commands to discover the terminal size.
  2. Uses Busybox ping by default, which prints slightly differently.

This PR fixes both, by: not complaining if tput fails, falling back to bash itself to discover the terminal size, and supporting Busybox ping's output format.

xwang1498 added 2 commits May 31, 2025 15:07
Embedded systems like OpenWrt don't have either stty or tput commands.
But we can fall back to using bash itself in interactive mode to
discover the terminal size.
Busybox ping prints sequence numbers as `seq=xxx`, rather than
`icmp_seq=xxx` like most other ping utilities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant