new: showing last events in net.show instead of useless histogram

This commit is contained in:
evilsocket 2018-01-31 20:43:07 +01:00
commit eb1a53efa3
4 changed files with 50 additions and 21 deletions

View file

@ -160,7 +160,7 @@ func (s *Session) clsHandler(args []string, sess *Session) error {
// fixes a weird bug which causes the screen not to be fully
// cleared if a "clear; net.show" commands chain is executed
// in the interactive session.
for i := 0; i < 80; i++ {
for i := 0; i < 180; i++ {
fmt.Println()
}
readline.ClearScreen(s.Input.Stdout())