Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

go line back terminal

- 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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #line #terminal
ADD COMMENT
Topic
Name
1+7 =