Class: Rex::Ui::Output

Inherits:
Object
  • Object
show all
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

None, Text::Output

Defined Under Namespace

Classes: None

Instance Method Summary collapse

Instance Method Details

#flushObject

Flushes any buffered output.



56
57
# File 'lib/rex/ui/output.rb', line 56

def flush
end

Prints a message with no decoration.



50
51
# File 'lib/rex/ui/output.rb', line 50

def print(msg='')
end


32
33
# File 'lib/rex/ui/output.rb', line 32

def print_debug(msg='')
end

Prints an error message.



23
24
# File 'lib/rex/ui/output.rb', line 23

def print_error(msg='')
end

Prints a ‘good’ message.



29
30
# File 'lib/rex/ui/output.rb', line 29

def print_good(msg='')
end

Prints an undecorated line of information.



44
45
# File 'lib/rex/ui/output.rb', line 44

def print_line(msg='')
end

Prints a status line.



38
39
# File 'lib/rex/ui/output.rb', line 38

def print_status(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



64
65
66
# File 'lib/rex/ui/output.rb', line 64

def prompting(v = true)
	@at_prompt = v
end

#prompting?Boolean

Returns whether or not we’re at a prompt currently

Returns:

  • (Boolean)


71
72
73
# File 'lib/rex/ui/output.rb', line 71

def prompting?
	@at_prompt
end