Skip to content

Commit

Permalink
Merge pull request #61 from /issues/59-SelectAppsLockup
Browse files Browse the repository at this point in the history
tpill90 authored Aug 7, 2024
2 parents 12a3e53 + ebe919b commit 91d11cf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion EpicPrefill/CliCommands/SelectAppsCommand.cs
Original file line number Diff line number Diff line change
@@ -31,7 +31,16 @@ public async ValueTask ExecuteAsync(IConsole console)
}

// Initialize and start the tui
Application.UseSystemConsole = true;
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();

0 comments on commit 91d11cf

Please sign in to comment.