1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 dcl TTT_version_4 fixed bin int static options (constant) init (4);
31
32 dcl tttp ptr;
33
34 dcl 1 ttt aligned based (tttp),
35 2 author like author_dcl.author,
36 2 version fixed bin,
37 2 n_tt_entries fixed bin,
38 2 n_tables fixed bin,
39 2 n_special_tables fixed bin,
40 2 n_fkey_tables fixed bin,
41 2 fkey_offset fixed bin(18),
42 2 default_type_offset fixed bin (18),
43 2 answerback_offset fixed bin (18),
44 2 total_ttt_size fixed bin (18),
45 2 type_map fixed bin,
46 2 type_963 fixed bin,
47 2 type_029 fixed bin,
48 2 highest_coded_type fixed bin,
49
50 2 tt_entries (0 refer (ttt.n_tt_entries)) like tte,
51 2 tables (0 refer (ttt.n_tables)) like table_entry,
52 2 rest_of_ttt (1) fixed bin;
53
54
55
56
57 dcl ttep ptr;
58
59 dcl 1 tte based (ttep) aligned,
60 2 name char (32) unal,
61 2 modes char (256),
62 2 initial_string,
63 3 offset fixed bin (18),
64 3 length fixed bin,
65 2 additional_info,
66 3 offset fixed bin (18),
67 3 length fixed bin,
68 2 comment,
69 3 offset fixed bin (18),
70 3 length fixed bin,
71 2 tables,
72 3 input_translation_rp fixed bin (18),
73 3 output_translation_rp fixed bin (18),
74 3 input_conversion_rp fixed bin (18),
75 3 output_conversion_rp fixed bin (18),
76 3 special_rp fixed bin (18),
77 3 fkey_rp fixed bin(18),
78 3 delay_rp fixed bin (18),
79 2 line_types bit (72),
80 2 editing_chars aligned,
81 3 erase char (1) unal,
82 3 kill char (1) unal,
83 3 framing_chars unal,
84 4 frame_begin char (1) unal,
85 4 frame_end char (1) unal,
86 2 flags aligned,
87 3 keyboard_addressing bit (1) unal,
88 3 print_preaccess_message bit (1) unal,
89 3 conditional_printer_off bit (1) unal,
90 3 input_timeout bit (1) unal,
91 3 output_block_acknowledge bit (1) unal,
92 3 pad bit (31) unal,
93 2 old_type fixed bin,
94 2 like_type fixed bin,
95 2 like_flags unal,
96 3 bauds_overridden bit (1),
97 3 delay_overridden (6) bit (1),
98 3 pad bit (11) unal,
99 2 line_delimiter char (1) unal,
100 2 pad1 bit (9) unal,
101 2 coded_type fixed bin,
102 2 flow_control_chars unal,
103 3 input_suspend char (1),
104 3 input_resume char (1),
105 3 output_suspend_etb char (1),
106 3 output_resume_ack char (1),
107 2 output_buffer_size fixed bin,
108 2 extended_tables_rp fixed bin (18),
109 2 protocol fixed bin;
110
111
112 dcl extended_tablesp ptr;
113
114 dcl 1 extended_tables aligned based (extended_tablesp),
115 2 ntables fixed bin,
116 2 tables_rp (extended_tables_ntables refer (extended_tables.ntables)) fixed bin (18);
117
118 dcl (VIDEO_RP init (1),
119 FUNCTION_KEY_RP init (2),
120 DSATM_DEVICE_RP init (3)) fixed bin int static options (constant);
121
122 dcl extended_tables_ntables fixed bin int static options (constant) init (3);
123
124
125 dcl dfttp ptr;
126
127 dcl 1 dftt based (dfttp) aligned,
128 2 dft_count fixed bin,
129 2 dftte (0 refer (dftt.dft_count)),
130 3 baud fixed bin,
131 3 line_type fixed bin,
132 3 term_type_index fixed bin;
133
134
135 dcl tablep ptr;
136
137 dcl 1 table_entry aligned based (tablep),
138 2 name char (32) unal,
139 2 type fixed bin,
140 2 table like cv_trans_struc;
141
142
143 dcl 1 special_table aligned based,
144 2 name char (32) unal,
145 2 type fixed bin,
146 2 table,
147 3 version fixed bin,
148 3 default fixed bin,
149 3 special_chars,
150
151
152 4 nl_seq aligned like c_chars,
153 4 cr_seq aligned like c_chars,
154 4 bs_seq aligned like c_chars,
155 4 tab_seq aligned like c_chars,
156 4 vt_seq aligned like c_chars,
157 4 ff_seq aligned like c_chars,
158 4 printer_on aligned like c_chars,
159 4 printer_off aligned like c_chars,
160 4 red_ribbon_shift aligned like c_chars,
161 4 black_ribbon_shift aligned like c_chars,
162 4 end_of_page aligned like c_chars,
163
164 4 escape_length fixed bin,
165 4 not_edited_escapes (sc_escape_len refer (special_table.escape_length)) like c_chars,
166 4 edited_escapes (sc_escape_len refer (special_table.escape_length)) like c_chars,
167
168 4 input_escapes aligned,
169 5 len fixed bin (8) unaligned,
170 5 str char (sc_input_escape_len refer (special_table.input_escapes.len)) unaligned,
171 4 input_results aligned,
172 5 pad bit (9) unaligned,
173 5 str char (sc_input_escape_len refer (special_table.input_escapes.len)) unaligned;
174
175 dcl fkey_tablep ptr;
176
177 dcl 1 fkey_table aligned based (fkey_tablep),
178 2 name char(32) unal,
179 2 fkey_data aligned,
180 3 version fixed bin,
181 3 highest fixed bin,
182 3 sequence,
183 4 seq_offset fixed bin(18),
184 4 pad bit(36),
185 4 seq_len fixed bin(21),
186 3 cursor_motion_keys,
187 4 home (0:3) like template,
188 4 left (0:3) like template,
189 4 up (0:3) like template,
190 4 right (0:3) like template,
191 4 down (0:3) like template,
192 3 function_keys (0:function_key_data_highest refer(fkey_table.highest), 0:3) like template;
193
194 dcl template_ptr ptr;
195
196 dcl 1 template unaligned based(template_ptr),
197 2 sequence_index fixed bin(12) unsigned unaligned,
198 2 sequence_length fixed bin(6) unsigned unaligned;
199
200 dcl delay_tablep ptr;
201
202 dcl 1 delay_table based (delay_tablep) aligned,
203 2 n_bauds fixed bin,
204 2 delay_array (0 refer (delay_table.n_bauds)),
205 3 baud_rate fixed bin,
206 3 version fixed bin,
207 3 mbz fixed bin,
208 3 delays (6) fixed bin;
209
210
211 dcl answerback_entry_ptr ptr;
212 dcl answerback_length fixed bin;
213
214 dcl 1 answerback_entry based (answerback_entry_ptr) aligned,
215 2 next fixed bin (18),
216 2 term_type_index fixed bin,
217 2 def_string,
218 3 length fixed bin,
219 3 chars (answerback_length refer (answerback_entry.length)) char (1) unal;
220
221 dcl CONV_TYPE fixed bin int static options (constant) init (1);
222 dcl TRANS_TYPE fixed bin int static options (constant) init (2);
223 dcl SPEC_TYPE fixed bin int static options (constant) init (3);
224 dcl FKEY_TYPE fixed bin int static options (constant) init (4);
225
226 dcl table_types (4) char (12) int static options (constant) init
227 ("conversion", "translation", "special", "function_key");
228
229 dcl pa_name (3) char (3) int static options (constant) init
230 ("MAP", "963", "029");
231
232 %include tty_convert;
233
234