Moving the virtual cursor to a specific location and then writing a string can be done with one call to the video string place function, v_stpl():
|
||
|
|
|
|
|
|
|
|
|
|
|
|
This function first changes the location of the virtual cursor to the specified row and column. Then, the string is written using v_st(). The virtual cursor is advanced to the position after the last character written if the virtual cursor advance option is ON.
A NULLP is returned if the end of the string is reached. If the full string was not written, a pointer to the next character in the string is returned. If you want to finish writing the string, you can use this pointer as the next string to write to the window.