Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#   		 Crown Copyright (c) 1997
2
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
6
#   (DERA).  It is made available to Recipients with a
7
#   royalty-free licence for its use, reproduction, transfer
8
#   to other parties and amendment for any purpose not excluding
9
#   product development provided that any such use et cetera
10
#   shall be deemed to be acceptance of the following conditions:-
11
#   
12
#       (1) Its Recipients shall ensure that this Notice is
13
#       reproduced upon any copies or amended versions of it;
14
#   
15
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
18
#   
19
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
22
#   
23
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
27
#
28
# CAE, X/Open Curses, Issue 4
29
 
30
+TYPE TERMINAL ;
31
 
32
+EXP (extern) TERMINAL *cur_term ;
33
 
34
 
35
# Boolean capabilities
36
 
37
+EXP int auto_left_margin, auto_right_margin, back_color_erase, can_change ;
38
+EXP int ceol_standout_glitch, col_addr_glitch, cpi_changes_res ;
39
+EXP int cr_cancels_micro_mode, dest_tabs_magic_smso, eat_newline_glitch ;
40
+EXP int erase_overstrike, generic_type, get_mouse, hard_copy, hard_cursor ;
41
+EXP int has_meta_key, has_print_wheel, has_status_line ;
42
+EXP int hue_lightness_saturation, insert_null_glitch, lpi_changes_res ;
43
+EXP int memory_above, memory_below, move_insert_mode, move_standout_mode ;
44
+EXP int needs_xon_xoff, no_esc_ctlc, no_pad_char ;
45
+EXP int non_dest_scroll_region, non_rev_rmcup ;
46
+EXP int over_strike, prtr_silent, row_addr_glitch, semi_auto_right_margin ;
47
+EXP int status_line_esc_ok, tilde_glitch, transparent_underline, xon_xoff ;
48
 
49
 
50
# Number capabilities
51
 
52
+EXP int bit_image_entwining, bit_image_type, buffer_capacity, buttons ;
53
+EXP int columns, dot_horz_spacing, dot_vert_spacing ;
54
+EXP int init_tabs, label_height, label_width, lines, lines_of_memory ;
55
+EXP int magic_cookie_glitch ;
56
+EXP int max_attributes, max_colors, max_micro_address, max_micro_jump ;
57
+EXP int max_pairs, maximum_windows ;
58
+EXP int micro_char_size, micro_line_size, no_color_video ;
59
+EXP int num_labels, number_of_pins, output_res_char, output_res_horz_inch ;
60
+EXP int output_res_line, output_res_vert_inch, padding_baud_rate ;
61
+EXP int virtual_terminal, wide_char_size, width_status_line ;
62
 
63
 
64
# String capabilities
65
 
66
+EXP char *acs_chars, *alt_scancode_esc, *back_tab, *bell ;
67
+EXP char *bit_image_carriage_return, *bit_image_newline, *bit_image_repeat ;
68
+EXP char *carriage_return, *change_char_pitch, *change_line_pitch ;
69
+EXP char *change_res_horz, *change_res_vert, *change_scroll_region ;
70
+EXP char *char_padding, *char_set_names, *clear_all_tabs, *clear_margins ;
71
+EXP char *clear_screen, *clr_bol, *clr_eol, *clr_eos, *code_set_init ;
72
+EXP char *color_names, *column_address, *command_character, *create_window ;
73
+EXP char *cursor_address ;
74
+EXP char *cursor_down, *cursor_home, *cursor_invisible, *cursor_left ;
75
+EXP char *cursor_mem_address, *cursor_normal, *cursor_right, *cursor_to_ll ;
76
+EXP char *cursor_up, *cursor_visible, *define_bit_image_region ;
77
+EXP char *define_char, *delete_character, *delete_line, *device_type ;
78
+EXP char *dis_status_line ;
79
+EXP char *display_clock, *display_pc_char, *down_half_line, *ena_acs ;
80
+EXP char *end_bit_image_region, *enter_alt_charset_mode, *enter_am_mode ;
81
+EXP char *enter_blink_mode, *enter_bold_mode, *enter_ca_mode ;
82
+EXP char *enter_delete_mode, *enter_dim_mode, *enter_doublewide_mode ;
83
+EXP char *enter_draft_quality, *enter_insert_mode, *enter_italics_mode ;
84
+EXP char *enter_left_hl_mode, *enter_leftward_mode, *enter_low_hl_mode ;
85
+EXP char *enter_micro_mode ;
86
+EXP char *enter_near_letter_quality, *enter_normal_quality ;
87
+EXP char *enter_pc_charset_mode, *enter_protected_mode, *enter_reverse_mode ;
88
+EXP char *enter_right_hl_mode ;
89
+EXP char *enter_scancode_mode, *enter_secure_mode, *enter_shadow_mode ;
90
+EXP char *enter_standout_mode, *enter_subscript_mode ;
91
+EXP char *enter_superscript_mode, *enter_top_hl_mode ;
92
+EXP char *enter_underline_mode, *enter_upward_mode, *enter_vertical_hl_mode ;
93
+EXP char *enter_xon_mode, *erase_chars, *exit_alt_charset_mode ;
94
+EXP char *exit_am_mode, *exit_attribute_mode, *exit_ca_mode ;
95
+EXP char *exit_delete_mode, *exit_doublewide_mode, *exit_insert_mode ;
96
+EXP char *exit_italics_mode, *exit_leftward_mode, *exit_micro_mode ;
97
+EXP char *exit_pc_charset_mode, *exit_scancode_mode, *exit_shadow_mode ;
98
+EXP char *exit_standout_mode, *exit_subscript_mode, *exit_superscript_mode ;
99
+EXP char *exit_underline_mode, *exit_upward_mode, *exit_xon_mode ;
100
+EXP char *fixed_pause, *flash_hook ;
101
+EXP char *flash_screen, *form_feed, *from_status_line ;
102
+EXP char *goto_window, *hangup ;
103
+EXP char *init_1string, *init_2string, *init_3string, *init_file, *init_prog ;
104
+EXP char *initialize_color, *initialize_pair, *insert_character ;
105
+EXP char *insert_line, *insert_padding, *key_a1, *key_a3, *key_b2 ;
106
+EXP char *key_backspace, *key_beg, *key_btab, *key_c1, *key_c3, *key_cancel ;
107
+EXP char *key_catab, *key_clear, *key_close, *key_command, *key_copy ;
108
+EXP char *key_create, *key_ctab, *key_dc, *key_dl, *key_down, *key_eic ;
109
+EXP char *key_end, *key_enter, *key_eol, *key_eos, *key_exit, *key_f0 ;
110
+EXP char *key_f1, *key_f10, *key_f11, *key_f12, *key_f13, *key_f14 ;
111
+EXP char *key_f15, *key_f16, *key_f17, *key_f18, *key_f19, *key_f2 ;
112
+EXP char *key_f20, *key_f21, *key_f22, *key_f23, *key_f24, *key_f25 ;
113
+EXP char *key_f26, *key_f27, *key_f28, *key_f29, *key_f3, *key_f30 ;
114
+EXP char *key_f31, *key_f32, *key_f33, *key_f34, *key_f35, *key_f36 ;
115
+EXP char *key_f37, *key_f38, *key_f39, *key_f4, *key_f40, *key_f41 ;
116
+EXP char *key_f42, *key_f43, *key_f44, *key_f45, *key_f46, *key_f47 ;
117
+EXP char *key_f48, *key_f49, *key_f5, *key_f50, *key_f51, *key_f52 ;
118
+EXP char *key_f53, *key_f54, *key_f55, *key_f56, *key_f57, *key_f58 ;
119
+EXP char *key_f59, *key_f6, *key_f60, *key_f61, *key_f62, *key_f63 ;
120
+EXP char *key_f7, *key_f8, *key_f9, *key_find, *key_help, *key_home ;
121
+EXP char *key_ic, *key_il, *key_left, *key_ll, *key_mark, *key_message ;
122
+EXP char *key_mouse ;
123
+EXP char *key_move, *key_next, *key_npage, *key_open, *key_options ;
124
+EXP char *key_ppage, *key_previous, *key_print, *key_redo, *key_reference ;
125
+EXP char *key_refresh, *key_replace, *key_restart, *key_resume, *key_right ;
126
+EXP char *key_save, *key_sbeg, *key_scancel, *key_scommand, *key_scopy ;
127
+EXP char *key_screate, *key_sdc, *key_sdl, *key_select, *key_send, *key_seol ;
128
+EXP char *key_sexit, *key_sf, *key_sfind, *key_shelp, *key_shome, *key_sic ;
129
+EXP char *key_sleft, *key_smessage, *key_smove, *key_snext, *key_soptions ;
130
+EXP char *key_sprevious, *key_sprint, *key_sr, *key_sredo, *key_sreplace ;
131
+EXP char *key_sright, *key_srsume, *key_ssave, *key_ssuspend, *key_stab ;
132
+EXP char *key_sundo, *key_suspend, *key_undo, *key_up, *keypad_local ;
133
+EXP char *keypad_xmit, *lab_f0, *lab_f1, *lab_f10, *lab_f2, *lab_f3 ;
134
+EXP char *lab_f4, *lab_f5, *lab_f6, *lab_f7, *lab_f8, *lab_f9 ;
135
+EXP char *label_format, *label_off ;
136
+EXP char *label_on, *meta_off, *meta_on, *micro_column_address, *micro_down ;
137
+EXP char *micro_left, *micro_right, *micro_row_address, *micro_up ;
138
+EXP char *mouse_info, *newline ;
139
+EXP char *order_of_pins, *orig_colors, *orig_pair, *pad_char, *parm_dch ;
140
+EXP char *parm_delete_line, *parm_down_cursor, *parm_down_micro, *parm_ich ;
141
+EXP char *parm_index, *parm_insert_line, *parm_left_cursor, *parm_left_micro ;
142
+EXP char *parm_right_cursor, *parm_right_micro, *parm_rindex ;
143
+EXP char *parm_up_cursor, *parm_up_micro, *pc_term_options, *pkey_key ;
144
+EXP char *pkey_local, *pkey_plab, *pkey_xmit, *plab_norm, *print_screen ;
145
+EXP char *prtr_non, *prtr_off, *prtr_on, *pulse ;
146
+EXP char *quick_dial, *remove_clock, *repeat_char, *req_for_input ;
147
+EXP char *reset_1string, *reset_2string, *reset_3string, *reset_file ;
148
+EXP char *restore_cursor, *row_address, *save_cursor, *scancode_escape ;
149
+EXP char *scroll_forward, *scroll_reverse, *select_char_set, *set0_des_seq ;
150
+EXP char *set1_des_seq, *set2_des_seq, *set3_des_seq ;
151
+EXP char *set_a_attributes, *set_a_background ;
152
+EXP char *set_a_foreground, *set_attributes, *set_background ;
153
+EXP char *set_bottom_margin, *set_bottom_margin_parm, *set_clock ;
154
+EXP char *set_color_band ;
155
+EXP char *set_color_pair, *set_foreground, *set_left_margin ;
156
+EXP char *set_left_margin_parm, *set_lr_margin ;
157
+EXP char *set_pglen_inch, *set_page_length ;
158
+EXP char *set_right_margin, *set_right_margin_parm, *set_tab, *set_tb_margin ;
159
+EXP char *set_top_margin, *set_top_margin_parm, *set_window ;
160
+EXP char *start_bit_image, *start_char_set_def, *stop_bit_image ;
161
+EXP char *stop_char_set_def, *subscript_characters, *superscript_characters ;
162
+EXP char *tab, *these_cause_cr, *to_status_line, *tone ;
163
+EXP char *user0, *user1, *user2, *user3, *user4 ;
164
+EXP char *user5, *user6, *user7, *user8, *user9 ;
165
+EXP char *underline_char, *up_half_line, *wait_tone ;
166
+EXP char *xoff_character, *xon_character, *zero_motion ;
167
 
168
 
169
+SUBSET "curs" := {
170
    # also in unix95:curses.h
171
 
172
    +FUNC int putp ( char * const ) ;
173
    +FUNC int tigetflag ( char * ) ;
174
    +FUNC int tigetnum ( char * ) ;
175
    +FUNC char *tigetstr ( char * ) ;
176
    +FUNC char *tparm ( char *, long, long, long, long, long,
177
	long, long, long, long ) ;
178
} ;
179
 
180
 
181
+FUNC int del_curterm ( TERMINAL * ) ;
182
+FUNC int restartterm ( char *, int, int * ) ;
183
+FUNC TERMINAL *set_curterm ( TERMINAL * ) ;
184
+FUNC int setupterm ( char *, int, int * ) ;
185
+FUNC int tgetent ( char *, char * const ) ;
186
+FUNC int tgetflag ( char [2] ) ;
187
+FUNC int tgetnum ( char [2] ) ;
188
+FUNC char *tgetstr ( char [2], char ** ) ;
189
+FUNC char *tgoto ( char * const, int, int ) ;
190
+FUNC int tputs ( char * const, int, int (*) ( int ) ) ;