mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
Terminal handle fix
This commit is contained in:
parent
8052066ab0
commit
fa015e314d
1 changed files with 3 additions and 7 deletions
|
@ -134,20 +134,15 @@ class Program
|
||||||
WinNativeConsoleProvider.SetConsoleTitleW("BeefIDE Debug Console".ToScopedNativeWChar!());
|
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()
|
public void Run()
|
||||||
{
|
{
|
||||||
mPipe = new .();
|
mPipe = new .();
|
||||||
mPipe.Listen(mPid, mConid);
|
if (mPipe.Listen(mPid, mConid) case .Err)
|
||||||
|
return;
|
||||||
|
|
||||||
mProvider = new .();
|
mProvider = new .();
|
||||||
mProvider.mHideNativeConsole = !mExecStr.IsEmpty;
|
mProvider.mHideNativeConsole = !mExecStr.IsEmpty;
|
||||||
mProvider.Attach();
|
mProvider.Attach();
|
||||||
Console.ReopenHandles();
|
|
||||||
|
|
||||||
if (!mExecStr.IsEmpty)
|
if (!mExecStr.IsEmpty)
|
||||||
{
|
{
|
||||||
|
@ -162,6 +157,7 @@ class Program
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ClearConsoleTitle();
|
ClearConsoleTitle();
|
||||||
|
Console.ReopenHandles();
|
||||||
}
|
}
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue