Revert "Use existing input object when calling init_tab_complete"
This commit is contained in:
@@ -107,7 +107,7 @@ class Driver < Msf::Ui::Driver
|
||||
# Initialize the user interface to use a different input and output
|
||||
# handle if one is supplied
|
||||
input = opts['LocalInput']
|
||||
input ||= Rex::Ui::Text::Input::Readline.new
|
||||
input ||= Rex::Ui::Text::Input::Stdio.new
|
||||
|
||||
if !opts['Readline']
|
||||
input.disable_readline
|
||||
|
||||
@@ -66,7 +66,8 @@ module Shell
|
||||
def init_tab_complete
|
||||
if (self.input and self.input.supports_readline)
|
||||
# Unless cont_flag because there's no tab complete for continuation lines
|
||||
self.input.reset_tab_completion(lambda { |str| tab_complete(str) unless cont_flag })
|
||||
self.input = Input::Readline.new(lambda { |str| tab_complete(str) unless cont_flag })
|
||||
self.input.output = self.output
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user