Changeset 3259 for libcaca/trunk/caca-php/examples/www/fullwidth.php
- Timestamp:
- Nov 3, 2008, 11:30:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca-php/examples/www/fullwidth.php
- Property svn:executable deleted
r3258 r3259 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 /* … … 18 24 * http://sam.zoy.org/wtfpl/COPYING for more details. 19 25 */ 26 ?> 27 <head> 28 <title>sample program for libcaca php binding</title> 29 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 30 </head> 31 <body text="silver" bgcolor="black"> 32 <?php 20 33 21 34 define('CACA', "쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊"); 22 35 23 $cv = caca_create_canvas( 0, 0);36 $cv = caca_create_canvas(36, 12); 24 37 if(! $cv) 25 38 { 26 39 die("Can't created canvas\n"); 27 }28 $dp = caca_create_display($cv);29 if(! $dp)30 {31 die("Can't create display\n");32 40 } 33 41 … … 69 77 caca_blit($cv, 29, 1, $caca); 70 78 71 caca_refresh_display($dp); 72 73 caca_get_event($dp, CACA_EVENT_KEY_PRESS, -1); 79 echo caca_export_string($cv, "html3"); 74 80 75 81 ?> 82 </body> 83 </html>
Note: See TracChangeset
for help on using the changeset viewer.