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 — Dessine un bord autour de l'écran avec les caractères données
Description
Cette fonction est EXPERIMENTALE. Cela signifie que le comportement de cette fonction, son nom et, concrètement, TOUT ce qui est documenté ici peut changer dans un futur proche, SANS PREAVIS ! Soyez-en conscient, et utilisez cette fonction à vos risques et périls.
Dessine les lignes spécifiées et les coins autour de la fenêtre principale.
Utilisez ncurses_wborder() pour les bordures autour de la fenêtre.
Liste de paramètres
Chaque paramètre attend 0 pour dessiner la ligne et 1 pour ne pas le faire.
- left
-
- right
-
- top
-
- bottom
-
- tl_corner
-
Coin en haut à gauche
- tr_corner
-
Coin en haut à droite
- bl_corner
-
Coin en bas à gauche
- br_corner
-
Coin en bas à droite
ncurses_border
27-Apr-2007 03:35
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.
