PHP
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

newt_grid_add_components_to_form> <newt_form
Last updated: Fri, 30 Jan 2009

view this page in

newt_get_screen_size

(PECL newt >= 0.1)

newt_get_screen_size 参照で渡された引数に、現在の端末の大きさを格納する

説明

void newt_get_screen_size ( int &$cols , int &$rows )

参照で渡された引数に、現在の端末の大きさを格納します。

パラメータ

cols

端末のカラム数。

rows

端末の行数。

返り値

値を返しません。

例1 newt_get_screen_size() の例

このコードは、端末の画面の大きさを表示します。

<?php
 newt_init
();
 
newt_get_screen_size (&$cols, &$rows);
 
newt_finished();

 print 
"端末のサイズは {$cols}x{$rows} です。\n";
?>

上の例の出力は以下となります。

端末のサイズは 138x47 です。



add a note add a note User Contributed Notes
newt_get_screen_size
There are no user contributed notes for this page.

newt_grid_add_components_to_form> <newt_form
Last updated: Fri, 30 Jan 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites