I can't seem to find any helpful information about a unix-like call that is the equivalent to GetConsoleWindow.
I'm writing an application that calls GetConsoleWindow, the ShowWindow(hwnd, 0) to hide said window. I want to be able to do this on macOS and Linux as well, but I dont know if theres anything like this out there (besides linking to EVERY terminal out there, which isn't very practical).
I should also mention that I'm writing said procedure in C#using .NET Core, writing bindings for the native C/C++ methods.
EDIT: I'm writing bindings for a small UI library written in C, so I'm hiding the console window from a netcoreapp so the UI window is the only one shown. I don't need a full-blown C# api like Xamarin, just the GetConsoleWindow and ShowWindow methods.
What I have tried:
I've search far and wide on Google to no avail.