class Rex::Ui::Text::Output

This class implements text-based output but is not tied to an output medium.

Attributes

config[R]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/rex/ui/text/output.rb, line 24
def initialize
  @config = {
    :color => :auto, # true, false, :auto
  }
  super
end

Public Instance Methods

auto_color() click to toggle source
# File lib/rex/ui/text/output.rb, line 40
def auto_color
  @config[:color] = :auto
end
disable_color() click to toggle source
# File lib/rex/ui/text/output.rb, line 32
def disable_color
  @config[:color] = false
end
enable_color() click to toggle source
# File lib/rex/ui/text/output.rb, line 36
def enable_color
  @config[:color] = true
end
print(msg = '') click to toggle source
print_debug(msg = '') click to toggle source
print_error(msg = '') click to toggle source
print_good(msg = '') click to toggle source
print_line(msg = '') click to toggle source
print_status(msg = '') click to toggle source
print_warning(msg = '') click to toggle source
reset() click to toggle source
# File lib/rex/ui/text/output.rb, line 77
def reset
end
update_prompt(prompt = nil) click to toggle source
# File lib/rex/ui/text/output.rb, line 44
def update_prompt(prompt = nil)
  return if prompt.nil?
  substitute_colors(prompt, true)
end