Sha256: 5482950692df68ffbb89264a58d744151a21925c56db242266624a112d5a5f0a

Contents?: true

Size: 1.01 KB

Versions: 38

Compression:

Stored size: 1.01 KB

Contents

require 'rex/ui'

module Rex
module Ui

###
#
# This class acts as a generic base class for outputing data.  It
# only provides stubs for the simplest form of outputing information.
#
###
class Output

	# General output
	require 'rex/ui/output/none'

	# Text-based output
	require 'rex/ui/text/output'

	#
	# Prints an error message.
	#
	def print_error(msg='')
	end

	#
	# Prints a 'good' message.
	#
	def print_good(msg='')
	end

	def print_debug(msg='')
	end

	#
	# Prints a status line.
	#
	def print_status(msg='')
	end

	#
	# Prints an undecorated line of information.
	#
	def print_line(msg='')
	end

	#
	# Prints a message with no decoration.
	#
	def print(msg='')
	end

	#
	# Flushes any buffered output.
	#
	def flush
	end

	#
	# Called to tell the output medium that we're at a prompt.
	# This is used to allow the output medium to display an extra
	# carriage return
	#
	def prompting(v = true)
		@at_prompt = v
	end

	#
	# Returns whether or not we're at a prompt currently
	#
	def prompting?
		@at_prompt
	end

end

end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
librex-0.0.65 lib/rex/ui/output.rb
librex-0.0.63 lib/rex/ui/output.rb
librex-0.0.54 lib/rex/ui/output.rb
librex-0.0.53 lib/rex/ui/output.rb
librex-0.0.52 lib/rex/ui/output.rb
librex-0.0.51 lib/rex/ui/output.rb
librex-0.0.50 lib/rex/ui/output.rb
librex-0.0.49 lib/rex/ui/output.rb
librex-0.0.48 lib/rex/ui/output.rb
librex-0.0.47 lib/rex/ui/output.rb
librex-0.0.46 lib/rex/ui/output.rb
librex-0.0.44 lib/rex/ui/output.rb
librex-0.0.43 lib/rex/ui/output.rb
librex-0.0.42 lib/rex/ui/output.rb
librex-0.0.41 lib/rex/ui/output.rb
librex-0.0.40 lib/rex/ui/output.rb
librex-0.0.39 lib/rex/ui/output.rb
librex-0.0.38 lib/rex/ui/output.rb
librex-0.0.37 lib/rex/ui/output.rb
librex-0.0.36 lib/rex/ui/output.rb