metasploit-framework/lib/rex/ui/text/output.rb

41 lines
484 B
Ruby
Raw Normal View History

require 'rex/ui'
module Rex
module Ui
module Text
###
#
# Output
# ------
#
# This class implements text-based output but is not
# tied to an output medium.
#
###
class Output < Rex::Ui::Output
require 'rex/ui/text/output/stdio'
def print_error(msg = '')
print_line("[-] #{msg}")
end
def print_good(msg = '')
print_line("[+] #{msg}")
end
def print_status(msg = '')
print_line("[*] #{msg}")
end
def print_line(msg = '')
print(msg + "\n")
end
end
end
end
end