Changeset 3232 for libcaca/trunk
- Timestamp:
- Nov 2, 2008, 11:38:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca-php/examples/www/colors.php
- Property svn:executable deleted
r3230 r3232 1 #!/usr/bin/php5 1 <?php 2 header('Content-Type: text/html; charset=UTF-8'); 3 ?> 4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 5 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 6 7 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 2 8 <?php 3 9 /* … … 17 23 * http://sam.zoy.org/wtfpl/COPYING for more details. 18 24 */ 25 ?> 26 <head> 27 <title>display all possible libcaca colour pairs</title> 28 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 29 </head> 30 <body text="silver" bgcolor="black"> 31 <?php 19 32 20 33 $cv = caca_create_canvas(80, 24); … … 22 35 { 23 36 die("Failed to create canvas\n"); 24 }25 26 $dp = caca_create_display($cv);27 if(!$dp)28 {29 die("Failed to create display\n");30 37 } 31 38 … … 55 62 caca_put_str($cv, 3 + 60, 20, "underline"); 56 63 57 caca_refresh_display($dp); 58 caca_get_event($dp, CACA_EVENT_KEY_PRESS, -1); 64 echo caca_export_string($cv, "html3"); 59 65 60 66 ?> 67 </body> 68 </html>
Note: See TracChangeset
for help on using the changeset viewer.