goto, cls, wait commands

Ulf Göransson ug at algonet.se
Thu Feb 10 13:39:20 EST 2005


Bruno Desthuilliers wrote:
> Duncan Booth a écrit :
>> BOOGIEMAN wrote:
>>> Secondly, how do I clear screen (cls) from text and other
>>> content ?
>>
>> That depends on your computer, and how you are running your program.
>> One way which *might* work is:
>>
>>    import os
>>    os.system("cls")
> 
> *might* work... !-)
>  bruno at bibi modulix $ cls
> -bash: cls: command not found
> 
> Bad luck ! didn't work !-)

Works for me! But then again...

kairos:ug> cat cls
#! /usr/local/bin/python
print "\xc",

/ug 8-)



More information about the Python-list mailing list