Establish a connection with Screen
#include <screen/screen.h>
int screen_create_context(screen_context_t *pctx, int flags)
Function type: Immediate Execution
This function establishes communication with Screen. This function opens /dev/screen and sends the proper connect sequence. If the call succeeds, memory is allocated to store the context state. Screen creates an event queue and associates it with the connecting process.
0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).