putch
tputs(Senter, 1, putch);
tputs(Sexit, 1, putch);
tputs(Senter, 1, putch);
tputs(Sexit, 1, putch);
tputs(ULexit, 1, putch);
void putch(int);
tputs(ULexit, 1, putch);
tputs(Senter, 1, putch);
tputs(Sexit, 1, putch);
tputs(eraseln, 1, putch);
tputs(eraseln, 1, putch);
tputs(state ? ULenter : ULexit, 1, putch);
tputs(chUL, 1, putch);
tputs(Clear, 1, putch);
#define cleareol() (tputs(eraseln, 1, putch))
#define clreos() (tputs(EodClr, 1, putch))
#define home() (tputs(Home, 1, putch))
putch(int c)
int retval = tputs(clear_screen, lines > 0 ? lines : 1, putch);
(void) tputs(E3, lines > 0 ? lines : 1, putch);