Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::StreamUI#tty?
tty?
lib/rubygems/user_interaction.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/user_interaction.rb, line 206
def tty?
@usetty && @ins.tty?
end
Returns true if TTY methods should be used on this StreamUI.