当前位置: 技术问答>linux和unix
hp-unix上curses编译问题
来源: 互联网 发布时间:2016-02-18
本文导语: #include //#define _XOPEN_SOURCE_EXTENDED //#include #include //#include //#include main() { int ch,x,y; WINDOW *win; //启动 curses 模式 initscr(); cbreak(); noecho(); nonl(); win=newwin(4,30,LINES/2-3, COLS/2-15); //建立一个新...
#include
//#define _XOPEN_SOURCE_EXTENDED
//#include
#include
//#include
//#include
main()
{
int ch,x,y;
WINDOW *win;
//启动 curses 模式
initscr();
cbreak();
noecho();
nonl();
win=newwin(4,30,LINES/2-3, COLS/2-15); //建立一个新视窗,其中LINES,COLS
box(win,'|','-'); // 为 curses 内定值, 即萤幕行/列数
mvwaddstr(win,1,4,"This is another screen");
mvwaddstr(win,2,2,"Press anykey to continue..");
/*
for (y=0;y
//#define _XOPEN_SOURCE_EXTENDED
//#include
#include
//#include
//#include
main()
{
int ch,x,y;
WINDOW *win;
//启动 curses 模式
initscr();
cbreak();
noecho();
nonl();
win=newwin(4,30,LINES/2-3, COLS/2-15); //建立一个新视窗,其中LINES,COLS
box(win,'|','-'); // 为 curses 内定值, 即萤幕行/列数
mvwaddstr(win,1,4,"This is another screen");
mvwaddstr(win,2,2,"Press anykey to continue..");
/*
for (y=0;y