Metasploit mailing list archives

Re: "clear" in msfconsole


From: Joshua Smith <lazydj98 () gmail com>
Date: Tue, 6 Sep 2011 11:33:39 -0400

Sorry, I should have prefaced this email with some context.  On irc a
couple days back, someone was asking about having a clear command in
their resource file (so non-interactive).  I think they wanted some
resource stuff to be run, but then to have the screen cleared
automatically, so they could start with a pretty screen.  I feel like
they weren't having success using the shell pass-thru, but I can't
remember exactly

-ks

On Tue, Sep 6, 2011 at 10:32 AM, Robin Wood <robin () digininja org> wrote:
On 6 September 2011 15:24, Joshua TAYLOR <joshuaaaron () gmail com> wrote:
On Mon, Sep 5, 2011 at 2:35 AM, Joshua Smith <lazydj98 () gmail com> wrote:
I found a half-assed way to add a "clear" command to msfconsole, at
least in linux/bash:

Just curious, since the framework runs unrecognized commands as
command lines,e.g., in

msf > ls
[*] exec: ls

bin
boot
...

what's the matter with using the standard unix 'clear' command?  It
seems to have the expected behavior (clear the screen, leaving just a
"msf >" prompt at the top).  (This is the behavior I get in a
gnome-terminal with TERM=xterm and in xterm with TERM=xterm-color,
anyway.)  Is there some functionality that this misses?

//JT
--
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/
_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework


Why not just use <ctrl> l (control lower case l)?

Robin




-- 
- Josh
_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework


Current thread: