Answers for "ansi escape move cursor"

2

control cursor with ansi escape

- Position the Cursor:
  33[<L>;<C>H
     Or
  33[<L>;<C>f
  puts the cursor at line L and column C.
- Move the cursor up N lines:
  33[<N>A
- Move the cursor down N lines:
  33[<N>B
- Move the cursor forward N columns:
  33[<N>C
- Move the cursor backward N columns:
  33[<N>D

- Clear the screen, move to (0,0):
  33[2J
- Erase to end of line:
  33[K

- Save cursor position:
  33[s
- Restore cursor position:
  33[u
Posted by: Guest on November-04-2020

Browse Popular Code Answers by Language