B - escape sequences, Escape sequence overview, Appendix b – Rockwell Automation 1747-WINBAS Software Programming Manual User Manual

Page 33: Escape sequences, Appendix

Advertising
background image

31

Publication 1747-PM001A-EN-P - January 2007

Appendix

B

Escape Sequences

Escape Sequence
Overview

Escape sequences are supported by BASIC Interface Software. The
fully-supported escape sequences are listed in this table.

There are several escape sequences that are accepted, but no action is
taken. All of these no action sequences are of the form ESC[#m, where
# describes what display attributes are modified (for example,
ESC[45m means set the background color to magenta).

All other escape sequences display the string ESC in the dialog
followed by the actual sequence (for example, ESC[=h or ESC[=3;7h).

Escape Sequence

Description

ESC[#1;#2H

Moves cursor to line 1 and column 2.

ESC[#1;#2f

Moves cursor to line 1 and column 2.

ESC[#A

Moves cursor up set number of lines.

ESC[#B

Moves cursor down set number of lines.

ESC[#C

Moves cursor forward set number of spaces.

ESC[#D

Moves cursor back set number of spaces.

ESC[s

Saves cursor position for recall later.

ESC[u

Returns to saved cursor position.

ESC[2J

Clears screen and homes cursor.

ESC[K

Clears to end of line.

Advertising