登录
首页 » 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 164
下载积分: 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 个回复

  • RoboCup仿真组世界冠军源代码
    RoboCup仿真组世界冠军源代码-RoboCup simulation World Champions source code
    2023-08-25 18:45:03下载
    积分:1
  • linux内核情景分析,针对于对内核有一定了解的学习者,详细分析了内核中mmc等相关部分。
    linux内核情景分析,针对于对内核有一定了解的学习者,详细分析了内核中mmc等相关部分。-linux kernel scenario analysis to address the kernel has a certain understanding of the learner, detailed analysis of a kernel mmc and other related parts.
    2022-05-18 01:06:02下载
    积分:1
  • ICS courses Lab2
    ICS 课程的Lab2-ICS courses Lab2
    2022-11-23 13:20:03下载
    积分:1
  • |-- p6.1.c 获得标准输入、输出和错误输出的终端名称 |-- p6.2.c 修改终端控制字符示例 |-- p6.3.c 使用curses实现密码输入 |-- p6.4.c 使用tcgetattr函数和tcsetattr函数实现密码输入 |-- p6.5.c 串口进行读写示例 |-- p6.6.c 扬声器发声程序 |-- p6.7.c 使用声卡播放音频文件 `-- p6.8.c 声卡录音程序示例 -|- P6.1.c access to standard input, output and error output terminal names |- p6.2.c modified sample terminal control characters |- p6.3.c realize the use of curses password |- p6. 4.c use tcgetattr function and realize tcsetattr function password |- p6.5.c serial read and write sample |- p6.6.c loudspeaker audible procedures |- p6.7.c use sound card to play audio files `- p6.8.c sound card recording procedures sample
    2022-08-09 00:08:43下载
    积分:1
  • 0.11内核源码,用英文注释,让学习很好的东西…
    linux 0.11内核的源码,带有中文注释,使学习linux内核的好东西-linux 0.11 kernel source code, with English Notes, so that learning good things linux kernel
    2022-02-22 03:36:37下载
    积分:1
  • Linux内核编译常见错误排除,这对大家编译内核有遇到的问题有一定的帮助...
    Linux内核编译常见错误排除,这对大家编译内核有遇到的问题有一定的帮助-Linux kernel compile rule out common mistakes, which we have encountered in the kernel to a certain extent to help
    2022-10-07 20:00:03下载
    积分:1
  • phpSysInfo v2.3 显示CPU、内存、硬盘、系统温度、风扇速度等系统信息的指针...
    phpSysInfo v2.3 显示CPU、内存、硬盘、系统温度、风扇速度等系统信息的指针-phpSysInfo Smart shows CPU, memory, hard drives, system temperature, fan speed indicator information system
    2022-01-24 18:16:54下载
    积分:1
  • 根据协议实现的部分源代码atomicaction
    linux 协议下的atomicaction 实现部分的源代码-atomicaction under the agreement achieved part of the source code
    2022-09-13 02:40:03下载
    积分:1
  • 系统实现类似于多文档的赢得
    linux系统下实现类似win的对多个文件的文件内容检索的功能-linux system realizes similar win to many documents document content retrieval function
    2022-02-15 21:59:40下载
    积分:1
  • Antinat是一个灵活的SOCKS服务器和客户端库编写代理
    Antinat is a flexible SOCKS server and client library for writing proxy-based applications. It supports SOCKS 4, SOCKS 5, authentication, CHAP, XML firewalling, Win32, server chaining, and UDP. It also contains very experimental IPv6 support
    2022-06-12 15:12:51下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载