note 59177 added to function.ncurses-cbreak

From: Date: Mon, 28 Nov 2005 17:16:14 +0000
Subject: note 59177 added to function.ncurses-cbreak
Groups: php.notes 
Request: Send a blank email to php-notes+get-99253@lists.php.net to get a copy of this message
re satoru's post, While it's not using cbreak, it sorta is an example. The only difference between raw and cbreak is how control keys are delt with. Quoted from the ncurses_programming_howto: Normally the terminal driver buffers the characters a user types until a new line or carriage return is encountered. But most programs require that the characters be available as soon as the user types them. The above two functions are used to disable line buffering. The difference between these two functions is in the way control characters like suspend (CTRL-Z), interrupt and quit (CTRL-C) are passed to the program. In the raw() mode these characters are directly passed to the program without generating a signal. In the cbreak() mode these control characters are interpreted as any other character by the terminal driver. ---- Manual Page -- http://www.php.net/manual/en/function.ncurses-cbreak.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59177 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59177&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59177&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59177&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59177&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59177&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59177&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59177&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59177&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#99253) next »