Single character input on command line

From: Date: Tue, 11 Dec 2001 02:43:05 +0000
Subject: Single character input on command line
Groups: php.general 
Request: Send a blank email to php-general+get-77260@lists.php.net to get a copy of this message
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

« previous php.general (#77260) next »