Command-line dialog tool for Windows

喜你入骨 提交于 2020-01-24 03:13:06

问题


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.


回答1:


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).




回答2:


There is a port of dialog for Windows.




回答3:


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.



来源:https://stackoverflow.com/questions/553352/command-line-dialog-tool-for-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!