Files
metasploit-gs/lib/msf/ui/console/output_methods.rb
T
Matt Miller 5521a1254d more stuff, ui isn't pretty, but just wanting to test shit
git-svn-id: file:///home/svn/incoming/trunk@2509 4d416f70-5f16-0410-b530-b9f4589650da
2005-05-22 20:28:21 +00:00

29 lines
337 B
Ruby

module Msf
module Ui
module Console
class OutputMethod
end
class StdioOutputMethod < OutputMethod
def print_error(msg = '')
print_line("[*] #{msg}")
end
def print_status(msg = '')
print_line("[-] #{msg}")
end
def print_line(msg = '')
print(msg + "\n")
end
def print(msg = '')
$stdout.print(msg)
end
end
end
end
end