Example programs for terminfo and curses (in C and bash):
All C programs should be compiled with option -l curses.
-l curses