1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Terminal handle fix

This commit is contained in:
Brian Fiete 2024-07-25 08:28:50 +02:00
parent 8052066ab0
commit fa015e314d

View file

@ -134,20 +134,15 @@ class Program
WinNativeConsoleProvider.SetConsoleTitleW("BeefIDE Debug Console".ToScopedNativeWChar!());
}
/*[CLink]
static extern void* freopen (char8 * filename, char8 * mode, void* stream );
[CLink]
static extern void* stdout;*/
public void Run()
{
mPipe = new .();
mPipe.Listen(mPid, mConid);
if (mPipe.Listen(mPid, mConid) case .Err)
return;
mProvider = new .();
mProvider.mHideNativeConsole = !mExecStr.IsEmpty;
mProvider.Attach();
Console.ReopenHandles();
if (!mExecStr.IsEmpty)
{
@ -162,6 +157,7 @@ class Program
else
{
ClearConsoleTitle();
Console.ReopenHandles();
}
while (true)