Re: arrow values in command line php
| From: | Marek Kilimajer | Date: | Mon, 06 Sep 2004 14:52:09 +0000 |
| Subject: | Re: arrow values in command line php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195981@lists.php.net to get a copy of this message | ||
weston@leary.csoft.net wrote:
A while back I decided I wanted a simple interactive interpreter for PHP. So I wrote a little PHP script that essentially did a read from stdin, and ran eval on that. Worked for most situations I was in. I'm trying to add some more features now, namely recalling a list of commands using the up and down arrow, and making each line left/right arrow editable. But I'm not sure exactly how to read the input from the arrow characters. Could someone tell me how or point me to a good resource on doing this kind of thing? Thanks, Westonhttp://www.php.net/readline