Why is ncurses not displaying text?
ncurses_init();
ncurses_addstr(0, 0, "test");
ncurses_refresh();
ncurses_getch();
ncurses_end();
This should be displaying "test" at the top left, but it isn't. Any开发者_高级运维 idea why?
PHP 5.1.6 CentOS 5.5
Got ncurses through yum install ncurses
it recognizes the ncurses functions, so I assume it should be working
UH OH! Looks like someone forgot to read the docs!
ncurses_mvaddstr(0, 0, "test");
You need to change ncurses_addstr to ncurses_mvaddstr
精彩评论