write_screen & stdio