diff --git a/SteamPrefill/CliCommands/SelectAppsCommand.cs b/SteamPrefill/CliCommands/SelectAppsCommand.cs index 6ab48d32..e53eac6a 100644 --- a/SteamPrefill/CliCommands/SelectAppsCommand.cs +++ b/SteamPrefill/CliCommands/SelectAppsCommand.cs @@ -24,8 +24,17 @@ public async ValueTask ExecuteAsync(IConsole console) await steamManager.InitializeAsync(); var tuiAppModels = await BuildTuiAppModelsAsync(steamManager); - // This is required to be enabled otherwise some Linux distros/shells won't display color correctly. - Application.UseSystemConsole = true; + if (System.OperatingSystem.IsLinux()) + { + // This is required to be enabled otherwise some Linux distros/shells won't display color correctly. + Application.UseSystemConsole = true; + } + if (System.OperatingSystem.IsWindows()) + { + // Must be set to false on Windows otherwise navigation will not work in Windows Terminal + Application.UseSystemConsole = false; + } + Application.Init(); using var tui2 = new SelectAppsTui(tuiAppModels); Key userKeyPress = tui2.Run();