Finished implementation of ANSI escape sequences.

Now supports moving the cursor and clearing the screen/line.