摘要: //字符输入 #include <curses.h> main() { int ch; int x=5,y=5; initscr(); keypad(stdscr,TRUE); curs_set(0); noecho(); mvaddch(y,x,'A'); while(1) { ch=getch(); //mvaddch(y,x,' '); //clrtoeol(); erase(); //clear(); switch(ch) { case KEY_UP: y--; break; case KEY_DOWN: y++;... 阅读全文
posted @ 2013-01-27 17:25 真爱无限 阅读(389) 评论(0) 推荐(0) 编辑