get_terminal_size() was failing because os.get_terminal_size() was raising EOPNOTSUPP when code was being executed in a different process spawned by node and stdout was piped through sockets. This PR adds this error code to the list of acceptable errors for which (80, 24) is returned.
get_terminal_size()
was failing becauseos.get_terminal_size()
was raisingEOPNOTSUPP
when code was being executed in a different process spawned by node and stdout was piped through sockets. This PR adds this error code to the list of acceptable errors for which (80, 24) is returned.