goer@sophist.uucp (Richard Goerwitz) (02/04/90)
Occasionally I find myself having to do something trivial
to the screen, but because I'm accustomed to using cur-
ses, this typically increases the size of the executable
by a good 25k. Below is a typical piece of code (nor-
mally I'd use tput clear to clear the screen - it's just an
example). If someone could show me how to do this using
lower level functions, I'd appreciate it:
#include <tcap.h>
main()
{
initscr();
clear();
refresh();
endwin();
exit();
}
-Richard L. Goerwitz goer%sophist@uchicago.bitnet
goer@sophist.uchicago.edu rutgers!oddjob!gide!sophist!goer
lael@ariel.unm.edu (Lael) (02/05/90)
What about the following:
main(){
int loop;
for (loop=1;loop<25;loop++)
printf("\n");
}