refresh the stdout