Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   Tech Help (http://zelaron.com/forum/forumdisplay.php?f=329)
-   -   C++ Question (http://zelaron.com/forum/showthread.php?t=24160)

RaZ 2003-11-06 07:35 PM

C++ Question
 
It's a simple question i just forget how to do it... im making a dos based game and for some reason i forget the code to clear the screen... does anyone know what that is off hand? thx.

is it system("cls"); ?

-Spector- 2003-11-06 08:42 PM

I know its somthin with CLS lol

Demosthenes 2003-11-06 09:46 PM

Import the os module and then you can use the system function you
would normaly use to clear the screen in your os.
In linux:

import os
os.system('clear')

In dos/windows:

import os
os.system('cls')


All times are GMT -6. The time now is 12:17 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.