From 7f90082bec7c1543536883acf4912c8cb09414ed Mon Sep 17 00:00:00 2001 From: kernelsmith Date: Sun, 13 Jan 2013 03:06:56 -0600 Subject: [PATCH] grep tab complete is working, but not fully options tab complete, but not the commands at the end --- lib/msf/ui/console/command_dispatcher/core.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/msf/ui/console/command_dispatcher/core.rb b/lib/msf/ui/console/command_dispatcher/core.rb index c63420c013..1d79333e4a 100644 --- a/lib/msf/ui/console/command_dispatcher/core.rb +++ b/lib/msf/ui/console/command_dispatcher/core.rb @@ -2451,8 +2451,11 @@ class Core end def cmd_grep_tabs(str, words) - # TODO, make sure this works, just guessed to start - tab_complete(words.join(" ")) + # @todo, make sure this works, just guessed to start + tabs = [] + tabs += @@grep_opts.fmt.keys if (str and not str =~ /\w/) + #tabs += driver.tab_complete_stub(str) + tabs end #