keypad示例--c语言_ncurses编程
keypad示例2-1 #include #include #define LOCAL_ESCAPE_KEY 27 int main() { int key; initscr(); cbreak(); keypad(stdscr,TRUE); noecho(); clear(); mvprintw(5,5,”key pad demonstration.press ‘q’ to quit”); move(7,5); refresh(); key = getch(); }
826.5KB
文件大小:
评论区