added terminal appearance function to main