ASCII Characters in Scripts

You can insert Lower ASCII characters into a script by using an escape sequence around the hexadecimal value of the ASCII character. In this context, lower ASCII is the first 31 characters of the ASCII character set.

Note: Loftware converts Upper ASCII characters, so they can be included in a script without the escape sequence.

  • Begin the escape sequence: #x
  • End the escape sequence: ;

For example, this sequence would send the Backspace character:

#x08;

Lower ASCII Character Set

Character

Description

Decimal

Hexadecimal

NUL

Null Character

0

0

SOH

Start of Header

1

1

STX

Start of Text

2

2

ETX

End of Text

3

3

EOT

End of Transmission

4

4

ENQ

Enquiry

5

5

ACK

Acknowledgement

6

6

BEL

Bell

7

7

BS

Backspace

8

8

HT

Horizontal Tab

9

9

LF

Line Feed

10

A

VT

Vertical Tab

11

B

FF

Form Feed

12

C

CR

Carriage Return

13

D

SO

Shift Out

14

E

SI

Shift In

15

F

DLE

Data Link Escape

16

10

DC1

Device Control 1 (XON)

17

11

DC2

Device Control 2

18

12

DC3

Device Control 3 (XOFF)

19

13

DC4

Device Control 4

20

14

NAK

Negative Acknowledgement

21

15

SYN

Synchronous Idle

22

16

ETB

End of Transmission Block

23

17

CAN

Cancel

24

18

EM

End of Medium

25

19

SUB

Substitute

26

1A

ESC

Escape

27

1B

FS

File Separator

28

1C

GS

Group Separator

29

1D

RS

Record Separator

30

1E

US

Unit Separator

31

1F