public static void Run(ConsoleApp app, WinFormsTestConsole console, Action input)
{
var form = new Form();
form.BackColor = Color.Black;
form.Width = console.Width;
form.Height = console.Height;
var oldProvider = ConsoleProvider.Current;
form.Controls.Add(console);
app.Stopped.SubscribeForLifetime(() => { Application.Exit(); }, app.LifetimeManager);
var task = app.Start();
Task.Factory.StartNew(input);
Application.Run(form);
}