Cross-platform terminal clear helper.
To be entirely transparent I used AI to make most of this code since I'm still learning. I don't know if this is the safest way to do this or if the most effiecient. As I learn and start to understand concepts I will update this if needed. I simply wanted an easy way to clear the terminal while I make silly CLI games.
cargo add pocket-clearuse pocket_clear::clear;
fn main() -> std::io::Result<()> {
clear()?;
Ok(())
}