I am interested in creating a terminal-based text interface in C without the use of a library like ncurses
. I know that through using tput
and a variety of escape codes, it is possible to create such an interface. However, I am uncertain of how to use tput
or similar commands in C.
First, I am wondering what the best option is for implementing something like this in C without external libraries (so it can be compiled and run on a bare bone system).
Second, if using tput
is the best option, how can I call these commands from C?
I understand that using a pre-existing library, such as ncurses
would greatly simplify the process, but I would like to create my program without them.
Thank you in advance.