More fiddling with program windows. (WIP)

Not sure how to properly redirect the terminal for *all* global
functions/APIs (print,read,write,textutils,...)