适用于 Windows 的命令行对话框工具

发布于 2024-07-13 07:46:50 字数 201 浏览 6 评论 0原文

我需要一个类似于 cdialog(或whiptail)的对话框工具,但可以在 Windows 上运行。

我有 MinGW,从源代码编译一些东西是没有问题的,但据我所知,cdialog 和whiptail 都包含特定于 UNIX 的代码,因此它们无法在 Windows 上编译。

我可以使用其他替代方案吗? 我不想自己找出并替换特定于平台的代码。

I need a dialog tool similar to cdialog (or whiptail), but one that will work on Windows.

I have MinGW and compiling something from source is no problem, but both cdialog and whiptail, the only ones that I know of, contain code that is UNIX-specific, and so they will not compile on Windows.

Are there any alternatives that I can use? I'd rather not have to figure out and replace the platform-specific code myself.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

兮子 2024-07-20 07:46:50

有一个适用于 Windows 的对话框端口

There is a port of dialog for Windows.

伏妖词 2024-07-20 07:46:50

我记得 E 文本编辑器使用 wxCocoaDialog 来实现此目的:

wxCocoaDialog 是 OS X 的 CocoaDialog 应用程序的多平台端口,允许在命令行应用程序中使用常见的 GUI 控件,例如文件选择器、文本输入、进度条、是/否确认等。 它非常适合在 shell 和 Perl 脚本(或 Ruby、Python 或...等)中使用。

I remember the E Text Editor using wxCocoaDialog for that purpose:

wxCocoaDialog is a multi-platform port of the CocoaDialog application for OS X, that allows the use of common GUI controls such as file selectors, text input, progress bars, yes/no confirmations and more with a command-line application. It is ideal for use in shell and Perl scripts (or Ruby, or Python, or... etc).

夜雨飘雪 2024-07-20 07:46:50

您是否看过 Cygwin (http://www.cygwin.com/) 而不是 MinGW? Cygwin 提供了一个非常类似 Unix/Linux 的环境,以至于大多数 Unix 程序无需更改即可构建。 不过,根据您想要对结果执行的操作,Cygwin 的许可可能是一个问题。

Have you looked at Cygwin (http://www.cygwin.com/) rather than MinGW? Cygwin provides a very Unix/Linux like environment, to the extent that most Unix programs can be built without change. Depending on what you want to do with the results, though, Cygwin's licensing may be an issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文