-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed
Labels
Needs-AttentionThe core contributors need to come back around and look at this ASAP.The core contributors need to come back around and look at this ASAP.Needs-Tag-FixDoesn't match tag requirementsDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meetingIt's a new issue that the core contributor team needs to triage at the next triage meetingResolution-By-DesignIt's supposed to be this way. Sometimes for compatibility reasons.It's supposed to be this way. Sometimes for compatibility reasons.
Description
Environment
Windows build number: 10.0.20175.0
Windows Terminal version (if applicable): 1.2.2022
Any other software?
N/A
Steps to reproduce
Open Windows Terminal 1.2.2022 from code that supports returning the main window handle; for example in C# .NET
using System;
using System.Diagnostics;
using System.Threading;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Process p = Process.Start("wt"); // Start Windows Terminal
Thread.Sleep(1000); // Wait a second to make sure it's open
Console.WriteLine(p.MainWindowHandle.ToString()); // Print handle to console
Console.ReadLine(); // Wait for user input before finishing
}
}
}Expected behavior
The handle for the subsequently opened window is returned. In the example above, a numerical value representing the window handle is printed to the console (such as 856282)
Actual behavior
A handle of 0 is returned.
sylveon and fran-f
Metadata
Metadata
Assignees
Labels
Needs-AttentionThe core contributors need to come back around and look at this ASAP.The core contributors need to come back around and look at this ASAP.Needs-Tag-FixDoesn't match tag requirementsDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meetingIt's a new issue that the core contributor team needs to triage at the next triage meetingResolution-By-DesignIt's supposed to be this way. Sometimes for compatibility reasons.It's supposed to be this way. Sometimes for compatibility reasons.