RE: [PHP] Single character input on command line
| From: | Martin Towell | Date: | Tue, 11 Dec 2001 02:55:51 +0000 |
| Subject: | RE: [PHP] Single character input on command line | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-77261@lists.php.net to get a copy of this message | ||
i'd be interested in knowing this too (for future reference...)
-----Original Message-----
From: August Zajonc [mailto:ml@augustz.com]
Sent: Tuesday, December 11, 2001 1:43 PM
To: php-general@lists.php.net
Subject: [PHP] Single character input on command line
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net