You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/rex/ui/text/input/readline.rb
+16-5Lines changed: 16 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -133,16 +133,27 @@ def intrinsic_shell?
133
133
private
134
134
135
135
defreadline_with_output(prompt,add_history=false)
136
-
# rb-readlines's Readline.readline hardcodes the input and output to $stdin and $stdout, which means setting
137
-
# `Readline.input` or `Readline.ouput` has no effect when running `Readline.readline` with rb-readline, so need
138
-
# to reimplement []`Readline.readline`](https://github.com/luislavena/rb-readline/blob/ce4908dae45dbcae90a6e42e3710b8c3a1f2cd64/lib/readline.rb#L36-L58)
139
-
# for rb-readline to support setting input and output. Output needs to be set so that colorization works for the
140
-
# prompt on Windows.
136
+
# rb-readlines's Readline.readline hardcodes the input and output to
137
+
# $stdin and $stdout, which means setting `Readline.input` or
138
+
# `Readline.ouput` has no effect when running `Readline.readline` with
0 commit comments