The write statement is useful mostly during development to write to the curses screen. The syntax is simply the word write followed by the x coordinate (counting from the left), the y coordinate (counting from the top), and then the quoted text. There is no capability of printing variables or formatted expressions. (There could be, by implementing with something like cout. I have no idea how this would mix with curses.)
write 3,5,"White Christmas"
We may try to implement the printing of variables by the old C++ trick of overloading, in the generated program, e.g.void write(int,int,char*); // uses printw("%s",string) void write(int,int,int); // uses printw("%d",integer)but it hasn't proved necessary yet.