You can use cs_adj() to determine if a window buffer has been filled with output. For example, if you want to determine if a string written to the window has filled the window, you would write code like this:
|
You can determine if you wish to continue output by testing the value of flag. If flag is set to 0, then the buffer is filled; if it is set to 1, then the buffer is not yet filled with output.