1 2 3 4 5 6 7 8 9 10 11
#include <term.h> #define set_foreground tigetstr("setf") /** set foreground color to #1 **/ /* TERMINFO_NAME(setf) TERMCAP_NAME(Sf) XOPEN(400) */