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

search for in the

ncurses_bottom_panel> <ncurses_bkgdset
Last updated: Fri, 22 Aug 2008

view this page in

ncurses_border

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

ncurses_borderDibujar un borde alrededor de la pantalla usando caracteres con atributos

Descripción

int ncurses_border ( int $izquierda , int $derecha , int $arriba , int $abajo , int $esquina_sup_izq , int $esquina_sup_der , int $esquina_inf_izq , int $esquina_inf_der )
Warning

Esta función es EXPERIMENTAL. Esto significa que el comportamiento de esta función, el nombre de esta función y en definitiva TODO lo documentado sobre esta función, puede cambiar en una futura version de PHP SIN AVISO. La advertencia queda hecha, y utilizar esta extensión queda bajo su propia responsabilidad.

Dibuja las líneas y esquinas especificadas alrededor de la ventana principal.

¡Utilice ncurses_wborder() para los bordes alrededor de sub-ventanas!

Lista de parámetros

Cada parámetro espera 0 para dibujar una línea, o 1 para ignorarla.

izquierda

derecha

arriba

abajo

esquina_sup_izq

Esquina superior izquierda

esquina_sup_der

Esquina superior derecha

esquina_inf_izq

Esquina inferior izquierda

esquina_inf_der

Esquina inferior derecha

Ver también



add a note add a note User Contributed Notes
ncurses_border
krzysztof at uno dot pl
27-Apr-2007 03:35
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...
joeldegan AT yahoo.com
15-Dec-2002 06: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.

ncurses_bottom_panel> <ncurses_bkgdset
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites