module Terminal
Styled terminal output.
Nested
Definitions
def self.for(stream)
Create a new terminal output for the given stream.
Implementation
def self.for(stream)
if stream.tty?
XTerm.new(stream)
else
Text.new(stream)
end
end