Status line in C Terminal program

243 views Asked by At

I am running a terminal program written in c/c++ over shell. It is same like minicom for UART.

I am looking for the way how I can create “Status Line on the bottom” same like attached picture (bottom line of minicom: CTRL-A Z line which is always there as a GUI). For sure it is not just printf/cout but needed some extended API, I guess. Has anybody done that? Or may be some idea how to proceed? enter image description here

1

There are 1 answers

2
idz On

There are various libraries that allow you to do things like this. A well known one is ncurses.

See https://en.wikipedia.org/wiki/Ncurses

You can do it yourself using terminal control system calls, but that tends to be rather tedious and platform-specific.