﻿using System;
using System.Linq;
using Avalonia;

namespace ControlCatalog.NetCore
{
    class Program
    {
        static void Main(string[] args)
        {
            if (args.Contains("--fbdev"))
                AppBuilder.Configure<App>()
                    .InitializeWithLinuxFramebuffer(tl => tl.Content = new MainView());
            else
                AppBuilder.Configure<App>()
                    .UsePlatformDetect()
                    .Start<MainWindow>();
        }
    }
}
﻿using System;
using System.Linq;
using Avalonia;

namespace ControlCatalog.NetCore
{
    class Program
    {
        static void Main(string[] args)
        {
            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();
        }
    }
}
Handle console input in fbdev mode
Handle console input in fbdev mode
