Module: Rex::Ui::Subscriber
Overview
This module provides a subscriber interface to input/output.
Defined Under Namespace
Instance Attribute Summary
Attributes included from Input
Attributes included from Output
Instance Method Summary collapse
-
#copy_ui(subscriber) ⇒ Object
Copy the user input and output handles from the supplied subscriber.
-
#init_ui(input = nil, output = nil) ⇒ Object
Sets the input and output handles.
-
#reset_ui ⇒ Object
Disables input/output.
Methods included from Input
Methods included from Output
#flush, #print, #print_error, #print_good, #print_line, #print_status, #print_warning
Instance Method Details
#copy_ui(subscriber) ⇒ Object
Copy the user input and output handles from the supplied subscriber.
143 144 145 |
# File 'lib/rex/ui/subscriber.rb', line 143 def copy_ui(subscriber) init_ui(subscriber.user_input, subscriber.user_output) end |
#init_ui(input = nil, output = nil) ⇒ Object
Sets the input and output handles.
127 128 129 130 |
# File 'lib/rex/ui/subscriber.rb', line 127 def init_ui(input = nil, output = nil) self.user_input = input self.user_output = output end |
#reset_ui ⇒ Object
Disables input/output
135 136 137 138 |
# File 'lib/rex/ui/subscriber.rb', line 135 def reset_ui self.user_input = nil self.user_output = nil end |