Class: Rex::Ui::Output
- Inherits:
-
Object
- Object
- Rex::Ui::Output
- Defined in:
- lib/rex/ui/output.rb
Overview
This class acts as a generic base class for outputing data. It only provides stubs for the simplest form of outputing information.
Direct Known Subclasses
Defined Under Namespace
Classes: None
Instance Method Summary collapse
-
#flush ⇒ Object
Flushes any buffered output.
-
#print(msg = '') ⇒ Object
Prints a message with no decoration.
- #print_debug(msg = '') ⇒ Object
-
#print_error(msg = '') ⇒ Object
Prints an error message.
-
#print_good(msg = '') ⇒ Object
Prints a ‘good’ message.
-
#print_line(msg = '') ⇒ Object
Prints an undecorated line of information.
-
#print_status(msg = '') ⇒ Object
Prints a status line.
-
#print_warning(msg = '') ⇒ Object
Prints a warning.
-
#prompting(v = true) ⇒ Object
Called to tell the output medium that we’re at a prompt.
-
#prompting? ⇒ Boolean
Returns whether or not we’re at a prompt currently.
Instance Method Details
#flush ⇒ Object
Flushes any buffered output.
63 64 |
# File 'lib/rex/ui/output.rb', line 63 def flush end |
#print(msg = '') ⇒ Object
Prints a message with no decoration.
57 58 |
# File 'lib/rex/ui/output.rb', line 57 def print(msg='') end |
#print_debug(msg = '') ⇒ Object
33 34 |
# File 'lib/rex/ui/output.rb', line 33 def print_debug(msg='') end |
#print_error(msg = '') ⇒ Object
Prints an error message.
24 25 |
# File 'lib/rex/ui/output.rb', line 24 def print_error(msg='') end |
#print_good(msg = '') ⇒ Object
Prints a ‘good’ message.
30 31 |
# File 'lib/rex/ui/output.rb', line 30 def print_good(msg='') end |
#print_line(msg = '') ⇒ Object
Prints an undecorated line of information.
45 46 |
# File 'lib/rex/ui/output.rb', line 45 def print_line(msg='') end |
#print_status(msg = '') ⇒ Object
Prints a status line.
39 40 |
# File 'lib/rex/ui/output.rb', line 39 def print_status(msg='') end |
#print_warning(msg = '') ⇒ Object
Prints a warning
51 52 |
# File 'lib/rex/ui/output.rb', line 51 def print_warning(msg='') end |
#prompting(v = true) ⇒ Object
Called to tell the output medium that we’re at a prompt. This is used to allow the output medium to display an extra carriage return
71 72 73 |
# File 'lib/rex/ui/output.rb', line 71 def prompting(v = true) @at_prompt = v end |
#prompting? ⇒ Boolean
Returns whether or not we’re at a prompt currently
78 79 80 |
# File 'lib/rex/ui/output.rb', line 78 def prompting? @at_prompt end |