newt_get_screen_size(3) php man page | unix.com

Man Page: newt_get_screen_size

Operating Environment: php

Section: 3

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 terminal

SYNOPSIS
void newt_get_screen_size (int &$cols, int &$rows)
DESCRIPTION
Fills in the passed references with the current size of the terminal.
PARAMETERS
o $cols - Number of columns in the terminal o $rows - Number of rows in the terminal
RETURN VALUES
No value is returned.
EXAMPLES
Example #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)
Related Man Pages
infocmp(1) - netbsd
set_menu_format(3curses) - sunos
menu_format(3x) - freebsd
template::plugin::table(3) - suse
template::plugin::table(3) - centos
Similar Topics in the Unix Linux Community
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Please Welcome Nicki Paul to the Moderator Team!