module Terminal
Styled terminal output.
Nested Classes and Modules
module FormatterFormatters for various types of events.
class TextA simple text-based terminal output.
class XTermXTerm style terminal output.
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