Skip to content

Commit c5d1ad6

Browse files
committed
lands 3346, fix msf > prompt issues
2 parents 4b47a9a + 4538512 commit c5d1ad6

File tree

1 file changed

+2
-2
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+2
-2
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def cmd_back(*args)
344344
# Restore the prompt
345345
prompt = framework.datastore['Prompt'] || Msf::Ui::Console::Driver::DefaultPrompt
346346
prompt_char = framework.datastore['PromptChar'] || Msf::Ui::Console::Driver::DefaultPromptChar
347-
driver.update_prompt("#{prompt}", prompt_char, true)
347+
driver.update_prompt("#{prompt} ", prompt_char, true)
348348
end
349349
end
350350

@@ -2609,7 +2609,7 @@ def cmd_grep(*args)
26092609
if mod # if there is an active module, give them the fanciness they have come to expect
26102610
driver.update_prompt("#{prompt} #{mod.type}(%bld%red#{mod.shortname}%clr) ", prompt_char, true)
26112611
else
2612-
driver.update_prompt("#{prompt}", prompt_char, true)
2612+
driver.update_prompt("#{prompt} ", prompt_char, true)
26132613
end
26142614

26152615
# dump the command's output so we can grep it

0 commit comments

Comments
 (0)