Skip to content

Commit

Permalink
Merge pull request #123 from /issues/122-SelectAppsLockup
Browse files Browse the repository at this point in the history
  • Loading branch information
tpill90 authored Aug 7, 2024
2 parents 289ba60 + 37f5a29 commit 061d3da
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion BattleNetPrefill/CliCommands/SelectAppsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@ public async ValueTask ExecuteAsync(IConsole console)
var tactProductHandler = new TactProductHandler(ansiConsole);
var tuiAppModels = BuildTuiAppModels();

Application.UseSystemConsole = true;
// Initialize the tui
if (OperatingSystem.IsLinux())
{
// This is required to be enabled otherwise some Linux distros/shells won't display color correctly.
Application.UseSystemConsole = true;
}
if (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, showReleaseDate: false, showPlaytime: false);
Key userKeyPress = tui2.Run();
Expand Down

0 comments on commit 061d3da

Please sign in to comment.