Project

General

Profile

« Previous | Next » 

Revision e0bfdb23

Added by Peter Jones over 3 years ago

[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