I've found several undocumented constants, that are very useful to create borders manually:
They all work in UTF8 terminal...
(PHP 4 >= 4.2.0, PHP 5 < 5.3.0, PECL ncurses >= 1.0.0)
ncurses_border — Draw a border around the screen using attributed characters
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.
Draws the specified lines and corners around the main window.
Use ncurses_wborder() for borders around subwindows!
Every parameter expects 0 to draw a line or 1 to skip it.
Top left corner
Top right corner
Bottom left corner
Bottom right corner
- ncurses_wborder() - Draws a border around the window using attributed characters
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.