Sha256: 2996d933f69c44e121689b62f4202e5df91ea6476df14703e7d32214a9128397
Contents?: true
Size: 564 Bytes
Versions: 41
Compression:
Stored size: 564 Bytes
Contents
require 'rex/ui' module Rex module Ui module Text ### # # This class implements output against standard out. # ### class Output::Stdio < Rex::Ui::Text::Output 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)/i) != nil) end end # # Prints the supplied message to standard output. # def print_raw(msg = '') $stdout.print(msg) $stdout.flush msg end end end end end
Version data entries
41 entries across 41 versions & 1 rubygems