Ignore:
Timestamp:
Nov 1, 2008, 2:44:28 AM (12 years ago)
Author:
nico
Message:
  • Check that samples programs are executed with php-cli
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/examples/dithering.php

    r3174 r3175  
    1111 *  http://sam.zoy.org/wtfpl/COPYING for more details.
    1212 */
     13
     14if (!posix_isatty(STDOUT))
     15        die("You have to run this program with php-cli!\n");
    1316
    1417$img = imagecreatefrompng(dirname(__FILE__)."/logo-caca.png");
     
    2831caca_refresh_display($display);
    2932
    30 caca_get_event($display, CACA_EVENT_KEY_PRESS, 5000000);
     33caca_get_event($display, CACA_EVENT_KEY_PRESS, -1);
    3134
    3235?>
Note: See TracChangeset for help on using the changeset viewer.