Support interaction with stdin/stdout