aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/menu.go2
-rw-r--r--client/menu_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/menu.go b/client/menu.go
index 773060c..d20b7d0 100644
--- a/client/menu.go
+++ b/client/menu.go
@@ -4,7 +4,7 @@ import "fmt"
func (s *State) displayMenu() {
menu := s.config.Menus[s.currentMenu]
- fmt.Println("\033[2J") // clear the screen
+ fmt.Print("\033[2J") // clear the screen
fmt.Println(menu.Banner)
output := ""
prefix := ""
diff --git a/client/menu_test.go b/client/menu_test.go
index 8570b8d..224b242 100644
--- a/client/menu_test.go
+++ b/client/menu_test.go
@@ -35,7 +35,7 @@ func TestDisplayMenu(t *testing.T) {
currentMenu: "test",
login: "nil",
}
- want := []byte("\033[2J\n" +
+ want := []byte("\033[2J" +
"TEST TEST TEST\n" +
"\n\n\n" +
" q) quit\n")