Cursor Addressing Codes

Use the table belo to determine the proper binary cursor addressing type. This table  shows the column or row address, and the associated code (control code or ASCII character) for each of the addressing types. The formula for each is:

ADDS

COL = CHAR((INT(X/10)*6)+X)

 

ROW = CHAR(Y+64)

 

 

TEC

COL = CHAR(-(1+X))

 

ROW = CHAR(-1(+Y))

 

 

LSI

COL = CHAR(X+32)

 

ROW = CHAR(Y+32)

 

 

HAZE

COL = CHAR(X)

 

ROW = CHAR(Y)

 

X

Y

ADDS COL

ADDS ROW

LSI

TEC

HAZE

0

0

nul

@

space

del

nul

1

1

soh

A

!

~

soh

2

2

stx

B

"

}

stx

3

3

etx

C

#

|

etx

4

4

eot

D

$

{

eot

5

5

enq

E

%

z

enq

6

6

ack

F

&

y

ack

7

7

bel

G

x

bel

8

8

bs

H

(

w

bs

9

9

ht

I

)

v

ht

10

10

dle

J

*

u

lf

11

11

dc1

K

+

t

vt

12

12

dc2

L

s

ff

13

13

dc3

M

-

r

cr

14

14

dc4

N

.

q

so

15

15

nak

O

/

p

si

16

16

syn

P

0

o

dle

17

17

etb

Q

1

n

dc1

18

18

can

R

2

m

dc2

19

19

em

S

3

l

dc3

20

20

space

T

4

k

dc4

21

21

!

U

5

j

nak

22

22

"

V

6

i

syn

23

23

#

W

7

h

etb

24

 

$

 

8

g

can

25

 

%

 

9

f

em

26

 

&

 

:

e

sub

27

 

 

;

d

esc

28

 

(

 

<

c

fs

29

 

)

 

=

b

gs

30

 

0

 

>

a

rs

31

 

1

 

?

us

32

 

2

 

@

_

space

33

 

3

 

A

^

!

34

 

4

 

B

]

"

35

 

5

 

C

\

#

36

 

6

 

D

[

$

37

 

7

 

E

Z

%

38

 

8

 

F

Y

&

39

 

9

 

G

X

40

 

@

 

H

W

(

41

 

A

 

I

V

)

42

 

B

 

J

U

*

43

 

C

 

K

T

+

44

 

D

 

L

S

45

 

E

 

M

R

-

46

 

F

 

N

Q

.

47

 

G

 

O

P

/

48

 

H

 

P

O

0

49

 

I

 

Q

N

1

50

 

P

 

R

M

2

51

 

Q

 

S

L

3

52

 

R

 

T

K

4

53

 

S

 

U

J

5

54

 

T

 

V

I

6

55

 

U

 

W

H

7

56

 

V

 

X

G

8

57

 

W

 

Y

F

9

58

 

X

 

Z

E

:

59

 

Y

 

[

D

;

60

 

 

\

C

<

61

 

a

 

]

B

=

62

 

b

 

^

A

>

63

 

c

 

_

@

?

64

 

d

 

?

2

65

 

e

 

a

>

A

66

 

f

 

b

=

B

67

 

g

 

c

<

C

68

 

h

 

d

;

D

69

 

i

 

e

:

E

70

 

p

 

f

9

F

71

 

q

 

g

8

G

72

 

r

 

h

7

H

73

 

s

 

i

6

I

74

 

t

 

j

5

J

75

 

u

 

k

4

K

76

 

v

 

l

3

L

77

 

w

 

m

2

M

78

 

x

 

n

1

N

79

 

y

 

o

0

O

See Also

Configuring and Using Terminals

Setting Terminal Characteristics

The CURSOR File

Selecting and Defining Terminal Types

Defining Your Own Terminal Types

Cursor Code Strings

Customizing the Cursor Definitions

Troubleshooting Problems with Terminals