note 27708 added to function.ncurses-getch
| From: | joeldegan at rack1 dot php dot net | Date: | Mon, 16 Dec 2002 18:29:30 +0000 |
| Subject: | note 27708 added to function.ncurses-getch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40972@lists.php.net to get a copy of this message | ||
When using getch to capture KEY_* events remember that the keypad is arranged like this:
+-----+------+-------+
| A1 | up | A3 |
+-----+------+-------+
|left | B2 | right |
+-----+------+-------+
| C1 | down | C3 |
+-----+------+-------+
You use has_key to capture these and act upon them.
man curs_getch for more info.
--
http://www.php.net/manual/en/function.ncurses-getch.php
http://master.php.net/manage/user-notes.php?action=edit+27708
http://master.php.net/manage/user-notes.php?action=delete+27708
http://master.php.net/manage/user-notes.php?action=reject+27708