can get unintended results (like printint the previous contents of the str
register, which is almost certainly what you don't want).
if (termstatus == 0)
initialize_terminfo();
if (termstatus == 0)
initialize_terminfo();
+ termcbufp = termcbuf;
+
parm = tigetstr(cap);
if (parm == (char *) -1 || parm == NULL) {
parm = tigetstr(cap);
if (parm == (char *) -1 || parm == NULL) {
- termcbufp = termcbuf;
-
tputs(parm, 1, termbytes);
tputs(parm, 1, termbytes);
termcbufp = '\0';
LS(t->f_type, termcbuf);
termcbufp = '\0';
LS(t->f_type, termcbuf);