我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

为什么ncurses不显示文字?

ncurses_init();

ncurses_addstr(0, 0, "test");
ncurses_refresh();
ncurses_getch();
ncurses_end();

This should be displaying "test" at the top left, but it isn't. Any idea why?

PHP 5.1.6 CentOS 5.5

Got ncurses through yum install ncurses

it recognizes the ncurses functions, so I assume it should be working

UH OH! Looks like someone forgot to read the docs!

ncurses_mvaddstr(0, 0, "test");

You need to change ncurses_addstr to ncurses_mvaddstr

近期文章

  • sfDependantSelectPlugin“没有可用于插件的版本......”
  • 需要MySQL声明的帮助
  • output_add_rewrite_var问题
  • PHP mySQL numRows()用法和错误?
  • CakePHP - 事件的日期和时间 - 如何构建
  • 使用PHP制作AJAX请求API [关闭]
  • 如何知道在localhost上为Apache正确设置PHP?
  • mongo集团订单
  • 当动态创建复选框名称时,如何检索复选框数组值?
  • PHP寻找与GD匹配的图像
  • 在CodeIgniter中,始终加载默认控制器
  • 如果存在值,如何禁用文本字段或输入?
  • 使用按钮单击功能更改复选框输入名称
  • 如何在zend项目中获取Zend_Form的值
  • “基于时间戳的地理定位”是否可行并且在检测位置/城市方面具有准确性?
  • 弹出窗口中的Paypal交易
  • 我正在使用sagePay系统,我的网站需要符合pci标准
  • 开源拍卖项目[关闭]
  • Drupal Form API保存到数据库
  • PHP本地值/主值

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华