Skip to content

Commit

Permalink
Change the ioctl system call support check to use the output method
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Dec 3, 2023
1 parent d0d7f44 commit 2ec6af3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## [v0.8.2] - unreleased

### Changed
* Change the ioctl system call support check to use the output method

### Fixed
* Fix ioctl call test to stub terminal size encoding for big-endian systems
* Fix to skip terminal size detection from readline on non-TTY output
Expand Down
2 changes: 1 addition & 1 deletion lib/tty/screen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def size_from_io_console(verbose: false)
end
module_function :size_from_io_console

if !jruby? && @output.respond_to?(:ioctl)
if !jruby? && output.respond_to?(:ioctl)
TIOCGWINSZ = 0x5413 # linux
TIOCGWINSZ_PPC = 0x40087468 # macos, freedbsd, netbsd, openbsd
TIOCGWINSZ_SOL = 0x5468 # solaris
Expand Down

0 comments on commit 2ec6af3

Please sign in to comment.