mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 04:59:25 -07:00
fix: fixed weird bug happening while clearing the interactive session screen
This commit is contained in:
parent
3c8280c08e
commit
268c646606
1 changed files with 6 additions and 0 deletions
|
@ -157,6 +157,12 @@ func (s *Session) setHandler(args []string, sess *Session) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Session) clsHandler(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())
|
readline.ClearScreen(s.Input.Stdout())
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue