Curses for PHP on Windows

回眸只為那壹抹淺笑 提交于 2019-12-13 12:56:53

问题


Is there a Windows equivalent of ncurses for PHP?

I've created a CLI script and want to display various statistics (currently processed record, completion percentage etc.) in a nice way, without outputting loads and heaps of text to the cmd.exe window.

The ncurses extension doesn't work on Windows.


回答1:


ncurses only works for unix-like environments so you can use cygwin but [Link outdated] looks promising. Check it out and let me know!

(Edit Apr 2016: removed the link as it's out of date and clicking on it takes you down a nasty path.)




回答2:


There is pdcurses which I believe works in a windows console window. The aren't any PHP bindings so you would need to build your own.



来源:https://stackoverflow.com/questions/2882714/curses-for-php-on-windows

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