FIN() Data for Terminals

The FIN() for the terminal contains the following fields:

Byte

Contents

1,1

Current column

2,1

Current line

3,1

Maximum physical column

4,1

Maximum physical line

5,1

Current column offset (scroll region)

6,1

Current line offset (scroll region)

7,1

Current columns (scroll region)

8,1

Current lines (scroll region)

9,2

Current window number

11,1

*Reserved*

12,1

Current mode bits

13,2

Current color attribute

15,1

*Reserved*

16,1

Default mode bits

17,2

Default color attribute

19,1

Internal - device type

20,2

Internal - CIB flags

22,2

Internal - device flags

24,8

*Reserved*

33,n1

Actual device name (host name)+$00$

33+n1,n2

Device type/termcap type+$00$

33+n1,n2,n3

Modes from alias line +$00$

The mode bits describe the attributes in force on the terminal and are organized in the following manner:

Bit

Attribute

0 (lsb)

High intensity

1

Reverse video

2

Underline

3

Blink

5

Graphics

The color attribute bytes are organized in the following manner:

Bit

Attribute

0- 1

Foreground blue

2- 3

Foreground green

4- 5

Foreground red

6- 7

*Reserved*

8- 9

Background blue

10-11

Background green

12-13

Background red

14-15

*Reserved*

The default mode and color attributes are those in force at the last execution of a 'DEFAULT' mnemonic.