module Rex
module Ui
module Text
class Output::Socket < Rex::Ui::Text::Output
def initialize(sock)
@sock = sock
super()
end
def supports_color?
case config[:color]
when true
return true
else
false
end
end
def print_raw(msg = '')
@sock.write(msg)
@sock.flush
msg
end
end
end
end
end