# -*- coding: binary -*-12module Rex3module Ui45###6#7# This class acts as a generic base class for outputting data. It8# only provides stubs for the simplest form of outputting information.9#10###11class Output1213# General output1415# Text-based output1617#18# Prints an error message.19#20def print_error(msg='')21end2223alias_method :print_bad, :print_error2425#26# Prints a 'good' message.27#28def print_good(msg='')29end3031#32# Prints a status line.33#34def print_status(msg='')35end3637#38# Prints an undecorated line of information.39#40def print_line(msg='')41end4243#44# Prints a warning45#46def print_warning(msg='')47end4849#50# Prints a message with no decoration.51#52def print(msg='')53end5455#56# Flushes any buffered output.57#58def flush59end6061#62# Called to tell the output medium that we're at a prompt.63# This is used to allow the output medium to display an extra64# carriage return65#66def prompting(v = true)67@at_prompt = v68end6970#71# Returns whether or not we're at a prompt currently72#73def prompting?74@at_prompt75end7677end7879end80end818283