针对命令行的扩展
PHP Manual

Ncurses Terminal Screen Control

User Contributed Notes

tom dot setliff at gmail dot com 17-Sep-2009 09:36
I am using php 5.2.9 on FC9 and had issues with ncurses_init() not being defined when I ran a simple script after installing with pecl.  Adding
extension ncurses.so
to my php.ini file resolved this issue. Also when installing with pecl I had some issues, they were resolved by using yum to install additional packages:
yum install ncurses-devel php-pear.

针对命令行的扩展
PHP Manual