320 x 240 LCD Display Terminal
ANSI VT100 Serial Protocol Features

The ANSI subset protocol allows the display to be used as a limited ANSI terminal with scrolling. The display consists of 30 lines of 40 characters shown using a fixed pitch 8 x 8 font. The display supports a hardware ‘cursor’, which is  displayed by a flashing underline, and represents the insertion point on the display where the next printable text will be placed.

The following ANSI protocol commands are supported:

BELL

Value (ASCII 7 decimal / 07 hex) Receipt of this character causes the display to produce a 1KHz tone for 0.2 seconds.

Backspace (BS)

Value (ASCII 8 decimal / 08 hex) Receipt of this character causes the display to move the cursor one position to the left.

Horizontal Tab (HT)

Value (ASCII 9 decimal / 09 hex) Receipt of this character causes the display to move the cursor right to the next tab stop. Moving past the rightmost tab stop causes the cursor to move to the beginning of the following line with display scrolling up if the cursor was on the last line. There are 4 tab stops per line at positions 4, 8, 12, 16, 20, 24, and 28.

Line Feed (LF)

Value (ASCII 10 decimal / 0A hex) Receipt of this character causes the display to move the cursor down to the next line in the same column. The display will scroll up if the cursor was on the last line.

Vertical Tab (VT)

Value (ASCII 11 decimal / 0B hex) Receipt of this character causes the display to move the cursor down to the next line in the same column. The display will scroll up if the cursor was on the last line.

Form Feed (FF)

Value (ASCII 12 decimal / 0C hex) Receipt of this character causes the display to move the cursor down to the next line in the same column. The display will scroll up if the cursor was on the last line.

Carriage Return (CR)

Value (ASCII 13 decimal / 0D hex) Receipt of this character causes the display to move the cursor left to the first column on the current line. There is a User Configuration setting that will automatically add receipt of a Line Feed (LF) character after a carriage return if required.

Cancel (CAN)

Value (ASCII 24 decimal / 18 hex) Receipt of this character causes the display to abort any escape sequence that may be in process. No other action is taken.

Escape (ESC)

Value (ASCII 33 decimal / 1B hex) Receipt of this character causes the display to attempt to decode one or more of the following characters as a control or escape sequence that will affect the display.

Displayed Characters

Values (ASCII 32 decimal / 20 hex through ASCII 127 decimal / 7F hex) Receipt of these characters cause the display to show the character on the screen at the current cursor location, and then move the cursor right to the next position. There is a User Configuration setting that will automatically wrap the cursor to the beginning of the next line, if required, scrolling up if the cursor was on the last line. The following characters are displayed:

Upper Bits

Lower Bits

0010

0011

0100

0101

0110

0111

0000

space

0

@

P

`

p

0001

!

1

A

Q

a

q

0010

“

2

B

R

b

r

0011

#

3

C

S

c

s

0100

$

4

D

T

d

t

0101

%

5

E

U

e

u

0110

&

6

F

V

f

v

0111

‘

7

G

W

g

w

1000

(

8

H

X

h

x

1001

)

9

I

Y

i

y

1010

*

:

J

Z

j

z

1011

+

;

K

[

k

{

1100

,

<

L

\

l

|

1101

-

=

M

]

m

}

1110

.

>

N

^

n

?

1111

/

?

O

_

o

?

Reset Display (ESC c)

Values (ASCII 33, 99 decimal / 1B, 63 hex) Receipt of this character sequence causes the display to clear, the cursor position to move to the upper left corner and the backlight to turn off.

Cursor Down (ESC D)

Values (ASCII 33, 68 decimal / 1B, 44 hex) Receipt of this character sequence causes the display to move the cursor down to the next line in the same column. The cursor will not move and the display will not scroll up if the cursor was on the last line.

Cursor Down to column 1 (ESC E)

Values (ASCII 33, 69 decimal / 1B, 45 hex) Receipt of this character sequence causes the display to move the cursor down to the next line and the first column. The cursor will not move and the display will not scroll up if the cursor was on the last line.

Cursor Up (ESC M)

Values (ASCII 33, 77 decimal / 1B, 4D hex) Receipt of this character sequence causes the display to move the cursor up to the previous line in the same column. The cursor will not move if the cursor was on the first line.

ANSI Escape Sequences (ESC [ )

Values (ASCII 33, 91 decimal / 1B, 5B hex) Receipt of this character sequence causes the display to attempt to decode one or more of the following characters as an ANSI control sequence. These sequences can have 1 or 2 parameters that are expressed as decimal numbers separated by a semicolon. The absence of a parameter in a control sequence causes it to assume a default value of zero.

Cursor Up n lines (ESC [ n A)

Values (ASCII 33, 91, 48-57, 65 decimal / 1B, 5B, 30-39, 41 hex) Receipt of this character sequence causes the display to move the cursor up ‘n’ lines in the same column. The cursor will not move up past the first line in the display.

Cursor Up n lines to column 1 (ESC [ n F)

Values (ASCII 33, 91, 48-57, 70 decimal / 1B, 5B, 30-39, 46 hex) Receipt of this character sequence causes the display to move the cursor up ‘n’ lines and to the first column. The cursor will not move up past the first line in the display.

Cursor Down n lines (ESC [ n B)

Values (ASCII 33, 91, 48-57, 66 decimal / 1B, 5B, 30-39, 42 hex) Receipt of this character sequence causes the display to move the cursor down ‘n’ lines in the same column. The cursor will not move past the bottom line in the display and the display will not scroll up.

Cursor Down n lines to column 1 (ESC [ n E)

Values (ASCII 33, 91, 48-57, 69 decimal / 1B, 5B, 30-39, 45 hex) Receipt of this character sequence causes the display to move the cursor down ‘n’ lines and to the first column. The cursor will not move past the bottom line in the display and the display will not scroll up.

Cursor Right n characters (ESC [ n C)

Values (ASCII 33, 91, 48-57, 67 decimal / 1B, 5B, 30-39, 43 hex) Receipt of this character sequence causes the display to move the cursor right ‘n’ characters on the same line. The cursor will not move past the end of the current line.

Cursor Left n characters (ESC [ n D)

Values (ASCII 33, 91, 48-57, 68 decimal / 1B, 5B, 30-39, 44 hex) Receipt of this character sequence causes the display to move the cursor left ‘n’ characters on the same line. The cursor will not move past the beginning of the current line.

Move cursor to n (ESC [ n G)

Values (ASCII 33, 91, 48-57, 71 decimal / 1B, 5B, 30-39, 47 hex) Receipt of this character sequence causes the display to move the cursor to column ‘n’ on the current line. The cursor will not move past the beginning or end of the current line.

Move cursor to r, c (ESC [ r ; c H)

Values (ASCII 33, 91, [[48-57], 59, [48-57]], 72 decimal / 1B, 5B, [[30-39], 3B, [30-39]], 48 hex) Receipt of this character sequence causes the display to move the cursor to row ‘r’, column ‘c’.  The value for ‘r’ ranges from 0 – 7, the value for ‘c’ ranges from 0 – 20.

Erase all or part of display (ESC [ n J)

Values (ASCII 33, 91, 48-50, 74 decimal / 1B, 5B, 30-32, 4A hex) Receipt of this character sequence causes part or all of the display to clear.  If ‘n’ = 0, the display is cleared from the cursor position to the end. If ‘n’ = 1, the display is cleared from the beginning to the cursor position. If ‘n’ = 2 the entire display is cleared, and the cursor is moved to the upper left (0, 0).

Erase all or part of line (ESC [ n K)

Values (ASCII 33, 91, 48-50, 75 decimal / 1B, 5B, 30-32, 4B hex) Receipt of this character sequence causes part or all of the line that the cursor is on to clear.  If ‘n’ = 0, the line is cleared from the cursor position to the end of the line. If ‘n’ = 1, the line is cleared from the beginning to the cursor position. If ‘n’ = 2 the entire line is cleared. The position of the cursor is not affected by this command.

Save cursor position (ESC [ n s)

Values (ASCII 33, 91, 114 decimal / 1B, 5B, 73 hex) Receipt of this character sequence causes the display to save the current cursor position.

Restore cursor position (ESC [ n u)

Values (ASCII 33, 91, 116 decimal / 1B, 5B, 75 hex) Receipt of this character sequence causes the display to restore the previously saved cursor position.



Home

Ackerman Computer Sciences
6233 East Sawgrass Road
Sarasota, Florida 34240-8922
Phone (941)377-5775 -- Fax (941)378-4226

Copyright© 1992 - 2008 ACS, Sarasota, FL. All rights reserved. Windows TM is a trademark of the Microsoft Corporation. IBM PC, XT, AT TM are trademarks of the International Business Machines Corporation. All other brand names or product names are or may be the trademarks or registered trademarks of their respective companies

Last Updated 8/4/08