2005-07-14 22:45:10 +00:00
|
|
|
require 'rex/ui'
|
|
|
|
|
|
|
|
module Rex
|
|
|
|
module Ui
|
|
|
|
module Text
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
|
|
|
# This class implements output against standard out.
|
|
|
|
#
|
|
|
|
###
|
|
|
|
class Output::Stdio < Rex::Ui::Text::Output
|
|
|
|
|
2005-11-15 05:22:13 +00:00
|
|
|
#
|
|
|
|
# Prints the supplied message to standard output.
|
|
|
|
#
|
2005-07-14 22:45:10 +00:00
|
|
|
def print(msg = '')
|
|
|
|
$stdout.print(msg)
|
2005-07-18 04:07:56 +00:00
|
|
|
$stdout.flush
|
2005-10-02 03:21:26 +00:00
|
|
|
|
|
|
|
msg
|
2005-07-14 22:45:10 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|