note 86298 added to function.ncurses-getmaxyx

From: Date: Sat, 11 Oct 2008 17:33:58 +0000
Subject: note 86298 added to function.ncurses-getmaxyx
Groups: php.notes 
Request: Send a blank email to php-notes+get-145277@lists.php.net to get a copy of this message
TIP 1: If you want to know the size of the main (default) ncurses screen, you can use the defined constant STDSCR eg. ncurses_getmaxyx (STDSCR, $Height, $Width); No need to create a window, get its size and delete it again (not sure if this works on php versions < 5 though). TIP 2 : If you are creating a PHP console application and want to support terminal resizing and if you find that the ncurses screen doesn't actually resize when you resize your terminal (which was the case for me (on FreeBSD 5.3 at least)) you should end the current ncurses session and restart it again. Very easy to do this if you create your own ncurses class with a nice con- and destructor. ---- Server IP: 83.137.20.135 Probable Submitter: 77.250.151.11 ---- Manual Page -- http://www.php.net/manual/en/function.ncurses-getmaxyx.php Edit -- https://master.php.net/note/edit/86298 Del: integrated -- https://master.php.net/note/delete/86298/integrated Del: useless -- https://master.php.net/note/delete/86298/useless Del: bad code -- https://master.php.net/note/delete/86298/bad+code Del: spam -- https://master.php.net/note/delete/86298/spam Del: non-english -- https://master.php.net/note/delete/86298/non-english Del: in docs -- https://master.php.net/note/delete/86298/in+docs Del: other reasons-- https://master.php.net/note/delete/86298 Reject -- https://master.php.net/note/reject/86298 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145277) next »