Qbasicnews.com

Full Version: cls in C
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I dont got a clue about how I should makea cls in C.

I know that cls has and aski value so I got this idea about mb making a char varaibel contaning this aski value and then using printf or puts to print it. But the thing is I dont know what aski value it is and how I give a aski value to a char varaibel.

Oh and I almost forgot is this the way of making it?
why don't you get allegro for linux?? :wink:
12 is the character, but it won't clear the screen in C++ if you're writing a console program. If you're using Borland C/C++, you can clear the screen with clrscr(). (It's in conio.h)
I think he is using a unix terminal, so he better go for ncurses library.
I am using a unix termilnal.... and why wont it clear the screen in a console program and how do you define a console program???
You are coding a console application already. In this case, Terminal = Console.

I don't have a clue on how to erase screen in a Unix terminal, that's why I suggested you to use the NCurses libraries, which are used in vt100/linux and more terminals to manage display (not only clearing screen but drawing boxes, windows and such in text mode).