Quite handy for truncing fields that may upset a screen layout:
ncurses_addnstr("tenletters",3);
only renders to screen "ten", and truncs the rest
(PHP 4 >= 4.2.0, PHP 5 < 5.3.0, PECL ncurses >= 1.0.0)
ncurses_addnstr — Add string with specified length at current position
$s
, int $n
) : intThis 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.
This function is currently not documented; only its argument list is available.
s
n
Quite handy for truncing fields that may upset a screen layout:
ncurses_addnstr("tenletters",3);
only renders to screen "ten", and truncs the rest