登录
首页 » Linux-Unix program » //初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILUR...

//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILUR...

于 2023-08-24 发布 文件大小:680.00 B
0 21
下载积分: 2 下载次数: 1

代码说明:

//初始化 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. ") mvaddstr(17, 1, "Press q to quit. ") refresh() wrefresh(win) - //初始化 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. ") mvaddstr(17, 1, "Press q to quit. ") refresh() wrefresh(win)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696524资源总数
  • 103896会员总数
  • 68今日下载