In some cases, you may want to write strings and/or attributes to the window without respecting the window write options. You may want to do this if you know what the string is, where it will go in the window, and that it will fit in the window. This may save you some processing time.
To write strings without respecting the window write options, use the video string with attribute no options function, v_stattnop():
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The type of move is interpreted as in the call to v_stattpl():
| ST | Writes just the string to the window without changing the attributes in the window. The specified attribute is ignored. |
| STATT | Writes the string using the specified attribute. If you want to use the window attribute, specify the name of the window attribute explicitly or use wnp->att. |
| ATT | Writes just the attribute to the window. The specified string is ignored. |
Function v_stattnop() is used in the following example to quickly print out table headings in a window.
|
You could also use this function to quickly write in the data in each column also.