#include <h/mh.h>
#include <h/utils.h>
-#include <termios.h>
#include <sys/ioctl.h>
#include <curses.h>
#include <term.h>
+#include <termios.h>
#ifdef WINSIZE_IN_PTEM
# include <sys/stream.h>
if (rc != 0 || errret != 1) {
termstatus = -1;
return;
- } else {
- termstatus = 1;
}
+ termstatus = 1;
if (!initCO && (CO = tigetnum ("cols")) <= 0)
CO = 80;
if (ti_clear)
tputs (ti_clear, LI, outc);
else {
- printf ("\f");
+ putchar('\f');
}
fflush (stdout);