There are plenty of terminal emulators in the wild. Each one has a specific way to be controlled (colours, cursor, window…). In this article, we are going to explain and show in action the right ways to control your terminal with a portable and an easy to maintain API. We are going to talk about stat, tput, terminfo, Hoa\Console… but do not be afraid, it's easy and fun!