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

  • 2.6.30.5字符设备驱动 2.6.30.5字符设备驱动
    2.6.30.5字符设备驱动 2.6.30.5字符设备驱动-2.6.30.5 char
    2022-05-25 16:06:21下载
    积分:1
  • xml文档分析例子程序
    xml文档分析例子程序-xml document analysis procedures example
    2022-04-20 02:56:03下载
    积分:1
  • Linux下蓝牙驱动在fedaro5下编译通过!
    Linux下蓝牙驱动,在fedaro5下编译通过!-Linux Bluetooth drivers in the fedaro5 under compile!
    2022-07-16 04:14:46下载
    积分:1
  • u-Boot for AT91RM92
    2023-02-11 08:05:03下载
    积分:1
  • 自动递归删除文件的工具程序
    自动递归删除文件的工具程序-automatically delete files recursive procedure tools
    2023-02-19 21:45:03下载
    积分:1
  • linux 的引导程序源码The Microsoft® Windows® Software Development Kit (SDK) provid...
    linux 的引导程序源码The Microsoft® Windows® Software Development Kit (SDK) provides the documentation, samples, header files, libraries, and tools you need to develop applications that run on Windows. The applications you develop with this edition of the SDK can run on the x86, x64 and Itanium-based versions of Windows Server 2003 SP1, Windows XP SP2, Windows XP x64 Pro Edition, and Windows 2000. A new custom install allows you to select components you wish to install on a more granular level. -Linux boot FOSS The Microsoftreg Windows Software Development Kit (SDK) provides the documentation, samples, header files, libraries, and tools you need to develop applications that run on Windows. The applications you develop with this edition of the SDK can run on the x86, x64 and Itanium-based versions of Windows Server 2003 SP1, Windows XP SP2, Windows XP Pro x64 Edition, and Windows 2000. A new custom install allows you to select components you wish to install on a more granular level.
    2023-06-18 16:20:04下载
    积分:1
  • 真是好东西,USB的Vod,好就是好,不信你
    真是好东西,USB的Vod,好就是好,不信你-really good things, USB Vod, and good is good, do not trust you to s
    2022-02-05 11:59:25下载
    积分:1
  • linux kernel programming
    linux操作系统内核编程-----LINUX系统开发非常好的资料,一定要下载的哦!-linux kernel programming -good material of linux development,you can not miss it!
    2023-01-29 11:00:04下载
    积分:1
  • 在键盘下实现的代码,希望对大家有帮助。
    linux下的键盘实现代码,希望对大家有所帮助吧。-linux under the keyboard to achieve the code, I hope all of you to help you.
    2022-12-25 14:00:03下载
    积分:1
  • Vim 中文文档
    Vim 中文文档-Vim Chinese Documents
    2023-02-09 23:35:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载