文档简介
//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } //设置模式 cbreak() noecho() keypad(stdscr, TRUE) //建立窗口 win = newwin(h, w, 3, 20) box(win, 0, 0) keypad(win, TRUE) wmove(win, cury, curx) mvaddstr(16, 1, "Press arrow keys to move the cursor within the window.n") mvaddstr(17, 1, "Press q to quit.n") refresh() wrefresh(win)
评论
加载更多
推荐下载
查看更多
精选文集
相关视频
推荐帖子