1 2 3 4 5 6 7 8 9 10 11
#include <term.h> #define columns tigetnum("cols") /** number of columns in a line **/ /* TERMINFO_NAME(cols) TERMCAP_NAME(co) XOPEN(400) */