Properly hijack terminal for outgoing printfs.