Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: ncurses_getch - Manual
[go: Go Back, main page]

PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<ncurses_flushinpncurses_getmaxyx" width="11" height="7"/>
view the version of this page
Last updated: Tue, 21 Dec 2004

ncurses_getch

(PHP 4 >= 4.1.0, PHP 5)

ncurses_getch -- キーボードから1文字読み込む

説明

int ncurses_getch ( void )

警告

この関数は、 実験的なステータスにあります。これは、この関数の 動作、関数名、ここで書かれていること全てがPHPの将来のバージョンで予告 なく変更される可能性があることを意味します。注意を喚起するとともに自分 のリスクでこの関数を使用して下さい。

undocumented



add a note add a note User Contributed Notes
ncurses_getch
joeldegan AT yahoo.com
17-Dec-2002 05:29
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.
pablorNOSPAM at nkstudios dot net
14-Sep-2002 05:40
A custom php ncurses_getstr function..

<?php

function ncurses_getstr($strlen){
   for (
$x=0;$x<$strlen;$x++){
      
$string .= chr(ncurses_getch());
   }
   return
$string;
}

ncurses_init();
ncurses_addstr(ncurses_getstr(6));
ncurses_refresh();
ncurses_getch();
ncurses_end();

?>

<ncurses_flushinpncurses_getmaxyx" width="11" height="7"/>
 Last updated: Tue, 21 Dec 2004
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This mirror generously provided by: HappySize, Inc.
Last updated: Thu Jan 13 06:11:42 2005 JST