INDDW*curscr:当前屏幕 WINDOW stdscr:标准屏幕 int LINES:终端上的行数 int COLS:终端上的列数 bool TRUE:真标志,1 bool FALSE:假标志,0 int ERR:错误标志,-1 int OK:OK标志,0 --------------------------------------------- win:WINDOW * bf:bool ch:chty pe str:char * chstr:chty pe fmt:char * 否则:int --------------------------------------------- 初始化 WINDOW initscr() SCREENnewterm(char *type, FILE *outfd, FILE *infd) 对用户访问的每个终端都应该调用newterm t y p e是终端的名称,包括在
scounix下curses编程函数说明
comments powered by Disqus