March 2003
Intermediate to advanced
656 pages
39h 30m
English
addstr
w.addstr([y,x,]str[,attr])
Puts the characters in string
str, with attribute
attr, on w at
the given coordinates
(
x,y
),
overwriting any previous contents. All curses
functions and methods accept coordinate arguments in reverse order,
with y (the row number) before
x (the column number). If you omit
y,x,
addstr uses
w’s current cursor
coordinates. If you omit attr,
addstr uses
w’s current default
attribute. In any case, addstr, when done adding
the string, sets w’s
current cursor coordinates to the end of the string it has added.
Read now
Unlock full access