A function is provided to fill a rectangular area of a window with a character, an attribute, or both. To write to a rectangular area of a window, use the video character-attribute to area function, v_chattarea():
| int v_chattarea(rb, cb, re, ce, ch, att, mv_type, wnp) | ||
| int rb; | /* Row of window to start writing at | */ |
| int cb; | /* Column of window to start writing at | */ |
| int re; | /* Row of window to stop writing at | */ |
| int ce; | /* Column of window to stop writing at | */ |
| UCHAR ch; | /* Character to write | */ |
| UCHAR att; | /* Attribute to use to write character | */ |
| int mv_type; | /* Type of move: CH, CHATT, ATT | */ |
| WINDOWPTR wnp; | /* Pointer to window to write to | */ |
where rb, cb, re and ce are the buffer coordinates of the region to fill. All other parameters are the same as for v_chattrow() and v_chattcol().