Don't use parenthesis around pgets
parent
0ad7d10e05
commit
214c137b4a
|
@ -88,7 +88,7 @@ begin
|
|||
# down other background threads. This is important when there are many active
|
||||
# background jobs, such as when the user is running Karmetasploit
|
||||
#
|
||||
def pgets()
|
||||
def pgets
|
||||
|
||||
line = nil
|
||||
orig = Thread.current.priority
|
||||
|
|
|
@ -22,7 +22,7 @@ module Shell
|
|||
module InputShell
|
||||
attr_accessor :prompt, :output
|
||||
|
||||
def pgets()
|
||||
def pgets
|
||||
|
||||
output.print(prompt)
|
||||
output.flush
|
||||
|
@ -370,7 +370,7 @@ protected
|
|||
end
|
||||
|
||||
output.input = input
|
||||
line << input.pgets()
|
||||
line << input.pgets
|
||||
output.input = nil
|
||||
log_output(input.prompt)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue