This class acts as a base for all input mediums. It defines the interface that will be used by anything that wants to interact with a derived class.
# File lib/rex/ui/text/input.rb, line 99 def auto_color return if not @config @config[:color] = :auto end
# File lib/rex/ui/text/input.rb, line 89 def disable_color return if not @config @config[:color] = false end
# File lib/rex/ui/text/input.rb, line 94 def enable_color return if not @config @config[:color] = true end
Has the input medium reached end-of-file?
# File lib/rex/ui/text/input.rb, line 62 def eof? return eof end
Returns a pollable file descriptor that is associated with this input medium.
# File lib/rex/ui/text/input.rb, line 70 def fd raise NotImplementedError end
Gets a line of input
# File lib/rex/ui/text/input.rb, line 55 def gets raise NotImplementedError end
Indicates whether or not this input medium is intrinsicly a shell provider. This would indicate whether or not it already expects to have a prompt.
# File lib/rex/ui/text/input.rb, line 79 def intrinsic_shell? false end
Stub for tab completion reset
# File lib/rex/ui/text/input.rb, line 42 def reset_tab_completion end
Whether or not the input medium supports readline.
# File lib/rex/ui/text/input.rb, line 35 def supports_readline true end
Generated with the Darkfish Rdoc Generator 2.