Skip to content

Commit

Permalink
Merge pull request #367 from /issues/366-SelectAppsLockup
Browse files Browse the repository at this point in the history
  • Loading branch information
tpill90 committed Jul 13, 2024
2 parents bdcc1f6 + f7c89cb commit e95c558
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions SteamPrefill/CliCommands/SelectAppsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e95c558

Please sign in to comment.