diff --git a/tui-test-2/main.go b/tui-test-2/main.go index 22d85d4..ac3b884 100644 --- a/tui-test-2/main.go +++ b/tui-test-2/main.go @@ -21,7 +21,7 @@ func ui() { defer g.Close() g.SetManagerFunc(layout) g.Mouse = true - g.Cursor = true + g.Cursor = false initKeybindings(g) @@ -119,12 +119,15 @@ func layout(g *gocui.Gui) error { log.Panicln(err) } for i := 0; i < 5; i++ { - songName := fmt.Sprintf(" SongNumber%v", i) + songName := fmt.Sprintf("SongNumber%v", i) fmt.Fprintln(songSelection, songName) } songSelection.Title = "Song selection:" songSelection.Wrap = true + songSelection.Editable = false + songSelection.Highlight = true + songSelection.SelFgColor = gocui.ColorCyan } if currentlyPlaying, err := g.SetView("currentlyPlaying", maxX/2+4, 5, maxX-2, maxY-2); err != nil {