使用 JavaScript能使本网站更好的工作。
首页
帮助
登录
cacalabs
/
libcaca
镜像自地址
https://github.com/cacalabs/libcaca.git
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
7
百科
动态
浏览代码
force cli on remaining examples so that apache doesn't pop up a window
(this actually happens with the cocoa driver!)
tags/v0.99.beta17
Ben Wiley Sittler
bsittler
16 年前
父节点
415b54902d
当前提交
fee77cac00
共有
5 个文件被更改
,包括
19 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+3
-0
caca-php/examples/cacapig.php
+4
-0
caca-php/examples/colors.php
+4
-0
caca-php/examples/fullwidth.php
+4
-0
caca-php/examples/render.php
+4
-0
caca-php/examples/truecolor.php
+ 3
- 0
caca-php/examples/cacapig.php
查看文件
@@ -16,6 +16,9 @@
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
if (php_sapi_name() != "cli") {
die("You have to run this program with php-cli!\n");
}
$pig_str = <<<EOT
+ 4
- 0
caca-php/examples/colors.php
查看文件
@@ -17,6 +17,10 @@
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
if (php_sapi_name() != "cli") {
die("You have to run this program with php-cli!\n");
}
$cv = caca_create_canvas(80, 24);
if(!$cv)
{
+ 4
- 0
caca-php/examples/fullwidth.php
查看文件
@@ -18,6 +18,10 @@
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
if (php_sapi_name() != "cli") {
die("You have to run this program with php-cli!\n");
}
define('CACA', "쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊");
$cv = caca_create_canvas(0, 0);
+ 4
- 0
caca-php/examples/render.php
查看文件
@@ -1,6 +1,10 @@
#!/usr/bin/php5
<?
if (php_sapi_name() != "cli") {
die("You have to run this program with php-cli!\n");
}
$pig_str = <<<EOT
_._ _..._ .-', _.._(`))
+ 4
- 0
caca-php/examples/truecolor.php
查看文件
@@ -18,6 +18,10 @@
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
if (php_sapi_name() != "cli") {
die("You have to run this program with php-cli!\n");
}
$cv = caca_create_canvas(32, 16);
if(!$cv) {
die("Failed to create canvas\n");
撰写
预览
正在加载...
取消
保存