Cause a window to display content produced by another stream
#include <screen/screen.h>
int screen_share_stream_buffers(screen_window_t win, screen_stream_t share)
Function Type: Flushing Execution
This function is used when a window needs to share the content of another stream. For this operation to be successful, the stream that's the owner of the buffer(s) to be shared must have at least one buffer that was created with screen_create_stream_buffers(), or attached with screen_attach_stream_buffers(). Updates can be posted using only the stream that's the owner of the buffers (i.e., the stream whose handle is identified as share).
0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).