Deze website werkt beter met JavaScript.
Beginscherm
Help
Inloggen
cacalabs
/
libcaca
kopie van
https://github.com/cacalabs/libcaca.git
Volgen
1
Ster
0
Vork
0
Code
Kwesties
0
Publicaties
7
Wiki
Activiteit
Bladeren bron
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 jaren geleden
bovenliggende
415b54902d
commit
fee77cac00
5 gewijzigde bestanden
met
toevoegingen van 19
en
0 verwijderingen
Zij-aan-zij weergave
Diff opties
Statistieken weergeven
Download Patch-bestand
Download Diff-bestand
+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
Bestand weergeven
@@ -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
Bestand weergeven
@@ -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
Bestand weergeven
@@ -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
Bestand weergeven
@@ -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
Bestand weergeven
@@ -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");
Schrijf
Voorbeeld
Laden…
Annuleren
Opslaan