cursestest.c
#include <curses.h>
int main(void){
initscr();//初始化
box(stdscr,ACS_VLINE,ACS_HLINE);//画边框
mvaddstr(15,2,"deepfuture.iteye.com");//在15,2显示字符串
refresh();//刷新屏幕
getch();//等待按键
endwin();//结束
return 0;
}
mysea@mysea-desktop:~$ sudo apt-get install libncurses5-dbg libncurses5-dev
mysea@mysea-desktop:~/test$ gcc -lncurses -o cursestest cursestest.c
![](http://dl.iteye.com/upload/attachment/352752/99cdd87f-0351-3251-b18f-fe1155ae2c96.png)