title: Does PuTTy work correctly with ANSI/VT100 escape sequences?
body: <p>I'm writing a program for a class in HC12 Assembly for the Freescale MC9S12C32 processor. I'm using PuTTy as the terminal attached to the device via serial(-over-USB). For this assignment, we are supposed to use VT100/ANSI escape sequences to move the cursor to an arbitrary location and write the current time and then return it so the user can type and have their input echo'd back.</p>
  
  <p>I'm using the below sequence to save the cursor, move it, and return it. Yet for some reason PuTTy just places the cursor in the upper-left and fails to return it.</p>
  
  <pre><code>ESC         EQU   $1B ; ASCII ESC
  SAVECUR     EQU   $37 ; ASCII 7
  RESTCUR     EQU   $38 ; ASCII 8
  
  SaveCursor  PSHA
              LDAA  #ESC             ; Use Escape Sequence
              JSR   putchar
              LDAA  #'['
              JSR   putchar
              LDAA  #SAVECUR         ; To save cursor location
              JSR   putchar
              PULA
              RTS
  
  GotoClkPos  PSHA
              LDAA  #ESC             ; Move Cursor
              JSR   putchar
              LDAA  #'['
              JSR   putchar
              LDAA  #$05             ; To Row 5
              JSR   putchar
              LDAA  #';'
              JSR   putchar
              LDAA  #$05             ; Column 5
              JSR   putchar
              LDAA  #'H'
              JSR   putchar
              PULA
              RTS
  
  RestCursor  PSHA
              LDAA   #ESC            ; Use Escape Sequence
              JSR    putchar
              LDAA   #'['
              JSR    putchar
              LDAA   #RESTCUR        ; To Restore Cursor
              JSR    putchar
              PULA
              RTS
  </code></pre>
  
  <p>Am I coding the escape sequences wrong or does PuTTy not handle them as I expect?</p>