update comments to explain the reason for not running init_ui

git-svn-id: file:///home/svn/framework3/trunk@9114 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-04-20 07:01:46 +00:00
parent 4243ce5bf4
commit 928389e8b0
2 changed files with 8 additions and 6 deletions

View File

@ -31,10 +31,11 @@ module MeterpreterOptions
# advanced option is set to true.
#
def on_session(session)
super
# Don't initialize the UI here since it will clobber any existing tab
# completion routines prematurely. Instead, wait for the user to
# interact. See bug 1180
# Configure input/output to match the payload
#session.init_ui(self.user_input, self.user_output)
super
if (datastore['AutoLoadStdapi'] == true)
session.load_stdapi

View File

@ -37,6 +37,10 @@ module Shell
# Initializes a shell that has a prompt and can be interacted with.
#
def initialize(prompt, prompt_char = '>', histfile = nil)
# Don't initialize the UI here since it will clobber any existing tab
# completion routines prematurely. Instead, wait for the user to
# interact. See bug 1180
# Set the stop flag to false
self.stop_flag = false
self.disable_output = false
@ -47,9 +51,6 @@ module Shell
self.prompt_char = prompt_char
self.histfile = histfile
# Initialize the user interface handles
#init_ui(Input::Stdio.new, Output::Stdio.new)
end
#