diff options
Diffstat (limited to '')
-rw-r--r-- | client/menu.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/menu.go b/client/menu.go index 19c8992..f6de082 100644 --- a/client/menu.go +++ b/client/menu.go @@ -6,6 +6,11 @@ func (s *State) displayMenu() { menu := s.config.Menus[s.currentMenu] fmt.Print("\033[2J") // clear the screen fmt.Printf("%s\n\n", menu.Banner) + if s.login == "" { + fmt.Print("Not logged in.\n\n") + } else { + fmt.Printf("Logged in as: %s\n\n", s.login) + } for i := 0; i < len(menu.MenuEntries); i++ { fmt.Printf("%s) %s\n", menu.MenuEntries[i].Key, menu.MenuEntries[i].Label) } |