CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/ui/text/output/buffer/stdout.rb
Views: 11765
1
# -*- coding: binary -*-
2
# make sure the classes are defined before opening it to define submodule
3
4
module Rex
5
module Ui
6
module Text
7
class Output
8
class Buffer
9
# Adds {#write} method to {Rex::Ui::Text::Output::Buffer} so it can
10
# function as a stand-in for `$stdout`
11
module Stdout
12
# Prints raw message.
13
#
14
# @param (see Rex::Ui::Text::Output::Buffer#write)
15
# @return (see Rex::Ui::Text::Output::Buffer#write)
16
def write(msg = '')
17
print_raw(msg)
18
end
19
end
20
end
21
end
22
end
23
end
24
end
25
26