I've found several undocumented constants, that are very useful to create borders manually:
ACS_ULCORNER
ACS_LLCORNER
ACS_URCORNER
ACS_LRCORNER
ACS_LTEE
ACS_RTEE
ACS_BTEE
ACS_TTEE
ACS_HLINE
ACS_VLINE
ACS_PLUS
ACS_S1
ACS_S9
ACS_DIAMOND
ACS_CKBOARD
ACS_DEGREE
ACS_PLMINUS
ACS_BULLET
ACS_LARROW
ACS_RARROW
ACS_DARROW
ACS_UARROW
ACS_BOARD
ACS_LANTERN
ACS_BLOCK
They all work in UTF8 terminal...
ncurses_border
(PHP 4 >= 4.2.0, PHP 5, PECL ncurses:1.0.0)
ncurses_border — 属性付きの文字で画面周囲に境界を描画する
説明
int ncurses_border
( int $left
, int $right
, int $top
, int $bottom
, int $tl_corner
, int $tr_corner
, int $bl_corner
, int $br_corner
)
警告
この関数は、 実験的 なものです。この関数の動作・ 名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 この関数は自己責任で使用してください。
指定した線と角を、メインウィンドウの周りに描画します。
サブウィンドウの周りに境界を描画するには ncurses_wborder() を使用してください!
パラメータ
各パラメータに 0 を指定すると描画を行い、1 を指定すると描画しません。
- left
-
- right
-
- top
-
- bottom
-
- tl_corner
-
左上隅。
- tr_corner
-
右上隅。
- bl_corner
-
左下隅。
- br_corner
-
右下隅。
ncurses_border
krzysztof at uno dot pl
27-Apr-2007 10:35
27-Apr-2007 10:35
joeldegan AT yahoo.com
15-Dec-2002 02:05
15-Dec-2002 02:05
In addition to the lack of ncurses_wborder() documentation.
There is also the lack of the getyx function..
it is different than the getxy function I wrote (and posted to the main ncurses docs page on php.net) to get the max X and max Y values, instead it gives you your current Y and X values.
ncurses_getyx($z, $y, $x);// where $z = a window handle...
# the $y and $x are handed back as globals.
# so beware of using this in a function where you might be
# looping through any variable using those.
# do a 'man getyx' to see.
