mhsmith · GitHub

@mhsmith

@mhsmith

@mhsmith mhsmith changed the title Make os.get_terminal_size check isatty before ioctl Make os.get_terminal_size check isatty before calling ioctl

Jul 29, 2026

@mhsmith

@mhsmith

mhsmith marked this pull request as ready for review

July 29, 2026 16:17

@mhsmith

freakboy3742

@freakboy3742

@freakboy3742

freakboy3742 pushed a commit that referenced this pull request

Jul 30, 2026
…tl` (GH-154885) (#154903)
Calling ioctl on stdout raises warnings on Android. Ensure we have a TTY
before doing terminal size calls.
(cherry picked from commit  51ae3c0 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>

mbeijen pushed a commit to mbeijen/cpython that referenced this pull request

Aug 14, 2026
…thon#154885)
Calling ioctl on stdout raises warnings on Android. Ensure we have a TTY
before doing terminal size calls.

Read the original on github.com ↗