mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-24 14:37:32 -05:00
Clear the terminal after showing the welcome message
This commit is contained in:
parent
070a780d7f
commit
bd10b154fe
1 changed files with 2 additions and 0 deletions
|
@ -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 => (),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue