Query: newt_get_screen_size
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
NEWT_GET_SCREEN_SIZE(3) 1 NEWT_GET_SCREEN_SIZE(3) newt_get_screen_size - Fills in the passed references with the current size of the terminalSYNOPSISvoid newt_get_screen_size (int &$cols, int &$rows)DESCRIPTIONFills in the passed references with the current size of the terminal.PARAMETERSo $cols - Number of columns in the terminal o $rows - Number of rows in the terminalRETURN VALUESNo value is returned.EXAMPLESExample #1 A newt_get_screen_size(3) example This code prints out the screen size of your terminal. <?php newt_init(); newt_get_screen_size (&$cols, &$rows); newt_finished(); print "Your terminal size is: {$cols}x{$rows} "; ?> The above example will output: Your terminal size is: 138x47 PHP Documentation Group NEWT_GET_SCREEN_SIZE(3)