Re: Single character input on command line
| From: | Chris Lee | Date: | Tue, 18 Dec 2001 17:35:33 +0000 |
| Subject: | Re: Single character input on command line | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78094@lists.php.net to get a copy of this message | ||
take them from the arguments list
$argv[]
I know its not what you asked, its just what I answered.
--
Chris Lee
lee@mediawaveonline.com
"August Zajonc" <ml@augustz.com> wrote in message
news:OJEJIPPNGKHEBGFEHPLMEEMECCAA.ml@augustz.com...
> Interested in getting a single character at a time on the command line
using
> php.
>
> ie, I'd like to type 2 and be able to trap that keystroke right away and
act
> on it.
>
> Before spending a lot of time tracking down possibilites (readline
> input_buffer, reading the stdin pipe) thought I'd ask if anyone's done
this
> already and has an elegant way I'm missing.
>
> Thanks,
>
> - August
>