Skip to content

Commit a267101

Browse files
David MaloneyDavid Maloney
authored andcommitted
Land rapid7#7670, bwatter's fix for prompt newline
land's brendan's fix for console output getting truncated
2 parents 50f95f9 + 7dd2d3e commit a267101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/ui/text/input/readline.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def readline_with_output(prompt, add_history=false)
139139
# for rb-readline to support setting input and output. Output needs to be set so that colorization works for the
140140
# prompt on Windows.
141141
self.prompt = prompt
142-
reset_sequence = "\001\r\033[K\002"
142+
reset_sequence = "\n\001\r\033[K\002"
143143
if (/mingw/ =~ RUBY_PLATFORM)
144144
reset_sequence = ""
145145
end

0 commit comments

Comments
 (0)