From 268c646606a92f179af3b0e4b18bad0a23ae56c2 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Wed, 24 Jan 2018 12:55:41 +0100 Subject: [PATCH] fix: fixed weird bug happening while clearing the interactive session screen --- session/session_core_handlers.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/session/session_core_handlers.go b/session/session_core_handlers.go index ae1baa0c..c0692d18 100644 --- a/session/session_core_handlers.go +++ b/session/session_core_handlers.go @@ -157,6 +157,12 @@ func (s *Session) setHandler(args []string, sess *Session) error { } 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++ { + fmt.Println() + } readline.ClearScreen(s.Input.Stdout()) return nil }