views:

106

answers:

2

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.

+2  A: 

ncurses only works for unix-like environments so you can use cygwin but http://adamv.com/dev/python/curses/ looks promising. Check it out and let me know!

Adil Butt
Thanks. I know about Cygwin, but I'm trying to do this with the native Windows console. It doesn't have to be ncurses, just an equivalent solution for Windows.
demonkoryu
And it has to be for PHP.
demonkoryu
+1  A: 

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.

Craig
I don't have enough knowledge of C or the PHP core to be able to do that.
Mark Tomlin