}
}
- // if we want to do a top status line, this is a reasonable way to do it
- // printf("\033[s\033[0;70H");
- // printf("\033[K %d/%d %d/%d", cols_printed, screenwidth, lines_printed, screenheight);
- // printf("\033[u");
-
- if ((screenheight > 0) && (lines_printed > (screenheight-2))) {
+ if ((screenheight > 0) && (lines_printed > (screenheight-2))) { /* -3 if we add status line */
lines_printed = 0;
hit_any_key();
lines_printed = 0;
return c;
}
+/*
+char status_line[1024] =
+ " This is the status line, status line, status line, this is "
+ "the status line, all day long. *****************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************"
+ "************************************************************";
+*/
void scr_flush(void)
{
+ /*
+ if ((enable_color) && (screenwidth > 0)) {
+ printf("\033[s\033[1;1H\033[K\033[7m");
+ fwrite(status_line, screenwidth, 1, stdout);
+ printf("\033[27m\033[u");
+ }
+ */
fflush(stdout);
}