Sha256: e91a052d3d89dc85369e5943b6e514aaaf344e37529b4e6ac2cca323d3af85bf

Contents?: true

Size: 446 Bytes

Versions: 5

Compression:

Stored size: 446 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2024, by Samuel Williams.

require_relative 'terminal/text'
require_relative 'terminal/xterm'

require_relative 'terminal/formatter/progress'
require_relative 'terminal/formatter/failure'
require_relative 'terminal/formatter/spawn'

module Console
	module Terminal
		def self.for(io)
			if io.tty?
				XTerm.new(io)
			else
				Text.new(io)
			end
		end
	end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
console-1.27.0 lib/console/terminal.rb
console-1.26.0 lib/console/terminal.rb
console-1.25.2 lib/console/terminal.rb
console-1.25.1 lib/console/terminal.rb
console-1.25.0 lib/console/terminal.rb