mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-05 09:43:31 +02:00
Clear the terminal after showing the welcome message
This commit is contained in:
@@ -92,6 +92,8 @@ fn main() -> Result<()> {
|
|||||||
stdout.flush()?;
|
stdout.flush()?;
|
||||||
|
|
||||||
io::stdin().lock().read_until(b'\n', &mut Vec::new())?;
|
io::stdin().lock().read_until(b'\n', &mut Vec::new())?;
|
||||||
|
|
||||||
|
stdout.execute(Clear(ClearType::All))?;
|
||||||
}
|
}
|
||||||
StateFileStatus::Read => (),
|
StateFileStatus::Read => (),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user