addnstr([y, x,] str, n, [attr])
Paint at most n characters of the string.
y
Y-coordinate.
x
X-coordinate.
str
String to add.
n
Maximal number of characters.
attr
Attributes for characters.
Paint at most n characters of the string str at (y, x) with
attributes attr, overwriting anything previously on the display.
By default, the character position and attributes are the
current settings for the window object.