首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > //初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILUR...

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

  • 资源大小:680.00 B
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Linux-Unix program others

资 源 简 介

//初始化 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)

文 件 列 表

keyinput.c
VIP VIP
0.165944s