PHP ncurses窗口
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP ncurses窗口相关的知识,希望对你有一定的参考价值。
#!/usr/bin/env php <?php // we begin by initializing ncurses $ncurse = ncurses_init(); // let ncurses know we wish to use the whole screen $fullscreen = ncurses_newwin(0, 0, 0, 0); // draw a border around the whole thing. ncurses_border(0,0, 0,0, 0,0, 0,0); // now lets create a small window $small = ncurses_newwin(10, 30, 7, 25); // border our small window. ncurses_wborder($small,0,0, 0,0, 0,0, 0,0); ncurses_refresh();// paint both windows // move into the small window and write a string ncurses_mvwaddstr($small, 5, 5, " Test String "); // show our handiwork and refresh our small window ncurses_wrefresh($small); $pressed = ncurses_getch();// wait for a user keypress ncurses_end();// clean up our screen ?>
以上是关于PHP ncurses窗口的主要内容,如果未能解决你的问题,请参考以下文章