1 2 3 4 5 6 7 8 9 10 11
#include <term.h> #define number_of_pins tigetnum("npins") /** number of pins in print-head **/ /* TERMINFO_NAME(npins) TERMCAP_NAME(Yh) XOPEN(400) */