So say I have this:
import replit
import time
print("Text")
i = 0
def counter():
global i
while True:
print(i)
i +=1
time.sleep(1)
replit.clear()
counter()
Every second it clears the entire console and prints i out again, but say I want to keep 'Text' on the screen, how would I delete/edit that line? I have tried \r but if I type it breaks, any ideas?