From c1280107fbcc9584bc1c0349a35eae4a1fe37e24 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Thu, 8 Feb 2018 07:45:03 +0100 Subject: [PATCH] new: printing a big warning if the terminal does not support colors --- main.go | 4 ++++ session/session.go | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 09498151..ce1302b9 100644 --- a/main.go +++ b/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)) diff --git a/session/session.go b/session/session.go index 5a13bb71..0f7d8403 100644 --- a/session/session.go +++ b/session/session.go @@ -208,7 +208,6 @@ func (s *Session) Start() error { s.Env.Set("iface.mac", s.Interface.HwAddress) if s.Queue, err = packets.NewQueue(s.Interface); err != nil { - fmt.Printf("iface = '%s'\n", s.Interface.Name()) return err }