2 ms·There is a library for doing things like that; for some reason, it's called "curses".by nine_k 6y agoThere is a library for doing things like that; for some reason, it's called "curses".