2005-07-14 22:45:10 +00:00
|
|
|
require 'rex/ui'
|
|
|
|
|
|
|
|
module Rex
|
|
|
|
module Ui
|
|
|
|
module Text
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
|
|
|
# Stdio
|
|
|
|
# -----
|
|
|
|
#
|
|
|
|
# This class implements output against standard out.
|
|
|
|
#
|
|
|
|
###
|
|
|
|
class Output::Stdio < Rex::Ui::Text::Output
|
|
|
|
|
|
|
|
def print(msg = '')
|
|
|
|
$stdout.print(msg)
|
2005-07-18 04:07:56 +00:00
|
|
|
$stdout.flush
|
2005-07-14 22:45:10 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|