home *** CD-ROM | disk | FTP | other *** search
- Cursor Control
-
- The escape sequence
-
- $e[<command>
-
- is used to control the cursor location when a prompt is printed. Line numbers
- on the screen go from 1 at the top to 25 at the bottom (or maybe 43). Column
- numbers go from 1 at the left edge to 80 or more at the right edge. The various
- <command>s and their definitions are as follows:
-
- <command> Definition:
-
- #1;#2H position cursor to line number #1 and column number #2
- #A position cursor up # lines
- #B position cursor down # lines
- #C position cursor forward # columns
- #D position cursor backward # columns
- #1;#2f same as #1;#2H
- 2J clear the screen and move cursor to home
- K clear the current line from the cursor position to the
- end of the line
- s save the current cursor position for use by u
- u restore the cursor to the position saved by s