set the NSUnbufferedIO env key of for task rather than use openpty()