PyDever / term.io

0 stars 0 forks source link

Add ANSI cursor movement #2

Open PyDever opened 6 years ago

PyDever commented 6 years ago

instead of using an array to store the position of the cursor

term.move([2,4,2])

use ansi codes

sys.stderr.write("\1xb[2:3B\1xb")
PyDever commented 6 years ago

well correction, use the same method

PyDever commented 6 years ago

but make it a wrapper to the ANSI instead of printing blanks