note 72200 added to function.ncurses-wgetch
| From: | johns at servangle dot net | Date: | Sun, 07 Jan 2007 16:01:46 +0000 |
| Subject: | note 72200 added to function.ncurses-wgetch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121385@lists.php.net to get a copy of this message | ||
Something worth noting here; I noticed that with ncurses_wgetch function keys are broken into
multiple codes while ncurses_getch returns only one attributed code.
For example, with ncurses_wgetch pressing an up arrow results in three codes 27 91 65 (an ascii
escape sequence). The problem is subsequent calls to ncurses_wgetch are required to acquire all
three codes. Unfortunately, pressing an âAâ key for example would result in only a single
code of 65. This makes it hard to trap for both function keys and regular keys.
However, with ncurses_getch an up arrow results in a single attributed code of 259 or the
âNCURSES_KEY_UPâ key constant. An âAâ key is still 65.
----
Server IP: 216.194.113.175
Probable Submitter: 72.64.153.205
----
Manual Page -- http://www.php.net/manual/en/function.ncurses-wgetch.php
Edit -- https://master.php.net/note/edit/72200
Del: integrated -- https://master.php.net/note/delete/72200/integrated
Del: useless -- https://master.php.net/note/delete/72200/useless
Del: bad code -- https://master.php.net/note/delete/72200/bad+code
Del: spam -- https://master.php.net/note/delete/72200/spam
Del: non-english -- https://master.php.net/note/delete/72200/non-english
Del: in docs -- https://master.php.net/note/delete/72200/in+docs
Del: other reasons-- https://master.php.net/note/delete/72200
Reject -- https://master.php.net/note/reject/72200
Search -- https://master.php.net/manage/user-notes.php