Files
metasploit-gs/lib/rex/ui/text/output/buffer/stdout.rb
T
HD Moore 5e123e024d Add 'coding: binary' to all msf/rex library files
This fixes a huge number of hard-to-detect runtime bugs
that occur when a default utf-8 string from one of these
libraries is passed into a method expecting ascii-8bit
2014-08-17 17:31:53 -05:00

26 lines
700 B
Ruby

# -*- coding: binary -*-
# make sure the classes are defined before opening it to define submodule
require 'rex/ui/text/output'
require 'rex/ui/text/output/buffer'
module Rex
module Ui
module Text
class Output
class Buffer
# Adds {#write} method to {Rex::Ui::Text::Output::Buffer} so it can
# function as a stand-in for `$stdout`
module Stdout
# Prints raw message.
#
# @param (see Rex::Ui::Text::Output::Buffer#write)
# @return (see Rex::Ui::Text::Output::Buffer#write)
def write(msg = '')
print_raw(msg)
end
end
end
end
end
end
end