|
Source manager | |
|
Elenco funzioni : Clear_Scree Client_WP CounterInPh doubleNB ShelldiWindow MontaDischiLinu CriptaHTM ClearScreenPytho FunzionePin OpenAndClos N.A.K Bluetooth Finde calcolatrice! Lascia il tuo sorgente |
Autore : dersew[at]tiscali[dot]it
#Questa funzione ripulisce lo schermo di shell, #indipendentemente dal sistema operativo. # prg. clearscr.py # Clear Screen import os def clearscreen(righe=100): """Clear Screen. righe e' un argomento opzionale usato soltanto in caso di emergenza. """ import os if os.name == "posix": # Unix/Linux/MacOS/BSD/etc os.system('clear') elif os.name in ("nt", "dos", "ce"): # DOS/Windows os.system('CLS') else: # Emergenza, per altri S.O. print '\n' * numlines clearscreen() |