Module: Console::Terminal
- Defined in:
- lib/console/terminal/text.rb,
lib/console/terminal.rb,
lib/console/terminal/xterm.rb,
lib/console/terminal/formatter.rb,
lib/console/terminal/formatter/spawn.rb,
lib/console/terminal/formatter/failure.rb,
lib/console/terminal/formatter/progress.rb more...
Overview
Styled terminal output.
Defined Under Namespace
Modules: Formatter Classes: Text, XTerm
Class Method Summary collapse
-
.for(stream) ⇒ Object
Create a new terminal output for the given stream.
Class Method Details
.for(stream) ⇒ Object
Create a new terminal output for the given stream.
13 14 15 16 17 18 19 |
# File 'lib/console/terminal.rb', line 13 def self.for(stream) if stream.tty? XTerm.new(stream) else Text.new(stream) end end |