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 outputting data. It only provides stubs for the simplest form of outputting 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_error(msg = '') ⇒ Object
(also: #print_bad)
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.
59 60 |
# File 'lib/rex/ui/output.rb', line 59 def flush end |
#print(msg = '') ⇒ Object
Prints a message with no decoration.
53 54 |
# File 'lib/rex/ui/output.rb', line 53 def print(msg='') end |
#print_error(msg = '') ⇒ Object Also known as: print_bad
Prints an error message.
21 22 |
# File 'lib/rex/ui/output.rb', line 21 def print_error(msg='') end |
#print_good(msg = '') ⇒ Object
Prints a ‘good’ message.
29 30 |
# File 'lib/rex/ui/output.rb', line 29 def print_good(msg='') end |
#print_line(msg = '') ⇒ Object
Prints an undecorated line of information.
41 42 |
# File 'lib/rex/ui/output.rb', line 41 def print_line(msg='') end |
#print_status(msg = '') ⇒ Object
Prints a status line.
35 36 |
# File 'lib/rex/ui/output.rb', line 35 def print_status(msg='') end |
#print_warning(msg = '') ⇒ Object
Prints a warning
47 48 |
# File 'lib/rex/ui/output.rb', line 47 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
67 68 69 |
# File 'lib/rex/ui/output.rb', line 67 def prompting(v = true) @at_prompt = v end |
#prompting? ⇒ Boolean
Returns whether or not we’re at a prompt currently
74 75 76 |
# File 'lib/rex/ui/output.rb', line 74 def prompting? @at_prompt end |