update terminal flush at reset