diff options
| author | Peter Jones <pjones@devalot.com> | 2022-03-24 13:48:27 -0700 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2022-06-26 14:40:48 +0900 |
| commit | e0bfdb23af3f182d7605a6ac3c93b07001d9045c (patch) | |
| tree | 3fc816a24045a2bb51bab6fb4b5368ca13a44809 /spec/ruby/core/array/pack/shared/basic.rb | |
| parent | 846a6bb60ff5fe085ce90442a11e0dceadf8a0e9 (diff) | |
[ruby/irb] Ensure stdout is a TTY before calling winsize
When outputting a (possibly truncated) value, IRB will query the
window size. However, if IRB was piped to another process, stdout
will no longer be a TTY and will not support the `winsize` method.
This fix ensure that stdout is a TTY.
https://github.com/ruby/irb/commit/125de5eeea
Diffstat (limited to 'spec/ruby/core/array/pack/shared/basic.rb')
0 files changed, 0 insertions, 0 deletions
