|
|
|
@ -8,13 +8,22 @@ namespace ControlCatalog.NetCore |
|
|
|
{ |
|
|
|
static void Main(string[] args) |
|
|
|
{ |
|
|
|
if (args.Contains("--fbdev")) |
|
|
|
AppBuilder.Configure<App>() |
|
|
|
.InitializeWithLinuxFramebuffer(tl => tl.Content = new MainView()); |
|
|
|
if (args.Contains("--fbdev")) AppBuilder.Configure<App>().InitializeWithLinuxFramebuffer(tl => |
|
|
|
{ |
|
|
|
tl.Content = new MainView(); |
|
|
|
System.Threading.ThreadPool.QueueUserWorkItem(_ => ConsoleSilencer()); |
|
|
|
}); |
|
|
|
else |
|
|
|
AppBuilder.Configure<App>() |
|
|
|
.UsePlatformDetect() |
|
|
|
.Start<MainWindow>(); |
|
|
|
} |
|
|
|
|
|
|
|
static void ConsoleSilencer() |
|
|
|
{ |
|
|
|
Console.CursorVisible = false; |
|
|
|
while (true) |
|
|
|
Console.ReadKey(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |