Cause a window to share buffers which have been created for or attached to another window.
#include <screen/screen.h>
int screen_share_window_buffers(screen_window_t win, screen_window_t share)
The handle of the window that will be sharing the buffer(s) owned by another window.
The handle of the window whose buffer(s) is to be shared.
Function Type: Flushing Execution
0 if the windows are sharing buffers, or -1 if an error occurred (errno is set).