class Rex::Ui::Output

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

Public Instance Methods

flush() click to toggle source

Flushes any buffered output.

# File lib/rex/ui/output.rb, line 59
def flush
end
print(msg='') click to toggle source

Prints a message with no decoration.

print_error(msg='') click to toggle source

Prints an error message.

print_good(msg='') click to toggle source

Prints a 'good' message.

print_line(msg='') click to toggle source

Prints an undecorated line of information.

print_status(msg='') click to toggle source

Prints a status line.

print_warning(msg='') click to toggle source

Prints a warning

prompting(v = true) click to toggle source

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

# File lib/rex/ui/output.rb, line 67
def prompting(v = true)
  @at_prompt = v
end
prompting?() click to toggle source

Returns whether or not we're at a prompt currently

# File lib/rex/ui/output.rb, line 74
def prompting?
  @at_prompt
end