module Console::Output

def self.new(output = nil, env = ENV, **options)

def self.new(output = nil, env = ENV, **options)
	if names = env["CONSOLE_OUTPUT"]
		names = names.split(",").reverse
		
		names.inject(output) do |output, name|
			Output.const_get(name).new(output, **options)
		end
	else
		return Output::Default.new(output, **options)
	end
end