Click here to Skip to main content
15,888,401 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 3-Jul-18 20:39pm
v2

1 solution

Solid cross platform development languages and tools are Xamarin, QT or Java. In reading your posting you should inform yourself about Xamarin.
 
Share this answer
 
Comments
toma-corwin 4-Jul-18 2:37am    
I'll add more info above in a moment, but 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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900