module Terminal

Styled terminal output.

Nested Classes and Modules

module Formatter

Formatters for various types of events.

class Text

A simple text-based terminal output.

class XTerm

XTerm 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