mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
fix: not printing a new line and not refreshing the prompt in events.show if no event is present.
This commit is contained in:
parent
e071788681
commit
3e8b12f08b
1 changed files with 8 additions and 5 deletions
|
@ -180,14 +180,17 @@ func (s *EventsStream) Show(limit int) error {
|
|||
from = num - limit
|
||||
}
|
||||
|
||||
fmt.Println()
|
||||
selected := events[from:num]
|
||||
if len(selected) > 0 {
|
||||
fmt.Println()
|
||||
|
||||
for _, e := range events[from:num] {
|
||||
s.View(e, false)
|
||||
for _, e := range selected {
|
||||
s.View(e, false)
|
||||
}
|
||||
|
||||
s.Session.Refresh()
|
||||
}
|
||||
|
||||
s.Session.Refresh()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue