Someone please tell me how to clear the screen on a unix box in C. I'm trying to write a menuing program that clears the screen when you choose different stuff. Curses isn't the only thing i'll use its just what i've been trying. This DOESN'T work so... someone enlighten me.
/* This does not work */
#include <stdio.h>
#include <curses.h>
main(){
initscr();
erase();
printf("I'm on a clean screen \n"
}
Thanks,
Ben
/* This does not work */
#include <stdio.h>
#include <curses.h>
main(){
initscr();
erase();
printf("I'm on a clean screen \n"
}
Thanks,
Ben