ncurses_raw

(PHP 4 >= 4.1.0, PHP 5)

ncurses_raw -- Switch terminal into raw mode

Description

bool ncurses_raw ( void )

警告

本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本函数风险自担。

ncurses_raw() places the terminal in raw mode. Raw mode is similar to cbreak mode, in that characters typed are immediately passed through to the user program. The differences that are that in raw mode, the interrupt, quit, suspend and flow control characters are all passed through uninterpreted, instead of generating a signal. Returns TRUE if any error occurred, otherwise FALSE.

See also: ncurses_noraw(), ncurses_cbreak(), ncurses_nocbreak()


add a note add a note User Contributed Notes
israelbz at yahoo dot com dot mx
16-Mar-2006 05:15
nc_raw() will reset ncurses_halfdelay():

<?php
 
//This don't set the halfdelay mode
 
ncurses_halfdelay(9);
 
ncurses_raw();
?>

If you want set halfdelay and raw be shure put halfdelay after
raw:

<?php
 
//Correct sets the halfdelay mode
 
ncurses_raw();
 
ncurses_halfdelay(9);
?>