a geicko-2 based round robin ranking system designed to test c++ battleship submissions battleship.dunkirk.sh

feat: improve color support

dunkirk.sh f6b2ff16 3eaf361b

verified
+5 -2
battleship-arena

This is a binary file and will not be displayed.

+5 -2
cmd/battleship-arena/main.go
··· 142 return nil, nil 143 } 144 145 if needsOnboarding { 146 // Run onboarding first 147 publicKey := "" ··· 150 } 151 152 m := tui.NewOnboardingModel(s.User(), publicKey, pty.Window.Width, pty.Window.Height) 153 - return m, []tea.ProgramOption{tea.WithAltScreen()} 154 } 155 156 m := tui.InitialModel(s.User(), pty.Window.Width, pty.Window.Height) 157 - return m, []tea.ProgramOption{tea.WithAltScreen()} 158 } 159 160 func initStorage(cfg Config) error {
··· 142 return nil, nil 143 } 144 145 + // Get proper terminal options for color support 146 + opts := bubbletea.MakeOptions(s) 147 + 148 if needsOnboarding { 149 // Run onboarding first 150 publicKey := "" ··· 153 } 154 155 m := tui.NewOnboardingModel(s.User(), publicKey, pty.Window.Width, pty.Window.Height) 156 + return m, opts 157 } 158 159 m := tui.InitialModel(s.User(), pty.Window.Width, pty.Window.Height) 160 + return m, opts 161 } 162 163 func initStorage(cfg Config) error {