Demo entry 6702761

Moving X

   

Submitted by anonymous on Jan 28, 2018 at 14:22
Language: Python 3. Code size: 175 Bytes.

import os
import time

print('\033[2J\033[B\033[B\033[B')
print('X')
for i in range(1,os.get_terminal_size().columns-2):
	time.sleep(0.1)
	print('\033[A', ' '*i, 'X')

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).