ncurses_border

(PHP 4 >= 4.2.0, PHP 5 < 5.3.0, PECL ncurses >= 1.0.0)

ncurses_borderرسم مرز صفحه با استفاده از کاراکترهای دارای ویژگی

Description

int ncurses_border ( int $left , int $right , int $top , int $bottom , int $tl_corner , int $tr_corner , int $bl_corner , int $br_corner )
Warning

This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.

رسم خط مشخص شده و گوشه‌های پنجره اصلی.

استفاده از ncurses_wborder() برای مرزهای زیرپنجره‌ها!

Parameters

هر پارامتر 0 برای رسم خط یا 1 برای نادیده گرفتن.

left

right

top

bottom

tl_corner

گوشه بالا چپ

tr_corner

گوشه بالا راست

bl_corner

گوشه پایین چپ

br_corner

گوشه پایین راست

See Also

add a note add a note

User Contributed Notes 2 notes

up
0
krzysztof at uno dot pl
7 years ago
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...
up
0
joeldegan AT yahoo.com
12 years ago
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.
To Top