BASIC stamp manual v2.2

DEBUG – BASIC Stamp Command Reference
Page 168 BASIC Stamp Syntax and Reference Manual 2.2 www.parallax.com
The upper-left cursor position is 0,0 (that is column 0, row 0). The right-
most cursor positions depend on the size of the Debug Terminal window
(which is user adjustable). If a character position that is out of range is
received, the Debug Terminal wraps back around to the opposite side of
the screen.
The Move To Column (x) and Move To Row (y) control characters work
similarly to Move To (x,y) except they only expect a singe position value to
follow.
The Clear Right (CLREOL) control character clears the characters that
appear to the right of, and on, the cursor's current position. The cursor is
not moved by this action.
The Clear Down (CRLDN) control character clears the characters that
appear below, and on, the cursor's current line. The cursor is not moved
by this action.
Name Symbol ASCII
Value
Description
Clear Screen CLS 0 Clear the screen and place cursor at home
position.
Home HOME 1 Place cursor at home in upper-left corner of
the screen.
Move To (x,y) CRSRXY
2.5
2 Move cursor to specified location. Must be
followed by two values (x and then y)
Cursor Left CRSRLF
2.5
3 Move cursor one character to left.
Cursor Right CRSRRT
2.5
4 Move cursor one character to right.
Cursor Up CRSRUP
2.5
5 Move cursor one character up.
Cursor Down CRSRDN
2.5
6 Move cursor one character down.
Bell BELL 7 Beep the PC speaker.
Backspace BKSP 8 Back up cursor to left one space.
Tab TAB 9 Tab to the next column.
Line Feed LF
2.5
10 Move cursor down one line.
Clear Right CLREOL
2.5
11 Clear line contents to the right of cursor.
Clear Down CLRDN
2.5
12 Clear screen contents below cursor.
Carriage Return CR 13 Move cursor to the first column of the next
line (shift any data on the right down to that
line as well).
Move To
Column X
CRSRX
2.5
14 Move cursor to specified column. Must be
followed by byte value (x) for the column (0
is the left-most column).
Move To Row Y CRSRY
2.5
15 Move cursor to specified row. Must be
followed by byte value (y) for the row (0 is
the top-most row).
Table 5.13: Special DEBUG Control
Characters for all BS2 models.
NOTE: (
2.5
) indicates this control
character requires the PBASIC 2.5
compiler directive.