done fork check, waiting on the child. added io control to work with the window size instead of messing with getenv