tgetnum
ymax = tgetnum("li") - 1;
LI = tgetnum("li"); /* get number of lines */
CO = tgetnum("co"); /* get number of columns */
*p->tcaddr = tgetnum(p->tcname);
extern NCURSES_EXPORT(int) tgetnum (const char *);
|| (Lpp = tgetnum("li")) <= 0) {
else if ((width = tgetnum("co")) == 0) {
if ((screen_length = tgetnum("li")) <= 0)
if ((screen_width = tgetnum("co")) == -1)
int tgetnum(const char *);
else if ((n = tgetnum(p)) != -1)
Columns = tgetnum("co");
Lines = tgetnum("li");
gen_CO = tgetnum("co");
gen_LI = tgetnum("li");
gen_UG = tgetnum("ug");
gen_SG = tgetnum("sg");
if ((j = tgetnum("kn")) >= 0) {
int64_t tgetnum(char *);