duanpei4455 2011-04-27 22:57
浏览 82
已采纳

为什么ncurses不显示文字?

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

  • 写回答

2条回答 默认 最新

  • duancifu6769 2011-04-27 23:08
    关注

    UH OH! Looks like someone forgot to read the docs!

    ncurses_mvaddstr(0, 0, "test");
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?