Just Barely Past Conio.....

Mac Osxtopus

Registered
ARGHH!!! STUPID CONIO.H!!! Why is it so (censored)ing hard to get help on something so simple as ascii animation!?! I'm almost on a major breakthrough with curses.h, but when i compile nothing i did shows. Someone told me to link something called termcap with curses, but i dont know how to do that, and using terminal to do this sort of stuff is a bit of a hassle.

// this code is SUPPOSED to work, but doesn't.

#include curses.h // the forum doesn't like alligators.

main() {

initscr(); // i have no idea..
printw("la la la la la"); // print this to the screen, just like printf to me
clear();// supposed to clear the screen, im not sure if it does or not.
refresh();// refreshes
printw("hooa!"); // print again to see if clear worked, this does NOT show
// when i compiled.
refresh();
endwin();// end.
return 0;// quit.
}
 
it IS a file for dos, hence windows core IS DOS(or Ms-Dos, its all the same to me..) anyways, curses.h is the supposed mac os x/unix equivalent.
 
Back
Top