note 76023 added to function.ncurses-getmaxyx

From: Date: Wed, 27 Jun 2007 00:36:25 +0000
Subject: note 76023 added to function.ncurses-getmaxyx
Groups: php.notes 
Request: Send a blank email to php-notes+get-128009@lists.php.net to get a copy of this message
After some headscratching as to why my script was not detecting the terminal being resized... i discovered that the function would not report the new size of the terminal until the window is refreshed. So this is the code that I am using to get the size of the screen: $fullscreen = ncurses_newwin ( 0, 0, 0, 0); // everytime you want to find out the size of the screen, write the following 2 lines: ncurses_wrefresh($fullscreen); ncurses_getmaxyx ($fullscreen, $y, $x ); ---- Server IP: 69.147.83.197 Probable Submitter: 89.108.130.123 ---- Manual Page -- http://www.php.net/manual/en/function.ncurses-getmaxyx.php Edit -- https://master.php.net/note/edit/76023 Del: integrated -- https://master.php.net/note/delete/76023/integrated Del: useless -- https://master.php.net/note/delete/76023/useless Del: bad code -- https://master.php.net/note/delete/76023/bad+code Del: spam -- https://master.php.net/note/delete/76023/spam Del: non-english -- https://master.php.net/note/delete/76023/non-english Del: in docs -- https://master.php.net/note/delete/76023/in+docs Del: other reasons-- https://master.php.net/note/delete/76023 Reject -- https://master.php.net/note/reject/76023 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128009) next »