mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 04:52:10 -07:00
new: printing a big warning if the terminal does not support colors
This commit is contained in:
parent
09df8e4de3
commit
c1280107fb
2 changed files with 4 additions and 1 deletions
4
main.go
4
main.go
|
@ -20,6 +20,10 @@ func main() {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
if core.NoColors == true {
|
||||
fmt.Printf("\n\nWARNING: This terminal does not support colors, view will be very limited.\n\n")
|
||||
}
|
||||
|
||||
fmt.Printf(core.Bold("%s v%s\n\n"), core.Name, core.Version)
|
||||
|
||||
sess.Register(modules.NewEventsStream(sess))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue