class Rex::Ui::Output
This class acts as a generic base class for outputing data. It only provides stubs for the simplest form of outputing information.
Public Instance Methods
flush()
click to toggle source
Flushes any buffered output.
# File lib/rex/ui/output.rb, line 62 def flush end
print(msg='')
click to toggle source
Prints a message with no decoration.
# File lib/rex/ui/output.rb, line 56 def print(msg='') end
print_debug(msg='')
click to toggle source
# File lib/rex/ui/output.rb, line 32 def print_debug(msg='') end
print_error(msg='')
click to toggle source
Prints an error message.
# File lib/rex/ui/output.rb, line 23 def print_error(msg='') end
print_good(msg='')
click to toggle source
Prints a ‘good’ message.
# File lib/rex/ui/output.rb, line 29 def print_good(msg='') end
print_line(msg='')
click to toggle source
Prints an undecorated line of information.
# File lib/rex/ui/output.rb, line 44 def print_line(msg='') end
print_status(msg='')
click to toggle source
Prints a status line.
# File lib/rex/ui/output.rb, line 38 def print_status(msg='') end
print_warning(msg='')
click to toggle source
Prints a warning
# File lib/rex/ui/output.rb, line 50 def print_warning(msg='') end
prompting(v = true)
click to toggle source
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
# File lib/rex/ui/output.rb, line 70 def prompting(v = true) @at_prompt = v end
prompting?()
click to toggle source
Returns whether or not we’re at a prompt currently
# File lib/rex/ui/output.rb, line 77 def prompting? @at_prompt end