任何简单的跨平台替代winapi的getconsolewindo

任何简单的跨平台替代winapi的getconsolewindo

本文介绍了是否有任何简单的跨平台替代winapi的getconsolewindow()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法找到有关类似于GetConsoleWindow的类似unix的调用的任何有用信息。



我正在编写一个调用的应用程序GetConsoleWindow,ShowWindow(hwnd,0)隐藏所述窗口。我希望能够在macOS和Linux上做到这一点,但我不知道是否有这样的东西(除了链接到那里的每个终端,这不是很实用)。



我还应该提一下,我正在使用.NET Core在C#中编写所述过程,为本机C / C ++方法编写绑定。



编辑:我正在为用C编写的小型UI编写绑定,所以我从netcoreapp中隐藏了控制台窗口,因此UI窗口是唯一显示的窗口。我不需要像Xamarin那样成熟的C#api,只需要GetConsoleWindow和ShowWindow方法。



我尝试了什么:



我在Google上搜索广泛无效。

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.

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.

推荐答案


这篇关于是否有任何简单的跨平台替代winapi的getconsolewindow()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 04:35