开发者

Why is ncurses not displaying text?

开发者 https://www.devze.com 2023-03-01 08:16 出处:网络
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?
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

0

精彩评论

暂无评论...
验证码 换一张
取 消