This class implements output against a file and stdout
# File lib/rex/ui/text/output/tee.rb, line 46 def close self.fd.close if self.fd self.fd = nil end
Prints the supplied message to file output.
# File lib/rex/ui/text/output/tee.rb, line 36 def print_raw(msg = '') $stdout.print(msg) $stdout.flush return if not self.fd self.fd.write(msg) self.fd.flush msg end
# File lib/rex/ui/text/output/tee.rb, line 21 def supports_color? case config[:color] when true return true when false return false else # auto term = Rex::Compat.getenv('TERM') return (term and term.match(/(?:vt10[03]|xterm(?:-color)?|linux|screen|rxvt)/) != nil) end end
Generated with the Darkfish Rdoc Generator 2.