This class implements text-based output but is not tied to an output medium.
# File lib/rex/ui/text/output.rb, line 40 def auto_color @config[:color] = :auto end
# File lib/rex/ui/text/output.rb, line 32 def disable_color @config[:color] = false end
# File lib/rex/ui/text/output.rb, line 36 def enable_color @config[:color] = true end
# File lib/rex/ui/text/output.rb, line 69 def print(msg = '') print_raw(substitute_colors(msg)) end
# File lib/rex/ui/text/output.rb, line 57 def print_debug(msg = '') print_line("%bld%cya[!]%clr #{msg}") end
# File lib/rex/ui/text/output.rb, line 49 def print_error(msg = '') print_line("%bld%red[-]%clr #{msg}") end
# File lib/rex/ui/text/output.rb, line 53 def print_good(msg = '') print_line("%bld%grn[+]%clr #{msg}") end
# File lib/rex/ui/text/output.rb, line 65 def print_line(msg = '') print(msg + "\n") end
Generated with the Darkfish Rdoc Generator 2.