arrow values in command line php
| From: | weston at leary dot csoft dot net | Date: | Sun, 05 Sep 2004 01:46:24 +0000 |
| Subject: | arrow values in command line php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-195889@lists.php.net to get a copy of this message | ||
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,
Weston