progName="Pwait.py" print("progName:",progName) #by D@CC on 2024GJul23 print("This program prints the character 'O'") print("then N empty lines") print("then waits T seconds") print("then repeats") print("it also prints the loop counter L") print("run this program in terminal mode using") print("python Pwait.py") print("start with terminal window height at maximum") print("then adjust the terminal window height") print("so that the 'O' stays in the same place") print("it doesn't work perfectly because the window height cannot be controlled precisely.") print("hit ctrl-C to stop the program") print(' try fwait("O",5,.01, L)') input("hit Enter to start") import time def fwait(char,N,T,L): #char is character to print #N is the number of empty trailing lines #T is the number of seconds to sleep (can be less than 1) #L is the loop counter print(char," ",L) for i in range(N): print() #for end time.sleep(T) #def end for L in range(10000): # works well on a Raspberry Pi 5 with fwait("O",24,.01, L) #fwait("O",50,.1, L) #fwait("O",5,1, L) #fwait("O",24,.01, L) fwait("O",5,.01, L) #while end