> What would be the right way to do something like this?

Using the terminfo database.


Reply via email to