Using something like echo -e "\033[3A" lets you move up by 3 lines, indicated by the 3 in "[3A".
- Position the Cursor:
\033[L
Or
\033[L
puts the cursor at line L and column C.
- Move the cursor up N lines:
\033[N
- Move the cursor down N lines:
\033[N
- Move the cursor forward N columns:
\033[N
- Move the cursor backward N columns:
\033[N
- Clear the screen, move to (0,0):
\033[2J
- Erase to end of line:
\033[K
- Save cursor position:
\033[s
- Restore cursor position:
\033[u
No comments:
Post a Comment