tigetstr
bool canbold = (s = tigetstr("bold")) != (char* )-1 && s != NULL;
bool candim = (s = tigetstr("dim")) != (char* )-1 && s != NULL;
char * tigetstr(const char *);
s = tigetstr("rs1");
if (((s = tigetstr(p)) != NULL && s != (char *)-1) ||
s = tigetstr("is1");
if ((p = tigetstr("cuu")) != NULL) {
} else if ((p = tigetstr("cuu1")) != NULL) {
if ((p = tigetstr("el")) != NULL)