aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorJulien Dessaux2021-01-18 11:53:22 +0100
committerJulien Dessaux2021-01-18 11:53:22 +0100
commit2a3b2d1915c17d22c2afb91dbc17029060d12ba7 (patch)
tree8af62051c0ba187c58a525f561c68f824cf69662 /client
parentAdded generation of the menu display (diff)
downloadshell-game-launcher-2a3b2d1915c17d22c2afb91dbc17029060d12ba7.tar.gz
shell-game-launcher-2a3b2d1915c17d22c2afb91dbc17029060d12ba7.tar.bz2
shell-game-launcher-2a3b2d1915c17d22c2afb91dbc17029060d12ba7.zip
Removed extra \n after clear screen sequence
Diffstat (limited to 'client')
-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")