Is ncurses a good choice for implementing command history in a C program on Linux

I am a student and I take a course where my project should write a server using unix sockets, streams or epoll, etc.

However, when the client takes his input from the user, I wanted to go the extra mile and give him some kind of memory for the commands that he gave in the past; like shell or gdb.

I have no idea how to do this, can you guys help me? I put ncurses in the header because I suspect I should use it, but I don't know how, I have never used ncurses before.

+3
source share
1 answer

This functionality is provided by the GNU reader library .

+5
source

All Articles