1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 07:02:33 +02:00
Files
archived-php-src/ext
Wez Furlong bbd6dec20c Add support for the readline callback interface, allowing you to interleave
IO and user input.  Sample script:

<?php
dl("readline.so");

function handle_user_input($line)
{
   echo "You typed: '$line'\n";
   if ($line == 'exit')
      exit;
}

readline_callback_handler_install('type! > ', 'handle_user_input');

while (true) {
   $n = stream_select($r = array(STDIN), $w = null, $e = null, null);

   if ($n && in_array(STDIN, $r)) {
      readline_callback_read_char();
   }
}
2004-08-24 12:52:07 +00:00
..
2004-07-20 20:08:08 +00:00
2004-08-20 13:53:16 +00:00
2004-08-19 08:04:20 +00:00
2004-08-11 20:31:39 +00:00
2004-05-20 17:03:24 +00:00
2004-05-19 08:56:50 +00:00
2004-08-20 15:11:49 +00:00
2004-03-24 18:43:23 +00:00
2003-06-15 16:04:31 +00:00
2004-08-13 14:52:27 +00:00
2004-08-12 19:31:36 +00:00
2004-05-18 23:26:53 +00:00
2004-06-28 22:31:28 +00:00
2004-05-19 08:56:50 +00:00
2004-08-03 00:47:57 +00:00
2004-05-20 17:03:24 +00:00
2004-07-19 07:35:41 +00:00
2004-07-28 00:01:12 +00:00
2004-06-23 13:42:06 +00:00
2004-08-15 19:17:58 +00:00
2004-08-11 21:04:36 +00:00
2004-05-20 00:11:23 +00:00
2004-05-19 08:56:50 +00:00
2004-02-15 17:54:19 +00:00
2004-08-02 08:27:46 +00:00
2004-03-25 20:01:18 +00:00
2004-08-06 16:36:00 +00:00
2004-05-19 08:56:50 +00:00
2004-08-23 16:58:11 +00:00
2004-08-21 17:54:11 +00:00
2004-05-19 08:45:46 +00:00
2004-04-21 00:11:28 +00:00
2004-08-04 16:41:13 +00:00
2004-03-24 18:43:23 +00:00
2004-05-31 21:01:29 +00:00
2004-07-21 02:39:53 +00:00
;
2004-05-16 12:10:35 +00:00