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:
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!());
|
||||
}
|
||||
|
||||
/*[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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue