I know I could use something like ncurses, but I don't want to include that dependency in my project.
I'm looking for a way to clear all the output my program generated at a certain point, so I can show more information without flooding the screen.
This is for a program written in Rust. There are libraries used to handle the terminal like Termion.
Also read something about using ANSI characters as an option.