tell readline that the color escapes shouldn't be counted as part of the line length, thanks to Niklas Baumstark. fixes 1531, fixes 531
git-svn-id: file:///home/svn/framework3/trunk@9038 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
36836423d9
commit
a502c2647d
|
@ -1699,7 +1699,7 @@ class Core
|
|||
mod.init_ui(driver.input, driver.output)
|
||||
|
||||
# Update the command prompt
|
||||
driver.update_prompt("#{mod.type}(%bld%red#{mod.shortname}%clr) ")
|
||||
driver.update_prompt("#{mod.type}(\001%bld%red\002#{mod.shortname}\001%clr\002) ")
|
||||
end
|
||||
|
||||
#
|
||||
|
|
|
@ -20,8 +20,8 @@ class Driver < Msf::Ui::Driver
|
|||
ConfigCore = "framework/core"
|
||||
ConfigGroup = "framework/ui/console"
|
||||
|
||||
DefaultPrompt = "%undmsf%clr"
|
||||
DefaultPromptChar = "%clr>"
|
||||
DefaultPrompt = "\001%und\002msf\001%clr\002"
|
||||
DefaultPromptChar = "\001%clr\002>"
|
||||
|
||||
#
|
||||
# The console driver processes various framework notified events.
|
||||
|
|
|
@ -28,7 +28,7 @@ class Console
|
|||
if (Rex::Compat.is_windows())
|
||||
super("meterpreter")
|
||||
else
|
||||
super("%undmeterpreter%clr")
|
||||
super("\001%und\002meterpreter\001%clr\002")
|
||||
end
|
||||
|
||||
# The meterpreter client context
|
||||
|
|
Loading…
Reference in New Issue