summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-21 21:02:19 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-21 21:02:19 -0500
commit0b7a5126aed5b881ec48a7d82319917dcd74bbbb (patch)
tree10e190e2e14298f8a451c863887bb70a9aecf17a /src
parenta40bbaf27d592e053789a53740ef0509a77d9246 (diff)
add symbols from <term.h>
Diffstat (limited to 'src')
-rw-r--r--src/term/BOOLS.txt37
-rw-r--r--src/term/NUMBERS.txt33
-rw-r--r--src/term/STRINGS.txt394
-rw-r--r--src/term/TERMINAL.c7
-rw-r--r--src/term/acs_chars.c11
-rw-r--r--src/term/alt_scancode_esc.c11
-rw-r--r--src/term/auto_left_margin.c11
-rw-r--r--src/term/auto_right_margin.c11
-rw-r--r--src/term/back_color_erase.c11
-rw-r--r--src/term/back_tab.c11
-rw-r--r--src/term/bell.c11
-rw-r--r--src/term/bit_image_carriage_return.c11
-rw-r--r--src/term/bit_image_entwining.c11
-rw-r--r--src/term/bit_image_newline.c11
-rw-r--r--src/term/bit_image_repeat.c11
-rw-r--r--src/term/bit_image_type.c11
-rw-r--r--src/term/bool.ref3
-rw-r--r--src/term/buffer_capacity.c11
-rw-r--r--src/term/buttons.c11
-rw-r--r--src/term/can_change.c11
-rw-r--r--src/term/carriage_return.c11
-rw-r--r--src/term/ceol_standout_glitch.c11
-rw-r--r--src/term/change_char_pitch.c11
-rw-r--r--src/term/change_line_pitch.c11
-rw-r--r--src/term/change_res_horz.c11
-rw-r--r--src/term/change_res_vert.c11
-rw-r--r--src/term/change_scroll_region.c11
-rw-r--r--src/term/char_padding.c11
-rw-r--r--src/term/char_set_names.c11
-rw-r--r--src/term/clear_all_tabs.c11
-rw-r--r--src/term/clear_margins.c11
-rw-r--r--src/term/clear_screen.c11
-rw-r--r--src/term/clr_bol.c11
-rw-r--r--src/term/clr_eol.c11
-rw-r--r--src/term/clr_eos.c11
-rw-r--r--src/term/code_set_init.c11
-rw-r--r--src/term/col_addr_glitch.c11
-rw-r--r--src/term/color_names.c11
-rw-r--r--src/term/column_address.c11
-rw-r--r--src/term/columns.c11
-rw-r--r--src/term/command_character.c11
-rw-r--r--src/term/cpi_change_res.c11
-rw-r--r--src/term/cr_cancles_micro_mode.c11
-rw-r--r--src/term/create_window.c11
-rw-r--r--src/term/cur_term.c8
-rw-r--r--src/term/cursor_address.c11
-rw-r--r--src/term/cursor_down.c11
-rw-r--r--src/term/cursor_home.c11
-rw-r--r--src/term/cursor_invisible.c11
-rw-r--r--src/term/cursor_left.c11
-rw-r--r--src/term/cursor_mem_address.c11
-rw-r--r--src/term/cursor_normal.c11
-rw-r--r--src/term/cursor_right.c11
-rw-r--r--src/term/cursor_to_ll.c11
-rw-r--r--src/term/cursor_up.c11
-rw-r--r--src/term/cursor_visible.c11
-rw-r--r--src/term/define_bit_image_region.c11
-rw-r--r--src/term/define_char.c11
-rw-r--r--src/term/del_curterm.c11
-rw-r--r--src/term/delete_character.c11
-rw-r--r--src/term/delete_line.c11
-rw-r--r--src/term/dest_tabs_magic_smso.c11
-rw-r--r--src/term/device_type.c11
-rw-r--r--src/term/dial_phone.c11
-rw-r--r--src/term/dis_status_line.c11
-rw-r--r--src/term/display_clock.c11
-rw-r--r--src/term/display_pc_char.c11
-rw-r--r--src/term/dot_horz_spacing.c11
-rw-r--r--src/term/dot_vert_spacing.c11
-rw-r--r--src/term/down_half_line.c11
-rw-r--r--src/term/eat_newline_glitch.c11
-rw-r--r--src/term/ena_acs.c11
-rw-r--r--src/term/end_bit_image_region.c11
-rw-r--r--src/term/enter_alt_charset_mode.c11
-rw-r--r--src/term/enter_am_mode.c11
-rw-r--r--src/term/enter_blink_mode.c11
-rw-r--r--src/term/enter_bold_mode.c11
-rw-r--r--src/term/enter_ca_mode.c11
-rw-r--r--src/term/enter_delete_mode.c11
-rw-r--r--src/term/enter_dim_mode.c11
-rw-r--r--src/term/enter_doublewide_mode.c11
-rw-r--r--src/term/enter_draft_quality.c11
-rw-r--r--src/term/enter_horizontal_hl_mode.c11
-rw-r--r--src/term/enter_insert_mode.c11
-rw-r--r--src/term/enter_italics_mode.c11
-rw-r--r--src/term/enter_left_hl_mode.c11
-rw-r--r--src/term/enter_leftward_mode.c11
-rw-r--r--src/term/enter_low_hl_mode.c11
-rw-r--r--src/term/enter_micro_code.c11
-rw-r--r--src/term/enter_near_letter_quality.c11
-rw-r--r--src/term/enter_normal_quality.c11
-rw-r--r--src/term/enter_pc_charset_mode.c11
-rw-r--r--src/term/enter_protected_mode.c11
-rw-r--r--src/term/enter_reverse_mode.c11
-rw-r--r--src/term/enter_right_hl_mode.c11
-rw-r--r--src/term/enter_scancode_mode.c11
-rw-r--r--src/term/enter_secure_mode.c11
-rw-r--r--src/term/enter_shadow_mode.c11
-rw-r--r--src/term/enter_standout_mode.c11
-rw-r--r--src/term/enter_subscript_mode.c11
-rw-r--r--src/term/enter_superscript_mode.c11
-rw-r--r--src/term/enter_top_hl_mode.c11
-rw-r--r--src/term/enter_underline_mode.c11
-rw-r--r--src/term/enter_upward_mode.c11
-rw-r--r--src/term/enter_vertical_hl_mode.c11
-rw-r--r--src/term/enter_xon_mode.c11
-rw-r--r--src/term/erase_chars.c11
-rw-r--r--src/term/erase_overstrick.c11
-rw-r--r--src/term/exit_alt_charset_mode.c11
-rw-r--r--src/term/exit_am_mode.c11
-rw-r--r--src/term/exit_attribute_mode.c11
-rw-r--r--src/term/exit_ca_mode.c11
-rw-r--r--src/term/exit_delete_mode.c11
-rw-r--r--src/term/exit_doublewide_mode.c11
-rw-r--r--src/term/exit_insert_mode.c11
-rw-r--r--src/term/exit_italics_mode.c11
-rw-r--r--src/term/exit_leftword_mode.c11
-rw-r--r--src/term/exit_micro_mode.c11
-rw-r--r--src/term/exit_pc_charset_mode.c11
-rw-r--r--src/term/exit_scancode_mode.c11
-rw-r--r--src/term/exit_shadow_mode.c11
-rw-r--r--src/term/exit_standout_mode.c11
-rw-r--r--src/term/exit_subscript_mode.c11
-rw-r--r--src/term/exit_superscript_mode.c11
-rw-r--r--src/term/exit_underline_mode.c11
-rw-r--r--src/term/exit_upward_mode.c11
-rw-r--r--src/term/exit_xon_mode.c11
-rw-r--r--src/term/fixed_pause.c11
-rw-r--r--src/term/flash_hook.c11
-rw-r--r--src/term/flash_screen.c11
-rw-r--r--src/term/form_feed.c11
-rw-r--r--src/term/from_status_line.c11
-rw-r--r--src/term/generic_type.c11
-rw-r--r--src/term/get_mouse.c11
-rw-r--r--src/term/goto_window.c11
-rw-r--r--src/term/hangup.c11
-rw-r--r--src/term/hard_copy.c11
-rw-r--r--src/term/hard_cursor.c11
-rw-r--r--src/term/has_meta_key.c11
-rw-r--r--src/term/has_print_wheel.c11
-rw-r--r--src/term/has_status_line.c11
-rw-r--r--src/term/hue_lightness_saturation.c11
-rw-r--r--src/term/init_1string.c11
-rw-r--r--src/term/init_2string.c11
-rw-r--r--src/term/init_3string.c11
-rw-r--r--src/term/init_file.c11
-rw-r--r--src/term/init_prog.c11
-rw-r--r--src/term/init_tabs.c11
-rw-r--r--src/term/initialize_color.c11
-rw-r--r--src/term/initialize_pair.c11
-rw-r--r--src/term/insert_character.c11
-rw-r--r--src/term/insert_line.c11
-rw-r--r--src/term/insert_null_glitch.c11
-rw-r--r--src/term/insert_padding.c11
-rw-r--r--src/term/key_a1.c11
-rw-r--r--src/term/key_a3.c11
-rw-r--r--src/term/key_b2.c11
-rw-r--r--src/term/key_backspace.c11
-rw-r--r--src/term/key_beg.c11
-rw-r--r--src/term/key_btab.c11
-rw-r--r--src/term/key_c1.c11
-rw-r--r--src/term/key_c3.c11
-rw-r--r--src/term/key_cancel.c11
-rw-r--r--src/term/key_catab.c11
-rw-r--r--src/term/key_clear.c11
-rw-r--r--src/term/key_close.c11
-rw-r--r--src/term/key_command.c11
-rw-r--r--src/term/key_copy.c11
-rw-r--r--src/term/key_create.c11
-rw-r--r--src/term/key_ctab.c11
-rw-r--r--src/term/key_dc.c11
-rw-r--r--src/term/key_dl.c11
-rw-r--r--src/term/key_down.c11
-rw-r--r--src/term/key_eic.c11
-rw-r--r--src/term/key_end.c11
-rw-r--r--src/term/key_enter.c11
-rw-r--r--src/term/key_eol.c11
-rw-r--r--src/term/key_eos.c11
-rw-r--r--src/term/key_exit.c11
-rw-r--r--src/term/key_f0.c11
-rw-r--r--src/term/key_f1.c11
-rw-r--r--src/term/key_f10.c11
-rw-r--r--src/term/key_f11.c11
-rw-r--r--src/term/key_f12.c11
-rw-r--r--src/term/key_f13.c11
-rw-r--r--src/term/key_f14.c11
-rw-r--r--src/term/key_f15.c11
-rw-r--r--src/term/key_f16.c11
-rw-r--r--src/term/key_f17.c11
-rw-r--r--src/term/key_f18.c11
-rw-r--r--src/term/key_f19.c11
-rw-r--r--src/term/key_f2.c11
-rw-r--r--src/term/key_f20.c11
-rw-r--r--src/term/key_f21.c11
-rw-r--r--src/term/key_f22.c11
-rw-r--r--src/term/key_f23.c11
-rw-r--r--src/term/key_f24.c11
-rw-r--r--src/term/key_f25.c11
-rw-r--r--src/term/key_f26.c11
-rw-r--r--src/term/key_f27.c11
-rw-r--r--src/term/key_f28.c11
-rw-r--r--src/term/key_f29.c11
-rw-r--r--src/term/key_f3.c11
-rw-r--r--src/term/key_f30.c11
-rw-r--r--src/term/key_f31.c11
-rw-r--r--src/term/key_f32.c11
-rw-r--r--src/term/key_f33.c11
-rw-r--r--src/term/key_f34.c11
-rw-r--r--src/term/key_f35.c11
-rw-r--r--src/term/key_f36.c11
-rw-r--r--src/term/key_f37.c11
-rw-r--r--src/term/key_f38.c11
-rw-r--r--src/term/key_f39.c11
-rw-r--r--src/term/key_f4.c11
-rw-r--r--src/term/key_f40.c11
-rw-r--r--src/term/key_f41.c11
-rw-r--r--src/term/key_f42.c11
-rw-r--r--src/term/key_f43.c11
-rw-r--r--src/term/key_f44.c11
-rw-r--r--src/term/key_f45.c11
-rw-r--r--src/term/key_f46.c11
-rw-r--r--src/term/key_f47.c11
-rw-r--r--src/term/key_f48.c11
-rw-r--r--src/term/key_f49.c11
-rw-r--r--src/term/key_f5.c11
-rw-r--r--src/term/key_f50.c11
-rw-r--r--src/term/key_f51.c11
-rw-r--r--src/term/key_f52.c11
-rw-r--r--src/term/key_f53.c11
-rw-r--r--src/term/key_f54.c11
-rw-r--r--src/term/key_f55.c11
-rw-r--r--src/term/key_f56.c11
-rw-r--r--src/term/key_f57.c11
-rw-r--r--src/term/key_f58.c11
-rw-r--r--src/term/key_f59.c11
-rw-r--r--src/term/key_f6.c11
-rw-r--r--src/term/key_f60.c11
-rw-r--r--src/term/key_f61.c11
-rw-r--r--src/term/key_f62.c11
-rw-r--r--src/term/key_f63.c11
-rw-r--r--src/term/key_f7.c11
-rw-r--r--src/term/key_f8.c11
-rw-r--r--src/term/key_f9.c11
-rw-r--r--src/term/key_find.c11
-rw-r--r--src/term/key_help.c11
-rw-r--r--src/term/key_home.c11
-rw-r--r--src/term/key_ic.c11
-rw-r--r--src/term/key_il.c11
-rw-r--r--src/term/key_left.c11
-rw-r--r--src/term/key_ll.c11
-rw-r--r--src/term/key_mark.c11
-rw-r--r--src/term/key_message.c11
-rw-r--r--src/term/key_mouse.c11
-rw-r--r--src/term/key_move.c11
-rw-r--r--src/term/key_next.c11
-rw-r--r--src/term/key_npage.c11
-rw-r--r--src/term/key_open.c11
-rw-r--r--src/term/key_options.c11
-rw-r--r--src/term/key_ppage.c11
-rw-r--r--src/term/key_previous.c11
-rw-r--r--src/term/key_print.c11
-rw-r--r--src/term/key_redo.c11
-rw-r--r--src/term/key_reference.c11
-rw-r--r--src/term/key_refresh.c11
-rw-r--r--src/term/key_replace.c11
-rw-r--r--src/term/key_restart.c11
-rw-r--r--src/term/key_resume.c11
-rw-r--r--src/term/key_right.c11
-rw-r--r--src/term/key_save.c11
-rw-r--r--src/term/key_sbeg.c11
-rw-r--r--src/term/key_scancel.c11
-rw-r--r--src/term/key_scommand.c11
-rw-r--r--src/term/key_scopy.c11
-rw-r--r--src/term/key_screate.c11
-rw-r--r--src/term/key_sdc.c11
-rw-r--r--src/term/key_sdl.c11
-rw-r--r--src/term/key_select.c11
-rw-r--r--src/term/key_send.c11
-rw-r--r--src/term/key_seol.c11
-rw-r--r--src/term/key_sexit.c11
-rw-r--r--src/term/key_sf.c11
-rw-r--r--src/term/key_sfind.c11
-rw-r--r--src/term/key_shelp.c11
-rw-r--r--src/term/key_shome.c11
-rw-r--r--src/term/key_sic.c11
-rw-r--r--src/term/key_sleft.c11
-rw-r--r--src/term/key_smessage.c11
-rw-r--r--src/term/key_smove.c11
-rw-r--r--src/term/key_snext.c11
-rw-r--r--src/term/key_soptions.c11
-rw-r--r--src/term/key_sprevious.c11
-rw-r--r--src/term/key_sprint.c11
-rw-r--r--src/term/key_sr.c11
-rw-r--r--src/term/key_sredo.c11
-rw-r--r--src/term/key_sreplace.c11
-rw-r--r--src/term/key_sright.c11
-rw-r--r--src/term/key_srsume.c11
-rw-r--r--src/term/key_ssave.c11
-rw-r--r--src/term/key_ssuspend.c11
-rw-r--r--src/term/key_stab.c11
-rw-r--r--src/term/key_sundo.c11
-rw-r--r--src/term/key_suspend.c11
-rw-r--r--src/term/key_undo.c11
-rw-r--r--src/term/key_up.c11
-rw-r--r--src/term/keypad_local.c11
-rw-r--r--src/term/keypad_xmit.c11
-rw-r--r--src/term/lab_f0.c11
-rw-r--r--src/term/lab_f1.c11
-rw-r--r--src/term/lab_f10.c11
-rw-r--r--src/term/lab_f2.c11
-rw-r--r--src/term/lab_f3.c11
-rw-r--r--src/term/lab_f4.c11
-rw-r--r--src/term/lab_f5.c11
-rw-r--r--src/term/lab_f6.c11
-rw-r--r--src/term/lab_f7.c11
-rw-r--r--src/term/lab_f8.c11
-rw-r--r--src/term/lab_f9.c11
-rw-r--r--src/term/label_format.c11
-rw-r--r--src/term/label_height.c11
-rw-r--r--src/term/label_off.c11
-rw-r--r--src/term/label_on.c11
-rw-r--r--src/term/label_width.c11
-rw-r--r--src/term/lines.c11
-rw-r--r--src/term/lines_of_memory.c11
-rw-r--r--src/term/lpi_changes_res.c11
-rw-r--r--src/term/magic_cookie_glitch.c11
-rw-r--r--src/term/max_attributes.c11
-rw-r--r--src/term/max_colors.c11
-rw-r--r--src/term/max_micro_address.c11
-rw-r--r--src/term/max_micro_jump.c11
-rw-r--r--src/term/max_pairs.c11
-rw-r--r--src/term/maximum_windows.c11
-rw-r--r--src/term/memory_above.c11
-rw-r--r--src/term/memory_below.c11
-rw-r--r--src/term/meta_off.c11
-rw-r--r--src/term/meta_on.c11
-rw-r--r--src/term/micro_col_size.c11
-rw-r--r--src/term/micro_colum_address.c11
-rw-r--r--src/term/micro_down.c11
-rw-r--r--src/term/micro_left.c11
-rw-r--r--src/term/micro_line_size.c11
-rw-r--r--src/term/micro_right.c11
-rw-r--r--src/term/micro_row_address.c11
-rw-r--r--src/term/micro_up.c11
-rw-r--r--src/term/mouse_info.c11
-rw-r--r--src/term/move_insert_mode.c11
-rw-r--r--src/term/move_standout_mode.c11
-rw-r--r--src/term/needs_xon_xoff.c11
-rw-r--r--src/term/newline.c11
-rw-r--r--src/term/no_color_video.c11
-rw-r--r--src/term/no_esc_ctlc.c11
-rw-r--r--src/term/no_pad_char.c11
-rw-r--r--src/term/non_dest_scroll_region.c11
-rw-r--r--src/term/non_rev_rmcup.c11
-rw-r--r--src/term/num_labels.c11
-rw-r--r--src/term/number_of_pins.c11
-rw-r--r--src/term/order_of_pins.c11
-rw-r--r--src/term/orig_colors.c11
-rw-r--r--src/term/orig_pair.c11
-rw-r--r--src/term/output_res_char.c11
-rw-r--r--src/term/output_res_horz_inch.c11
-rw-r--r--src/term/output_res_line.c11
-rw-r--r--src/term/output_res_vert_inch.c11
-rw-r--r--src/term/over_strike.c11
-rw-r--r--src/term/pad_char.c11
-rw-r--r--src/term/padding_baud_rate.c11
-rw-r--r--src/term/parm_dch.c11
-rw-r--r--src/term/parm_delete_line.c11
-rw-r--r--src/term/parm_down_cursor.c11
-rw-r--r--src/term/parm_down_micro.c11
-rw-r--r--src/term/parm_ich.c11
-rw-r--r--src/term/parm_index.c11
-rw-r--r--src/term/parm_insert_line.c11
-rw-r--r--src/term/parm_left_cursor.c11
-rw-r--r--src/term/parm_left_micro.c11
-rw-r--r--src/term/parm_right_cursor.c11
-rw-r--r--src/term/parm_right_micro.c11
-rw-r--r--src/term/parm_rindex.c11
-rw-r--r--src/term/parm_up_cursor.c11
-rw-r--r--src/term/parm_up_micro.c11
-rw-r--r--src/term/pc_term_options.c11
-rw-r--r--src/term/pkey_key.c11
-rw-r--r--src/term/pkey_local.c11
-rw-r--r--src/term/pkey_plab.c11
-rw-r--r--src/term/pkey_xmit.c11
-rw-r--r--src/term/plab_norm.c11
-rw-r--r--src/term/print_rate.c11
-rw-r--r--src/term/print_screen.c11
-rw-r--r--src/term/prtr_non.c11
-rw-r--r--src/term/prtr_off.c11
-rw-r--r--src/term/prtr_on.c11
-rw-r--r--src/term/prtr_silent.c11
-rw-r--r--src/term/pulse.c11
-rw-r--r--src/term/putp.c11
-rw-r--r--src/term/quick_dial.c11
-rw-r--r--src/term/remove_clock.c11
-rw-r--r--src/term/repeat_char.c11
-rw-r--r--src/term/req_for_input.c11
-rw-r--r--src/term/req_mouse_pos.c11
-rw-r--r--src/term/reset_1string.c11
-rw-r--r--src/term/reset_2string.c11
-rw-r--r--src/term/reset_3string.c11
-rw-r--r--src/term/reset_file.c11
-rw-r--r--src/term/restartterm.c11
-rw-r--r--src/term/restore_cursor.c11
-rw-r--r--src/term/row_addr_glitch.c11
-rw-r--r--src/term/row_address.c11
-rw-r--r--src/term/save_cursor.c11
-rw-r--r--src/term/scancode_escape.c11
-rw-r--r--src/term/scroll_forward.c11
-rw-r--r--src/term/scroll_reverse.c11
-rw-r--r--src/term/seT_top_margin.c11
-rw-r--r--src/term/select_char_set.c11
-rw-r--r--src/term/semi_auto_right_margin.c11
-rw-r--r--src/term/set0_des_seq.c11
-rw-r--r--src/term/set1_des_seq.c11
-rw-r--r--src/term/set2_des_seq.c11
-rw-r--r--src/term/set3_des_seq.c11
-rw-r--r--src/term/set_a_attributes.c11
-rw-r--r--src/term/set_a_background.c11
-rw-r--r--src/term/set_a_foreground.c11
-rw-r--r--src/term/set_attributes.c11
-rw-r--r--src/term/set_background.c11
-rw-r--r--src/term/set_bottom_margin.c11
-rw-r--r--src/term/set_bottom_margin_parm.c11
-rw-r--r--src/term/set_clock.c11
-rw-r--r--src/term/set_color_band.c11
-rw-r--r--src/term/set_color_pair.c11
-rw-r--r--src/term/set_curterm.c11
-rw-r--r--src/term/set_foreground.c11
-rw-r--r--src/term/set_left_margin.c11
-rw-r--r--src/term/set_left_margin_parm.c11
-rw-r--r--src/term/set_lr_margin.c11
-rw-r--r--src/term/set_page_length.c11
-rw-r--r--src/term/set_pglen_inch.c11
-rw-r--r--src/term/set_right_margin.c11
-rw-r--r--src/term/set_right_margin_parm.c11
-rw-r--r--src/term/set_tab.c11
-rw-r--r--src/term/set_tb_margin.c11
-rw-r--r--src/term/set_top_margin_parm.c11
-rw-r--r--src/term/set_window.c11
-rw-r--r--src/term/setupterm.c11
-rw-r--r--src/term/start_bit_image.c11
-rw-r--r--src/term/start_char_set_def.c11
-rw-r--r--src/term/status_line_esc_ok.c11
-rw-r--r--src/term/stop_bit_image.c11
-rw-r--r--src/term/stop_char_set_def.c11
-rw-r--r--src/term/subscript_characters.c11
-rw-r--r--src/term/superscript_characters.c11
-rw-r--r--src/term/tab.c11
-rw-r--r--src/term/tgetent.c14
-rw-r--r--src/term/tgetflag.c62
-rw-r--r--src/term/tgetnum.c58
-rw-r--r--src/term/tgetstr.c424
-rw-r--r--src/term/tgoto.c11
-rw-r--r--src/term/these_cause_cr.c11
-rw-r--r--src/term/tigetflag.c11
-rw-r--r--src/term/tigetnum.c11
-rw-r--r--src/term/tigetstr.c11
-rw-r--r--src/term/tilde_glitch.c11
-rw-r--r--src/term/tiparm.c11
-rw-r--r--src/term/to_status_line.c11
-rw-r--r--src/term/tone.c11
-rw-r--r--src/term/tparm.c11
-rw-r--r--src/term/tputs.c11
-rw-r--r--src/term/transparent_underline.c11
-rw-r--r--src/term/txttoc.sh15
-rw-r--r--src/term/underline_char.c11
-rw-r--r--src/term/up_half_line.c11
-rw-r--r--src/term/user0.c11
-rw-r--r--src/term/user1.c11
-rw-r--r--src/term/user2.c11
-rw-r--r--src/term/user3.c11
-rw-r--r--src/term/user4.c11
-rw-r--r--src/term/user5.c11
-rw-r--r--src/term/user6.c11
-rw-r--r--src/term/user7.c11
-rw-r--r--src/term/user8.c11
-rw-r--r--src/term/user9.c11
-rw-r--r--src/term/virtual_terminal.c11
-rw-r--r--src/term/wait_tone.c11
-rw-r--r--src/term/wide_char_size.c11
-rw-r--r--src/term/width_status_line.c11
-rw-r--r--src/term/xoff_character.c11
-rw-r--r--src/term/xon_character.c11
-rw-r--r--src/term/xon_xoff.c11
-rw-r--r--src/term/zero_motion.c11
487 files changed, 6291 insertions, 0 deletions
diff --git a/src/term/BOOLS.txt b/src/term/BOOLS.txt
new file mode 100644
index 00000000..fbf61e31
--- /dev/null
+++ b/src/term/BOOLS.txt
@@ -0,0 +1,37 @@
+auto_left_margin bw bw TERMCAP(cub1) wraps from column 0 to last column
+auto_right_margin am am terminal has automatic margins
+back_color_erase bce ut screen erased with background color
+can_change ccc cc terminal can re-define exising color
+ceol_standout_glitch xhp xs standout not erased by overwriting
+col_addr_glitch xhpa YA only positive motion for TERMCAP(hpa)/TERMCAP(mhpa)
+cpi_change_res cpix YF changing character pitch changes resolution
+cr_cancles_micro_mode crxm YB using TERMCAP(cr) turns off micro mode
+dest_tabs_magic_smso xt xt destructive tabs, magic TERMCAP(smso)
+eat_newline_glitch xenl xn newline ignored after 80 columns
+erase_overstrick eo eo can erase overstrikes with a blank
+generic_type gn gn generic line type
+hard_copy hc hc hardcopy terminal
+hard_cursor chts HC cursor is hard to see
+has_meta_key km km has a meta key
+has_print_wheel daisy YC printer needs operator to change character set
+has_status_line hs hs has extra "status line"
+hue_lightness_saturation hls hl terminal uses only HLS color notation
+insert_null_glitch in in insert mode distinguishes nulls
+lpi_changes_res lpix YG changing line pitch changes resolution
+memory_above da da display may be retained above the screen
+memory_below db db display may be retained below the screen
+move_insert_mode mir mi safe to move while in insert mode
+move_standout_mode msgr ms safe to move in standout modes
+needs_xon_xoff nxon nx padding won't work, xon/xoff required
+no_esc_ctlc xsb xb beehive (f1=escape, f2=ctrl-C)
+no_pad_char npc NP pad character doesn't exist
+non_dest_scroll_region ndscr ND scrolling region is nondestructive
+non_rev_rmcup nrrmc NR TERMCAP(smcup) does not reverse TERMCAP(rmcup)
+over_strike os os terminal overstrikes on hard-copy terminal
+prtr_silent mc5i 5i printer won't echo on screen
+row_addr_glitch xvpa YD only positive motion for TERMCAP(vpa)/TERMCAP(mvpa)
+semi_auto_right_margin sam YE printing in last column causes TERMCAP(cr)
+status_line_esc_ok eslok es escape can be used on the status line
+tilde_glitch hz hz can't print tilde (~)
+transparent_underline ul ul underline character overstrikes
+xon_xoff xon xo terminal uses xon/xoff handshaking
diff --git a/src/term/NUMBERS.txt b/src/term/NUMBERS.txt
new file mode 100644
index 00000000..7d6a2b22
--- /dev/null
+++ b/src/term/NUMBERS.txt
@@ -0,0 +1,33 @@
+bit_image_entwining bitwin Yo numbe of passes for each bit-map row
+bit_image_type bitype Yp type of bit image device
+buffer_capacity bufsz Ya number of bytes buffered before printing
+buttons btns BT number of buttons on the mouse
+columns cols co number of columns in a line
+dot_horz_spacing spinh Yc spacing of dots horizontally in dots per inch
+dot_vert_spacing spinv Yb spacing of pins vertically in pins per inch
+init_tabs it it tabs initially every # spaces
+label_height lh lh number of rows in each label
+label_width lw lw number of columns in each label
+lines lines li number of lines on a screen or a page
+lines_of_memory lm lm lines of memory if > TERMCAP(lines); 0 = varies
+max_attributes ma ma maximum combined video attributes terminal can display
+magic_cookie_glitch xmc sg number of blank characters left by TERMCAP(smso) or TERMCAP(rmso)
+max_colors colors Co maximum numbe of colors on the screen
+max_micro_address maddr Yd maximum value in TERMCAP(micro_..._address)
+max_micro_jump mjump Ye maximum value in TERMCAP(parm_..._micro)
+max_pairs pairs pa maximum number of color pairs on the screen
+maximum_windows wnum MW maximum number of definable windows
+micro_col_size mcs Yf character step size when in micro mode
+micro_line_size mls Yg line step size when in micro mode
+no_color_video ncv NC video attributes that can't be used with colors
+num_labels nlab Nl numbe of labels on screen (start at 1)
+number_of_pins npins Yh number of pins in print-head
+output_res_char orc Yi horizontal resolution in units per character
+output_res_line orl Yj vertical resolution in units per line
+output_res_horz_inch orhi Yk horizontal resolution in units per inch
+output_res_vert_inch orvi Yl vertical resolution in units per inch
+padding_baud_rate pb pb lowest baud rate where padding needed
+print_rate cps Ym print rate in characters per second
+virtual_terminal vt vt virtual terminal number
+wide_char_size widcs Yn character step size when in double-wide mode
+width_status_line wsl ws number of columns in a status line
diff --git a/src/term/STRINGS.txt b/src/term/STRINGS.txt
new file mode 100644
index 00000000..c299601f
--- /dev/null
+++ b/src/term/STRINGS.txt
@@ -0,0 +1,394 @@
+acs_chars acsc ac graphic charset paris aAbBcC
+alt_scancode_esc scesa S8 alternate escape for scancode emulation
+back_tab cbt bt back tab
+bell bel bl audible signal (bell)
+bit_image_carriage_return bicr Yv move to beginning of same row
+bit_image_newline binel Zz move to next row of the bit image
+bit_image_repeat birep Xy repeate bit-image cell #1 #2 times
+carriage_return cr cr carriage return
+change_char_pitch cpi ZA change number of characters per inch
+change_line_pitch lpi ZB change number of lines per inch
+change_res_horz chr ZC change horizontal resolution
+change_res_vert cvr ZD change vertical resolution
+change_scroll_region csr cs change to lines #1 through #2
+char_padding rmp rP like TERMCAP(ip) but when in replace mode
+char_set_names csnm Zy return a list of character set names
+clear_all_tabs tbc ct clear all tab stops
+clear_margins mgc MC clear all margins (top, bottom, and sides)
+clear_screen clear cl clear screen and home cursor
+clr_bol el1 cb clear to beginning of line, inclusive
+clr_eol el ce clear to end of line
+clr_eos el ce clear to end of display
+code_set_init csin ci init sequence for multiple codesets
+color_names colornm Yw give name for color #1
+column_address hpa ch set horizontal position to absolute #1
+command_character cmdch CC terminal settable cmd character in prototype
+create_window cwin CW define window #1 to go from #2,#3 to #4,#5
+cursor_address cup cm move to row #1 col #2
+cursor_down cudl do down one line
+cursor_home home ho home cursor (if no TERMCAP(cup))
+cursor_invisible civis vi make cursor invisible
+cursor_left cubl le move left one space
+cursor_mem_address mrcup CM memory relative cursor addressing
+cursor_normal cnorm ve make cursor appear normal
+cursor_right cufl nd non-destructive space (cursor or carriage right)
+cursor_to_ll ll ll last line, first column (if no (TERMCAP(cup))
+cursor_up cuul up upline (cursor up)
+cursor_visible cvvis vs make cursor very visible
+define_bit_image_region defbi Yx define rectangular bit-image region
+define_char defc ZE define a character in a character set
+delete_character dchl dc delete character
+delete_line dll dl delete line
+device_type devt dv indicate language/codeset support
+dial_phone dial DI dial phone number #1
+dis_status_line dsl ds disable status line
+display_clock dclk DK display time-of-dat clock
+display_pc_char dispc S1 display PC character
+down_half_line hd hd half-line down (forward 1/2 linefeed)
+ena_acs enacs eA enable alternate character set
+end_bit_image_region endbi Yy end a bit-image region
+enter_alt_charset_mode smacs as start alternate character set
+enter_am_mode smam SA turn on automatic margins
+enter_blink_mode blink mb turn on blinking
+enter_bold_mode bold md turn on bold (extra bright) mode
+enter_ca_mode smcup ti string to being programs that use TERMCAP(cup)
+enter_delete_mode smdc dm delete mode (enter)
+enter_dim_mode dim mh turn on half-bright mode
+enter_doublewide_mode swidm ZF enable double wide printing
+enter_draft_quality sdrfq ZG set draf quality print
+enter_horizontal_hl_mode ehhlm -- turn on horizontal highlight mode
+enter_insert_mode smir im insert mode (enter)
+enter_italics_mode sitm im enable italics
+enter_left_hl_mode elhlm -- turn on left highlight mode
+enter_leftward_mode slm ZI enable leftware carriage motion
+enter_low_hl_mode elohlm -- turn on low highlight mode
+enter_micro_code smicm ZJ enable micro motion capabilities
+enter_near_letter_quality snlq ZJ set near-letter quality print
+enter_normal_quality snrmq ZL set normal quality print
+enter_pc_charset_mode smpch S2 enter PC character display mode
+enter_protected_mode prot mp turn on protected mode
+enter_reverse_mode rev mr turn on reverse video mode
+enter_right_hl_mode erhlm -- turn on right highlight mode
+enter_scancode_mode smsc S4 enter PC scancode mode
+enter_secure_mode invis mk turn on blank mode (characters invisible)
+enter_shadow_mode sshm ZM enable shadow printing
+enter_standout_mode smso so begin standout mode
+enter_subscript_mode ssubm ZN enable subscript printing
+enter_superscript_mode ssupm ZO enable superscript printing
+enter_top_hl_mode ethlm -- turn on top highlight mode
+enter_underline_mode smul us start underscore mode
+enter_upward_mode sum ZP enable upward carriage motion
+enter_vertical_hl_mode evhlm -- turn on vertical highlight mode
+enter_xon_mode smxon SX turn on xon/xoff handshaking
+erase_chars ech ec erase #1 chars
+exit_alt_charset_mode rmacs ae end alternate character set
+exit_am_mode rmam RA turn off automagic margins
+exit_attribute_mode sgr0 me turn off all attributes
+exit_ca_mode rmcup te string to end programs that use TERMCAP(cup)
+exit_delete_mode rmdc ed end delete mode
+exit_doublewide_mode rwidm ZQ disable double wide printing
+exit_insert_mode rmir ei end insert mode
+exit_italics_mode ritm ZR disable italics
+exit_leftword_mode rlim ZS enable rightward (normal) carriage motion
+exit_micro_mode rmicm ZT disable micro motion capabilities
+exit_pc_charset_mode rmpch S3 disable PC character display mode
+exit_scancode_mode rmcs S5 disable PC scancode mode
+exit_shadow_mode rshm ZU disable shadow printing
+exit_standout_mode rmso se end standout mode
+exit_subscript_mode rsubm ZV dsiable subscript printing
+exit_superscript_mode rsupm ZW disable superscript printing
+exit_underline_mode rmul ue end underscore mode
+exit_upward_mode rum ZX enable downward (normal) carriage motion
+exit_xon_mode rmxon RX turn off xon/xoff handshaking
+fixed_pause pause PA pause for 2-3 seconds
+flash_hook hook fh flash the switch hook
+flash_screen flash vb visible bell (may move cursor)
+form_feed ff ff hardcopy terminal page eject
+from_status_line fsl fs return from status line
+get_mouse getm Gm curses should get button events
+goto_window wingo WG go to window #1
+hangup hup HU hang up phone
+init_1string is1 i1 terminal or printer initialization string
+init_2string is2 i2 terminal or printer initialization string
+init_3string is3 i3 terminal or printer initialization string
+init_file if if name of initialization file
+init_prog iprog iP path name of program for initialization
+initialize_color initc IC set color #1 to RGB #2,#3,#4
+initialize_pair initp Ip set color pair #1 to fg #2, bg #3
+insert_character ichl ic insert character
+insert_line ill al add a new blank line
+insert_padding ip ip insert pad after characters inserted
+key_a1 ka1 K1 upper left of keypad
+key_a3 ka3 K3 upper right of keypad
+key_b2 kb2 K2 center of keypad
+key_backspace kbs kb backspace key
+key_beg kbeg @1 beg(inning) key
+key_btab kcbt kB back-tab key
+key_c1 kc1 K4 lower left of keypad
+key_c3 kc3 K5 lower right of keypad
+key_cancel kcan @2 cancel key
+key_catab ktbc ka clear-all-tabs key
+key_clear kclr kC clear-screen or erase key
+key_close kclo @3 close key
+key_command kcmd @4 cmd (command) key
+key_copy kcpy @5 copy key
+key_create kcrt @6 create key
+key_ctab kctab kt clear-tab key
+key_dc kdchl kD delete-character key
+key_dl kdll kL delete-line key
+key_down kcudl kd down-arrow key
+key_eic krmir kM TERMCAP(rmir) or TERMCAP(smir) in insert mode
+key_end kend @7 end key
+key_enter kent @8 enter/send key
+key_eol kel kE clear-to-end-of-line key
+key_eos ked kS clear-to-end-of-screen key
+key_exit kext @9 exit key
+key_f0 kf0 k0 f0 key
+key_f1 kf1 k1 f1 key
+key_f2 kf2 k2 f2 key
+key_f3 kf3 k3 f3 key
+key_f4 kf4 k4 f4 key
+key_f5 kf5 k5 f5 key
+key_f6 kf6 k6 f6 key
+key_f7 kf7 k7 f7 key
+key_f8 kf8 k8 f8 key
+key_f9 kf9 k9 f9 key
+key_f10 kf10 ka f10 key
+key_f11 kf11 kb f11 key
+key_f12 kf12 kc f12 key
+key_f13 kf13 kd f13 key
+key_f14 kf14 ke f14 key
+key_f15 kf15 kf f15 key
+key_f16 kf16 kg f16 key
+key_f17 kf17 kh f17 key
+key_f18 kf18 ki f18 key
+key_f19 kf19 kj f19 key
+key_f20 kf20 kk f20 key
+key_f21 kf21 kl f21 key
+key_f22 kf22 km f22 key
+key_f23 kf23 kn f23 key
+key_f24 kf24 ko f24 key
+key_f25 kf25 kp f25 key
+key_f26 kf26 kq f26 key
+key_f27 kf27 kr f27 key
+key_f28 kf28 ks f28 key
+key_f29 kf29 kt f29 key
+key_f30 kf30 ku f30 key
+key_f31 kf31 kv f31 key
+key_f32 kf32 kw f32 key
+key_f33 kf33 kx f33 key
+key_f34 kf34 ku f34 key
+key_f35 kf35 Fz f35 key
+key_f36 kf36 F0 f36 key
+key_f37 kf37 F1 f37 key
+key_f38 kf38 F2 f38 key
+key_f39 kf39 F3 f39 key
+key_f40 kf40 F4 f40 key
+key_f41 kf41 F5 f41 key
+key_f42 kf42 F6 f42 key
+key_f43 kf43 F7 f43 key
+key_f44 kf44 F8 f44 key
+key_f45 kf45 F9 f45 key
+key_f46 kf46 Fa f46 key
+key_f47 kf47 Fb f47 key
+key_f48 kf48 Fc f48 key
+key_f49 kf49 Fd f49 key
+key_f50 kf50 Fe f50 key
+key_f51 kf51 Ff f51 key
+key_f52 kf52 Fg f52 key
+key_f53 kf53 Fh f53 key
+key_f54 kf54 Fi f54 key
+key_f55 kf55 Fj f55 key
+key_f56 kf56 Fk f56 key
+key_f57 kf57 Fl f57 key
+key_f58 kf58 Fm f58 key
+key_f59 kf59 Fn f59 key
+key_f60 kf60 Fo f60 key
+key_f61 kf61 Fp f61 key
+key_f62 kf62 Fq f62 key
+key_f63 kf63 Fr f63 key
+key_find kfnd @0 find key
+key_help khlp %1 help key
+key_home khome kh home key
+key_ic kichl kI insert key
+key_il kill kA insert-line key
+key_left kcubl kl left-arrow key
+key_ll kll kH home-down key
+key_mark kmrk %2 mark key
+key_message kmsg %3 message key
+key_mouse kmous Km mouse event has occured
+key_move kmov %4 move key
+key_next knxt %5 next-object key
+key_npage knp kN next-page key
+key_open kopn %6 open key
+key_options kopt %7 options key
+key_ppage kpp kP previous-page key
+key_previous kprv %8 previous-object key
+key_print kprt %9 print or copy key
+key_redo krdo %0 redo key
+key_reference kref &1 ref(erence) key
+key_refresh krfr &2 refresh key
+key_replace krpl &3 replace key
+key_restart krst &4 restart key
+key_resume kres &5 resume key
+key_right kcufl kr right-arrow key
+key_save ksav &6 save key
+key_sbeg kBEG &9 shift+beg(innning) key
+key_scancel kCAN &0 shift+cancel key
+key_scommand kCMD *1 shift+command key
+key_scopy kCPY *2 shift+copy key
+key_screate kCRT *3 shift+create key
+key_sdc kDC *4 shift+delete-char key
+key_sdl kDL *5 shift+delete-line key
+key_select kslt *6 select key
+key_send kEND *7 shift+end key
+key_seol kEOL *8 shift+clear-line key
+key_sexit kEXT *9 shift+exit key
+key_sf kind kF scroll-forward/down key
+key_sfind kFND *0 shift+find key
+key_shelp kHLP #1 shift+help key
+key_shome kHOM #2 shift+home key
+key_sic iIC #3 shift+input key
+key_sleft kLFT #4 shift+left-arrow key
+key_smessage kMSG %a shift+message key
+key_smove kMOV %b shift+move key
+key_snext kNXT %c shift+next key
+key_soptions kOPT %d shift+options key
+key_sprevious kPRV %e shift+prev key
+key_sprint kPRT %f shift+print key
+key_sr kri kR scroll-backward/up key
+key_sredo kRDO %g shift+redo key
+key_sreplace kRPL %h shift+replace key
+key_sright kRIT %i shift+right-arrow key
+key_srsume kRES %j shift+resume key
+key_ssave kSAV !1 shift+save key
+key_ssuspend kSPD !2 shift+suspend key
+key_stab khts kT set-tab key
+key_sundo sUND !3 shift+undo key
+key_suspend kspd &7 suspend key
+key_undo kund &8 undo key
+key_up kcuul ku up-arrow key
+keypad_local rmkx ke out of "keypad-transmit" mode
+keypad_xmit smkx ks put terminal in "keypad-transmit" mode
+lab_f0 lf0 l0 label on function key f0 if not f0
+lab_f1 lf1 l1 label on function key f1 if not f1
+lab_f2 lf2 l2 label on function key f2 if not f2
+lab_f3 lf3 l3 label on function key f3 if not f3
+lab_f4 lf4 l4 label on function key f4 if not f4
+lab_f5 lf5 l5 label on function key f5 if not f5
+lab_f6 lf6 l6 label on function key f6 if not f6
+lab_f7 lf7 l7 label on function key f7 if not f7
+lab_f8 lf8 l8 label on function key f8 if not f8
+lab_f9 lf9 l9 label on function key f9 if not f9
+lab_f10 lf10 la label on function key f10 if not f10
+label_format fln Lf label format
+label_off rmln LF turn off soft labels
+label_on smln LO turn on soft labels
+meta_off rmm mo turn off "meta mode"
+meta_on smm mm turn on "meta mode" (8th bit)
+micro_colum_address mhpa ZY like TERMCAP(column_address) for micro adjustment
+micro_down mcudl ZZ like TERMCAP(cursor_down) for micro adjustment
+micro_left mcubl Za like TERMCAP(cursor_left) for micro adjustment
+micro_right mcufl Zb like TERMCAP(cursor_right) for micro adjustment
+micro_row_address mvpa Zc like TERMCAP(row_address) for micro adjustment
+micro_up mcuul Zd like TERMCAP(cursor_up) for micro adjustment
+mouse_info minfo Mi mouse status information
+newline nel nw newline (behaves like TERMCAP(cr) followed by TERMCAP(lf))
+order_of_pins porder Ze matches software bits to print-head pins
+orig_colors oc oc set all colors and color pairs to original
+orig_pair op op set default color pair to original
+pad_char pad pc pd characters (rather than null)
+parm_dch dch DC delete #1 chars
+parm_delete_line dl DL delete #1 lines
+parm_down_cursor cud DO move down #1 lines
+parm_down_micro mcud Zf like TERMCAP(parm_down_cursor) for micro adjustment
+parm_ich ich IC insert #1 blank characters
+parm_index indn SF scroll forward #1 lines
+parm_insert_line il AL add #1 new blank lines
+parm_left_cursor cub LE move cursor left #1 spaces
+parm_left_micro mcub Zg like TERMCAP(parm_left_cursor) for micro adjustment
+parm_right_cursor cuf RI move right #1 spaces
+parm_right_micro mcuf Zh like TERMCAP(parm_right_cursor) for micro adjustment
+parm_rindex rin SR scroll backward #1 lines
+parm_up_cursor cuu UP move cursor up #1 lines
+parm_up_micro mcuu Zi like TERMCAP(parm_up_cusor) for micro adjustment
+pc_term_options pctrm S6 PC terminal options
+pkey_key pfkey pk program function key #1 to type string #2
+pkey_local pfloc pl program function key #1 to execute string #2
+pkey_plab pfxl xl program function key #1 to transmit string #2 and show string #3
+pkey_xmit pfx px program function key #1 to transmit string #2
+plab_norm pln pn program label #1 to show string #2
+print_screen mc0 ps print contents of the screen
+prtr_non mc5p p0 turn on printer for #1 bytes
+prtr_off mc4 pf turn off printer
+prtr_on mc5 po turn on printer
+pulse pulse PU select pulse dialing
+quick_dial qdial QD dial phone number #1 without progress detection
+remove_clock rmclk RC remove time-of-day clock
+repeat_char rep rp repeat character #1 #2 times
+req_for_input rfi RF send next input character
+req_mouse_pos reqmp RQ request mouse position report
+reset_1string rs1 r1 reset terminal completely to sane modes
+reset_2string rs2 r2 reset terminal completely to sane modes
+reset_3string rs3 r3 reset terminal completely to sane modes
+reset_file rf rf name of file containing reset string
+restore_cursor rc rc restore cursor to position of last sc
+row_address vpa cv set vertical position to absolute #1
+save_cursor sc sc save cursor position
+scancode_escape scesc S7 escape for scancode emulation
+scroll_forward ind sf scroll text up
+scroll_reverse ri sr scroll text down
+select_char_set scs Zj select character set
+set0_des_seq s0ds s0 shift into codeset 0 (EUC set 0, ASCII)
+set1_des_seq s1ds s1 shift into codeset 1
+set2_des_seq s2ds s2 shift into codeset 2
+set3_des_seq s3ds s3 shift into codeset 3
+set_a_attributes sgrl -- define second set of video attributes #1-#6
+set_a_background setab AB set background color to #1 using ANSI escape
+set_a_foreground setaf AF set foreground color to #1 using ANSI escape
+set_attributes sgr sa define first set of video attributes #1-#9
+set_background setb Sb set background color to #1
+set_bottom_margin smgb Zk set bottom margin at current line
+set_bottom_margin_parm smgbp Zl set bototm margin at line #1 or #2 lines from bottom
+set_clock sclk SC set clock to #1 hours, #2 minutes, #3 seconds
+set_color_band setcolor Yz change to ribbon color #1
+set_color_pair scp sp set current color pair to #1
+set_foreground setf Sf set foreground color to #1
+set_left_margin smgl ML set left margin at current column
+set_left_margin_parm smglp Zm set left (right) margin at column #1 (#2)
+set_lr_margin smglr ML set both left and right margins
+set_page_length slines YZ set page length to #1 lines
+set_pglen_inch slength YI set page length to #1 hundredths of an inch
+set_right_margin smgr MR set right margin at current column
+set_right_margin_parm smgrp Zn set right margin at column #1
+set_tab hts st set a tab in all rows at the current column
+set_tb_margin smgtb MT sets both top and bottom margins
+seT_top_margin smgt Zo set top margin at current line
+set_top_margin_parm smgtp Zp set top (bottom) margin at line #1 (#2)
+set_window wind wi current window is lines #1-#2, columns #3-#4
+start_bit_image sbim Zq start printing bit image graphics
+start_char_set_def scsd Zr start definition of a character set
+stop_bit_image rbim Zs end printing bit image graphics
+stop_char_set_def rcsd Zt end definition of a character set
+subscript_characters subcs Zu list of "subscriptable" characters
+superscript_characters supcs Zv list of "superscriptable" characters
+tab ht ta tab to next 8-space hardware tab stop
+these_cause_cr docr Zw printing any of these characters causes TERMCAP(cr)
+to_status_line tsl ts go to status line, col #1
+tone tone TO select touch tone dialing
+user0 u0 u0 user string 0
+user1 u1 u1 user string 1
+user2 u2 u2 user string 2
+user3 u3 u3 user string 3
+user4 u4 u4 user string 4
+user5 u5 u5 user string 5
+user6 u6 u6 user string 6
+user7 u7 u7 user string 7
+user8 u8 u8 user string 8
+user9 u9 u9 user string 9
+underline_char uc uc underscore one character and move past it
+up_half_line hu hu half-line up (reverse 1/2 linefeed)
+wait_tone wait WA wait for dial tone
+xoff_character xoffc XF x-off character
+xon_character xonc XN x-on character
+zero_motion zerom Zx no motion for the subsequent character
diff --git a/src/term/TERMINAL.c b/src/term/TERMINAL.c
new file mode 100644
index 00000000..2292cebe
--- /dev/null
+++ b/src/term/TERMINAL.c
@@ -0,0 +1,7 @@
+#include <term.h>
+
+typdef struct __TERMINAL TERMINAL;
+
+/*
+XOPEN(400)
+*/
diff --git a/src/term/acs_chars.c b/src/term/acs_chars.c
new file mode 100644
index 00000000..eef761aa
--- /dev/null
+++ b/src/term/acs_chars.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define acs_chars tigetstr("acsc")
+
+/** graphic charset paris aAbBcC **/
+
+/*
+TERMINFO_NAME(acsc)
+TERMCAP_NAME(ac)
+XOPEN(400)
+*/
diff --git a/src/term/alt_scancode_esc.c b/src/term/alt_scancode_esc.c
new file mode 100644
index 00000000..b0c0f48f
--- /dev/null
+++ b/src/term/alt_scancode_esc.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define alt_scancode_esc tigetstr("scesa")
+
+/** alternate escape for scancode emulation **/
+
+/*
+TERMINFO_NAME(scesa)
+TERMCAP_NAME(S8)
+XOPEN(400)
+*/
diff --git a/src/term/auto_left_margin.c b/src/term/auto_left_margin.c
new file mode 100644
index 00000000..dcfcfcd1
--- /dev/null
+++ b/src/term/auto_left_margin.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define auto_left_margin tigetflag("bw")
+
+/** TERMCAP(cub1) wraps from column 0 to last column **/
+
+/*
+TERMINFO_NAME(bw)
+TERMCAP_NAME(bw)
+XOPEN(400)
+*/
diff --git a/src/term/auto_right_margin.c b/src/term/auto_right_margin.c
new file mode 100644
index 00000000..3014c87d
--- /dev/null
+++ b/src/term/auto_right_margin.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define auto_right_margin tigetflag("am")
+
+/** terminal has automatic margins **/
+
+/*
+TERMINFO_NAME(am)
+TERMCAP_NAME(am)
+XOPEN(400)
+*/
diff --git a/src/term/back_color_erase.c b/src/term/back_color_erase.c
new file mode 100644
index 00000000..62540d1b
--- /dev/null
+++ b/src/term/back_color_erase.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define back_color_erase tigetflag("bce")
+
+/** screen erased with background color **/
+
+/*
+TERMINFO_NAME(bce)
+TERMCAP_NAME(ut)
+XOPEN(400)
+*/
diff --git a/src/term/back_tab.c b/src/term/back_tab.c
new file mode 100644
index 00000000..33eaa59a
--- /dev/null
+++ b/src/term/back_tab.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define back_tab tigetstr("cbt")
+
+/** back tab **/
+
+/*
+TERMINFO_NAME(cbt)
+TERMCAP_NAME(bt)
+XOPEN(400)
+*/
diff --git a/src/term/bell.c b/src/term/bell.c
new file mode 100644
index 00000000..d64564dc
--- /dev/null
+++ b/src/term/bell.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define bell tigetstr("bel")
+
+/** audible signal (bell) **/
+
+/*
+TERMINFO_NAME(bel)
+TERMCAP_NAME(bl)
+XOPEN(400)
+*/
diff --git a/src/term/bit_image_carriage_return.c b/src/term/bit_image_carriage_return.c
new file mode 100644
index 00000000..d72d9291
--- /dev/null
+++ b/src/term/bit_image_carriage_return.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define bit_image_carriage_return tigetstr("bicr")
+
+/** move to beginning of same row **/
+
+/*
+TERMINFO_NAME(bicr)
+TERMCAP_NAME(Yv)
+XOPEN(400)
+*/
diff --git a/src/term/bit_image_entwining.c b/src/term/bit_image_entwining.c
new file mode 100644
index 00000000..ee83ad5a
--- /dev/null
+++ b/src/term/bit_image_entwining.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define bit_image_entwining tigetnum("bitwin")
+
+/** numbe of passes for each bit-map row **/
+
+/*
+TERMINFO_NAME(bitwin)
+TERMCAP_NAME(Yo)
+XOPEN(400)
+*/
diff --git a/src/term/bit_image_newline.c b/src/term/bit_image_newline.c
new file mode 100644
index 00000000..c0a71297
--- /dev/null
+++ b/src/term/bit_image_newline.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define bit_image_newline tigetstr("binel")
+
+/** move to next row of the bit image **/
+
+/*
+TERMINFO_NAME(binel)
+TERMCAP_NAME(Zz)
+XOPEN(400)
+*/
diff --git a/src/term/bit_image_repeat.c b/src/term/bit_image_repeat.c
new file mode 100644
index 00000000..9ca9f93f
--- /dev/null
+++ b/src/term/bit_image_repeat.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define bit_image_repeat tigetstr("birep")
+
+/** repeate bit-image cell #1 #2 times **/
+
+/*
+TERMINFO_NAME(birep)
+TERMCAP_NAME(Xy)
+XOPEN(400)
+*/
diff --git a/src/term/bit_image_type.c b/src/term/bit_image_type.c
new file mode 100644
index 00000000..f3377c3f
--- /dev/null
+++ b/src/term/bit_image_type.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define bit_image_type tigetnum("bitype")
+
+/** type of bit image device **/
+
+/*
+TERMINFO_NAME(bitype)
+TERMCAP_NAME(Yp)
+XOPEN(400)
+*/
diff --git a/src/term/bool.ref b/src/term/bool.ref
new file mode 100644
index 00000000..7a9c2561
--- /dev/null
+++ b/src/term/bool.ref
@@ -0,0 +1,3 @@
+#include <term.h>
+REFERENCE(curses/bool.c)
+XOPEN(400)
diff --git a/src/term/buffer_capacity.c b/src/term/buffer_capacity.c
new file mode 100644
index 00000000..b1427037
--- /dev/null
+++ b/src/term/buffer_capacity.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define buffer_capacity tigetnum("bufsz")
+
+/** number of bytes buffered before printing **/
+
+/*
+TERMINFO_NAME(bufsz)
+TERMCAP_NAME(Ya)
+XOPEN(400)
+*/
diff --git a/src/term/buttons.c b/src/term/buttons.c
new file mode 100644
index 00000000..4827170a
--- /dev/null
+++ b/src/term/buttons.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define buttons tigetnum("btns")
+
+/** number of buttons on the mouse **/
+
+/*
+TERMINFO_NAME(btns)
+TERMCAP_NAME(BT)
+XOPEN(400)
+*/
diff --git a/src/term/can_change.c b/src/term/can_change.c
new file mode 100644
index 00000000..e8121119
--- /dev/null
+++ b/src/term/can_change.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define can_change tigetflag("ccc")
+
+/** terminal can re-define exising color **/
+
+/*
+TERMINFO_NAME(ccc)
+TERMCAP_NAME(cc)
+XOPEN(400)
+*/
diff --git a/src/term/carriage_return.c b/src/term/carriage_return.c
new file mode 100644
index 00000000..a5fb1157
--- /dev/null
+++ b/src/term/carriage_return.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define carriage_return tigetstr("cr")
+
+/** carriage return **/
+
+/*
+TERMINFO_NAME(cr)
+TERMCAP_NAME(cr)
+XOPEN(400)
+*/
diff --git a/src/term/ceol_standout_glitch.c b/src/term/ceol_standout_glitch.c
new file mode 100644
index 00000000..d2e09236
--- /dev/null
+++ b/src/term/ceol_standout_glitch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define ceol_standout_glitch tigetflag("xhp")
+
+/** standout not erased by overwriting **/
+
+/*
+TERMINFO_NAME(xhp)
+TERMCAP_NAME(xs)
+XOPEN(400)
+*/
diff --git a/src/term/change_char_pitch.c b/src/term/change_char_pitch.c
new file mode 100644
index 00000000..006291c4
--- /dev/null
+++ b/src/term/change_char_pitch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define change_char_pitch tigetstr("cpi")
+
+/** change number of characters per inch **/
+
+/*
+TERMINFO_NAME(cpi)
+TERMCAP_NAME(ZA)
+XOPEN(400)
+*/
diff --git a/src/term/change_line_pitch.c b/src/term/change_line_pitch.c
new file mode 100644
index 00000000..c2c85383
--- /dev/null
+++ b/src/term/change_line_pitch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define change_line_pitch tigetstr("lpi")
+
+/** change number of lines per inch **/
+
+/*
+TERMINFO_NAME(lpi)
+TERMCAP_NAME(ZB)
+XOPEN(400)
+*/
diff --git a/src/term/change_res_horz.c b/src/term/change_res_horz.c
new file mode 100644
index 00000000..41852e77
--- /dev/null
+++ b/src/term/change_res_horz.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define change_res_horz tigetstr("chr")
+
+/** change horizontal resolution **/
+
+/*
+TERMINFO_NAME(chr)
+TERMCAP_NAME(ZC)
+XOPEN(400)
+*/
diff --git a/src/term/change_res_vert.c b/src/term/change_res_vert.c
new file mode 100644
index 00000000..4d41b575
--- /dev/null
+++ b/src/term/change_res_vert.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define change_res_vert tigetstr("cvr")
+
+/** change vertical resolution **/
+
+/*
+TERMINFO_NAME(cvr)
+TERMCAP_NAME(ZD)
+XOPEN(400)
+*/
diff --git a/src/term/change_scroll_region.c b/src/term/change_scroll_region.c
new file mode 100644
index 00000000..900f9aab
--- /dev/null
+++ b/src/term/change_scroll_region.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define change_scroll_region tigetstr("csr")
+
+/** change to lines #1 through #2 **/
+
+/*
+TERMINFO_NAME(csr)
+TERMCAP_NAME(cs)
+XOPEN(400)
+*/
diff --git a/src/term/char_padding.c b/src/term/char_padding.c
new file mode 100644
index 00000000..269bf777
--- /dev/null
+++ b/src/term/char_padding.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define char_padding tigetstr("rmp")
+
+/** like TERMCAP(ip) but when in replace mode **/
+
+/*
+TERMINFO_NAME(rmp)
+TERMCAP_NAME(rP)
+XOPEN(400)
+*/
diff --git a/src/term/char_set_names.c b/src/term/char_set_names.c
new file mode 100644
index 00000000..b385f3d3
--- /dev/null
+++ b/src/term/char_set_names.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define char_set_names tigetstr("csnm")
+
+/** return a list of character set names **/
+
+/*
+TERMINFO_NAME(csnm)
+TERMCAP_NAME(Zy)
+XOPEN(400)
+*/
diff --git a/src/term/clear_all_tabs.c b/src/term/clear_all_tabs.c
new file mode 100644
index 00000000..e12ebe40
--- /dev/null
+++ b/src/term/clear_all_tabs.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define clear_all_tabs tigetstr("tbc")
+
+/** clear all tab stops **/
+
+/*
+TERMINFO_NAME(tbc)
+TERMCAP_NAME(ct)
+XOPEN(400)
+*/
diff --git a/src/term/clear_margins.c b/src/term/clear_margins.c
new file mode 100644
index 00000000..9edc2ac1
--- /dev/null
+++ b/src/term/clear_margins.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define clear_margins tigetstr("mgc")
+
+/** clear all margins (top, bottom, and sides) **/
+
+/*
+TERMINFO_NAME(mgc)
+TERMCAP_NAME(MC)
+XOPEN(400)
+*/
diff --git a/src/term/clear_screen.c b/src/term/clear_screen.c
new file mode 100644
index 00000000..02233683
--- /dev/null
+++ b/src/term/clear_screen.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define clear_screen tigetstr("clear")
+
+/** clear screen and home cursor **/
+
+/*
+TERMINFO_NAME(clear)
+TERMCAP_NAME(cl)
+XOPEN(400)
+*/
diff --git a/src/term/clr_bol.c b/src/term/clr_bol.c
new file mode 100644
index 00000000..e9fd9f6c
--- /dev/null
+++ b/src/term/clr_bol.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define clr_bol tigetstr("el1")
+
+/** clear to beginning of line, inclusive **/
+
+/*
+TERMINFO_NAME(el1)
+TERMCAP_NAME(cb)
+XOPEN(400)
+*/
diff --git a/src/term/clr_eol.c b/src/term/clr_eol.c
new file mode 100644
index 00000000..7494958b
--- /dev/null
+++ b/src/term/clr_eol.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define clr_eol tigetstr("el")
+
+/** clear to end of line **/
+
+/*
+TERMINFO_NAME(el)
+TERMCAP_NAME(ce)
+XOPEN(400)
+*/
diff --git a/src/term/clr_eos.c b/src/term/clr_eos.c
new file mode 100644
index 00000000..71c7b420
--- /dev/null
+++ b/src/term/clr_eos.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define clr_eos tigetstr("el")
+
+/** clear to end of display **/
+
+/*
+TERMINFO_NAME(el)
+TERMCAP_NAME(ce)
+XOPEN(400)
+*/
diff --git a/src/term/code_set_init.c b/src/term/code_set_init.c
new file mode 100644
index 00000000..019deffa
--- /dev/null
+++ b/src/term/code_set_init.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define code_set_init tigetstr("csin")
+
+/** init sequence for multiple codesets **/
+
+/*
+TERMINFO_NAME(csin)
+TERMCAP_NAME(ci)
+XOPEN(400)
+*/
diff --git a/src/term/col_addr_glitch.c b/src/term/col_addr_glitch.c
new file mode 100644
index 00000000..8fc153c4
--- /dev/null
+++ b/src/term/col_addr_glitch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define col_addr_glitch tigetflag("xhpa")
+
+/** only positive motion for TERMCAP(hpa)/TERMCAP(mhpa) **/
+
+/*
+TERMINFO_NAME(xhpa)
+TERMCAP_NAME(YA)
+XOPEN(400)
+*/
diff --git a/src/term/color_names.c b/src/term/color_names.c
new file mode 100644
index 00000000..3c1df59c
--- /dev/null
+++ b/src/term/color_names.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define color_names tigetstr("colornm")
+
+/** give name for color #1 **/
+
+/*
+TERMINFO_NAME(colornm)
+TERMCAP_NAME(Yw)
+XOPEN(400)
+*/
diff --git a/src/term/column_address.c b/src/term/column_address.c
new file mode 100644
index 00000000..d1012ede
--- /dev/null
+++ b/src/term/column_address.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define column_address tigetstr("hpa")
+
+/** set horizontal position to absolute #1 **/
+
+/*
+TERMINFO_NAME(hpa)
+TERMCAP_NAME(ch)
+XOPEN(400)
+*/
diff --git a/src/term/columns.c b/src/term/columns.c
new file mode 100644
index 00000000..c45d958f
--- /dev/null
+++ b/src/term/columns.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define columns tigetnum("cols")
+
+/** number of columns in a line **/
+
+/*
+TERMINFO_NAME(cols)
+TERMCAP_NAME(co)
+XOPEN(400)
+*/
diff --git a/src/term/command_character.c b/src/term/command_character.c
new file mode 100644
index 00000000..4968d143
--- /dev/null
+++ b/src/term/command_character.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define command_character tigetstr("cmdch")
+
+/** terminal settable cmd character in prototype **/
+
+/*
+TERMINFO_NAME(cmdch)
+TERMCAP_NAME(CC)
+XOPEN(400)
+*/
diff --git a/src/term/cpi_change_res.c b/src/term/cpi_change_res.c
new file mode 100644
index 00000000..5f782469
--- /dev/null
+++ b/src/term/cpi_change_res.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cpi_change_res tigetflag("cpix")
+
+/** changing character pitch changes resolution **/
+
+/*
+TERMINFO_NAME(cpix)
+TERMCAP_NAME(YF)
+XOPEN(400)
+*/
diff --git a/src/term/cr_cancles_micro_mode.c b/src/term/cr_cancles_micro_mode.c
new file mode 100644
index 00000000..5ed4e390
--- /dev/null
+++ b/src/term/cr_cancles_micro_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cr_cancles_micro_mode tigetflag("crxm")
+
+/** using TERMCAP(cr) turns off micro mode **/
+
+/*
+TERMINFO_NAME(crxm)
+TERMCAP_NAME(YB)
+XOPEN(400)
+*/
diff --git a/src/term/create_window.c b/src/term/create_window.c
new file mode 100644
index 00000000..d11c71d6
--- /dev/null
+++ b/src/term/create_window.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define create_window tigetstr("cwin")
+
+/** define window #1 to go from #2,#3 to #4,#5 **/
+
+/*
+TERMINFO_NAME(cwin)
+TERMCAP_NAME(CW)
+XOPEN(400)
+*/
diff --git a/src/term/cur_term.c b/src/term/cur_term.c
new file mode 100644
index 00000000..4e264831
--- /dev/null
+++ b/src/term/cur_term.c
@@ -0,0 +1,8 @@
+#include <term.h>
+
+TERMINAL * cur_term;
+
+/*
+XOPEN(400)
+LINK(curses)
+*/
diff --git a/src/term/cursor_address.c b/src/term/cursor_address.c
new file mode 100644
index 00000000..62c0f37f
--- /dev/null
+++ b/src/term/cursor_address.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cursor_address tigetstr("cup")
+
+/** move to row #1 col #2 **/
+
+/*
+TERMINFO_NAME(cup)
+TERMCAP_NAME(cm)
+XOPEN(400)
+*/
diff --git a/src/term/cursor_down.c b/src/term/cursor_down.c
new file mode 100644
index 00000000..f24e375a
--- /dev/null
+++ b/src/term/cursor_down.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cursor_down tigetstr("cudl")
+
+/** down one line **/
+
+/*
+TERMINFO_NAME(cudl)
+TERMCAP_NAME(do)
+XOPEN(400)
+*/
diff --git a/src/term/cursor_home.c b/src/term/cursor_home.c
new file mode 100644
index 00000000..bf4d9623
--- /dev/null
+++ b/src/term/cursor_home.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cursor_home tigetstr("home")
+
+/** home cursor (if no TERMCAP(cup)) **/
+
+/*
+TERMINFO_NAME(home)
+TERMCAP_NAME(ho)
+XOPEN(400)
+*/
diff --git a/src/term/cursor_invisible.c b/src/term/cursor_invisible.c
new file mode 100644
index 00000000..6b4e9d1d
--- /dev/null
+++ b/src/term/cursor_invisible.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cursor_invisible tigetstr("civis")
+
+/** make cursor invisible **/
+
+/*
+TERMINFO_NAME(civis)
+TERMCAP_NAME(vi)
+XOPEN(400)
+*/
diff --git a/src/term/cursor_left.c b/src/term/cursor_left.c
new file mode 100644
index 00000000..6e6fd0fc
--- /dev/null
+++ b/src/term/cursor_left.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cursor_left tigetstr("cubl")
+
+/** move left one space **/
+
+/*
+TERMINFO_NAME(cubl)
+TERMCAP_NAME(le)
+XOPEN(400)
+*/
diff --git a/src/term/cursor_mem_address.c b/src/term/cursor_mem_address.c
new file mode 100644
index 00000000..e8cb52db
--- /dev/null
+++ b/src/term/cursor_mem_address.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cursor_mem_address tigetstr("mrcup")
+
+/** memory relative cursor addressing **/
+
+/*
+TERMINFO_NAME(mrcup)
+TERMCAP_NAME(CM)
+XOPEN(400)
+*/
diff --git a/src/term/cursor_normal.c b/src/term/cursor_normal.c
new file mode 100644
index 00000000..74af9784
--- /dev/null
+++ b/src/term/cursor_normal.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cursor_normal tigetstr("cnorm")
+
+/** make cursor appear normal **/
+
+/*
+TERMINFO_NAME(cnorm)
+TERMCAP_NAME(ve)
+XOPEN(400)
+*/
diff --git a/src/term/cursor_right.c b/src/term/cursor_right.c
new file mode 100644
index 00000000..46fca333
--- /dev/null
+++ b/src/term/cursor_right.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cursor_right tigetstr("cufl")
+
+/** non-destructive space (cursor or carriage right) **/
+
+/*
+TERMINFO_NAME(cufl)
+TERMCAP_NAME(nd)
+XOPEN(400)
+*/
diff --git a/src/term/cursor_to_ll.c b/src/term/cursor_to_ll.c
new file mode 100644
index 00000000..441892e3
--- /dev/null
+++ b/src/term/cursor_to_ll.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cursor_to_ll tigetstr("ll")
+
+/** last line, first column (if no (TERMCAP(cup)) **/
+
+/*
+TERMINFO_NAME(ll)
+TERMCAP_NAME(ll)
+XOPEN(400)
+*/
diff --git a/src/term/cursor_up.c b/src/term/cursor_up.c
new file mode 100644
index 00000000..04ad1a16
--- /dev/null
+++ b/src/term/cursor_up.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cursor_up tigetstr("cuul")
+
+/** upline (cursor up) **/
+
+/*
+TERMINFO_NAME(cuul)
+TERMCAP_NAME(up)
+XOPEN(400)
+*/
diff --git a/src/term/cursor_visible.c b/src/term/cursor_visible.c
new file mode 100644
index 00000000..d7b417d7
--- /dev/null
+++ b/src/term/cursor_visible.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define cursor_visible tigetstr("cvvis")
+
+/** make cursor very visible **/
+
+/*
+TERMINFO_NAME(cvvis)
+TERMCAP_NAME(vs)
+XOPEN(400)
+*/
diff --git a/src/term/define_bit_image_region.c b/src/term/define_bit_image_region.c
new file mode 100644
index 00000000..2c8614fb
--- /dev/null
+++ b/src/term/define_bit_image_region.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define define_bit_image_region tigetstr("defbi")
+
+/** define rectangular bit-image region **/
+
+/*
+TERMINFO_NAME(defbi)
+TERMCAP_NAME(Yx)
+XOPEN(400)
+*/
diff --git a/src/term/define_char.c b/src/term/define_char.c
new file mode 100644
index 00000000..6703b3d9
--- /dev/null
+++ b/src/term/define_char.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define define_char tigetstr("defc")
+
+/** define a character in a character set **/
+
+/*
+TERMINFO_NAME(defc)
+TERMCAP_NAME(ZE)
+XOPEN(400)
+*/
diff --git a/src/term/del_curterm.c b/src/term/del_curterm.c
new file mode 100644
index 00000000..f0f0eedf
--- /dev/null
+++ b/src/term/del_curterm.c
@@ -0,0 +1,11 @@
+#include <term.h>
+
+int del_curterm(TERMINAL * oterm)
+{
+ return -1;
+}
+
+/*
+XOPEN(400)
+LINK(curses)
+*/
diff --git a/src/term/delete_character.c b/src/term/delete_character.c
new file mode 100644
index 00000000..9d8d1779
--- /dev/null
+++ b/src/term/delete_character.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define delete_character tigetstr("dchl")
+
+/** delete character **/
+
+/*
+TERMINFO_NAME(dchl)
+TERMCAP_NAME(dc)
+XOPEN(400)
+*/
diff --git a/src/term/delete_line.c b/src/term/delete_line.c
new file mode 100644
index 00000000..bd309686
--- /dev/null
+++ b/src/term/delete_line.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define delete_line tigetstr("dll")
+
+/** delete line **/
+
+/*
+TERMINFO_NAME(dll)
+TERMCAP_NAME(dl)
+XOPEN(400)
+*/
diff --git a/src/term/dest_tabs_magic_smso.c b/src/term/dest_tabs_magic_smso.c
new file mode 100644
index 00000000..4e05ae00
--- /dev/null
+++ b/src/term/dest_tabs_magic_smso.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define dest_tabs_magic_smso tigetflag("xt")
+
+/** destructive tabs, magic TERMCAP(smso) **/
+
+/*
+TERMINFO_NAME(xt)
+TERMCAP_NAME(xt)
+XOPEN(400)
+*/
diff --git a/src/term/device_type.c b/src/term/device_type.c
new file mode 100644
index 00000000..de08d84f
--- /dev/null
+++ b/src/term/device_type.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define device_type tigetstr("devt")
+
+/** indicate language/codeset support **/
+
+/*
+TERMINFO_NAME(devt)
+TERMCAP_NAME(dv)
+XOPEN(400)
+*/
diff --git a/src/term/dial_phone.c b/src/term/dial_phone.c
new file mode 100644
index 00000000..6278a1ea
--- /dev/null
+++ b/src/term/dial_phone.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define dial_phone tigetstr("dial")
+
+/** dial phone number #1 **/
+
+/*
+TERMINFO_NAME(dial)
+TERMCAP_NAME(DI)
+XOPEN(400)
+*/
diff --git a/src/term/dis_status_line.c b/src/term/dis_status_line.c
new file mode 100644
index 00000000..d957e09e
--- /dev/null
+++ b/src/term/dis_status_line.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define dis_status_line tigetstr("dsl")
+
+/** disable status line **/
+
+/*
+TERMINFO_NAME(dsl)
+TERMCAP_NAME(ds)
+XOPEN(400)
+*/
diff --git a/src/term/display_clock.c b/src/term/display_clock.c
new file mode 100644
index 00000000..cf00df74
--- /dev/null
+++ b/src/term/display_clock.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define display_clock tigetstr("dclk")
+
+/** display time-of-dat clock **/
+
+/*
+TERMINFO_NAME(dclk)
+TERMCAP_NAME(DK)
+XOPEN(400)
+*/
diff --git a/src/term/display_pc_char.c b/src/term/display_pc_char.c
new file mode 100644
index 00000000..54b8ac76
--- /dev/null
+++ b/src/term/display_pc_char.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define display_pc_char tigetstr("dispc")
+
+/** display PC character **/
+
+/*
+TERMINFO_NAME(dispc)
+TERMCAP_NAME(S1)
+XOPEN(400)
+*/
diff --git a/src/term/dot_horz_spacing.c b/src/term/dot_horz_spacing.c
new file mode 100644
index 00000000..f4ffb083
--- /dev/null
+++ b/src/term/dot_horz_spacing.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define dot_horz_spacing tigetnum("spinh")
+
+/** spacing of dots horizontally in dots per inch **/
+
+/*
+TERMINFO_NAME(spinh)
+TERMCAP_NAME(Yc)
+XOPEN(400)
+*/
diff --git a/src/term/dot_vert_spacing.c b/src/term/dot_vert_spacing.c
new file mode 100644
index 00000000..7cd7c4ec
--- /dev/null
+++ b/src/term/dot_vert_spacing.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define dot_vert_spacing tigetnum("spinv")
+
+/** spacing of pins vertically in pins per inch **/
+
+/*
+TERMINFO_NAME(spinv)
+TERMCAP_NAME(Yb)
+XOPEN(400)
+*/
diff --git a/src/term/down_half_line.c b/src/term/down_half_line.c
new file mode 100644
index 00000000..151883ee
--- /dev/null
+++ b/src/term/down_half_line.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define down_half_line tigetstr("hd")
+
+/** half-line down (forward 1/2 linefeed) **/
+
+/*
+TERMINFO_NAME(hd)
+TERMCAP_NAME(hd)
+XOPEN(400)
+*/
diff --git a/src/term/eat_newline_glitch.c b/src/term/eat_newline_glitch.c
new file mode 100644
index 00000000..796e1e19
--- /dev/null
+++ b/src/term/eat_newline_glitch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define eat_newline_glitch tigetflag("xenl")
+
+/** newline ignored after 80 columns **/
+
+/*
+TERMINFO_NAME(xenl)
+TERMCAP_NAME(xn)
+XOPEN(400)
+*/
diff --git a/src/term/ena_acs.c b/src/term/ena_acs.c
new file mode 100644
index 00000000..5d254005
--- /dev/null
+++ b/src/term/ena_acs.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define ena_acs tigetstr("enacs")
+
+/** enable alternate character set **/
+
+/*
+TERMINFO_NAME(enacs)
+TERMCAP_NAME(eA)
+XOPEN(400)
+*/
diff --git a/src/term/end_bit_image_region.c b/src/term/end_bit_image_region.c
new file mode 100644
index 00000000..c19cb6df
--- /dev/null
+++ b/src/term/end_bit_image_region.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define end_bit_image_region tigetstr("endbi")
+
+/** end a bit-image region **/
+
+/*
+TERMINFO_NAME(endbi)
+TERMCAP_NAME(Yy)
+XOPEN(400)
+*/
diff --git a/src/term/enter_alt_charset_mode.c b/src/term/enter_alt_charset_mode.c
new file mode 100644
index 00000000..9bfb9f0e
--- /dev/null
+++ b/src/term/enter_alt_charset_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_alt_charset_mode tigetstr("smacs")
+
+/** start alternate character set **/
+
+/*
+TERMINFO_NAME(smacs)
+TERMCAP_NAME(as)
+XOPEN(400)
+*/
diff --git a/src/term/enter_am_mode.c b/src/term/enter_am_mode.c
new file mode 100644
index 00000000..7e878137
--- /dev/null
+++ b/src/term/enter_am_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_am_mode tigetstr("smam")
+
+/** turn on automatic margins **/
+
+/*
+TERMINFO_NAME(smam)
+TERMCAP_NAME(SA)
+XOPEN(400)
+*/
diff --git a/src/term/enter_blink_mode.c b/src/term/enter_blink_mode.c
new file mode 100644
index 00000000..c41bb6ca
--- /dev/null
+++ b/src/term/enter_blink_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_blink_mode tigetstr("blink")
+
+/** turn on blinking **/
+
+/*
+TERMINFO_NAME(blink)
+TERMCAP_NAME(mb)
+XOPEN(400)
+*/
diff --git a/src/term/enter_bold_mode.c b/src/term/enter_bold_mode.c
new file mode 100644
index 00000000..a6de614c
--- /dev/null
+++ b/src/term/enter_bold_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_bold_mode tigetstr("bold")
+
+/** turn on bold (extra bright) mode **/
+
+/*
+TERMINFO_NAME(bold)
+TERMCAP_NAME(md)
+XOPEN(400)
+*/
diff --git a/src/term/enter_ca_mode.c b/src/term/enter_ca_mode.c
new file mode 100644
index 00000000..dfe34e29
--- /dev/null
+++ b/src/term/enter_ca_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_ca_mode tigetstr("smcup")
+
+/** string to being programs that use TERMCAP(cup) **/
+
+/*
+TERMINFO_NAME(smcup)
+TERMCAP_NAME(ti)
+XOPEN(400)
+*/
diff --git a/src/term/enter_delete_mode.c b/src/term/enter_delete_mode.c
new file mode 100644
index 00000000..c16f2002
--- /dev/null
+++ b/src/term/enter_delete_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_delete_mode tigetstr("smdc")
+
+/** delete mode (enter) **/
+
+/*
+TERMINFO_NAME(smdc)
+TERMCAP_NAME(dm)
+XOPEN(400)
+*/
diff --git a/src/term/enter_dim_mode.c b/src/term/enter_dim_mode.c
new file mode 100644
index 00000000..4977ff56
--- /dev/null
+++ b/src/term/enter_dim_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_dim_mode tigetstr("dim")
+
+/** turn on half-bright mode **/
+
+/*
+TERMINFO_NAME(dim)
+TERMCAP_NAME(mh)
+XOPEN(400)
+*/
diff --git a/src/term/enter_doublewide_mode.c b/src/term/enter_doublewide_mode.c
new file mode 100644
index 00000000..bced61c0
--- /dev/null
+++ b/src/term/enter_doublewide_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_doublewide_mode tigetstr("swidm")
+
+/** enable double wide printing **/
+
+/*
+TERMINFO_NAME(swidm)
+TERMCAP_NAME(ZF)
+XOPEN(400)
+*/
diff --git a/src/term/enter_draft_quality.c b/src/term/enter_draft_quality.c
new file mode 100644
index 00000000..7b8b0844
--- /dev/null
+++ b/src/term/enter_draft_quality.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_draft_quality tigetstr("sdrfq")
+
+/** set draf quality print **/
+
+/*
+TERMINFO_NAME(sdrfq)
+TERMCAP_NAME(ZG)
+XOPEN(400)
+*/
diff --git a/src/term/enter_horizontal_hl_mode.c b/src/term/enter_horizontal_hl_mode.c
new file mode 100644
index 00000000..02e1bedd
--- /dev/null
+++ b/src/term/enter_horizontal_hl_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_horizontal_hl_mode tigetstr("ehhlm")
+
+/** turn on horizontal highlight mode **/
+
+/*
+TERMINFO_NAME(ehhlm)
+TERMCAP_NAME(--)
+XOPEN(400)
+*/
diff --git a/src/term/enter_insert_mode.c b/src/term/enter_insert_mode.c
new file mode 100644
index 00000000..dad409e7
--- /dev/null
+++ b/src/term/enter_insert_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_insert_mode tigetstr("smir")
+
+/** insert mode (enter) **/
+
+/*
+TERMINFO_NAME(smir)
+TERMCAP_NAME(im)
+XOPEN(400)
+*/
diff --git a/src/term/enter_italics_mode.c b/src/term/enter_italics_mode.c
new file mode 100644
index 00000000..9829f171
--- /dev/null
+++ b/src/term/enter_italics_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_italics_mode tigetstr("sitm")
+
+/** enable italics **/
+
+/*
+TERMINFO_NAME(sitm)
+TERMCAP_NAME(im)
+XOPEN(400)
+*/
diff --git a/src/term/enter_left_hl_mode.c b/src/term/enter_left_hl_mode.c
new file mode 100644
index 00000000..21511095
--- /dev/null
+++ b/src/term/enter_left_hl_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_left_hl_mode tigetstr("elhlm")
+
+/** turn on left highlight mode **/
+
+/*
+TERMINFO_NAME(elhlm)
+TERMCAP_NAME(--)
+XOPEN(400)
+*/
diff --git a/src/term/enter_leftward_mode.c b/src/term/enter_leftward_mode.c
new file mode 100644
index 00000000..746962ab
--- /dev/null
+++ b/src/term/enter_leftward_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_leftward_mode tigetstr("slm")
+
+/** enable leftware carriage motion **/
+
+/*
+TERMINFO_NAME(slm)
+TERMCAP_NAME(ZI)
+XOPEN(400)
+*/
diff --git a/src/term/enter_low_hl_mode.c b/src/term/enter_low_hl_mode.c
new file mode 100644
index 00000000..a4ceee15
--- /dev/null
+++ b/src/term/enter_low_hl_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_low_hl_mode tigetstr("elohlm")
+
+/** turn on low highlight mode **/
+
+/*
+TERMINFO_NAME(elohlm)
+TERMCAP_NAME(--)
+XOPEN(400)
+*/
diff --git a/src/term/enter_micro_code.c b/src/term/enter_micro_code.c
new file mode 100644
index 00000000..86aaef3c
--- /dev/null
+++ b/src/term/enter_micro_code.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_micro_code tigetstr("smicm")
+
+/** enable micro motion capabilities **/
+
+/*
+TERMINFO_NAME(smicm)
+TERMCAP_NAME(ZJ)
+XOPEN(400)
+*/
diff --git a/src/term/enter_near_letter_quality.c b/src/term/enter_near_letter_quality.c
new file mode 100644
index 00000000..61488d9a
--- /dev/null
+++ b/src/term/enter_near_letter_quality.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_near_letter_quality tigetstr("snlq")
+
+/** set near-letter quality print **/
+
+/*
+TERMINFO_NAME(snlq)
+TERMCAP_NAME(ZJ)
+XOPEN(400)
+*/
diff --git a/src/term/enter_normal_quality.c b/src/term/enter_normal_quality.c
new file mode 100644
index 00000000..7547a928
--- /dev/null
+++ b/src/term/enter_normal_quality.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_normal_quality tigetstr("snrmq")
+
+/** set normal quality print **/
+
+/*
+TERMINFO_NAME(snrmq)
+TERMCAP_NAME(ZL)
+XOPEN(400)
+*/
diff --git a/src/term/enter_pc_charset_mode.c b/src/term/enter_pc_charset_mode.c
new file mode 100644
index 00000000..8ff483da
--- /dev/null
+++ b/src/term/enter_pc_charset_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_pc_charset_mode tigetstr("smpch")
+
+/** enter PC character display mode **/
+
+/*
+TERMINFO_NAME(smpch)
+TERMCAP_NAME(S2)
+XOPEN(400)
+*/
diff --git a/src/term/enter_protected_mode.c b/src/term/enter_protected_mode.c
new file mode 100644
index 00000000..ef0ba3d8
--- /dev/null
+++ b/src/term/enter_protected_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_protected_mode tigetstr("prot")
+
+/** turn on protected mode **/
+
+/*
+TERMINFO_NAME(prot)
+TERMCAP_NAME(mp)
+XOPEN(400)
+*/
diff --git a/src/term/enter_reverse_mode.c b/src/term/enter_reverse_mode.c
new file mode 100644
index 00000000..4856698a
--- /dev/null
+++ b/src/term/enter_reverse_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_reverse_mode tigetstr("rev")
+
+/** turn on reverse video mode **/
+
+/*
+TERMINFO_NAME(rev)
+TERMCAP_NAME(mr)
+XOPEN(400)
+*/
diff --git a/src/term/enter_right_hl_mode.c b/src/term/enter_right_hl_mode.c
new file mode 100644
index 00000000..20f18a28
--- /dev/null
+++ b/src/term/enter_right_hl_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_right_hl_mode tigetstr("erhlm")
+
+/** turn on right highlight mode **/
+
+/*
+TERMINFO_NAME(erhlm)
+TERMCAP_NAME(--)
+XOPEN(400)
+*/
diff --git a/src/term/enter_scancode_mode.c b/src/term/enter_scancode_mode.c
new file mode 100644
index 00000000..c9a341a8
--- /dev/null
+++ b/src/term/enter_scancode_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_scancode_mode tigetstr("smsc")
+
+/** enter PC scancode mode **/
+
+/*
+TERMINFO_NAME(smsc)
+TERMCAP_NAME(S4)
+XOPEN(400)
+*/
diff --git a/src/term/enter_secure_mode.c b/src/term/enter_secure_mode.c
new file mode 100644
index 00000000..f0d2f7c2
--- /dev/null
+++ b/src/term/enter_secure_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_secure_mode tigetstr("invis")
+
+/** turn on blank mode (characters invisible) **/
+
+/*
+TERMINFO_NAME(invis)
+TERMCAP_NAME(mk)
+XOPEN(400)
+*/
diff --git a/src/term/enter_shadow_mode.c b/src/term/enter_shadow_mode.c
new file mode 100644
index 00000000..f001764f
--- /dev/null
+++ b/src/term/enter_shadow_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_shadow_mode tigetstr("sshm")
+
+/** enable shadow printing **/
+
+/*
+TERMINFO_NAME(sshm)
+TERMCAP_NAME(ZM)
+XOPEN(400)
+*/
diff --git a/src/term/enter_standout_mode.c b/src/term/enter_standout_mode.c
new file mode 100644
index 00000000..936aa37b
--- /dev/null
+++ b/src/term/enter_standout_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_standout_mode tigetstr("smso")
+
+/** begin standout mode **/
+
+/*
+TERMINFO_NAME(smso)
+TERMCAP_NAME(so)
+XOPEN(400)
+*/
diff --git a/src/term/enter_subscript_mode.c b/src/term/enter_subscript_mode.c
new file mode 100644
index 00000000..95b267ef
--- /dev/null
+++ b/src/term/enter_subscript_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_subscript_mode tigetstr("ssubm")
+
+/** enable subscript printing **/
+
+/*
+TERMINFO_NAME(ssubm)
+TERMCAP_NAME(ZN)
+XOPEN(400)
+*/
diff --git a/src/term/enter_superscript_mode.c b/src/term/enter_superscript_mode.c
new file mode 100644
index 00000000..366717cd
--- /dev/null
+++ b/src/term/enter_superscript_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_superscript_mode tigetstr("ssupm")
+
+/** enable superscript printing **/
+
+/*
+TERMINFO_NAME(ssupm)
+TERMCAP_NAME(ZO)
+XOPEN(400)
+*/
diff --git a/src/term/enter_top_hl_mode.c b/src/term/enter_top_hl_mode.c
new file mode 100644
index 00000000..48c69a46
--- /dev/null
+++ b/src/term/enter_top_hl_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_top_hl_mode tigetstr("ethlm")
+
+/** turn on top highlight mode **/
+
+/*
+TERMINFO_NAME(ethlm)
+TERMCAP_NAME(--)
+XOPEN(400)
+*/
diff --git a/src/term/enter_underline_mode.c b/src/term/enter_underline_mode.c
new file mode 100644
index 00000000..b9ba631c
--- /dev/null
+++ b/src/term/enter_underline_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_underline_mode tigetstr("smul")
+
+/** start underscore mode **/
+
+/*
+TERMINFO_NAME(smul)
+TERMCAP_NAME(us)
+XOPEN(400)
+*/
diff --git a/src/term/enter_upward_mode.c b/src/term/enter_upward_mode.c
new file mode 100644
index 00000000..82aa757d
--- /dev/null
+++ b/src/term/enter_upward_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_upward_mode tigetstr("sum")
+
+/** enable upward carriage motion **/
+
+/*
+TERMINFO_NAME(sum)
+TERMCAP_NAME(ZP)
+XOPEN(400)
+*/
diff --git a/src/term/enter_vertical_hl_mode.c b/src/term/enter_vertical_hl_mode.c
new file mode 100644
index 00000000..64ce1d8f
--- /dev/null
+++ b/src/term/enter_vertical_hl_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_vertical_hl_mode tigetstr("evhlm")
+
+/** turn on vertical highlight mode **/
+
+/*
+TERMINFO_NAME(evhlm)
+TERMCAP_NAME(--)
+XOPEN(400)
+*/
diff --git a/src/term/enter_xon_mode.c b/src/term/enter_xon_mode.c
new file mode 100644
index 00000000..a55d592b
--- /dev/null
+++ b/src/term/enter_xon_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define enter_xon_mode tigetstr("smxon")
+
+/** turn on xon/xoff handshaking **/
+
+/*
+TERMINFO_NAME(smxon)
+TERMCAP_NAME(SX)
+XOPEN(400)
+*/
diff --git a/src/term/erase_chars.c b/src/term/erase_chars.c
new file mode 100644
index 00000000..b38a4d7f
--- /dev/null
+++ b/src/term/erase_chars.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define erase_chars tigetstr("ech")
+
+/** erase #1 chars **/
+
+/*
+TERMINFO_NAME(ech)
+TERMCAP_NAME(ec)
+XOPEN(400)
+*/
diff --git a/src/term/erase_overstrick.c b/src/term/erase_overstrick.c
new file mode 100644
index 00000000..8808e265
--- /dev/null
+++ b/src/term/erase_overstrick.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define erase_overstrick tigetflag("eo")
+
+/** can erase overstrikes with a blank **/
+
+/*
+TERMINFO_NAME(eo)
+TERMCAP_NAME(eo)
+XOPEN(400)
+*/
diff --git a/src/term/exit_alt_charset_mode.c b/src/term/exit_alt_charset_mode.c
new file mode 100644
index 00000000..541a2a6a
--- /dev/null
+++ b/src/term/exit_alt_charset_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_alt_charset_mode tigetstr("rmacs")
+
+/** end alternate character set **/
+
+/*
+TERMINFO_NAME(rmacs)
+TERMCAP_NAME(ae)
+XOPEN(400)
+*/
diff --git a/src/term/exit_am_mode.c b/src/term/exit_am_mode.c
new file mode 100644
index 00000000..feb44588
--- /dev/null
+++ b/src/term/exit_am_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_am_mode tigetstr("rmam")
+
+/** turn off automagic margins **/
+
+/*
+TERMINFO_NAME(rmam)
+TERMCAP_NAME(RA)
+XOPEN(400)
+*/
diff --git a/src/term/exit_attribute_mode.c b/src/term/exit_attribute_mode.c
new file mode 100644
index 00000000..307d4b1b
--- /dev/null
+++ b/src/term/exit_attribute_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_attribute_mode tigetstr("sgr0")
+
+/** turn off all attributes **/
+
+/*
+TERMINFO_NAME(sgr0)
+TERMCAP_NAME(me)
+XOPEN(400)
+*/
diff --git a/src/term/exit_ca_mode.c b/src/term/exit_ca_mode.c
new file mode 100644
index 00000000..203a9943
--- /dev/null
+++ b/src/term/exit_ca_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_ca_mode tigetstr("rmcup")
+
+/** string to end programs that use TERMCAP(cup) **/
+
+/*
+TERMINFO_NAME(rmcup)
+TERMCAP_NAME(te)
+XOPEN(400)
+*/
diff --git a/src/term/exit_delete_mode.c b/src/term/exit_delete_mode.c
new file mode 100644
index 00000000..7ece6c5b
--- /dev/null
+++ b/src/term/exit_delete_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_delete_mode tigetstr("rmdc")
+
+/** end delete mode **/
+
+/*
+TERMINFO_NAME(rmdc)
+TERMCAP_NAME(ed)
+XOPEN(400)
+*/
diff --git a/src/term/exit_doublewide_mode.c b/src/term/exit_doublewide_mode.c
new file mode 100644
index 00000000..9b7544ef
--- /dev/null
+++ b/src/term/exit_doublewide_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_doublewide_mode tigetstr("rwidm")
+
+/** disable double wide printing **/
+
+/*
+TERMINFO_NAME(rwidm)
+TERMCAP_NAME(ZQ)
+XOPEN(400)
+*/
diff --git a/src/term/exit_insert_mode.c b/src/term/exit_insert_mode.c
new file mode 100644
index 00000000..43f3fdfe
--- /dev/null
+++ b/src/term/exit_insert_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_insert_mode tigetstr("rmir")
+
+/** end insert mode **/
+
+/*
+TERMINFO_NAME(rmir)
+TERMCAP_NAME(ei)
+XOPEN(400)
+*/
diff --git a/src/term/exit_italics_mode.c b/src/term/exit_italics_mode.c
new file mode 100644
index 00000000..f751e83e
--- /dev/null
+++ b/src/term/exit_italics_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_italics_mode tigetstr("ritm")
+
+/** disable italics **/
+
+/*
+TERMINFO_NAME(ritm)
+TERMCAP_NAME(ZR)
+XOPEN(400)
+*/
diff --git a/src/term/exit_leftword_mode.c b/src/term/exit_leftword_mode.c
new file mode 100644
index 00000000..c185c69a
--- /dev/null
+++ b/src/term/exit_leftword_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_leftword_mode tigetstr("rlim")
+
+/** enable rightward (normal) carriage motion **/
+
+/*
+TERMINFO_NAME(rlim)
+TERMCAP_NAME(ZS)
+XOPEN(400)
+*/
diff --git a/src/term/exit_micro_mode.c b/src/term/exit_micro_mode.c
new file mode 100644
index 00000000..5e1a8643
--- /dev/null
+++ b/src/term/exit_micro_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_micro_mode tigetstr("rmicm")
+
+/** disable micro motion capabilities **/
+
+/*
+TERMINFO_NAME(rmicm)
+TERMCAP_NAME(ZT)
+XOPEN(400)
+*/
diff --git a/src/term/exit_pc_charset_mode.c b/src/term/exit_pc_charset_mode.c
new file mode 100644
index 00000000..6be0e65a
--- /dev/null
+++ b/src/term/exit_pc_charset_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_pc_charset_mode tigetstr("rmpch")
+
+/** disable PC character display mode **/
+
+/*
+TERMINFO_NAME(rmpch)
+TERMCAP_NAME(S3)
+XOPEN(400)
+*/
diff --git a/src/term/exit_scancode_mode.c b/src/term/exit_scancode_mode.c
new file mode 100644
index 00000000..9f0e385d
--- /dev/null
+++ b/src/term/exit_scancode_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_scancode_mode tigetstr("rmcs")
+
+/** disable PC scancode mode **/
+
+/*
+TERMINFO_NAME(rmcs)
+TERMCAP_NAME(S5)
+XOPEN(400)
+*/
diff --git a/src/term/exit_shadow_mode.c b/src/term/exit_shadow_mode.c
new file mode 100644
index 00000000..1fc63af1
--- /dev/null
+++ b/src/term/exit_shadow_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_shadow_mode tigetstr("rshm")
+
+/** disable shadow printing **/
+
+/*
+TERMINFO_NAME(rshm)
+TERMCAP_NAME(ZU)
+XOPEN(400)
+*/
diff --git a/src/term/exit_standout_mode.c b/src/term/exit_standout_mode.c
new file mode 100644
index 00000000..e935811b
--- /dev/null
+++ b/src/term/exit_standout_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_standout_mode tigetstr("rmso")
+
+/** end standout mode **/
+
+/*
+TERMINFO_NAME(rmso)
+TERMCAP_NAME(se)
+XOPEN(400)
+*/
diff --git a/src/term/exit_subscript_mode.c b/src/term/exit_subscript_mode.c
new file mode 100644
index 00000000..f04a9dfd
--- /dev/null
+++ b/src/term/exit_subscript_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_subscript_mode tigetstr("rsubm")
+
+/** dsiable subscript printing **/
+
+/*
+TERMINFO_NAME(rsubm)
+TERMCAP_NAME(ZV)
+XOPEN(400)
+*/
diff --git a/src/term/exit_superscript_mode.c b/src/term/exit_superscript_mode.c
new file mode 100644
index 00000000..f97a5d87
--- /dev/null
+++ b/src/term/exit_superscript_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_superscript_mode tigetstr("rsupm")
+
+/** disable superscript printing **/
+
+/*
+TERMINFO_NAME(rsupm)
+TERMCAP_NAME(ZW)
+XOPEN(400)
+*/
diff --git a/src/term/exit_underline_mode.c b/src/term/exit_underline_mode.c
new file mode 100644
index 00000000..3d587d6b
--- /dev/null
+++ b/src/term/exit_underline_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_underline_mode tigetstr("rmul")
+
+/** end underscore mode **/
+
+/*
+TERMINFO_NAME(rmul)
+TERMCAP_NAME(ue)
+XOPEN(400)
+*/
diff --git a/src/term/exit_upward_mode.c b/src/term/exit_upward_mode.c
new file mode 100644
index 00000000..57f4c2f1
--- /dev/null
+++ b/src/term/exit_upward_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_upward_mode tigetstr("rum")
+
+/** enable downward (normal) carriage motion **/
+
+/*
+TERMINFO_NAME(rum)
+TERMCAP_NAME(ZX)
+XOPEN(400)
+*/
diff --git a/src/term/exit_xon_mode.c b/src/term/exit_xon_mode.c
new file mode 100644
index 00000000..18b3611c
--- /dev/null
+++ b/src/term/exit_xon_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define exit_xon_mode tigetstr("rmxon")
+
+/** turn off xon/xoff handshaking **/
+
+/*
+TERMINFO_NAME(rmxon)
+TERMCAP_NAME(RX)
+XOPEN(400)
+*/
diff --git a/src/term/fixed_pause.c b/src/term/fixed_pause.c
new file mode 100644
index 00000000..00c038df
--- /dev/null
+++ b/src/term/fixed_pause.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define fixed_pause tigetstr("pause")
+
+/** pause for 2-3 seconds **/
+
+/*
+TERMINFO_NAME(pause)
+TERMCAP_NAME(PA)
+XOPEN(400)
+*/
diff --git a/src/term/flash_hook.c b/src/term/flash_hook.c
new file mode 100644
index 00000000..a43d46ef
--- /dev/null
+++ b/src/term/flash_hook.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define flash_hook tigetstr("hook")
+
+/** flash the switch hook **/
+
+/*
+TERMINFO_NAME(hook)
+TERMCAP_NAME(fh)
+XOPEN(400)
+*/
diff --git a/src/term/flash_screen.c b/src/term/flash_screen.c
new file mode 100644
index 00000000..7bd3e38c
--- /dev/null
+++ b/src/term/flash_screen.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define flash_screen tigetstr("flash")
+
+/** visible bell (may move cursor) **/
+
+/*
+TERMINFO_NAME(flash)
+TERMCAP_NAME(vb)
+XOPEN(400)
+*/
diff --git a/src/term/form_feed.c b/src/term/form_feed.c
new file mode 100644
index 00000000..91f65390
--- /dev/null
+++ b/src/term/form_feed.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define form_feed tigetstr("ff")
+
+/** hardcopy terminal page eject **/
+
+/*
+TERMINFO_NAME(ff)
+TERMCAP_NAME(ff)
+XOPEN(400)
+*/
diff --git a/src/term/from_status_line.c b/src/term/from_status_line.c
new file mode 100644
index 00000000..48aebd1c
--- /dev/null
+++ b/src/term/from_status_line.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define from_status_line tigetstr("fsl")
+
+/** return from status line **/
+
+/*
+TERMINFO_NAME(fsl)
+TERMCAP_NAME(fs)
+XOPEN(400)
+*/
diff --git a/src/term/generic_type.c b/src/term/generic_type.c
new file mode 100644
index 00000000..24878690
--- /dev/null
+++ b/src/term/generic_type.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define generic_type tigetflag("gn")
+
+/** generic line type **/
+
+/*
+TERMINFO_NAME(gn)
+TERMCAP_NAME(gn)
+XOPEN(400)
+*/
diff --git a/src/term/get_mouse.c b/src/term/get_mouse.c
new file mode 100644
index 00000000..18e74527
--- /dev/null
+++ b/src/term/get_mouse.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define get_mouse tigetstr("getm")
+
+/** curses should get button events **/
+
+/*
+TERMINFO_NAME(getm)
+TERMCAP_NAME(Gm)
+XOPEN(400)
+*/
diff --git a/src/term/goto_window.c b/src/term/goto_window.c
new file mode 100644
index 00000000..efdf1354
--- /dev/null
+++ b/src/term/goto_window.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define goto_window tigetstr("wingo")
+
+/** go to window #1 **/
+
+/*
+TERMINFO_NAME(wingo)
+TERMCAP_NAME(WG)
+XOPEN(400)
+*/
diff --git a/src/term/hangup.c b/src/term/hangup.c
new file mode 100644
index 00000000..bd688a15
--- /dev/null
+++ b/src/term/hangup.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define hangup tigetstr("hup")
+
+/** hang up phone **/
+
+/*
+TERMINFO_NAME(hup)
+TERMCAP_NAME(HU)
+XOPEN(400)
+*/
diff --git a/src/term/hard_copy.c b/src/term/hard_copy.c
new file mode 100644
index 00000000..0f1abc65
--- /dev/null
+++ b/src/term/hard_copy.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define hard_copy tigetflag("hc")
+
+/** hardcopy terminal **/
+
+/*
+TERMINFO_NAME(hc)
+TERMCAP_NAME(hc)
+XOPEN(400)
+*/
diff --git a/src/term/hard_cursor.c b/src/term/hard_cursor.c
new file mode 100644
index 00000000..9494de2a
--- /dev/null
+++ b/src/term/hard_cursor.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define hard_cursor tigetflag("chts")
+
+/** cursor is hard to see **/
+
+/*
+TERMINFO_NAME(chts)
+TERMCAP_NAME(HC)
+XOPEN(400)
+*/
diff --git a/src/term/has_meta_key.c b/src/term/has_meta_key.c
new file mode 100644
index 00000000..f745af39
--- /dev/null
+++ b/src/term/has_meta_key.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define has_meta_key tigetflag("km")
+
+/** has a meta key **/
+
+/*
+TERMINFO_NAME(km)
+TERMCAP_NAME(km)
+XOPEN(400)
+*/
diff --git a/src/term/has_print_wheel.c b/src/term/has_print_wheel.c
new file mode 100644
index 00000000..a9be039c
--- /dev/null
+++ b/src/term/has_print_wheel.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define has_print_wheel tigetflag("daisy")
+
+/** printer needs operator to change character set **/
+
+/*
+TERMINFO_NAME(daisy)
+TERMCAP_NAME(YC)
+XOPEN(400)
+*/
diff --git a/src/term/has_status_line.c b/src/term/has_status_line.c
new file mode 100644
index 00000000..0f0f9204
--- /dev/null
+++ b/src/term/has_status_line.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define has_status_line tigetflag("hs")
+
+/** has extra "status line" **/
+
+/*
+TERMINFO_NAME(hs)
+TERMCAP_NAME(hs)
+XOPEN(400)
+*/
diff --git a/src/term/hue_lightness_saturation.c b/src/term/hue_lightness_saturation.c
new file mode 100644
index 00000000..fc0e2fe1
--- /dev/null
+++ b/src/term/hue_lightness_saturation.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define hue_lightness_saturation tigetflag("hls")
+
+/** terminal uses only HLS color notation **/
+
+/*
+TERMINFO_NAME(hls)
+TERMCAP_NAME(hl)
+XOPEN(400)
+*/
diff --git a/src/term/init_1string.c b/src/term/init_1string.c
new file mode 100644
index 00000000..258a49ba
--- /dev/null
+++ b/src/term/init_1string.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define init_1string tigetstr("is1")
+
+/** terminal or printer initialization string **/
+
+/*
+TERMINFO_NAME(is1)
+TERMCAP_NAME(i1)
+XOPEN(400)
+*/
diff --git a/src/term/init_2string.c b/src/term/init_2string.c
new file mode 100644
index 00000000..54c37810
--- /dev/null
+++ b/src/term/init_2string.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define init_2string tigetstr("is2")
+
+/** terminal or printer initialization string **/
+
+/*
+TERMINFO_NAME(is2)
+TERMCAP_NAME(i2)
+XOPEN(400)
+*/
diff --git a/src/term/init_3string.c b/src/term/init_3string.c
new file mode 100644
index 00000000..481727a5
--- /dev/null
+++ b/src/term/init_3string.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define init_3string tigetstr("is3")
+
+/** terminal or printer initialization string **/
+
+/*
+TERMINFO_NAME(is3)
+TERMCAP_NAME(i3)
+XOPEN(400)
+*/
diff --git a/src/term/init_file.c b/src/term/init_file.c
new file mode 100644
index 00000000..4b57c5f0
--- /dev/null
+++ b/src/term/init_file.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define init_file tigetstr("if")
+
+/** name of initialization file **/
+
+/*
+TERMINFO_NAME(if)
+TERMCAP_NAME(if)
+XOPEN(400)
+*/
diff --git a/src/term/init_prog.c b/src/term/init_prog.c
new file mode 100644
index 00000000..63c2c34f
--- /dev/null
+++ b/src/term/init_prog.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define init_prog tigetstr("iprog")
+
+/** path name of program for initialization **/
+
+/*
+TERMINFO_NAME(iprog)
+TERMCAP_NAME(iP)
+XOPEN(400)
+*/
diff --git a/src/term/init_tabs.c b/src/term/init_tabs.c
new file mode 100644
index 00000000..2bb53427
--- /dev/null
+++ b/src/term/init_tabs.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define init_tabs tigetnum("it")
+
+/** tabs initially every # spaces **/
+
+/*
+TERMINFO_NAME(it)
+TERMCAP_NAME(it)
+XOPEN(400)
+*/
diff --git a/src/term/initialize_color.c b/src/term/initialize_color.c
new file mode 100644
index 00000000..81a851ce
--- /dev/null
+++ b/src/term/initialize_color.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define initialize_color tigetstr("initc")
+
+/** set color #1 to RGB #2,#3,#4 **/
+
+/*
+TERMINFO_NAME(initc)
+TERMCAP_NAME(IC)
+XOPEN(400)
+*/
diff --git a/src/term/initialize_pair.c b/src/term/initialize_pair.c
new file mode 100644
index 00000000..222e7833
--- /dev/null
+++ b/src/term/initialize_pair.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define initialize_pair tigetstr("initp")
+
+/** set color pair #1 to fg #2, bg #3 **/
+
+/*
+TERMINFO_NAME(initp)
+TERMCAP_NAME(Ip)
+XOPEN(400)
+*/
diff --git a/src/term/insert_character.c b/src/term/insert_character.c
new file mode 100644
index 00000000..6b29e27a
--- /dev/null
+++ b/src/term/insert_character.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define insert_character tigetstr("ichl")
+
+/** insert character **/
+
+/*
+TERMINFO_NAME(ichl)
+TERMCAP_NAME(ic)
+XOPEN(400)
+*/
diff --git a/src/term/insert_line.c b/src/term/insert_line.c
new file mode 100644
index 00000000..54c508ad
--- /dev/null
+++ b/src/term/insert_line.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define insert_line tigetstr("ill")
+
+/** add a new blank line **/
+
+/*
+TERMINFO_NAME(ill)
+TERMCAP_NAME(al)
+XOPEN(400)
+*/
diff --git a/src/term/insert_null_glitch.c b/src/term/insert_null_glitch.c
new file mode 100644
index 00000000..5fee030d
--- /dev/null
+++ b/src/term/insert_null_glitch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define insert_null_glitch tigetflag("in")
+
+/** insert mode distinguishes nulls **/
+
+/*
+TERMINFO_NAME(in)
+TERMCAP_NAME(in)
+XOPEN(400)
+*/
diff --git a/src/term/insert_padding.c b/src/term/insert_padding.c
new file mode 100644
index 00000000..6001659f
--- /dev/null
+++ b/src/term/insert_padding.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define insert_padding tigetstr("ip")
+
+/** insert pad after characters inserted **/
+
+/*
+TERMINFO_NAME(ip)
+TERMCAP_NAME(ip)
+XOPEN(400)
+*/
diff --git a/src/term/key_a1.c b/src/term/key_a1.c
new file mode 100644
index 00000000..b76e8d61
--- /dev/null
+++ b/src/term/key_a1.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_a1 tigetstr("ka1")
+
+/** upper left of keypad **/
+
+/*
+TERMINFO_NAME(ka1)
+TERMCAP_NAME(K1)
+XOPEN(400)
+*/
diff --git a/src/term/key_a3.c b/src/term/key_a3.c
new file mode 100644
index 00000000..d963d2af
--- /dev/null
+++ b/src/term/key_a3.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_a3 tigetstr("ka3")
+
+/** upper right of keypad **/
+
+/*
+TERMINFO_NAME(ka3)
+TERMCAP_NAME(K3)
+XOPEN(400)
+*/
diff --git a/src/term/key_b2.c b/src/term/key_b2.c
new file mode 100644
index 00000000..39ae26f5
--- /dev/null
+++ b/src/term/key_b2.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_b2 tigetstr("kb2")
+
+/** center of keypad **/
+
+/*
+TERMINFO_NAME(kb2)
+TERMCAP_NAME(K2)
+XOPEN(400)
+*/
diff --git a/src/term/key_backspace.c b/src/term/key_backspace.c
new file mode 100644
index 00000000..b32a1805
--- /dev/null
+++ b/src/term/key_backspace.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_backspace tigetstr("kbs")
+
+/** backspace key **/
+
+/*
+TERMINFO_NAME(kbs)
+TERMCAP_NAME(kb)
+XOPEN(400)
+*/
diff --git a/src/term/key_beg.c b/src/term/key_beg.c
new file mode 100644
index 00000000..c226270a
--- /dev/null
+++ b/src/term/key_beg.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_beg tigetstr("kbeg")
+
+/** beg(inning) key **/
+
+/*
+TERMINFO_NAME(kbeg)
+TERMCAP_NAME(@1)
+XOPEN(400)
+*/
diff --git a/src/term/key_btab.c b/src/term/key_btab.c
new file mode 100644
index 00000000..21c74230
--- /dev/null
+++ b/src/term/key_btab.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_btab tigetstr("kcbt")
+
+/** back-tab key **/
+
+/*
+TERMINFO_NAME(kcbt)
+TERMCAP_NAME(kB)
+XOPEN(400)
+*/
diff --git a/src/term/key_c1.c b/src/term/key_c1.c
new file mode 100644
index 00000000..e4663726
--- /dev/null
+++ b/src/term/key_c1.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_c1 tigetstr("kc1")
+
+/** lower left of keypad **/
+
+/*
+TERMINFO_NAME(kc1)
+TERMCAP_NAME(K4)
+XOPEN(400)
+*/
diff --git a/src/term/key_c3.c b/src/term/key_c3.c
new file mode 100644
index 00000000..035edea6
--- /dev/null
+++ b/src/term/key_c3.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_c3 tigetstr("kc3")
+
+/** lower right of keypad **/
+
+/*
+TERMINFO_NAME(kc3)
+TERMCAP_NAME(K5)
+XOPEN(400)
+*/
diff --git a/src/term/key_cancel.c b/src/term/key_cancel.c
new file mode 100644
index 00000000..0675bf3e
--- /dev/null
+++ b/src/term/key_cancel.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_cancel tigetstr("kcan")
+
+/** cancel key **/
+
+/*
+TERMINFO_NAME(kcan)
+TERMCAP_NAME(@2)
+XOPEN(400)
+*/
diff --git a/src/term/key_catab.c b/src/term/key_catab.c
new file mode 100644
index 00000000..602d6c5b
--- /dev/null
+++ b/src/term/key_catab.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_catab tigetstr("ktbc")
+
+/** clear-all-tabs key **/
+
+/*
+TERMINFO_NAME(ktbc)
+TERMCAP_NAME(ka)
+XOPEN(400)
+*/
diff --git a/src/term/key_clear.c b/src/term/key_clear.c
new file mode 100644
index 00000000..6497f2bf
--- /dev/null
+++ b/src/term/key_clear.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_clear tigetstr("kclr")
+
+/** clear-screen or erase key **/
+
+/*
+TERMINFO_NAME(kclr)
+TERMCAP_NAME(kC)
+XOPEN(400)
+*/
diff --git a/src/term/key_close.c b/src/term/key_close.c
new file mode 100644
index 00000000..5d4affc4
--- /dev/null
+++ b/src/term/key_close.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_close tigetstr("kclo")
+
+/** close key **/
+
+/*
+TERMINFO_NAME(kclo)
+TERMCAP_NAME(@3)
+XOPEN(400)
+*/
diff --git a/src/term/key_command.c b/src/term/key_command.c
new file mode 100644
index 00000000..d8b8fb0b
--- /dev/null
+++ b/src/term/key_command.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_command tigetstr("kcmd")
+
+/** cmd (command) key **/
+
+/*
+TERMINFO_NAME(kcmd)
+TERMCAP_NAME(@4)
+XOPEN(400)
+*/
diff --git a/src/term/key_copy.c b/src/term/key_copy.c
new file mode 100644
index 00000000..37812181
--- /dev/null
+++ b/src/term/key_copy.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_copy tigetstr("kcpy")
+
+/** copy key **/
+
+/*
+TERMINFO_NAME(kcpy)
+TERMCAP_NAME(@5)
+XOPEN(400)
+*/
diff --git a/src/term/key_create.c b/src/term/key_create.c
new file mode 100644
index 00000000..1cc73a76
--- /dev/null
+++ b/src/term/key_create.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_create tigetstr("kcrt")
+
+/** create key **/
+
+/*
+TERMINFO_NAME(kcrt)
+TERMCAP_NAME(@6)
+XOPEN(400)
+*/
diff --git a/src/term/key_ctab.c b/src/term/key_ctab.c
new file mode 100644
index 00000000..c24b8262
--- /dev/null
+++ b/src/term/key_ctab.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_ctab tigetstr("kctab")
+
+/** clear-tab key **/
+
+/*
+TERMINFO_NAME(kctab)
+TERMCAP_NAME(kt)
+XOPEN(400)
+*/
diff --git a/src/term/key_dc.c b/src/term/key_dc.c
new file mode 100644
index 00000000..27343af2
--- /dev/null
+++ b/src/term/key_dc.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_dc tigetstr("kdchl")
+
+/** delete-character key **/
+
+/*
+TERMINFO_NAME(kdchl)
+TERMCAP_NAME(kD)
+XOPEN(400)
+*/
diff --git a/src/term/key_dl.c b/src/term/key_dl.c
new file mode 100644
index 00000000..e2dbca4b
--- /dev/null
+++ b/src/term/key_dl.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_dl tigetstr("kdll")
+
+/** delete-line key **/
+
+/*
+TERMINFO_NAME(kdll)
+TERMCAP_NAME(kL)
+XOPEN(400)
+*/
diff --git a/src/term/key_down.c b/src/term/key_down.c
new file mode 100644
index 00000000..7143d3ad
--- /dev/null
+++ b/src/term/key_down.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_down tigetstr("kcudl")
+
+/** down-arrow key **/
+
+/*
+TERMINFO_NAME(kcudl)
+TERMCAP_NAME(kd)
+XOPEN(400)
+*/
diff --git a/src/term/key_eic.c b/src/term/key_eic.c
new file mode 100644
index 00000000..a9ab7a01
--- /dev/null
+++ b/src/term/key_eic.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_eic tigetstr("krmir")
+
+/** TERMCAP(rmir) or TERMCAP(smir) in insert mode **/
+
+/*
+TERMINFO_NAME(krmir)
+TERMCAP_NAME(kM)
+XOPEN(400)
+*/
diff --git a/src/term/key_end.c b/src/term/key_end.c
new file mode 100644
index 00000000..6d3b0c2c
--- /dev/null
+++ b/src/term/key_end.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_end tigetstr("kend")
+
+/** end key **/
+
+/*
+TERMINFO_NAME(kend)
+TERMCAP_NAME(@7)
+XOPEN(400)
+*/
diff --git a/src/term/key_enter.c b/src/term/key_enter.c
new file mode 100644
index 00000000..3444ca3d
--- /dev/null
+++ b/src/term/key_enter.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_enter tigetstr("kent")
+
+/** enter/send key **/
+
+/*
+TERMINFO_NAME(kent)
+TERMCAP_NAME(@8)
+XOPEN(400)
+*/
diff --git a/src/term/key_eol.c b/src/term/key_eol.c
new file mode 100644
index 00000000..68b619a3
--- /dev/null
+++ b/src/term/key_eol.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_eol tigetstr("kel")
+
+/** clear-to-end-of-line key **/
+
+/*
+TERMINFO_NAME(kel)
+TERMCAP_NAME(kE)
+XOPEN(400)
+*/
diff --git a/src/term/key_eos.c b/src/term/key_eos.c
new file mode 100644
index 00000000..60a304ce
--- /dev/null
+++ b/src/term/key_eos.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_eos tigetstr("ked")
+
+/** clear-to-end-of-screen key **/
+
+/*
+TERMINFO_NAME(ked)
+TERMCAP_NAME(kS)
+XOPEN(400)
+*/
diff --git a/src/term/key_exit.c b/src/term/key_exit.c
new file mode 100644
index 00000000..edd2b490
--- /dev/null
+++ b/src/term/key_exit.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_exit tigetstr("kext")
+
+/** exit key **/
+
+/*
+TERMINFO_NAME(kext)
+TERMCAP_NAME(@9)
+XOPEN(400)
+*/
diff --git a/src/term/key_f0.c b/src/term/key_f0.c
new file mode 100644
index 00000000..bf18bbc3
--- /dev/null
+++ b/src/term/key_f0.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f0 tigetstr("kf0")
+
+/** f0 key **/
+
+/*
+TERMINFO_NAME(kf0)
+TERMCAP_NAME(k0)
+XOPEN(400)
+*/
diff --git a/src/term/key_f1.c b/src/term/key_f1.c
new file mode 100644
index 00000000..6b70b74f
--- /dev/null
+++ b/src/term/key_f1.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f1 tigetstr("kf1")
+
+/** f1 key **/
+
+/*
+TERMINFO_NAME(kf1)
+TERMCAP_NAME(k1)
+XOPEN(400)
+*/
diff --git a/src/term/key_f10.c b/src/term/key_f10.c
new file mode 100644
index 00000000..41cdd7c3
--- /dev/null
+++ b/src/term/key_f10.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f10 tigetstr("kf10")
+
+/** f10 key **/
+
+/*
+TERMINFO_NAME(kf10)
+TERMCAP_NAME(ka)
+XOPEN(400)
+*/
diff --git a/src/term/key_f11.c b/src/term/key_f11.c
new file mode 100644
index 00000000..319a4f77
--- /dev/null
+++ b/src/term/key_f11.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f11 tigetstr("kf11")
+
+/** f11 key **/
+
+/*
+TERMINFO_NAME(kf11)
+TERMCAP_NAME(kb)
+XOPEN(400)
+*/
diff --git a/src/term/key_f12.c b/src/term/key_f12.c
new file mode 100644
index 00000000..57223c56
--- /dev/null
+++ b/src/term/key_f12.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f12 tigetstr("kf12")
+
+/** f12 key **/
+
+/*
+TERMINFO_NAME(kf12)
+TERMCAP_NAME(kc)
+XOPEN(400)
+*/
diff --git a/src/term/key_f13.c b/src/term/key_f13.c
new file mode 100644
index 00000000..d4c2d6d7
--- /dev/null
+++ b/src/term/key_f13.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f13 tigetstr("kf13")
+
+/** f13 key **/
+
+/*
+TERMINFO_NAME(kf13)
+TERMCAP_NAME(kd)
+XOPEN(400)
+*/
diff --git a/src/term/key_f14.c b/src/term/key_f14.c
new file mode 100644
index 00000000..c718780d
--- /dev/null
+++ b/src/term/key_f14.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f14 tigetstr("kf14")
+
+/** f14 key **/
+
+/*
+TERMINFO_NAME(kf14)
+TERMCAP_NAME(ke)
+XOPEN(400)
+*/
diff --git a/src/term/key_f15.c b/src/term/key_f15.c
new file mode 100644
index 00000000..62936a0b
--- /dev/null
+++ b/src/term/key_f15.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f15 tigetstr("kf15")
+
+/** f15 key **/
+
+/*
+TERMINFO_NAME(kf15)
+TERMCAP_NAME(kf)
+XOPEN(400)
+*/
diff --git a/src/term/key_f16.c b/src/term/key_f16.c
new file mode 100644
index 00000000..5664a8b2
--- /dev/null
+++ b/src/term/key_f16.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f16 tigetstr("kf16")
+
+/** f16 key **/
+
+/*
+TERMINFO_NAME(kf16)
+TERMCAP_NAME(kg)
+XOPEN(400)
+*/
diff --git a/src/term/key_f17.c b/src/term/key_f17.c
new file mode 100644
index 00000000..2414227f
--- /dev/null
+++ b/src/term/key_f17.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f17 tigetstr("kf17")
+
+/** f17 key **/
+
+/*
+TERMINFO_NAME(kf17)
+TERMCAP_NAME(kh)
+XOPEN(400)
+*/
diff --git a/src/term/key_f18.c b/src/term/key_f18.c
new file mode 100644
index 00000000..ae432e01
--- /dev/null
+++ b/src/term/key_f18.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f18 tigetstr("kf18")
+
+/** f18 key **/
+
+/*
+TERMINFO_NAME(kf18)
+TERMCAP_NAME(ki)
+XOPEN(400)
+*/
diff --git a/src/term/key_f19.c b/src/term/key_f19.c
new file mode 100644
index 00000000..11b36476
--- /dev/null
+++ b/src/term/key_f19.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f19 tigetstr("kf19")
+
+/** f19 key **/
+
+/*
+TERMINFO_NAME(kf19)
+TERMCAP_NAME(kj)
+XOPEN(400)
+*/
diff --git a/src/term/key_f2.c b/src/term/key_f2.c
new file mode 100644
index 00000000..6977141f
--- /dev/null
+++ b/src/term/key_f2.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f2 tigetstr("kf2")
+
+/** f2 key **/
+
+/*
+TERMINFO_NAME(kf2)
+TERMCAP_NAME(k2)
+XOPEN(400)
+*/
diff --git a/src/term/key_f20.c b/src/term/key_f20.c
new file mode 100644
index 00000000..49a05dfd
--- /dev/null
+++ b/src/term/key_f20.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f20 tigetstr("kf20")
+
+/** f20 key **/
+
+/*
+TERMINFO_NAME(kf20)
+TERMCAP_NAME(kk)
+XOPEN(400)
+*/
diff --git a/src/term/key_f21.c b/src/term/key_f21.c
new file mode 100644
index 00000000..a7cb5173
--- /dev/null
+++ b/src/term/key_f21.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f21 tigetstr("kf21")
+
+/** f21 key **/
+
+/*
+TERMINFO_NAME(kf21)
+TERMCAP_NAME(kl)
+XOPEN(400)
+*/
diff --git a/src/term/key_f22.c b/src/term/key_f22.c
new file mode 100644
index 00000000..e8ee6315
--- /dev/null
+++ b/src/term/key_f22.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f22 tigetstr("kf22")
+
+/** f22 key **/
+
+/*
+TERMINFO_NAME(kf22)
+TERMCAP_NAME(km)
+XOPEN(400)
+*/
diff --git a/src/term/key_f23.c b/src/term/key_f23.c
new file mode 100644
index 00000000..82efbb94
--- /dev/null
+++ b/src/term/key_f23.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f23 tigetstr("kf23")
+
+/** f23 key **/
+
+/*
+TERMINFO_NAME(kf23)
+TERMCAP_NAME(kn)
+XOPEN(400)
+*/
diff --git a/src/term/key_f24.c b/src/term/key_f24.c
new file mode 100644
index 00000000..629efeeb
--- /dev/null
+++ b/src/term/key_f24.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f24 tigetstr("kf24")
+
+/** f24 key **/
+
+/*
+TERMINFO_NAME(kf24)
+TERMCAP_NAME(ko)
+XOPEN(400)
+*/
diff --git a/src/term/key_f25.c b/src/term/key_f25.c
new file mode 100644
index 00000000..f40242e2
--- /dev/null
+++ b/src/term/key_f25.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f25 tigetstr("kf25")
+
+/** f25 key **/
+
+/*
+TERMINFO_NAME(kf25)
+TERMCAP_NAME(kp)
+XOPEN(400)
+*/
diff --git a/src/term/key_f26.c b/src/term/key_f26.c
new file mode 100644
index 00000000..cc14c485
--- /dev/null
+++ b/src/term/key_f26.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f26 tigetstr("kf26")
+
+/** f26 key **/
+
+/*
+TERMINFO_NAME(kf26)
+TERMCAP_NAME(kq)
+XOPEN(400)
+*/
diff --git a/src/term/key_f27.c b/src/term/key_f27.c
new file mode 100644
index 00000000..1c2c664a
--- /dev/null
+++ b/src/term/key_f27.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f27 tigetstr("kf27")
+
+/** f27 key **/
+
+/*
+TERMINFO_NAME(kf27)
+TERMCAP_NAME(kr)
+XOPEN(400)
+*/
diff --git a/src/term/key_f28.c b/src/term/key_f28.c
new file mode 100644
index 00000000..fa1baca1
--- /dev/null
+++ b/src/term/key_f28.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f28 tigetstr("kf28")
+
+/** f28 key **/
+
+/*
+TERMINFO_NAME(kf28)
+TERMCAP_NAME(ks)
+XOPEN(400)
+*/
diff --git a/src/term/key_f29.c b/src/term/key_f29.c
new file mode 100644
index 00000000..c8a508b2
--- /dev/null
+++ b/src/term/key_f29.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f29 tigetstr("kf29")
+
+/** f29 key **/
+
+/*
+TERMINFO_NAME(kf29)
+TERMCAP_NAME(kt)
+XOPEN(400)
+*/
diff --git a/src/term/key_f3.c b/src/term/key_f3.c
new file mode 100644
index 00000000..e5e69380
--- /dev/null
+++ b/src/term/key_f3.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f3 tigetstr("kf3")
+
+/** f3 key **/
+
+/*
+TERMINFO_NAME(kf3)
+TERMCAP_NAME(k3)
+XOPEN(400)
+*/
diff --git a/src/term/key_f30.c b/src/term/key_f30.c
new file mode 100644
index 00000000..aa1f50b4
--- /dev/null
+++ b/src/term/key_f30.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f30 tigetstr("kf30")
+
+/** f30 key **/
+
+/*
+TERMINFO_NAME(kf30)
+TERMCAP_NAME(ku)
+XOPEN(400)
+*/
diff --git a/src/term/key_f31.c b/src/term/key_f31.c
new file mode 100644
index 00000000..4f774bfd
--- /dev/null
+++ b/src/term/key_f31.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f31 tigetstr("kf31")
+
+/** f31 key **/
+
+/*
+TERMINFO_NAME(kf31)
+TERMCAP_NAME(kv)
+XOPEN(400)
+*/
diff --git a/src/term/key_f32.c b/src/term/key_f32.c
new file mode 100644
index 00000000..c87ad3c5
--- /dev/null
+++ b/src/term/key_f32.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f32 tigetstr("kf32")
+
+/** f32 key **/
+
+/*
+TERMINFO_NAME(kf32)
+TERMCAP_NAME(kw)
+XOPEN(400)
+*/
diff --git a/src/term/key_f33.c b/src/term/key_f33.c
new file mode 100644
index 00000000..664eacfb
--- /dev/null
+++ b/src/term/key_f33.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f33 tigetstr("kf33")
+
+/** f33 key **/
+
+/*
+TERMINFO_NAME(kf33)
+TERMCAP_NAME(kx)
+XOPEN(400)
+*/
diff --git a/src/term/key_f34.c b/src/term/key_f34.c
new file mode 100644
index 00000000..7f215b4f
--- /dev/null
+++ b/src/term/key_f34.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f34 tigetstr("kf34")
+
+/** f34 key **/
+
+/*
+TERMINFO_NAME(kf34)
+TERMCAP_NAME(ku)
+XOPEN(400)
+*/
diff --git a/src/term/key_f35.c b/src/term/key_f35.c
new file mode 100644
index 00000000..27fd1c58
--- /dev/null
+++ b/src/term/key_f35.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f35 tigetstr("kf35")
+
+/** f35 key **/
+
+/*
+TERMINFO_NAME(kf35)
+TERMCAP_NAME(Fz)
+XOPEN(400)
+*/
diff --git a/src/term/key_f36.c b/src/term/key_f36.c
new file mode 100644
index 00000000..33edd193
--- /dev/null
+++ b/src/term/key_f36.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f36 tigetstr("kf36")
+
+/** f36 key **/
+
+/*
+TERMINFO_NAME(kf36)
+TERMCAP_NAME(F0)
+XOPEN(400)
+*/
diff --git a/src/term/key_f37.c b/src/term/key_f37.c
new file mode 100644
index 00000000..6a1cee3e
--- /dev/null
+++ b/src/term/key_f37.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f37 tigetstr("kf37")
+
+/** f37 key **/
+
+/*
+TERMINFO_NAME(kf37)
+TERMCAP_NAME(F1)
+XOPEN(400)
+*/
diff --git a/src/term/key_f38.c b/src/term/key_f38.c
new file mode 100644
index 00000000..f7c7847c
--- /dev/null
+++ b/src/term/key_f38.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f38 tigetstr("kf38")
+
+/** f38 key **/
+
+/*
+TERMINFO_NAME(kf38)
+TERMCAP_NAME(F2)
+XOPEN(400)
+*/
diff --git a/src/term/key_f39.c b/src/term/key_f39.c
new file mode 100644
index 00000000..3ed5d781
--- /dev/null
+++ b/src/term/key_f39.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f39 tigetstr("kf39")
+
+/** f39 key **/
+
+/*
+TERMINFO_NAME(kf39)
+TERMCAP_NAME(F3)
+XOPEN(400)
+*/
diff --git a/src/term/key_f4.c b/src/term/key_f4.c
new file mode 100644
index 00000000..e388876b
--- /dev/null
+++ b/src/term/key_f4.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f4 tigetstr("kf4")
+
+/** f4 key **/
+
+/*
+TERMINFO_NAME(kf4)
+TERMCAP_NAME(k4)
+XOPEN(400)
+*/
diff --git a/src/term/key_f40.c b/src/term/key_f40.c
new file mode 100644
index 00000000..2af91e68
--- /dev/null
+++ b/src/term/key_f40.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f40 tigetstr("kf40")
+
+/** f40 key **/
+
+/*
+TERMINFO_NAME(kf40)
+TERMCAP_NAME(F4)
+XOPEN(400)
+*/
diff --git a/src/term/key_f41.c b/src/term/key_f41.c
new file mode 100644
index 00000000..38fb70f8
--- /dev/null
+++ b/src/term/key_f41.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f41 tigetstr("kf41")
+
+/** f41 key **/
+
+/*
+TERMINFO_NAME(kf41)
+TERMCAP_NAME(F5)
+XOPEN(400)
+*/
diff --git a/src/term/key_f42.c b/src/term/key_f42.c
new file mode 100644
index 00000000..2be7abec
--- /dev/null
+++ b/src/term/key_f42.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f42 tigetstr("kf42")
+
+/** f42 key **/
+
+/*
+TERMINFO_NAME(kf42)
+TERMCAP_NAME(F6)
+XOPEN(400)
+*/
diff --git a/src/term/key_f43.c b/src/term/key_f43.c
new file mode 100644
index 00000000..4ee1d047
--- /dev/null
+++ b/src/term/key_f43.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f43 tigetstr("kf43")
+
+/** f43 key **/
+
+/*
+TERMINFO_NAME(kf43)
+TERMCAP_NAME(F7)
+XOPEN(400)
+*/
diff --git a/src/term/key_f44.c b/src/term/key_f44.c
new file mode 100644
index 00000000..bda77fd8
--- /dev/null
+++ b/src/term/key_f44.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f44 tigetstr("kf44")
+
+/** f44 key **/
+
+/*
+TERMINFO_NAME(kf44)
+TERMCAP_NAME(F8)
+XOPEN(400)
+*/
diff --git a/src/term/key_f45.c b/src/term/key_f45.c
new file mode 100644
index 00000000..f9c19737
--- /dev/null
+++ b/src/term/key_f45.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f45 tigetstr("kf45")
+
+/** f45 key **/
+
+/*
+TERMINFO_NAME(kf45)
+TERMCAP_NAME(F9)
+XOPEN(400)
+*/
diff --git a/src/term/key_f46.c b/src/term/key_f46.c
new file mode 100644
index 00000000..2776c8f1
--- /dev/null
+++ b/src/term/key_f46.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f46 tigetstr("kf46")
+
+/** f46 key **/
+
+/*
+TERMINFO_NAME(kf46)
+TERMCAP_NAME(Fa)
+XOPEN(400)
+*/
diff --git a/src/term/key_f47.c b/src/term/key_f47.c
new file mode 100644
index 00000000..bf54b276
--- /dev/null
+++ b/src/term/key_f47.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f47 tigetstr("kf47")
+
+/** f47 key **/
+
+/*
+TERMINFO_NAME(kf47)
+TERMCAP_NAME(Fb)
+XOPEN(400)
+*/
diff --git a/src/term/key_f48.c b/src/term/key_f48.c
new file mode 100644
index 00000000..b30643b9
--- /dev/null
+++ b/src/term/key_f48.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f48 tigetstr("kf48")
+
+/** f48 key **/
+
+/*
+TERMINFO_NAME(kf48)
+TERMCAP_NAME(Fc)
+XOPEN(400)
+*/
diff --git a/src/term/key_f49.c b/src/term/key_f49.c
new file mode 100644
index 00000000..b37180df
--- /dev/null
+++ b/src/term/key_f49.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f49 tigetstr("kf49")
+
+/** f49 key **/
+
+/*
+TERMINFO_NAME(kf49)
+TERMCAP_NAME(Fd)
+XOPEN(400)
+*/
diff --git a/src/term/key_f5.c b/src/term/key_f5.c
new file mode 100644
index 00000000..899871d4
--- /dev/null
+++ b/src/term/key_f5.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f5 tigetstr("kf5")
+
+/** f5 key **/
+
+/*
+TERMINFO_NAME(kf5)
+TERMCAP_NAME(k5)
+XOPEN(400)
+*/
diff --git a/src/term/key_f50.c b/src/term/key_f50.c
new file mode 100644
index 00000000..c70fc300
--- /dev/null
+++ b/src/term/key_f50.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f50 tigetstr("kf50")
+
+/** f50 key **/
+
+/*
+TERMINFO_NAME(kf50)
+TERMCAP_NAME(Fe)
+XOPEN(400)
+*/
diff --git a/src/term/key_f51.c b/src/term/key_f51.c
new file mode 100644
index 00000000..43eae810
--- /dev/null
+++ b/src/term/key_f51.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f51 tigetstr("kf51")
+
+/** f51 key **/
+
+/*
+TERMINFO_NAME(kf51)
+TERMCAP_NAME(Ff)
+XOPEN(400)
+*/
diff --git a/src/term/key_f52.c b/src/term/key_f52.c
new file mode 100644
index 00000000..cb453cd0
--- /dev/null
+++ b/src/term/key_f52.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f52 tigetstr("kf52")
+
+/** f52 key **/
+
+/*
+TERMINFO_NAME(kf52)
+TERMCAP_NAME(Fg)
+XOPEN(400)
+*/
diff --git a/src/term/key_f53.c b/src/term/key_f53.c
new file mode 100644
index 00000000..ce472ae3
--- /dev/null
+++ b/src/term/key_f53.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f53 tigetstr("kf53")
+
+/** f53 key **/
+
+/*
+TERMINFO_NAME(kf53)
+TERMCAP_NAME(Fh)
+XOPEN(400)
+*/
diff --git a/src/term/key_f54.c b/src/term/key_f54.c
new file mode 100644
index 00000000..0dc7d8e0
--- /dev/null
+++ b/src/term/key_f54.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f54 tigetstr("kf54")
+
+/** f54 key **/
+
+/*
+TERMINFO_NAME(kf54)
+TERMCAP_NAME(Fi)
+XOPEN(400)
+*/
diff --git a/src/term/key_f55.c b/src/term/key_f55.c
new file mode 100644
index 00000000..70103c96
--- /dev/null
+++ b/src/term/key_f55.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f55 tigetstr("kf55")
+
+/** f55 key **/
+
+/*
+TERMINFO_NAME(kf55)
+TERMCAP_NAME(Fj)
+XOPEN(400)
+*/
diff --git a/src/term/key_f56.c b/src/term/key_f56.c
new file mode 100644
index 00000000..6f850589
--- /dev/null
+++ b/src/term/key_f56.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f56 tigetstr("kf56")
+
+/** f56 key **/
+
+/*
+TERMINFO_NAME(kf56)
+TERMCAP_NAME(Fk)
+XOPEN(400)
+*/
diff --git a/src/term/key_f57.c b/src/term/key_f57.c
new file mode 100644
index 00000000..858267e7
--- /dev/null
+++ b/src/term/key_f57.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f57 tigetstr("kf57")
+
+/** f57 key **/
+
+/*
+TERMINFO_NAME(kf57)
+TERMCAP_NAME(Fl)
+XOPEN(400)
+*/
diff --git a/src/term/key_f58.c b/src/term/key_f58.c
new file mode 100644
index 00000000..62c207e9
--- /dev/null
+++ b/src/term/key_f58.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f58 tigetstr("kf58")
+
+/** f58 key **/
+
+/*
+TERMINFO_NAME(kf58)
+TERMCAP_NAME(Fm)
+XOPEN(400)
+*/
diff --git a/src/term/key_f59.c b/src/term/key_f59.c
new file mode 100644
index 00000000..8be21d18
--- /dev/null
+++ b/src/term/key_f59.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f59 tigetstr("kf59")
+
+/** f59 key **/
+
+/*
+TERMINFO_NAME(kf59)
+TERMCAP_NAME(Fn)
+XOPEN(400)
+*/
diff --git a/src/term/key_f6.c b/src/term/key_f6.c
new file mode 100644
index 00000000..3e31f719
--- /dev/null
+++ b/src/term/key_f6.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f6 tigetstr("kf6")
+
+/** f6 key **/
+
+/*
+TERMINFO_NAME(kf6)
+TERMCAP_NAME(k6)
+XOPEN(400)
+*/
diff --git a/src/term/key_f60.c b/src/term/key_f60.c
new file mode 100644
index 00000000..b9a24c04
--- /dev/null
+++ b/src/term/key_f60.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f60 tigetstr("kf60")
+
+/** f60 key **/
+
+/*
+TERMINFO_NAME(kf60)
+TERMCAP_NAME(Fo)
+XOPEN(400)
+*/
diff --git a/src/term/key_f61.c b/src/term/key_f61.c
new file mode 100644
index 00000000..626860df
--- /dev/null
+++ b/src/term/key_f61.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f61 tigetstr("kf61")
+
+/** f61 key **/
+
+/*
+TERMINFO_NAME(kf61)
+TERMCAP_NAME(Fp)
+XOPEN(400)
+*/
diff --git a/src/term/key_f62.c b/src/term/key_f62.c
new file mode 100644
index 00000000..57635bda
--- /dev/null
+++ b/src/term/key_f62.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f62 tigetstr("kf62")
+
+/** f62 key **/
+
+/*
+TERMINFO_NAME(kf62)
+TERMCAP_NAME(Fq)
+XOPEN(400)
+*/
diff --git a/src/term/key_f63.c b/src/term/key_f63.c
new file mode 100644
index 00000000..438aa049
--- /dev/null
+++ b/src/term/key_f63.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f63 tigetstr("kf63")
+
+/** f63 key **/
+
+/*
+TERMINFO_NAME(kf63)
+TERMCAP_NAME(Fr)
+XOPEN(400)
+*/
diff --git a/src/term/key_f7.c b/src/term/key_f7.c
new file mode 100644
index 00000000..45e79ea5
--- /dev/null
+++ b/src/term/key_f7.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f7 tigetstr("kf7")
+
+/** f7 key **/
+
+/*
+TERMINFO_NAME(kf7)
+TERMCAP_NAME(k7)
+XOPEN(400)
+*/
diff --git a/src/term/key_f8.c b/src/term/key_f8.c
new file mode 100644
index 00000000..6349c109
--- /dev/null
+++ b/src/term/key_f8.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f8 tigetstr("kf8")
+
+/** f8 key **/
+
+/*
+TERMINFO_NAME(kf8)
+TERMCAP_NAME(k8)
+XOPEN(400)
+*/
diff --git a/src/term/key_f9.c b/src/term/key_f9.c
new file mode 100644
index 00000000..ec6ba70b
--- /dev/null
+++ b/src/term/key_f9.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_f9 tigetstr("kf9")
+
+/** f9 key **/
+
+/*
+TERMINFO_NAME(kf9)
+TERMCAP_NAME(k9)
+XOPEN(400)
+*/
diff --git a/src/term/key_find.c b/src/term/key_find.c
new file mode 100644
index 00000000..914a8d09
--- /dev/null
+++ b/src/term/key_find.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_find tigetstr("kfnd")
+
+/** find key **/
+
+/*
+TERMINFO_NAME(kfnd)
+TERMCAP_NAME(@0)
+XOPEN(400)
+*/
diff --git a/src/term/key_help.c b/src/term/key_help.c
new file mode 100644
index 00000000..50e4f88e
--- /dev/null
+++ b/src/term/key_help.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_help tigetstr("khlp")
+
+/** help key **/
+
+/*
+TERMINFO_NAME(khlp)
+TERMCAP_NAME(%1)
+XOPEN(400)
+*/
diff --git a/src/term/key_home.c b/src/term/key_home.c
new file mode 100644
index 00000000..0d027315
--- /dev/null
+++ b/src/term/key_home.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_home tigetstr("khome")
+
+/** home key **/
+
+/*
+TERMINFO_NAME(khome)
+TERMCAP_NAME(kh)
+XOPEN(400)
+*/
diff --git a/src/term/key_ic.c b/src/term/key_ic.c
new file mode 100644
index 00000000..15eb61e0
--- /dev/null
+++ b/src/term/key_ic.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_ic tigetstr("kichl")
+
+/** insert key **/
+
+/*
+TERMINFO_NAME(kichl)
+TERMCAP_NAME(kI)
+XOPEN(400)
+*/
diff --git a/src/term/key_il.c b/src/term/key_il.c
new file mode 100644
index 00000000..173046e5
--- /dev/null
+++ b/src/term/key_il.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_il tigetstr("kill")
+
+/** insert-line key **/
+
+/*
+TERMINFO_NAME(kill)
+TERMCAP_NAME(kA)
+XOPEN(400)
+*/
diff --git a/src/term/key_left.c b/src/term/key_left.c
new file mode 100644
index 00000000..74250ee5
--- /dev/null
+++ b/src/term/key_left.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_left tigetstr("kcubl")
+
+/** left-arrow key **/
+
+/*
+TERMINFO_NAME(kcubl)
+TERMCAP_NAME(kl)
+XOPEN(400)
+*/
diff --git a/src/term/key_ll.c b/src/term/key_ll.c
new file mode 100644
index 00000000..29eeb74c
--- /dev/null
+++ b/src/term/key_ll.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_ll tigetstr("kll")
+
+/** home-down key **/
+
+/*
+TERMINFO_NAME(kll)
+TERMCAP_NAME(kH)
+XOPEN(400)
+*/
diff --git a/src/term/key_mark.c b/src/term/key_mark.c
new file mode 100644
index 00000000..98208eb5
--- /dev/null
+++ b/src/term/key_mark.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_mark tigetstr("kmrk")
+
+/** mark key **/
+
+/*
+TERMINFO_NAME(kmrk)
+TERMCAP_NAME(%2)
+XOPEN(400)
+*/
diff --git a/src/term/key_message.c b/src/term/key_message.c
new file mode 100644
index 00000000..401a91ad
--- /dev/null
+++ b/src/term/key_message.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_message tigetstr("kmsg")
+
+/** message key **/
+
+/*
+TERMINFO_NAME(kmsg)
+TERMCAP_NAME(%3)
+XOPEN(400)
+*/
diff --git a/src/term/key_mouse.c b/src/term/key_mouse.c
new file mode 100644
index 00000000..c09db525
--- /dev/null
+++ b/src/term/key_mouse.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_mouse tigetstr("kmous")
+
+/** mouse event has occured **/
+
+/*
+TERMINFO_NAME(kmous)
+TERMCAP_NAME(Km)
+XOPEN(400)
+*/
diff --git a/src/term/key_move.c b/src/term/key_move.c
new file mode 100644
index 00000000..2bf646e0
--- /dev/null
+++ b/src/term/key_move.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_move tigetstr("kmov")
+
+/** move key **/
+
+/*
+TERMINFO_NAME(kmov)
+TERMCAP_NAME(%4)
+XOPEN(400)
+*/
diff --git a/src/term/key_next.c b/src/term/key_next.c
new file mode 100644
index 00000000..529bbdfd
--- /dev/null
+++ b/src/term/key_next.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_next tigetstr("knxt")
+
+/** next-object key **/
+
+/*
+TERMINFO_NAME(knxt)
+TERMCAP_NAME(%5)
+XOPEN(400)
+*/
diff --git a/src/term/key_npage.c b/src/term/key_npage.c
new file mode 100644
index 00000000..40cc6d53
--- /dev/null
+++ b/src/term/key_npage.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_npage tigetstr("knp")
+
+/** next-page key **/
+
+/*
+TERMINFO_NAME(knp)
+TERMCAP_NAME(kN)
+XOPEN(400)
+*/
diff --git a/src/term/key_open.c b/src/term/key_open.c
new file mode 100644
index 00000000..806f9d7d
--- /dev/null
+++ b/src/term/key_open.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_open tigetstr("kopn")
+
+/** open key **/
+
+/*
+TERMINFO_NAME(kopn)
+TERMCAP_NAME(%6)
+XOPEN(400)
+*/
diff --git a/src/term/key_options.c b/src/term/key_options.c
new file mode 100644
index 00000000..ffbe9784
--- /dev/null
+++ b/src/term/key_options.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_options tigetstr("kopt")
+
+/** options key **/
+
+/*
+TERMINFO_NAME(kopt)
+TERMCAP_NAME(%7)
+XOPEN(400)
+*/
diff --git a/src/term/key_ppage.c b/src/term/key_ppage.c
new file mode 100644
index 00000000..4fac2d60
--- /dev/null
+++ b/src/term/key_ppage.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_ppage tigetstr("kpp")
+
+/** previous-page key **/
+
+/*
+TERMINFO_NAME(kpp)
+TERMCAP_NAME(kP)
+XOPEN(400)
+*/
diff --git a/src/term/key_previous.c b/src/term/key_previous.c
new file mode 100644
index 00000000..3bc060b0
--- /dev/null
+++ b/src/term/key_previous.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_previous tigetstr("kprv")
+
+/** previous-object key **/
+
+/*
+TERMINFO_NAME(kprv)
+TERMCAP_NAME(%8)
+XOPEN(400)
+*/
diff --git a/src/term/key_print.c b/src/term/key_print.c
new file mode 100644
index 00000000..7b799bd1
--- /dev/null
+++ b/src/term/key_print.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_print tigetstr("kprt")
+
+/** print or copy key **/
+
+/*
+TERMINFO_NAME(kprt)
+TERMCAP_NAME(%9)
+XOPEN(400)
+*/
diff --git a/src/term/key_redo.c b/src/term/key_redo.c
new file mode 100644
index 00000000..e8afa350
--- /dev/null
+++ b/src/term/key_redo.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_redo tigetstr("krdo")
+
+/** redo key **/
+
+/*
+TERMINFO_NAME(krdo)
+TERMCAP_NAME(%0)
+XOPEN(400)
+*/
diff --git a/src/term/key_reference.c b/src/term/key_reference.c
new file mode 100644
index 00000000..b94e05e3
--- /dev/null
+++ b/src/term/key_reference.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_reference tigetstr("kref")
+
+/** ref(erence) key **/
+
+/*
+TERMINFO_NAME(kref)
+TERMCAP_NAME(&1)
+XOPEN(400)
+*/
diff --git a/src/term/key_refresh.c b/src/term/key_refresh.c
new file mode 100644
index 00000000..af8754ce
--- /dev/null
+++ b/src/term/key_refresh.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_refresh tigetstr("krfr")
+
+/** refresh key **/
+
+/*
+TERMINFO_NAME(krfr)
+TERMCAP_NAME(&2)
+XOPEN(400)
+*/
diff --git a/src/term/key_replace.c b/src/term/key_replace.c
new file mode 100644
index 00000000..6474e871
--- /dev/null
+++ b/src/term/key_replace.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_replace tigetstr("krpl")
+
+/** replace key **/
+
+/*
+TERMINFO_NAME(krpl)
+TERMCAP_NAME(&3)
+XOPEN(400)
+*/
diff --git a/src/term/key_restart.c b/src/term/key_restart.c
new file mode 100644
index 00000000..f6711811
--- /dev/null
+++ b/src/term/key_restart.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_restart tigetstr("krst")
+
+/** restart key **/
+
+/*
+TERMINFO_NAME(krst)
+TERMCAP_NAME(&4)
+XOPEN(400)
+*/
diff --git a/src/term/key_resume.c b/src/term/key_resume.c
new file mode 100644
index 00000000..a6835570
--- /dev/null
+++ b/src/term/key_resume.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_resume tigetstr("kres")
+
+/** resume key **/
+
+/*
+TERMINFO_NAME(kres)
+TERMCAP_NAME(&5)
+XOPEN(400)
+*/
diff --git a/src/term/key_right.c b/src/term/key_right.c
new file mode 100644
index 00000000..ecd196ea
--- /dev/null
+++ b/src/term/key_right.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_right tigetstr("kcufl")
+
+/** right-arrow key **/
+
+/*
+TERMINFO_NAME(kcufl)
+TERMCAP_NAME(kr)
+XOPEN(400)
+*/
diff --git a/src/term/key_save.c b/src/term/key_save.c
new file mode 100644
index 00000000..d5f72441
--- /dev/null
+++ b/src/term/key_save.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_save tigetstr("ksav")
+
+/** save key **/
+
+/*
+TERMINFO_NAME(ksav)
+TERMCAP_NAME(&6)
+XOPEN(400)
+*/
diff --git a/src/term/key_sbeg.c b/src/term/key_sbeg.c
new file mode 100644
index 00000000..17d097d2
--- /dev/null
+++ b/src/term/key_sbeg.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sbeg tigetstr("kBEG")
+
+/** shift+beg(innning) key **/
+
+/*
+TERMINFO_NAME(kBEG)
+TERMCAP_NAME(&9)
+XOPEN(400)
+*/
diff --git a/src/term/key_scancel.c b/src/term/key_scancel.c
new file mode 100644
index 00000000..d528cb5f
--- /dev/null
+++ b/src/term/key_scancel.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_scancel tigetstr("kCAN")
+
+/** shift+cancel key **/
+
+/*
+TERMINFO_NAME(kCAN)
+TERMCAP_NAME(&0)
+XOPEN(400)
+*/
diff --git a/src/term/key_scommand.c b/src/term/key_scommand.c
new file mode 100644
index 00000000..efde6bfc
--- /dev/null
+++ b/src/term/key_scommand.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_scommand tigetstr("kCMD")
+
+/** shift+command key **/
+
+/*
+TERMINFO_NAME(kCMD)
+TERMCAP_NAME(*1)
+XOPEN(400)
+*/
diff --git a/src/term/key_scopy.c b/src/term/key_scopy.c
new file mode 100644
index 00000000..3bf227ed
--- /dev/null
+++ b/src/term/key_scopy.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_scopy tigetstr("kCPY")
+
+/** shift+copy key **/
+
+/*
+TERMINFO_NAME(kCPY)
+TERMCAP_NAME(*2)
+XOPEN(400)
+*/
diff --git a/src/term/key_screate.c b/src/term/key_screate.c
new file mode 100644
index 00000000..530187b4
--- /dev/null
+++ b/src/term/key_screate.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_screate tigetstr("kCRT")
+
+/** shift+create key **/
+
+/*
+TERMINFO_NAME(kCRT)
+TERMCAP_NAME(*3)
+XOPEN(400)
+*/
diff --git a/src/term/key_sdc.c b/src/term/key_sdc.c
new file mode 100644
index 00000000..973da87f
--- /dev/null
+++ b/src/term/key_sdc.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sdc tigetstr("kDC")
+
+/** shift+delete-char key **/
+
+/*
+TERMINFO_NAME(kDC)
+TERMCAP_NAME(*4)
+XOPEN(400)
+*/
diff --git a/src/term/key_sdl.c b/src/term/key_sdl.c
new file mode 100644
index 00000000..1ebe6137
--- /dev/null
+++ b/src/term/key_sdl.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sdl tigetstr("kDL")
+
+/** shift+delete-line key **/
+
+/*
+TERMINFO_NAME(kDL)
+TERMCAP_NAME(*5)
+XOPEN(400)
+*/
diff --git a/src/term/key_select.c b/src/term/key_select.c
new file mode 100644
index 00000000..7ce6fba5
--- /dev/null
+++ b/src/term/key_select.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_select tigetstr("kslt")
+
+/** select key **/
+
+/*
+TERMINFO_NAME(kslt)
+TERMCAP_NAME(*6)
+XOPEN(400)
+*/
diff --git a/src/term/key_send.c b/src/term/key_send.c
new file mode 100644
index 00000000..bc0a845e
--- /dev/null
+++ b/src/term/key_send.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_send tigetstr("kEND")
+
+/** shift+end key **/
+
+/*
+TERMINFO_NAME(kEND)
+TERMCAP_NAME(*7)
+XOPEN(400)
+*/
diff --git a/src/term/key_seol.c b/src/term/key_seol.c
new file mode 100644
index 00000000..7ab0d2e8
--- /dev/null
+++ b/src/term/key_seol.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_seol tigetstr("kEOL")
+
+/** shift+clear-line key **/
+
+/*
+TERMINFO_NAME(kEOL)
+TERMCAP_NAME(*8)
+XOPEN(400)
+*/
diff --git a/src/term/key_sexit.c b/src/term/key_sexit.c
new file mode 100644
index 00000000..93d22152
--- /dev/null
+++ b/src/term/key_sexit.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sexit tigetstr("kEXT")
+
+/** shift+exit key **/
+
+/*
+TERMINFO_NAME(kEXT)
+TERMCAP_NAME(*9)
+XOPEN(400)
+*/
diff --git a/src/term/key_sf.c b/src/term/key_sf.c
new file mode 100644
index 00000000..6bcdda67
--- /dev/null
+++ b/src/term/key_sf.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sf tigetstr("kind")
+
+/** scroll-forward/down key **/
+
+/*
+TERMINFO_NAME(kind)
+TERMCAP_NAME(kF)
+XOPEN(400)
+*/
diff --git a/src/term/key_sfind.c b/src/term/key_sfind.c
new file mode 100644
index 00000000..fae8d345
--- /dev/null
+++ b/src/term/key_sfind.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sfind tigetstr("kFND")
+
+/** shift+find key **/
+
+/*
+TERMINFO_NAME(kFND)
+TERMCAP_NAME(*0)
+XOPEN(400)
+*/
diff --git a/src/term/key_shelp.c b/src/term/key_shelp.c
new file mode 100644
index 00000000..03aedae5
--- /dev/null
+++ b/src/term/key_shelp.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_shelp tigetstr("kHLP")
+
+/** shift+help key **/
+
+/*
+TERMINFO_NAME(kHLP)
+TERMCAP_NAME(#1)
+XOPEN(400)
+*/
diff --git a/src/term/key_shome.c b/src/term/key_shome.c
new file mode 100644
index 00000000..74729014
--- /dev/null
+++ b/src/term/key_shome.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_shome tigetstr("kHOM")
+
+/** shift+home key **/
+
+/*
+TERMINFO_NAME(kHOM)
+TERMCAP_NAME(#2)
+XOPEN(400)
+*/
diff --git a/src/term/key_sic.c b/src/term/key_sic.c
new file mode 100644
index 00000000..0d201b23
--- /dev/null
+++ b/src/term/key_sic.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sic tigetstr("iIC")
+
+/** shift+input key **/
+
+/*
+TERMINFO_NAME(iIC)
+TERMCAP_NAME(#3)
+XOPEN(400)
+*/
diff --git a/src/term/key_sleft.c b/src/term/key_sleft.c
new file mode 100644
index 00000000..333d6103
--- /dev/null
+++ b/src/term/key_sleft.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sleft tigetstr("kLFT")
+
+/** shift+left-arrow key **/
+
+/*
+TERMINFO_NAME(kLFT)
+TERMCAP_NAME(#4)
+XOPEN(400)
+*/
diff --git a/src/term/key_smessage.c b/src/term/key_smessage.c
new file mode 100644
index 00000000..09a4f770
--- /dev/null
+++ b/src/term/key_smessage.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_smessage tigetstr("kMSG")
+
+/** shift+message key **/
+
+/*
+TERMINFO_NAME(kMSG)
+TERMCAP_NAME(%a)
+XOPEN(400)
+*/
diff --git a/src/term/key_smove.c b/src/term/key_smove.c
new file mode 100644
index 00000000..3c2decdd
--- /dev/null
+++ b/src/term/key_smove.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_smove tigetstr("kMOV")
+
+/** shift+move key **/
+
+/*
+TERMINFO_NAME(kMOV)
+TERMCAP_NAME(%b)
+XOPEN(400)
+*/
diff --git a/src/term/key_snext.c b/src/term/key_snext.c
new file mode 100644
index 00000000..bcf32e14
--- /dev/null
+++ b/src/term/key_snext.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_snext tigetstr("kNXT")
+
+/** shift+next key **/
+
+/*
+TERMINFO_NAME(kNXT)
+TERMCAP_NAME(%c)
+XOPEN(400)
+*/
diff --git a/src/term/key_soptions.c b/src/term/key_soptions.c
new file mode 100644
index 00000000..7d87754c
--- /dev/null
+++ b/src/term/key_soptions.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_soptions tigetstr("kOPT")
+
+/** shift+options key **/
+
+/*
+TERMINFO_NAME(kOPT)
+TERMCAP_NAME(%d)
+XOPEN(400)
+*/
diff --git a/src/term/key_sprevious.c b/src/term/key_sprevious.c
new file mode 100644
index 00000000..fe427b12
--- /dev/null
+++ b/src/term/key_sprevious.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sprevious tigetstr("kPRV")
+
+/** shift+prev key **/
+
+/*
+TERMINFO_NAME(kPRV)
+TERMCAP_NAME(%e)
+XOPEN(400)
+*/
diff --git a/src/term/key_sprint.c b/src/term/key_sprint.c
new file mode 100644
index 00000000..ca8201ef
--- /dev/null
+++ b/src/term/key_sprint.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sprint tigetstr("kPRT")
+
+/** shift+print key **/
+
+/*
+TERMINFO_NAME(kPRT)
+TERMCAP_NAME(%f)
+XOPEN(400)
+*/
diff --git a/src/term/key_sr.c b/src/term/key_sr.c
new file mode 100644
index 00000000..54d140c2
--- /dev/null
+++ b/src/term/key_sr.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sr tigetstr("kri")
+
+/** scroll-backward/up key **/
+
+/*
+TERMINFO_NAME(kri)
+TERMCAP_NAME(kR)
+XOPEN(400)
+*/
diff --git a/src/term/key_sredo.c b/src/term/key_sredo.c
new file mode 100644
index 00000000..b33d56c6
--- /dev/null
+++ b/src/term/key_sredo.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sredo tigetstr("kRDO")
+
+/** shift+redo key **/
+
+/*
+TERMINFO_NAME(kRDO)
+TERMCAP_NAME(%g)
+XOPEN(400)
+*/
diff --git a/src/term/key_sreplace.c b/src/term/key_sreplace.c
new file mode 100644
index 00000000..39c524e0
--- /dev/null
+++ b/src/term/key_sreplace.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sreplace tigetstr("kRPL")
+
+/** shift+replace key **/
+
+/*
+TERMINFO_NAME(kRPL)
+TERMCAP_NAME(%h)
+XOPEN(400)
+*/
diff --git a/src/term/key_sright.c b/src/term/key_sright.c
new file mode 100644
index 00000000..ee355bb6
--- /dev/null
+++ b/src/term/key_sright.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sright tigetstr("kRIT")
+
+/** shift+right-arrow key **/
+
+/*
+TERMINFO_NAME(kRIT)
+TERMCAP_NAME(%i)
+XOPEN(400)
+*/
diff --git a/src/term/key_srsume.c b/src/term/key_srsume.c
new file mode 100644
index 00000000..74af3eb9
--- /dev/null
+++ b/src/term/key_srsume.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_srsume tigetstr("kRES")
+
+/** shift+resume key **/
+
+/*
+TERMINFO_NAME(kRES)
+TERMCAP_NAME(%j)
+XOPEN(400)
+*/
diff --git a/src/term/key_ssave.c b/src/term/key_ssave.c
new file mode 100644
index 00000000..f3a0c979
--- /dev/null
+++ b/src/term/key_ssave.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_ssave tigetstr("kSAV")
+
+/** shift+save key **/
+
+/*
+TERMINFO_NAME(kSAV)
+TERMCAP_NAME(!1)
+XOPEN(400)
+*/
diff --git a/src/term/key_ssuspend.c b/src/term/key_ssuspend.c
new file mode 100644
index 00000000..a0ebd319
--- /dev/null
+++ b/src/term/key_ssuspend.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_ssuspend tigetstr("kSPD")
+
+/** shift+suspend key **/
+
+/*
+TERMINFO_NAME(kSPD)
+TERMCAP_NAME(!2)
+XOPEN(400)
+*/
diff --git a/src/term/key_stab.c b/src/term/key_stab.c
new file mode 100644
index 00000000..4f36e0a4
--- /dev/null
+++ b/src/term/key_stab.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_stab tigetstr("khts")
+
+/** set-tab key **/
+
+/*
+TERMINFO_NAME(khts)
+TERMCAP_NAME(kT)
+XOPEN(400)
+*/
diff --git a/src/term/key_sundo.c b/src/term/key_sundo.c
new file mode 100644
index 00000000..994ad1a6
--- /dev/null
+++ b/src/term/key_sundo.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_sundo tigetstr("sUND")
+
+/** shift+undo key **/
+
+/*
+TERMINFO_NAME(sUND)
+TERMCAP_NAME(!3)
+XOPEN(400)
+*/
diff --git a/src/term/key_suspend.c b/src/term/key_suspend.c
new file mode 100644
index 00000000..0562ec9f
--- /dev/null
+++ b/src/term/key_suspend.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_suspend tigetstr("kspd")
+
+/** suspend key **/
+
+/*
+TERMINFO_NAME(kspd)
+TERMCAP_NAME(&7)
+XOPEN(400)
+*/
diff --git a/src/term/key_undo.c b/src/term/key_undo.c
new file mode 100644
index 00000000..1e7a863a
--- /dev/null
+++ b/src/term/key_undo.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_undo tigetstr("kund")
+
+/** undo key **/
+
+/*
+TERMINFO_NAME(kund)
+TERMCAP_NAME(&8)
+XOPEN(400)
+*/
diff --git a/src/term/key_up.c b/src/term/key_up.c
new file mode 100644
index 00000000..ca9a1582
--- /dev/null
+++ b/src/term/key_up.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define key_up tigetstr("kcuul")
+
+/** up-arrow key **/
+
+/*
+TERMINFO_NAME(kcuul)
+TERMCAP_NAME(ku)
+XOPEN(400)
+*/
diff --git a/src/term/keypad_local.c b/src/term/keypad_local.c
new file mode 100644
index 00000000..ad2a926f
--- /dev/null
+++ b/src/term/keypad_local.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define keypad_local tigetstr("rmkx")
+
+/** out of "keypad-transmit" mode **/
+
+/*
+TERMINFO_NAME(rmkx)
+TERMCAP_NAME(ke)
+XOPEN(400)
+*/
diff --git a/src/term/keypad_xmit.c b/src/term/keypad_xmit.c
new file mode 100644
index 00000000..5130d2b8
--- /dev/null
+++ b/src/term/keypad_xmit.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define keypad_xmit tigetstr("smkx")
+
+/** put terminal in "keypad-transmit" mode **/
+
+/*
+TERMINFO_NAME(smkx)
+TERMCAP_NAME(ks)
+XOPEN(400)
+*/
diff --git a/src/term/lab_f0.c b/src/term/lab_f0.c
new file mode 100644
index 00000000..79971cb8
--- /dev/null
+++ b/src/term/lab_f0.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lab_f0 tigetstr("lf0")
+
+/** label on function key f0 if not f0 **/
+
+/*
+TERMINFO_NAME(lf0)
+TERMCAP_NAME(l0)
+XOPEN(400)
+*/
diff --git a/src/term/lab_f1.c b/src/term/lab_f1.c
new file mode 100644
index 00000000..c44ffb07
--- /dev/null
+++ b/src/term/lab_f1.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lab_f1 tigetstr("lf1")
+
+/** label on function key f1 if not f1 **/
+
+/*
+TERMINFO_NAME(lf1)
+TERMCAP_NAME(l1)
+XOPEN(400)
+*/
diff --git a/src/term/lab_f10.c b/src/term/lab_f10.c
new file mode 100644
index 00000000..0276028b
--- /dev/null
+++ b/src/term/lab_f10.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lab_f10 tigetstr("lf10")
+
+/** label on function key f10 if not f10 **/
+
+/*
+TERMINFO_NAME(lf10)
+TERMCAP_NAME(la)
+XOPEN(400)
+*/
diff --git a/src/term/lab_f2.c b/src/term/lab_f2.c
new file mode 100644
index 00000000..773db556
--- /dev/null
+++ b/src/term/lab_f2.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lab_f2 tigetstr("lf2")
+
+/** label on function key f2 if not f2 **/
+
+/*
+TERMINFO_NAME(lf2)
+TERMCAP_NAME(l2)
+XOPEN(400)
+*/
diff --git a/src/term/lab_f3.c b/src/term/lab_f3.c
new file mode 100644
index 00000000..d1923cbd
--- /dev/null
+++ b/src/term/lab_f3.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lab_f3 tigetstr("lf3")
+
+/** label on function key f3 if not f3 **/
+
+/*
+TERMINFO_NAME(lf3)
+TERMCAP_NAME(l3)
+XOPEN(400)
+*/
diff --git a/src/term/lab_f4.c b/src/term/lab_f4.c
new file mode 100644
index 00000000..68865ab8
--- /dev/null
+++ b/src/term/lab_f4.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lab_f4 tigetstr("lf4")
+
+/** label on function key f4 if not f4 **/
+
+/*
+TERMINFO_NAME(lf4)
+TERMCAP_NAME(l4)
+XOPEN(400)
+*/
diff --git a/src/term/lab_f5.c b/src/term/lab_f5.c
new file mode 100644
index 00000000..617e134e
--- /dev/null
+++ b/src/term/lab_f5.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lab_f5 tigetstr("lf5")
+
+/** label on function key f5 if not f5 **/
+
+/*
+TERMINFO_NAME(lf5)
+TERMCAP_NAME(l5)
+XOPEN(400)
+*/
diff --git a/src/term/lab_f6.c b/src/term/lab_f6.c
new file mode 100644
index 00000000..8a751a2e
--- /dev/null
+++ b/src/term/lab_f6.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lab_f6 tigetstr("lf6")
+
+/** label on function key f6 if not f6 **/
+
+/*
+TERMINFO_NAME(lf6)
+TERMCAP_NAME(l6)
+XOPEN(400)
+*/
diff --git a/src/term/lab_f7.c b/src/term/lab_f7.c
new file mode 100644
index 00000000..9be9199a
--- /dev/null
+++ b/src/term/lab_f7.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lab_f7 tigetstr("lf7")
+
+/** label on function key f7 if not f7 **/
+
+/*
+TERMINFO_NAME(lf7)
+TERMCAP_NAME(l7)
+XOPEN(400)
+*/
diff --git a/src/term/lab_f8.c b/src/term/lab_f8.c
new file mode 100644
index 00000000..990c7e85
--- /dev/null
+++ b/src/term/lab_f8.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lab_f8 tigetstr("lf8")
+
+/** label on function key f8 if not f8 **/
+
+/*
+TERMINFO_NAME(lf8)
+TERMCAP_NAME(l8)
+XOPEN(400)
+*/
diff --git a/src/term/lab_f9.c b/src/term/lab_f9.c
new file mode 100644
index 00000000..95b5a649
--- /dev/null
+++ b/src/term/lab_f9.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lab_f9 tigetstr("lf9")
+
+/** label on function key f9 if not f9 **/
+
+/*
+TERMINFO_NAME(lf9)
+TERMCAP_NAME(l9)
+XOPEN(400)
+*/
diff --git a/src/term/label_format.c b/src/term/label_format.c
new file mode 100644
index 00000000..5cd680ea
--- /dev/null
+++ b/src/term/label_format.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define label_format tigetstr("fln")
+
+/** label format **/
+
+/*
+TERMINFO_NAME(fln)
+TERMCAP_NAME(Lf)
+XOPEN(400)
+*/
diff --git a/src/term/label_height.c b/src/term/label_height.c
new file mode 100644
index 00000000..dde201e9
--- /dev/null
+++ b/src/term/label_height.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define label_height tigetnum("lh")
+
+/** number of rows in each label **/
+
+/*
+TERMINFO_NAME(lh)
+TERMCAP_NAME(lh)
+XOPEN(400)
+*/
diff --git a/src/term/label_off.c b/src/term/label_off.c
new file mode 100644
index 00000000..f2a42ba0
--- /dev/null
+++ b/src/term/label_off.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define label_off tigetstr("rmln")
+
+/** turn off soft labels **/
+
+/*
+TERMINFO_NAME(rmln)
+TERMCAP_NAME(LF)
+XOPEN(400)
+*/
diff --git a/src/term/label_on.c b/src/term/label_on.c
new file mode 100644
index 00000000..8aff657e
--- /dev/null
+++ b/src/term/label_on.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define label_on tigetstr("smln")
+
+/** turn on soft labels **/
+
+/*
+TERMINFO_NAME(smln)
+TERMCAP_NAME(LO)
+XOPEN(400)
+*/
diff --git a/src/term/label_width.c b/src/term/label_width.c
new file mode 100644
index 00000000..cf73b5d8
--- /dev/null
+++ b/src/term/label_width.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define label_width tigetnum("lw")
+
+/** number of columns in each label **/
+
+/*
+TERMINFO_NAME(lw)
+TERMCAP_NAME(lw)
+XOPEN(400)
+*/
diff --git a/src/term/lines.c b/src/term/lines.c
new file mode 100644
index 00000000..8b435fc3
--- /dev/null
+++ b/src/term/lines.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lines tigetnum("lines")
+
+/** number of lines on a screen or a page **/
+
+/*
+TERMINFO_NAME(lines)
+TERMCAP_NAME(li)
+XOPEN(400)
+*/
diff --git a/src/term/lines_of_memory.c b/src/term/lines_of_memory.c
new file mode 100644
index 00000000..c06cd316
--- /dev/null
+++ b/src/term/lines_of_memory.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lines_of_memory tigetnum("lm")
+
+/** lines of memory if > TERMCAP(lines); 0 = varies **/
+
+/*
+TERMINFO_NAME(lm)
+TERMCAP_NAME(lm)
+XOPEN(400)
+*/
diff --git a/src/term/lpi_changes_res.c b/src/term/lpi_changes_res.c
new file mode 100644
index 00000000..812f1136
--- /dev/null
+++ b/src/term/lpi_changes_res.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define lpi_changes_res tigetflag("lpix")
+
+/** changing line pitch changes resolution **/
+
+/*
+TERMINFO_NAME(lpix)
+TERMCAP_NAME(YG)
+XOPEN(400)
+*/
diff --git a/src/term/magic_cookie_glitch.c b/src/term/magic_cookie_glitch.c
new file mode 100644
index 00000000..4fe9a4f0
--- /dev/null
+++ b/src/term/magic_cookie_glitch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define magic_cookie_glitch tigetnum("xmc")
+
+/** number of blank characters left by TERMCAP(smso) or TERMCAP(rmso) **/
+
+/*
+TERMINFO_NAME(xmc)
+TERMCAP_NAME(sg)
+XOPEN(400)
+*/
diff --git a/src/term/max_attributes.c b/src/term/max_attributes.c
new file mode 100644
index 00000000..0bbb621b
--- /dev/null
+++ b/src/term/max_attributes.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define max_attributes tigetnum("ma")
+
+/** maximum combined video attributes terminal can display **/
+
+/*
+TERMINFO_NAME(ma)
+TERMCAP_NAME(ma)
+XOPEN(400)
+*/
diff --git a/src/term/max_colors.c b/src/term/max_colors.c
new file mode 100644
index 00000000..6739f6ed
--- /dev/null
+++ b/src/term/max_colors.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define max_colors tigetnum("colors")
+
+/** maximum numbe of colors on the screen **/
+
+/*
+TERMINFO_NAME(colors)
+TERMCAP_NAME(Co)
+XOPEN(400)
+*/
diff --git a/src/term/max_micro_address.c b/src/term/max_micro_address.c
new file mode 100644
index 00000000..5f32b6e8
--- /dev/null
+++ b/src/term/max_micro_address.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define max_micro_address tigetnum("maddr")
+
+/** maximum value in TERMCAP(micro_..._address) **/
+
+/*
+TERMINFO_NAME(maddr)
+TERMCAP_NAME(Yd)
+XOPEN(400)
+*/
diff --git a/src/term/max_micro_jump.c b/src/term/max_micro_jump.c
new file mode 100644
index 00000000..a091623b
--- /dev/null
+++ b/src/term/max_micro_jump.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define max_micro_jump tigetnum("mjump")
+
+/** maximum value in TERMCAP(parm_..._micro) **/
+
+/*
+TERMINFO_NAME(mjump)
+TERMCAP_NAME(Ye)
+XOPEN(400)
+*/
diff --git a/src/term/max_pairs.c b/src/term/max_pairs.c
new file mode 100644
index 00000000..45f4bff3
--- /dev/null
+++ b/src/term/max_pairs.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define max_pairs tigetnum("pairs")
+
+/** maximum number of color pairs on the screen **/
+
+/*
+TERMINFO_NAME(pairs)
+TERMCAP_NAME(pa)
+XOPEN(400)
+*/
diff --git a/src/term/maximum_windows.c b/src/term/maximum_windows.c
new file mode 100644
index 00000000..58ac9f42
--- /dev/null
+++ b/src/term/maximum_windows.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define maximum_windows tigetnum("wnum")
+
+/** maximum number of definable windows **/
+
+/*
+TERMINFO_NAME(wnum)
+TERMCAP_NAME(MW)
+XOPEN(400)
+*/
diff --git a/src/term/memory_above.c b/src/term/memory_above.c
new file mode 100644
index 00000000..5a209cbb
--- /dev/null
+++ b/src/term/memory_above.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define memory_above tigetflag("da")
+
+/** display may be retained above the screen **/
+
+/*
+TERMINFO_NAME(da)
+TERMCAP_NAME(da)
+XOPEN(400)
+*/
diff --git a/src/term/memory_below.c b/src/term/memory_below.c
new file mode 100644
index 00000000..7f0eb8dd
--- /dev/null
+++ b/src/term/memory_below.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define memory_below tigetflag("db")
+
+/** display may be retained below the screen **/
+
+/*
+TERMINFO_NAME(db)
+TERMCAP_NAME(db)
+XOPEN(400)
+*/
diff --git a/src/term/meta_off.c b/src/term/meta_off.c
new file mode 100644
index 00000000..8dd5bbc9
--- /dev/null
+++ b/src/term/meta_off.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define meta_off tigetstr("rmm")
+
+/** turn off "meta mode" **/
+
+/*
+TERMINFO_NAME(rmm)
+TERMCAP_NAME(mo)
+XOPEN(400)
+*/
diff --git a/src/term/meta_on.c b/src/term/meta_on.c
new file mode 100644
index 00000000..57f81ac5
--- /dev/null
+++ b/src/term/meta_on.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define meta_on tigetstr("smm")
+
+/** turn on "meta mode" (8th bit) **/
+
+/*
+TERMINFO_NAME(smm)
+TERMCAP_NAME(mm)
+XOPEN(400)
+*/
diff --git a/src/term/micro_col_size.c b/src/term/micro_col_size.c
new file mode 100644
index 00000000..bb319842
--- /dev/null
+++ b/src/term/micro_col_size.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define micro_col_size tigetnum("mcs")
+
+/** character step size when in micro mode **/
+
+/*
+TERMINFO_NAME(mcs)
+TERMCAP_NAME(Yf)
+XOPEN(400)
+*/
diff --git a/src/term/micro_colum_address.c b/src/term/micro_colum_address.c
new file mode 100644
index 00000000..468cec72
--- /dev/null
+++ b/src/term/micro_colum_address.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define micro_colum_address tigetstr("mhpa")
+
+/** like TERMCAP(column_address) for micro adjustment **/
+
+/*
+TERMINFO_NAME(mhpa)
+TERMCAP_NAME(ZY)
+XOPEN(400)
+*/
diff --git a/src/term/micro_down.c b/src/term/micro_down.c
new file mode 100644
index 00000000..60062fa5
--- /dev/null
+++ b/src/term/micro_down.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define micro_down tigetstr("mcudl")
+
+/** like TERMCAP(cursor_down) for micro adjustment **/
+
+/*
+TERMINFO_NAME(mcudl)
+TERMCAP_NAME(ZZ)
+XOPEN(400)
+*/
diff --git a/src/term/micro_left.c b/src/term/micro_left.c
new file mode 100644
index 00000000..8d5e1138
--- /dev/null
+++ b/src/term/micro_left.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define micro_left tigetstr("mcubl")
+
+/** like TERMCAP(cursor_left) for micro adjustment **/
+
+/*
+TERMINFO_NAME(mcubl)
+TERMCAP_NAME(Za)
+XOPEN(400)
+*/
diff --git a/src/term/micro_line_size.c b/src/term/micro_line_size.c
new file mode 100644
index 00000000..51392970
--- /dev/null
+++ b/src/term/micro_line_size.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define micro_line_size tigetnum("mls")
+
+/** line step size when in micro mode **/
+
+/*
+TERMINFO_NAME(mls)
+TERMCAP_NAME(Yg)
+XOPEN(400)
+*/
diff --git a/src/term/micro_right.c b/src/term/micro_right.c
new file mode 100644
index 00000000..02637dbc
--- /dev/null
+++ b/src/term/micro_right.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define micro_right tigetstr("mcufl")
+
+/** like TERMCAP(cursor_right) for micro adjustment **/
+
+/*
+TERMINFO_NAME(mcufl)
+TERMCAP_NAME(Zb)
+XOPEN(400)
+*/
diff --git a/src/term/micro_row_address.c b/src/term/micro_row_address.c
new file mode 100644
index 00000000..09224467
--- /dev/null
+++ b/src/term/micro_row_address.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define micro_row_address tigetstr("mvpa")
+
+/** like TERMCAP(row_address) for micro adjustment **/
+
+/*
+TERMINFO_NAME(mvpa)
+TERMCAP_NAME(Zc)
+XOPEN(400)
+*/
diff --git a/src/term/micro_up.c b/src/term/micro_up.c
new file mode 100644
index 00000000..139eed7c
--- /dev/null
+++ b/src/term/micro_up.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define micro_up tigetstr("mcuul")
+
+/** like TERMCAP(cursor_up) for micro adjustment **/
+
+/*
+TERMINFO_NAME(mcuul)
+TERMCAP_NAME(Zd)
+XOPEN(400)
+*/
diff --git a/src/term/mouse_info.c b/src/term/mouse_info.c
new file mode 100644
index 00000000..7fe0c280
--- /dev/null
+++ b/src/term/mouse_info.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define mouse_info tigetstr("minfo")
+
+/** mouse status information **/
+
+/*
+TERMINFO_NAME(minfo)
+TERMCAP_NAME(Mi)
+XOPEN(400)
+*/
diff --git a/src/term/move_insert_mode.c b/src/term/move_insert_mode.c
new file mode 100644
index 00000000..7a436d68
--- /dev/null
+++ b/src/term/move_insert_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define move_insert_mode tigetflag("mir")
+
+/** safe to move while in insert mode **/
+
+/*
+TERMINFO_NAME(mir)
+TERMCAP_NAME(mi)
+XOPEN(400)
+*/
diff --git a/src/term/move_standout_mode.c b/src/term/move_standout_mode.c
new file mode 100644
index 00000000..05bb0902
--- /dev/null
+++ b/src/term/move_standout_mode.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define move_standout_mode tigetflag("msgr")
+
+/** safe to move in standout modes **/
+
+/*
+TERMINFO_NAME(msgr)
+TERMCAP_NAME(ms)
+XOPEN(400)
+*/
diff --git a/src/term/needs_xon_xoff.c b/src/term/needs_xon_xoff.c
new file mode 100644
index 00000000..e9d44785
--- /dev/null
+++ b/src/term/needs_xon_xoff.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define needs_xon_xoff tigetflag("nxon")
+
+/** padding won't work, xon/xoff required **/
+
+/*
+TERMINFO_NAME(nxon)
+TERMCAP_NAME(nx)
+XOPEN(400)
+*/
diff --git a/src/term/newline.c b/src/term/newline.c
new file mode 100644
index 00000000..2987aa32
--- /dev/null
+++ b/src/term/newline.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define newline tigetstr("nel")
+
+/** newline (behaves like TERMCAP(cr) followed by TERMCAP(lf)) **/
+
+/*
+TERMINFO_NAME(nel)
+TERMCAP_NAME(nw)
+XOPEN(400)
+*/
diff --git a/src/term/no_color_video.c b/src/term/no_color_video.c
new file mode 100644
index 00000000..242c34b2
--- /dev/null
+++ b/src/term/no_color_video.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define no_color_video tigetnum("ncv")
+
+/** video attributes that can't be used with colors **/
+
+/*
+TERMINFO_NAME(ncv)
+TERMCAP_NAME(NC)
+XOPEN(400)
+*/
diff --git a/src/term/no_esc_ctlc.c b/src/term/no_esc_ctlc.c
new file mode 100644
index 00000000..b50aa08b
--- /dev/null
+++ b/src/term/no_esc_ctlc.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define no_esc_ctlc tigetflag("xsb")
+
+/** beehive (f1=escape, f2=ctrl-C) **/
+
+/*
+TERMINFO_NAME(xsb)
+TERMCAP_NAME(xb)
+XOPEN(400)
+*/
diff --git a/src/term/no_pad_char.c b/src/term/no_pad_char.c
new file mode 100644
index 00000000..0b3b00ed
--- /dev/null
+++ b/src/term/no_pad_char.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define no_pad_char tigetflag("npc")
+
+/** pad character doesn't exist **/
+
+/*
+TERMINFO_NAME(npc)
+TERMCAP_NAME(NP)
+XOPEN(400)
+*/
diff --git a/src/term/non_dest_scroll_region.c b/src/term/non_dest_scroll_region.c
new file mode 100644
index 00000000..0ebe36ff
--- /dev/null
+++ b/src/term/non_dest_scroll_region.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define non_dest_scroll_region tigetflag("ndscr")
+
+/** scrolling region is nondestructive **/
+
+/*
+TERMINFO_NAME(ndscr)
+TERMCAP_NAME(ND)
+XOPEN(400)
+*/
diff --git a/src/term/non_rev_rmcup.c b/src/term/non_rev_rmcup.c
new file mode 100644
index 00000000..3b2b95f6
--- /dev/null
+++ b/src/term/non_rev_rmcup.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define non_rev_rmcup tigetflag("nrrmc")
+
+/** TERMCAP(smcup) does not reverse TERMCAP(rmcup) **/
+
+/*
+TERMINFO_NAME(nrrmc)
+TERMCAP_NAME(NR)
+XOPEN(400)
+*/
diff --git a/src/term/num_labels.c b/src/term/num_labels.c
new file mode 100644
index 00000000..6acc33f3
--- /dev/null
+++ b/src/term/num_labels.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define num_labels tigetnum("nlab")
+
+/** numbe of labels on screen (start at 1) **/
+
+/*
+TERMINFO_NAME(nlab)
+TERMCAP_NAME(Nl)
+XOPEN(400)
+*/
diff --git a/src/term/number_of_pins.c b/src/term/number_of_pins.c
new file mode 100644
index 00000000..38c345fb
--- /dev/null
+++ b/src/term/number_of_pins.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define number_of_pins tigetnum("npins")
+
+/** number of pins in print-head **/
+
+/*
+TERMINFO_NAME(npins)
+TERMCAP_NAME(Yh)
+XOPEN(400)
+*/
diff --git a/src/term/order_of_pins.c b/src/term/order_of_pins.c
new file mode 100644
index 00000000..49cda87d
--- /dev/null
+++ b/src/term/order_of_pins.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define order_of_pins tigetstr("porder")
+
+/** matches software bits to print-head pins **/
+
+/*
+TERMINFO_NAME(porder)
+TERMCAP_NAME(Ze)
+XOPEN(400)
+*/
diff --git a/src/term/orig_colors.c b/src/term/orig_colors.c
new file mode 100644
index 00000000..63a4a91d
--- /dev/null
+++ b/src/term/orig_colors.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define orig_colors tigetstr("oc")
+
+/** set all colors and color pairs to original **/
+
+/*
+TERMINFO_NAME(oc)
+TERMCAP_NAME(oc)
+XOPEN(400)
+*/
diff --git a/src/term/orig_pair.c b/src/term/orig_pair.c
new file mode 100644
index 00000000..5772fc55
--- /dev/null
+++ b/src/term/orig_pair.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define orig_pair tigetstr("op")
+
+/** set default color pair to original **/
+
+/*
+TERMINFO_NAME(op)
+TERMCAP_NAME(op)
+XOPEN(400)
+*/
diff --git a/src/term/output_res_char.c b/src/term/output_res_char.c
new file mode 100644
index 00000000..a03426c0
--- /dev/null
+++ b/src/term/output_res_char.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define output_res_char tigetnum("orc")
+
+/** horizontal resolution in units per character **/
+
+/*
+TERMINFO_NAME(orc)
+TERMCAP_NAME(Yi)
+XOPEN(400)
+*/
diff --git a/src/term/output_res_horz_inch.c b/src/term/output_res_horz_inch.c
new file mode 100644
index 00000000..5a9867ae
--- /dev/null
+++ b/src/term/output_res_horz_inch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define output_res_horz_inch tigetnum("orhi")
+
+/** horizontal resolution in units per inch **/
+
+/*
+TERMINFO_NAME(orhi)
+TERMCAP_NAME(Yk)
+XOPEN(400)
+*/
diff --git a/src/term/output_res_line.c b/src/term/output_res_line.c
new file mode 100644
index 00000000..31cec23a
--- /dev/null
+++ b/src/term/output_res_line.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define output_res_line tigetnum("orl")
+
+/** vertical resolution in units per line **/
+
+/*
+TERMINFO_NAME(orl)
+TERMCAP_NAME(Yj)
+XOPEN(400)
+*/
diff --git a/src/term/output_res_vert_inch.c b/src/term/output_res_vert_inch.c
new file mode 100644
index 00000000..6d263ec7
--- /dev/null
+++ b/src/term/output_res_vert_inch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define output_res_vert_inch tigetnum("orvi")
+
+/** vertical resolution in units per inch **/
+
+/*
+TERMINFO_NAME(orvi)
+TERMCAP_NAME(Yl)
+XOPEN(400)
+*/
diff --git a/src/term/over_strike.c b/src/term/over_strike.c
new file mode 100644
index 00000000..8cd1efbb
--- /dev/null
+++ b/src/term/over_strike.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define over_strike tigetflag("os")
+
+/** terminal overstrikes on hard-copy terminal **/
+
+/*
+TERMINFO_NAME(os)
+TERMCAP_NAME(os)
+XOPEN(400)
+*/
diff --git a/src/term/pad_char.c b/src/term/pad_char.c
new file mode 100644
index 00000000..1501b08a
--- /dev/null
+++ b/src/term/pad_char.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define pad_char tigetstr("pad")
+
+/** pd characters (rather than null) **/
+
+/*
+TERMINFO_NAME(pad)
+TERMCAP_NAME(pc)
+XOPEN(400)
+*/
diff --git a/src/term/padding_baud_rate.c b/src/term/padding_baud_rate.c
new file mode 100644
index 00000000..4f129eba
--- /dev/null
+++ b/src/term/padding_baud_rate.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define padding_baud_rate tigetnum("pb")
+
+/** lowest baud rate where padding needed **/
+
+/*
+TERMINFO_NAME(pb)
+TERMCAP_NAME(pb)
+XOPEN(400)
+*/
diff --git a/src/term/parm_dch.c b/src/term/parm_dch.c
new file mode 100644
index 00000000..587f09ae
--- /dev/null
+++ b/src/term/parm_dch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_dch tigetstr("dch")
+
+/** delete #1 chars **/
+
+/*
+TERMINFO_NAME(dch)
+TERMCAP_NAME(DC)
+XOPEN(400)
+*/
diff --git a/src/term/parm_delete_line.c b/src/term/parm_delete_line.c
new file mode 100644
index 00000000..d57d5c99
--- /dev/null
+++ b/src/term/parm_delete_line.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_delete_line tigetstr("dl")
+
+/** delete #1 lines **/
+
+/*
+TERMINFO_NAME(dl)
+TERMCAP_NAME(DL)
+XOPEN(400)
+*/
diff --git a/src/term/parm_down_cursor.c b/src/term/parm_down_cursor.c
new file mode 100644
index 00000000..22dcdbeb
--- /dev/null
+++ b/src/term/parm_down_cursor.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_down_cursor tigetstr("cud")
+
+/** move down #1 lines **/
+
+/*
+TERMINFO_NAME(cud)
+TERMCAP_NAME(DO)
+XOPEN(400)
+*/
diff --git a/src/term/parm_down_micro.c b/src/term/parm_down_micro.c
new file mode 100644
index 00000000..10e7e2cf
--- /dev/null
+++ b/src/term/parm_down_micro.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_down_micro tigetstr("mcud")
+
+/** like TERMCAP(parm_down_cursor) for micro adjustment **/
+
+/*
+TERMINFO_NAME(mcud)
+TERMCAP_NAME(Zf)
+XOPEN(400)
+*/
diff --git a/src/term/parm_ich.c b/src/term/parm_ich.c
new file mode 100644
index 00000000..c010f187
--- /dev/null
+++ b/src/term/parm_ich.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_ich tigetstr("ich")
+
+/** insert #1 blank characters **/
+
+/*
+TERMINFO_NAME(ich)
+TERMCAP_NAME(IC)
+XOPEN(400)
+*/
diff --git a/src/term/parm_index.c b/src/term/parm_index.c
new file mode 100644
index 00000000..daae837e
--- /dev/null
+++ b/src/term/parm_index.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_index tigetstr("indn")
+
+/** scroll forward #1 lines **/
+
+/*
+TERMINFO_NAME(indn)
+TERMCAP_NAME(SF)
+XOPEN(400)
+*/
diff --git a/src/term/parm_insert_line.c b/src/term/parm_insert_line.c
new file mode 100644
index 00000000..4614352d
--- /dev/null
+++ b/src/term/parm_insert_line.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_insert_line tigetstr("il")
+
+/** add #1 new blank lines **/
+
+/*
+TERMINFO_NAME(il)
+TERMCAP_NAME(AL)
+XOPEN(400)
+*/
diff --git a/src/term/parm_left_cursor.c b/src/term/parm_left_cursor.c
new file mode 100644
index 00000000..dfef4f0a
--- /dev/null
+++ b/src/term/parm_left_cursor.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_left_cursor tigetstr("cub")
+
+/** move cursor left #1 spaces **/
+
+/*
+TERMINFO_NAME(cub)
+TERMCAP_NAME(LE)
+XOPEN(400)
+*/
diff --git a/src/term/parm_left_micro.c b/src/term/parm_left_micro.c
new file mode 100644
index 00000000..fe8bce59
--- /dev/null
+++ b/src/term/parm_left_micro.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_left_micro tigetstr("mcub")
+
+/** like TERMCAP(parm_left_cursor) for micro adjustment **/
+
+/*
+TERMINFO_NAME(mcub)
+TERMCAP_NAME(Zg)
+XOPEN(400)
+*/
diff --git a/src/term/parm_right_cursor.c b/src/term/parm_right_cursor.c
new file mode 100644
index 00000000..a635f5cf
--- /dev/null
+++ b/src/term/parm_right_cursor.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_right_cursor tigetstr("cuf")
+
+/** move right #1 spaces **/
+
+/*
+TERMINFO_NAME(cuf)
+TERMCAP_NAME(RI)
+XOPEN(400)
+*/
diff --git a/src/term/parm_right_micro.c b/src/term/parm_right_micro.c
new file mode 100644
index 00000000..7774e515
--- /dev/null
+++ b/src/term/parm_right_micro.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_right_micro tigetstr("mcuf")
+
+/** like TERMCAP(parm_right_cursor) for micro adjustment **/
+
+/*
+TERMINFO_NAME(mcuf)
+TERMCAP_NAME(Zh)
+XOPEN(400)
+*/
diff --git a/src/term/parm_rindex.c b/src/term/parm_rindex.c
new file mode 100644
index 00000000..a79ee6b2
--- /dev/null
+++ b/src/term/parm_rindex.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_rindex tigetstr("rin")
+
+/** scroll backward #1 lines **/
+
+/*
+TERMINFO_NAME(rin)
+TERMCAP_NAME(SR)
+XOPEN(400)
+*/
diff --git a/src/term/parm_up_cursor.c b/src/term/parm_up_cursor.c
new file mode 100644
index 00000000..c237c482
--- /dev/null
+++ b/src/term/parm_up_cursor.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_up_cursor tigetstr("cuu")
+
+/** move cursor up #1 lines **/
+
+/*
+TERMINFO_NAME(cuu)
+TERMCAP_NAME(UP)
+XOPEN(400)
+*/
diff --git a/src/term/parm_up_micro.c b/src/term/parm_up_micro.c
new file mode 100644
index 00000000..65bde4a5
--- /dev/null
+++ b/src/term/parm_up_micro.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define parm_up_micro tigetstr("mcuu")
+
+/** like TERMCAP(parm_up_cusor) for micro adjustment **/
+
+/*
+TERMINFO_NAME(mcuu)
+TERMCAP_NAME(Zi)
+XOPEN(400)
+*/
diff --git a/src/term/pc_term_options.c b/src/term/pc_term_options.c
new file mode 100644
index 00000000..259340a9
--- /dev/null
+++ b/src/term/pc_term_options.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define pc_term_options tigetstr("pctrm")
+
+/** PC terminal options **/
+
+/*
+TERMINFO_NAME(pctrm)
+TERMCAP_NAME(S6)
+XOPEN(400)
+*/
diff --git a/src/term/pkey_key.c b/src/term/pkey_key.c
new file mode 100644
index 00000000..835bc575
--- /dev/null
+++ b/src/term/pkey_key.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define pkey_key tigetstr("pfkey")
+
+/** program function key #1 to type string #2 **/
+
+/*
+TERMINFO_NAME(pfkey)
+TERMCAP_NAME(pk)
+XOPEN(400)
+*/
diff --git a/src/term/pkey_local.c b/src/term/pkey_local.c
new file mode 100644
index 00000000..d3aecca4
--- /dev/null
+++ b/src/term/pkey_local.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define pkey_local tigetstr("pfloc")
+
+/** program function key #1 to execute string #2 **/
+
+/*
+TERMINFO_NAME(pfloc)
+TERMCAP_NAME(pl)
+XOPEN(400)
+*/
diff --git a/src/term/pkey_plab.c b/src/term/pkey_plab.c
new file mode 100644
index 00000000..0f068266
--- /dev/null
+++ b/src/term/pkey_plab.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define pkey_plab tigetstr("pfxl")
+
+/** program function key #1 to transmit string #2 and show string #3 **/
+
+/*
+TERMINFO_NAME(pfxl)
+TERMCAP_NAME(xl)
+XOPEN(400)
+*/
diff --git a/src/term/pkey_xmit.c b/src/term/pkey_xmit.c
new file mode 100644
index 00000000..7c73f597
--- /dev/null
+++ b/src/term/pkey_xmit.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define pkey_xmit tigetstr("pfx")
+
+/** program function key #1 to transmit string #2 **/
+
+/*
+TERMINFO_NAME(pfx)
+TERMCAP_NAME(px)
+XOPEN(400)
+*/
diff --git a/src/term/plab_norm.c b/src/term/plab_norm.c
new file mode 100644
index 00000000..b14e2f22
--- /dev/null
+++ b/src/term/plab_norm.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define plab_norm tigetstr("pln")
+
+/** program label #1 to show string #2 **/
+
+/*
+TERMINFO_NAME(pln)
+TERMCAP_NAME(pn)
+XOPEN(400)
+*/
diff --git a/src/term/print_rate.c b/src/term/print_rate.c
new file mode 100644
index 00000000..b6cd916f
--- /dev/null
+++ b/src/term/print_rate.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define print_rate tigetnum("cps")
+
+/** print rate in characters per second **/
+
+/*
+TERMINFO_NAME(cps)
+TERMCAP_NAME(Ym)
+XOPEN(400)
+*/
diff --git a/src/term/print_screen.c b/src/term/print_screen.c
new file mode 100644
index 00000000..0e80c782
--- /dev/null
+++ b/src/term/print_screen.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define print_screen tigetstr("mc0")
+
+/** print contents of the screen **/
+
+/*
+TERMINFO_NAME(mc0)
+TERMCAP_NAME(ps)
+XOPEN(400)
+*/
diff --git a/src/term/prtr_non.c b/src/term/prtr_non.c
new file mode 100644
index 00000000..bf1e8f65
--- /dev/null
+++ b/src/term/prtr_non.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define prtr_non tigetstr("mc5p")
+
+/** turn on printer for #1 bytes **/
+
+/*
+TERMINFO_NAME(mc5p)
+TERMCAP_NAME(p0)
+XOPEN(400)
+*/
diff --git a/src/term/prtr_off.c b/src/term/prtr_off.c
new file mode 100644
index 00000000..a96eca11
--- /dev/null
+++ b/src/term/prtr_off.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define prtr_off tigetstr("mc4")
+
+/** turn off printer **/
+
+/*
+TERMINFO_NAME(mc4)
+TERMCAP_NAME(pf)
+XOPEN(400)
+*/
diff --git a/src/term/prtr_on.c b/src/term/prtr_on.c
new file mode 100644
index 00000000..e78ba253
--- /dev/null
+++ b/src/term/prtr_on.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define prtr_on tigetstr("mc5")
+
+/** turn on printer **/
+
+/*
+TERMINFO_NAME(mc5)
+TERMCAP_NAME(po)
+XOPEN(400)
+*/
diff --git a/src/term/prtr_silent.c b/src/term/prtr_silent.c
new file mode 100644
index 00000000..7ce0a4a6
--- /dev/null
+++ b/src/term/prtr_silent.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define prtr_silent tigetflag("mc5i")
+
+/** printer won't echo on screen **/
+
+/*
+TERMINFO_NAME(mc5i)
+TERMCAP_NAME(5i)
+XOPEN(400)
+*/
diff --git a/src/term/pulse.c b/src/term/pulse.c
new file mode 100644
index 00000000..ae5a517d
--- /dev/null
+++ b/src/term/pulse.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define pulse tigetstr("pulse")
+
+/** select pulse dialing **/
+
+/*
+TERMINFO_NAME(pulse)
+TERMCAP_NAME(PU)
+XOPEN(400)
+*/
diff --git a/src/term/putp.c b/src/term/putp.c
new file mode 100644
index 00000000..11eb5e48
--- /dev/null
+++ b/src/term/putp.c
@@ -0,0 +1,11 @@
+#include <term.h>
+
+int putp(const char * str)
+{
+ return -1;
+}
+
+/*
+XOPEN(400)
+LINK(curses)
+*/
diff --git a/src/term/quick_dial.c b/src/term/quick_dial.c
new file mode 100644
index 00000000..3ee98d35
--- /dev/null
+++ b/src/term/quick_dial.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define quick_dial tigetstr("qdial")
+
+/** dial phone number #1 without progress detection **/
+
+/*
+TERMINFO_NAME(qdial)
+TERMCAP_NAME(QD)
+XOPEN(400)
+*/
diff --git a/src/term/remove_clock.c b/src/term/remove_clock.c
new file mode 100644
index 00000000..7f15825f
--- /dev/null
+++ b/src/term/remove_clock.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define remove_clock tigetstr("rmclk")
+
+/** remove time-of-day clock **/
+
+/*
+TERMINFO_NAME(rmclk)
+TERMCAP_NAME(RC)
+XOPEN(400)
+*/
diff --git a/src/term/repeat_char.c b/src/term/repeat_char.c
new file mode 100644
index 00000000..ff5c6747
--- /dev/null
+++ b/src/term/repeat_char.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define repeat_char tigetstr("rep")
+
+/** repeat character #1 #2 times **/
+
+/*
+TERMINFO_NAME(rep)
+TERMCAP_NAME(rp)
+XOPEN(400)
+*/
diff --git a/src/term/req_for_input.c b/src/term/req_for_input.c
new file mode 100644
index 00000000..3875d0c0
--- /dev/null
+++ b/src/term/req_for_input.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define req_for_input tigetstr("rfi")
+
+/** send next input character **/
+
+/*
+TERMINFO_NAME(rfi)
+TERMCAP_NAME(RF)
+XOPEN(400)
+*/
diff --git a/src/term/req_mouse_pos.c b/src/term/req_mouse_pos.c
new file mode 100644
index 00000000..e649ec02
--- /dev/null
+++ b/src/term/req_mouse_pos.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define req_mouse_pos tigetstr("reqmp")
+
+/** request mouse position report **/
+
+/*
+TERMINFO_NAME(reqmp)
+TERMCAP_NAME(RQ)
+XOPEN(400)
+*/
diff --git a/src/term/reset_1string.c b/src/term/reset_1string.c
new file mode 100644
index 00000000..f6289a11
--- /dev/null
+++ b/src/term/reset_1string.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define reset_1string tigetstr("rs1")
+
+/** reset terminal completely to sane modes **/
+
+/*
+TERMINFO_NAME(rs1)
+TERMCAP_NAME(r1)
+XOPEN(400)
+*/
diff --git a/src/term/reset_2string.c b/src/term/reset_2string.c
new file mode 100644
index 00000000..9b8d5f33
--- /dev/null
+++ b/src/term/reset_2string.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define reset_2string tigetstr("rs2")
+
+/** reset terminal completely to sane modes **/
+
+/*
+TERMINFO_NAME(rs2)
+TERMCAP_NAME(r2)
+XOPEN(400)
+*/
diff --git a/src/term/reset_3string.c b/src/term/reset_3string.c
new file mode 100644
index 00000000..35004bc7
--- /dev/null
+++ b/src/term/reset_3string.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define reset_3string tigetstr("rs3")
+
+/** reset terminal completely to sane modes **/
+
+/*
+TERMINFO_NAME(rs3)
+TERMCAP_NAME(r3)
+XOPEN(400)
+*/
diff --git a/src/term/reset_file.c b/src/term/reset_file.c
new file mode 100644
index 00000000..5f4bfd26
--- /dev/null
+++ b/src/term/reset_file.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define reset_file tigetstr("rf")
+
+/** name of file containing reset string **/
+
+/*
+TERMINFO_NAME(rf)
+TERMCAP_NAME(rf)
+XOPEN(400)
+*/
diff --git a/src/term/restartterm.c b/src/term/restartterm.c
new file mode 100644
index 00000000..3fda82bc
--- /dev/null
+++ b/src/term/restartterm.c
@@ -0,0 +1,11 @@
+#include <term.h>
+
+int restartterm(const char * term, int fildes, int * errret)
+{
+ return -1;
+}
+
+/*
+XOPEN(400)
+LINK(curses)
+*/
diff --git a/src/term/restore_cursor.c b/src/term/restore_cursor.c
new file mode 100644
index 00000000..bf3b4731
--- /dev/null
+++ b/src/term/restore_cursor.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define restore_cursor tigetstr("rc")
+
+/** restore cursor to position of last sc **/
+
+/*
+TERMINFO_NAME(rc)
+TERMCAP_NAME(rc)
+XOPEN(400)
+*/
diff --git a/src/term/row_addr_glitch.c b/src/term/row_addr_glitch.c
new file mode 100644
index 00000000..84634aaf
--- /dev/null
+++ b/src/term/row_addr_glitch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define row_addr_glitch tigetflag("xvpa")
+
+/** only positive motion for TERMCAP(vpa)/TERMCAP(mvpa) **/
+
+/*
+TERMINFO_NAME(xvpa)
+TERMCAP_NAME(YD)
+XOPEN(400)
+*/
diff --git a/src/term/row_address.c b/src/term/row_address.c
new file mode 100644
index 00000000..26754554
--- /dev/null
+++ b/src/term/row_address.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define row_address tigetstr("vpa")
+
+/** set vertical position to absolute #1 **/
+
+/*
+TERMINFO_NAME(vpa)
+TERMCAP_NAME(cv)
+XOPEN(400)
+*/
diff --git a/src/term/save_cursor.c b/src/term/save_cursor.c
new file mode 100644
index 00000000..8f0cea8f
--- /dev/null
+++ b/src/term/save_cursor.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define save_cursor tigetstr("sc")
+
+/** save cursor position **/
+
+/*
+TERMINFO_NAME(sc)
+TERMCAP_NAME(sc)
+XOPEN(400)
+*/
diff --git a/src/term/scancode_escape.c b/src/term/scancode_escape.c
new file mode 100644
index 00000000..138716ad
--- /dev/null
+++ b/src/term/scancode_escape.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define scancode_escape tigetstr("scesc")
+
+/** escape for scancode emulation **/
+
+/*
+TERMINFO_NAME(scesc)
+TERMCAP_NAME(S7)
+XOPEN(400)
+*/
diff --git a/src/term/scroll_forward.c b/src/term/scroll_forward.c
new file mode 100644
index 00000000..61f6dfe5
--- /dev/null
+++ b/src/term/scroll_forward.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define scroll_forward tigetstr("ind")
+
+/** scroll text up **/
+
+/*
+TERMINFO_NAME(ind)
+TERMCAP_NAME(sf)
+XOPEN(400)
+*/
diff --git a/src/term/scroll_reverse.c b/src/term/scroll_reverse.c
new file mode 100644
index 00000000..f904abbb
--- /dev/null
+++ b/src/term/scroll_reverse.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define scroll_reverse tigetstr("ri")
+
+/** scroll text down **/
+
+/*
+TERMINFO_NAME(ri)
+TERMCAP_NAME(sr)
+XOPEN(400)
+*/
diff --git a/src/term/seT_top_margin.c b/src/term/seT_top_margin.c
new file mode 100644
index 00000000..e0d76b11
--- /dev/null
+++ b/src/term/seT_top_margin.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define seT_top_margin tigetstr("smgt")
+
+/** set top margin at current line **/
+
+/*
+TERMINFO_NAME(smgt)
+TERMCAP_NAME(Zo)
+XOPEN(400)
+*/
diff --git a/src/term/select_char_set.c b/src/term/select_char_set.c
new file mode 100644
index 00000000..5c1766dc
--- /dev/null
+++ b/src/term/select_char_set.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define select_char_set tigetstr("scs")
+
+/** select character set **/
+
+/*
+TERMINFO_NAME(scs)
+TERMCAP_NAME(Zj)
+XOPEN(400)
+*/
diff --git a/src/term/semi_auto_right_margin.c b/src/term/semi_auto_right_margin.c
new file mode 100644
index 00000000..3569aafb
--- /dev/null
+++ b/src/term/semi_auto_right_margin.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define semi_auto_right_margin tigetflag("sam")
+
+/** printing in last column causes TERMCAP(cr) **/
+
+/*
+TERMINFO_NAME(sam)
+TERMCAP_NAME(YE)
+XOPEN(400)
+*/
diff --git a/src/term/set0_des_seq.c b/src/term/set0_des_seq.c
new file mode 100644
index 00000000..478c2958
--- /dev/null
+++ b/src/term/set0_des_seq.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set0_des_seq tigetstr("s0ds")
+
+/** shift into codeset 0 (EUC set 0, ASCII) **/
+
+/*
+TERMINFO_NAME(s0ds)
+TERMCAP_NAME(s0)
+XOPEN(400)
+*/
diff --git a/src/term/set1_des_seq.c b/src/term/set1_des_seq.c
new file mode 100644
index 00000000..25711abc
--- /dev/null
+++ b/src/term/set1_des_seq.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set1_des_seq tigetstr("s1ds")
+
+/** shift into codeset 1 **/
+
+/*
+TERMINFO_NAME(s1ds)
+TERMCAP_NAME(s1)
+XOPEN(400)
+*/
diff --git a/src/term/set2_des_seq.c b/src/term/set2_des_seq.c
new file mode 100644
index 00000000..5a75adb0
--- /dev/null
+++ b/src/term/set2_des_seq.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set2_des_seq tigetstr("s2ds")
+
+/** shift into codeset 2 **/
+
+/*
+TERMINFO_NAME(s2ds)
+TERMCAP_NAME(s2)
+XOPEN(400)
+*/
diff --git a/src/term/set3_des_seq.c b/src/term/set3_des_seq.c
new file mode 100644
index 00000000..a7e15473
--- /dev/null
+++ b/src/term/set3_des_seq.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set3_des_seq tigetstr("s3ds")
+
+/** shift into codeset 3 **/
+
+/*
+TERMINFO_NAME(s3ds)
+TERMCAP_NAME(s3)
+XOPEN(400)
+*/
diff --git a/src/term/set_a_attributes.c b/src/term/set_a_attributes.c
new file mode 100644
index 00000000..ed93a68f
--- /dev/null
+++ b/src/term/set_a_attributes.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_a_attributes tigetstr("sgrl")
+
+/** define second set of video attributes #1-#6 **/
+
+/*
+TERMINFO_NAME(sgrl)
+TERMCAP_NAME(--)
+XOPEN(400)
+*/
diff --git a/src/term/set_a_background.c b/src/term/set_a_background.c
new file mode 100644
index 00000000..045d31f0
--- /dev/null
+++ b/src/term/set_a_background.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_a_background tigetstr("setab")
+
+/** set background color to #1 using ANSI escape **/
+
+/*
+TERMINFO_NAME(setab)
+TERMCAP_NAME(AB)
+XOPEN(400)
+*/
diff --git a/src/term/set_a_foreground.c b/src/term/set_a_foreground.c
new file mode 100644
index 00000000..1ef486f5
--- /dev/null
+++ b/src/term/set_a_foreground.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_a_foreground tigetstr("setaf")
+
+/** set foreground color to #1 using ANSI escape **/
+
+/*
+TERMINFO_NAME(setaf)
+TERMCAP_NAME(AF)
+XOPEN(400)
+*/
diff --git a/src/term/set_attributes.c b/src/term/set_attributes.c
new file mode 100644
index 00000000..760ad56d
--- /dev/null
+++ b/src/term/set_attributes.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_attributes tigetstr("sgr")
+
+/** define first set of video attributes #1-#9 **/
+
+/*
+TERMINFO_NAME(sgr)
+TERMCAP_NAME(sa)
+XOPEN(400)
+*/
diff --git a/src/term/set_background.c b/src/term/set_background.c
new file mode 100644
index 00000000..3a7639da
--- /dev/null
+++ b/src/term/set_background.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_background tigetstr("setb")
+
+/** set background color to #1 **/
+
+/*
+TERMINFO_NAME(setb)
+TERMCAP_NAME(Sb)
+XOPEN(400)
+*/
diff --git a/src/term/set_bottom_margin.c b/src/term/set_bottom_margin.c
new file mode 100644
index 00000000..2eee21a3
--- /dev/null
+++ b/src/term/set_bottom_margin.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_bottom_margin tigetstr("smgb")
+
+/** set bottom margin at current line **/
+
+/*
+TERMINFO_NAME(smgb)
+TERMCAP_NAME(Zk)
+XOPEN(400)
+*/
diff --git a/src/term/set_bottom_margin_parm.c b/src/term/set_bottom_margin_parm.c
new file mode 100644
index 00000000..f72acbea
--- /dev/null
+++ b/src/term/set_bottom_margin_parm.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_bottom_margin_parm tigetstr("smgbp")
+
+/** set bototm margin at line #1 or #2 lines from bottom **/
+
+/*
+TERMINFO_NAME(smgbp)
+TERMCAP_NAME(Zl)
+XOPEN(400)
+*/
diff --git a/src/term/set_clock.c b/src/term/set_clock.c
new file mode 100644
index 00000000..82429a8c
--- /dev/null
+++ b/src/term/set_clock.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_clock tigetstr("sclk")
+
+/** set clock to #1 hours, #2 minutes, #3 seconds **/
+
+/*
+TERMINFO_NAME(sclk)
+TERMCAP_NAME(SC)
+XOPEN(400)
+*/
diff --git a/src/term/set_color_band.c b/src/term/set_color_band.c
new file mode 100644
index 00000000..c9f192d6
--- /dev/null
+++ b/src/term/set_color_band.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_color_band tigetstr("setcolor")
+
+/** change to ribbon color #1 **/
+
+/*
+TERMINFO_NAME(setcolor)
+TERMCAP_NAME(Yz)
+XOPEN(400)
+*/
diff --git a/src/term/set_color_pair.c b/src/term/set_color_pair.c
new file mode 100644
index 00000000..60c3e585
--- /dev/null
+++ b/src/term/set_color_pair.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_color_pair tigetstr("scp")
+
+/** set current color pair to #1 **/
+
+/*
+TERMINFO_NAME(scp)
+TERMCAP_NAME(sp)
+XOPEN(400)
+*/
diff --git a/src/term/set_curterm.c b/src/term/set_curterm.c
new file mode 100644
index 00000000..5342f05a
--- /dev/null
+++ b/src/term/set_curterm.c
@@ -0,0 +1,11 @@
+#include <term.h>
+
+TERMINAL * set_curterm(TERMINAL * nterm)
+{
+ return cur_term;
+}
+
+/*
+XOPEN(400)
+LINK(curses)
+*/
diff --git a/src/term/set_foreground.c b/src/term/set_foreground.c
new file mode 100644
index 00000000..2bbcb67a
--- /dev/null
+++ b/src/term/set_foreground.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_foreground tigetstr("setf")
+
+/** set foreground color to #1 **/
+
+/*
+TERMINFO_NAME(setf)
+TERMCAP_NAME(Sf)
+XOPEN(400)
+*/
diff --git a/src/term/set_left_margin.c b/src/term/set_left_margin.c
new file mode 100644
index 00000000..3f28e5e6
--- /dev/null
+++ b/src/term/set_left_margin.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_left_margin tigetstr("smgl")
+
+/** set left margin at current column **/
+
+/*
+TERMINFO_NAME(smgl)
+TERMCAP_NAME(ML)
+XOPEN(400)
+*/
diff --git a/src/term/set_left_margin_parm.c b/src/term/set_left_margin_parm.c
new file mode 100644
index 00000000..cb62f7d6
--- /dev/null
+++ b/src/term/set_left_margin_parm.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_left_margin_parm tigetstr("smglp")
+
+/** set left (right) margin at column #1 (#2) **/
+
+/*
+TERMINFO_NAME(smglp)
+TERMCAP_NAME(Zm)
+XOPEN(400)
+*/
diff --git a/src/term/set_lr_margin.c b/src/term/set_lr_margin.c
new file mode 100644
index 00000000..dbc287b2
--- /dev/null
+++ b/src/term/set_lr_margin.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_lr_margin tigetstr("smglr")
+
+/** set both left and right margins **/
+
+/*
+TERMINFO_NAME(smglr)
+TERMCAP_NAME(ML)
+XOPEN(400)
+*/
diff --git a/src/term/set_page_length.c b/src/term/set_page_length.c
new file mode 100644
index 00000000..46d39852
--- /dev/null
+++ b/src/term/set_page_length.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_page_length tigetstr("slines")
+
+/** set page length to #1 lines **/
+
+/*
+TERMINFO_NAME(slines)
+TERMCAP_NAME(YZ)
+XOPEN(400)
+*/
diff --git a/src/term/set_pglen_inch.c b/src/term/set_pglen_inch.c
new file mode 100644
index 00000000..f43e9bec
--- /dev/null
+++ b/src/term/set_pglen_inch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_pglen_inch tigetstr("slength")
+
+/** set page length to #1 hundredths of an inch **/
+
+/*
+TERMINFO_NAME(slength)
+TERMCAP_NAME(YI)
+XOPEN(400)
+*/
diff --git a/src/term/set_right_margin.c b/src/term/set_right_margin.c
new file mode 100644
index 00000000..c6e18ad9
--- /dev/null
+++ b/src/term/set_right_margin.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_right_margin tigetstr("smgr")
+
+/** set right margin at current column **/
+
+/*
+TERMINFO_NAME(smgr)
+TERMCAP_NAME(MR)
+XOPEN(400)
+*/
diff --git a/src/term/set_right_margin_parm.c b/src/term/set_right_margin_parm.c
new file mode 100644
index 00000000..37fae0ac
--- /dev/null
+++ b/src/term/set_right_margin_parm.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_right_margin_parm tigetstr("smgrp")
+
+/** set right margin at column #1 **/
+
+/*
+TERMINFO_NAME(smgrp)
+TERMCAP_NAME(Zn)
+XOPEN(400)
+*/
diff --git a/src/term/set_tab.c b/src/term/set_tab.c
new file mode 100644
index 00000000..6e0515cf
--- /dev/null
+++ b/src/term/set_tab.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_tab tigetstr("hts")
+
+/** set a tab in all rows at the current column **/
+
+/*
+TERMINFO_NAME(hts)
+TERMCAP_NAME(st)
+XOPEN(400)
+*/
diff --git a/src/term/set_tb_margin.c b/src/term/set_tb_margin.c
new file mode 100644
index 00000000..ee6aeb01
--- /dev/null
+++ b/src/term/set_tb_margin.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_tb_margin tigetstr("smgtb")
+
+/** sets both top and bottom margins **/
+
+/*
+TERMINFO_NAME(smgtb)
+TERMCAP_NAME(MT)
+XOPEN(400)
+*/
diff --git a/src/term/set_top_margin_parm.c b/src/term/set_top_margin_parm.c
new file mode 100644
index 00000000..2a994cfe
--- /dev/null
+++ b/src/term/set_top_margin_parm.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_top_margin_parm tigetstr("smgtp")
+
+/** set top (bottom) margin at line #1 (#2) **/
+
+/*
+TERMINFO_NAME(smgtp)
+TERMCAP_NAME(Zp)
+XOPEN(400)
+*/
diff --git a/src/term/set_window.c b/src/term/set_window.c
new file mode 100644
index 00000000..eb1e1a44
--- /dev/null
+++ b/src/term/set_window.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define set_window tigetstr("wind")
+
+/** current window is lines #1-#2, columns #3-#4 **/
+
+/*
+TERMINFO_NAME(wind)
+TERMCAP_NAME(wi)
+XOPEN(400)
+*/
diff --git a/src/term/setupterm.c b/src/term/setupterm.c
new file mode 100644
index 00000000..f983749c
--- /dev/null
+++ b/src/term/setupterm.c
@@ -0,0 +1,11 @@
+#include <term.h>
+
+int setupterm(char * term, int fildes, int * erret)
+{
+ return -1;
+}
+
+/*
+XOPEN(400)
+LINK(curses)
+*/
diff --git a/src/term/start_bit_image.c b/src/term/start_bit_image.c
new file mode 100644
index 00000000..233af083
--- /dev/null
+++ b/src/term/start_bit_image.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define start_bit_image tigetstr("sbim")
+
+/** start printing bit image graphics **/
+
+/*
+TERMINFO_NAME(sbim)
+TERMCAP_NAME(Zq)
+XOPEN(400)
+*/
diff --git a/src/term/start_char_set_def.c b/src/term/start_char_set_def.c
new file mode 100644
index 00000000..bb95da8b
--- /dev/null
+++ b/src/term/start_char_set_def.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define start_char_set_def tigetstr("scsd")
+
+/** start definition of a character set **/
+
+/*
+TERMINFO_NAME(scsd)
+TERMCAP_NAME(Zr)
+XOPEN(400)
+*/
diff --git a/src/term/status_line_esc_ok.c b/src/term/status_line_esc_ok.c
new file mode 100644
index 00000000..bab11646
--- /dev/null
+++ b/src/term/status_line_esc_ok.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define status_line_esc_ok tigetflag("eslok")
+
+/** escape can be used on the status line **/
+
+/*
+TERMINFO_NAME(eslok)
+TERMCAP_NAME(es)
+XOPEN(400)
+*/
diff --git a/src/term/stop_bit_image.c b/src/term/stop_bit_image.c
new file mode 100644
index 00000000..8bab6f8a
--- /dev/null
+++ b/src/term/stop_bit_image.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define stop_bit_image tigetstr("rbim")
+
+/** end printing bit image graphics **/
+
+/*
+TERMINFO_NAME(rbim)
+TERMCAP_NAME(Zs)
+XOPEN(400)
+*/
diff --git a/src/term/stop_char_set_def.c b/src/term/stop_char_set_def.c
new file mode 100644
index 00000000..20e7e60d
--- /dev/null
+++ b/src/term/stop_char_set_def.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define stop_char_set_def tigetstr("rcsd")
+
+/** end definition of a character set **/
+
+/*
+TERMINFO_NAME(rcsd)
+TERMCAP_NAME(Zt)
+XOPEN(400)
+*/
diff --git a/src/term/subscript_characters.c b/src/term/subscript_characters.c
new file mode 100644
index 00000000..1e1a7487
--- /dev/null
+++ b/src/term/subscript_characters.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define subscript_characters tigetstr("subcs")
+
+/** list of "subscriptable" characters **/
+
+/*
+TERMINFO_NAME(subcs)
+TERMCAP_NAME(Zu)
+XOPEN(400)
+*/
diff --git a/src/term/superscript_characters.c b/src/term/superscript_characters.c
new file mode 100644
index 00000000..50faf5a9
--- /dev/null
+++ b/src/term/superscript_characters.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define superscript_characters tigetstr("supcs")
+
+/** list of "superscriptable" characters **/
+
+/*
+TERMINFO_NAME(supcs)
+TERMCAP_NAME(Zv)
+XOPEN(400)
+*/
diff --git a/src/term/tab.c b/src/term/tab.c
new file mode 100644
index 00000000..f1b63cbe
--- /dev/null
+++ b/src/term/tab.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define tab tigetstr("ht")
+
+/** tab to next 8-space hardware tab stop **/
+
+/*
+TERMINFO_NAME(ht)
+TERMCAP_NAME(ta)
+XOPEN(400)
+*/
diff --git a/src/term/tgetent.c b/src/term/tgetent.c
new file mode 100644
index 00000000..ab9a677f
--- /dev/null
+++ b/src/term/tgetent.c
@@ -0,0 +1,14 @@
+#include <term.h>
+#include "curses.h"
+
+int tgetent(char * bp, const char * name)
+{
+ (void)bp;
+ /* ??? */
+ return ERR;
+}
+
+/*
+XOPEN(400, 700)
+LINK(curses)
+*/
diff --git a/src/term/tgetflag.c b/src/term/tgetflag.c
new file mode 100644
index 00000000..35521777
--- /dev/null
+++ b/src/term/tgetflag.c
@@ -0,0 +1,62 @@
+#include <term.h>
+#include "stddef.h"
+
+int tgetflag(char id[2])
+{
+ const struct {
+ char tc[3];
+ char ti[8];
+ } map[] = {
+ { "bw", "bw" },
+ { "am", "am" },
+ { "ut", "bce" },
+ { "cc", "ccc" },
+ { "xs", "xhp" },
+ { "YA", "xhpa" },
+ { "YF", "cpix" },
+ { "YB", "crxm" },
+ { "xt", "xt" },
+ { "xn", "xenl" },
+ { "eo", "eo" },
+ { "gn", "gn" },
+ { "hc", "hc" },
+ { "HC", "chts" },
+ { "km", "km" },
+ { "YC", "daisy" },
+ { "hs", "hs" },
+ { "hl", "hls" },
+ { "in", "in" },
+ { "YG", "lpix" },
+ { "da", "da" },
+ { "db", "db" },
+ { "mi", "mir" },
+ { "ms", "msgr" },
+ { "nx", "nxon" },
+ { "xb", "xsb" },
+ { "NP", "npc" },
+ { "ND", "ndscr" },
+ { "NR", "nrrmc" },
+ { "os", "os" },
+ { "5i", "mc5i" },
+ { "YD", "xvpa" },
+ { "YE", "sam" },
+ { "es", "eslok" },
+ { "hz", "hz" },
+ { "ul", "ul" },
+ { "xo", "xon" },
+ };
+ size_t i = 0;
+
+ for (i = 0; i < sizeof(map) / sizeof(map[0]); i++) {
+ if (map[i].tc[0] == id[0] && map[i].tc[1] == 1) {
+ return tigetflag(map[i].ti);
+ }
+ }
+
+ return -1;
+}
+
+/*
+XOPEN(400, 700)
+LINK(curses)
+*/
diff --git a/src/term/tgetnum.c b/src/term/tgetnum.c
new file mode 100644
index 00000000..e5fca9cb
--- /dev/null
+++ b/src/term/tgetnum.c
@@ -0,0 +1,58 @@
+#include <term.h>
+#include "stddef.h"
+
+int tgetnum(char id[2])
+{
+ size_t i;
+ const struct {
+ char ti[3];
+ char tc[8];
+ } map[] = {
+ { "Yo", "bitwin" },
+ { "Yp", "bitype" },
+ { "Ya", "bufsz" },
+ { "BT", "btns" },
+ { "co", "cols" },
+ { "Yc", "spinh" },
+ { "Yb", "spinv" },
+ { "it", "it" },
+ { "lh", "lh" },
+ { "lw", "lw" },
+ { "li", "lines" },
+ { "lm", "lm" },
+ { "ma", "ma" },
+ { "sg", "xmc" },
+ { "Co", "colors" },
+ { "Yd", "maddr" },
+ { "Ye", "mjump" },
+ { "pa", "pairs" },
+ { "MW", "wnum" },
+ { "Yf", "mcs" },
+ { "Yg", "mls" },
+ { "NC", "ncv" },
+ { "Nl", "nlab" },
+ { "Yh", "npins" },
+ { "Yi", "orc" },
+ { "Yj", "orl" },
+ { "Yk", "orhi" },
+ { "Yl", "orvi" },
+ { "pb", "pb" },
+ { "Ym", "cps" },
+ { "vt", "vt" },
+ { "Yn", "widcs" },
+ { "ws", "wsl" },
+ };
+
+ for (i = 0; i < sizeof(map) / sizeof(map[0]); i++) {
+ if (map[i].tc[0] == id[0] && map[i].tc[1] == id[1]) {
+ return tigetnum(map[i].tc);
+ }
+ }
+
+ return -1;
+}
+
+/*
+XOPEN(400, 700)
+LINK(curses)
+*/
diff --git a/src/term/tgetstr.c b/src/term/tgetstr.c
new file mode 100644
index 00000000..19a42334
--- /dev/null
+++ b/src/term/tgetstr.c
@@ -0,0 +1,424 @@
+#include <term.h>
+#include "string.h"
+
+char * tgetstr(char id[2], char ** area)
+{
+ char *str = NULL;
+ size_t i;
+ const struct {
+ char tc[3];
+ char ti[8];
+ } map[] = {
+ /* string variables */
+ { "ac", "acsc" },
+ { "S8", "scesa" },
+ { "bt", "cbt" },
+ { "bl", "bel" },
+ { "Yv", "bicr" },
+ { "Zz", "binel" },
+ { "Xy", "birep" },
+ { "cr", "cr" },
+ { "ZA", "cpi" },
+ { "ZB", "lpi" },
+ { "ZC", "chr" },
+ { "ZD", "cvr" },
+ { "cs", "csr" },
+ { "rP", "rmp" },
+ { "Zy", "csnm" },
+ { "ct", "tbc" },
+ { "MC", "mgc" },
+ { "cl", "clear" },
+ { "cb", "ell" },
+ { "ce", "el" },
+ { "cd", "ed" },
+ { "ci", "csin" },
+ { "Yw", "colornm" },
+ { "ch", "hpa" },
+ { "CC", "cmdch" },
+ { "CW", "cwin" },
+ { "cm", "cup" },
+ { "do", "cudl" },
+ { "ho", "home" },
+ { "vi", "civis" },
+ { "le", "cubl" },
+ { "CM", "mrcup" },
+ { "ve", "cnorm" },
+ { "nd", "cufl" },
+ { "ll", "ll" },
+ { "up", "cuul" },
+ { "vs", "cvvis" },
+ { "Yx", "defbi" },
+ { "ZE", "defc" },
+ { "dc", "dchl" },
+ { "dl", "dll" },
+ { "dv", "devt" },
+ { "DI", "dial" },
+ { "ds", "dsl" },
+ { "DK", "dclk" },
+ { "S1", "dispc" },
+ { "hd", "hd" },
+ { "eA", "enacs" },
+ { "Yy", "endbi" },
+ { "as", "smacs" },
+ { "SA", "smam" },
+ { "mb", "blink" },
+ { "md", "bold" },
+ { "ti", "smcup" },
+ { "dm", "smdc" },
+ { "mh", "dim" },
+ { "ZF", "swidm" },
+ { "ZG", "sdrfq" },
+ { "im", "smir" },
+ { "ZH", "sitm" },
+ { "ZI", "slm" },
+ { "ZJ", "smicm" },
+ { "ZK", "snlq" },
+ { "ZL", "snrmq" },
+ { "S2", "smpch" },
+ { "mp", "prot" },
+ { "mr", "rev" },
+ { "S4", "smsc" },
+ { "mk", "invis" },
+ { "ZM", "sshm" },
+ { "so", "smso" },
+ { "ZN", "ssubm" },
+ { "ZO", "ssupm" },
+ { "us", "smul" },
+ { "ZP", "sum" },
+ { "SX", "smxon" },
+ { "ec", "ech" },
+ { "ae", "rmacs" },
+ { "RA", "rmam" },
+ { "me", "sgr0" },
+ { "te", "rmcup" },
+ { "ed", "rmdc" },
+ { "ZQ", "rwidm" },
+ { "ei", "rmir" },
+ { "ZR", "ritm" },
+ { "ZS", "rlm" },
+ { "ZT", "rmicm" },
+ { "S3", "rmpch" },
+ { "S5", "rmsc" },
+ { "ZU", "rshm" },
+ { "se", "rmso" },
+ { "ZV", "rsubm" },
+ { "ZW", "rsupm" },
+ { "ue", "rmul" },
+ { "ZX", "rum" },
+ { "RX", "rmxon" },
+ { "PA", "pause" },
+ { "fh", "hook" },
+ { "vb", "flash" },
+ { "ff", "ff" },
+ { "fs", "fsl" },
+ { "Gm", "getm" },
+ { "WG", "wingo" },
+ { "HU", "hup" },
+ { "i1", "is1" },
+ { "i2", "is2" },
+ { "i3", "is3" },
+ { "if", "if" },
+ { "iP", "iprog" },
+ { "IC", "initc" },
+ { "Ip", "initp" },
+ { "ic", "ichl" },
+ { "al", "ill" },
+ { "ip", "ip" },
+
+ /* key codes */
+ { "K1", "ka1" },
+ { "K3", "ka3" },
+ { "K2", "kb2" },
+ { "kb", "kbs" },
+ { "@1", "kbeg" },
+ { "kB", "kcbt" },
+ { "K4", "kc1" },
+ { "K5", "kc3" },
+ { "@2", "kcan" },
+ { "ka", "ktbc" },
+ { "kC", "kclr" },
+ { "@3", "kclo" },
+ { "@4", "kcmd" },
+ { "@5", "kcpy" },
+ { "@6", "kcrt" },
+ { "kt", "kctab" },
+ { "kD", "kdchl" },
+ { "kL", "kdll" },
+ { "kd", "kcudl" },
+ { "kM", "krmir" },
+ { "@7", "kend" },
+ { "@8", "kent" },
+ { "kE", "kel" },
+ { "kS", "ked" },
+ { "@9", "kext" },
+ { "k0", "kf0" },
+ { "k1", "kf1" },
+ { "k2", "kf2" },
+ { "k3", "kf3" },
+ { "k4", "kf4" },
+ { "k5", "kf5" },
+ { "k6", "kf6" },
+ { "k7", "kf7" },
+ { "k8", "kf8" },
+ { "k9", "kf9" },
+ { "ka", "kf10" },
+ { "kb", "kf11" },
+ { "kc", "kf12" },
+ { "kd", "kf13" },
+ { "ke", "kf14" },
+ { "kf", "kf15" },
+ { "kg", "kf16" },
+ { "kh", "kf17" },
+ { "ki", "kf18" },
+ { "kj", "kf19" },
+ { "kk", "kf20" },
+ { "kl", "kf21" },
+ { "km", "kf22" },
+ { "kn", "kf23" },
+ { "ko", "kf24" },
+ { "kp", "kf25" },
+ { "kq", "kf26" },
+ { "kr", "kf27" },
+ { "ks", "kf28" },
+ { "kt", "kf29" },
+ { "ku", "kf30" },
+ { "kv", "kf31" },
+ { "kw", "kf32" },
+ { "kx", "kf33" },
+ { "ky", "kf34" },
+ { "kz", "kf35" },
+ { "F0", "kf36" },
+ { "F1", "kf37" },
+ { "F2", "kf38" },
+ { "F3", "kf39" },
+ { "F4", "kf40" },
+ { "F5", "kf41" },
+ { "F6", "kf42" },
+ { "F7", "kf43" },
+ { "F8", "kf44" },
+ { "F9", "kf45" },
+ { "Fa", "kf46" },
+ { "Fb", "kf47" },
+ { "Fc", "kf48" },
+ { "Fd", "kf49" },
+ { "Fe", "kf50" },
+ { "Ff", "kf51" },
+ { "Fg", "kf52" },
+ { "Fh", "kf53" },
+ { "Fi", "kf54" },
+ { "Fj", "kf55" },
+ { "Fk", "kf56" },
+ { "Fl", "kf57" },
+ { "Fm", "kf58" },
+ { "Fn", "kf59" },
+ { "Fo", "kf60" },
+ { "Fp", "kf61" },
+ { "Fq", "kf62" },
+ { "Fr", "kf63" },
+ { "@0", "kfnd" },
+ { "%1", "khlp" },
+ { "kh", "khome" },
+ { "kI", "kichl" },
+ { "kA", "kill" },
+ { "kl", "kcubl" },
+ { "kH", "kll" },
+ { "%2", "kmrk" },
+ { "%3", "kmsg" },
+ { "Km", "kmous" },
+ { "%4", "kmov" },
+ { "%5", "knxt" },
+ { "kN", "knp" },
+ { "%6", "kopn" },
+ { "%7", "kopt" },
+ { "kP", "kpp" },
+ { "%8", "kprv" },
+ { "%9", "kprt" },
+ { "%0", "krdo" },
+ { "&1", "kref" },
+ { "&2", "krfr" },
+ { "&3", "krpl" },
+ { "&4", "krst" },
+ { "&5", "kres" },
+ { "kr", "kcufl" },
+ { "&6", "ksav" },
+ { "&9", "kBEG" },
+ { "&0", "kCAN" },
+ { "*1", "kCMD" },
+ { "*2", "kCPY" },
+ { "*3", "kCRT" },
+ { "*4", "kDC" },
+ { "*5", "kDL" },
+ { "*6", "kslt" },
+ { "*7", "kEND" },
+ { "*8", "kEOL" },
+ { "*9", "kEXT" },
+ { "kF", "kind" },
+ { "*0", "kFND" },
+ { "#1", "kHLP" },
+ { "#2", "kHOM" },
+ { "#3", "kIC" },
+ { "#4", "kLFT" },
+ { "%a", "kMSG" },
+ { "%b", "kMOV" },
+ { "%c", "kNXT" },
+ { "%d", "kOPT" },
+ { "%e", "kPRV" },
+ { "%f", "kPRT" },
+ { "kR", "kri" },
+ { "%g", "kRDO" },
+ { "%h", "kRPL" },
+ { "%i", "kRIT" },
+ { "%j", "kRES" },
+ { "!1", "kSAV" },
+ { "!2", "kSPD" },
+ { "kT", "khts" },
+ { "!3", "kUND" },
+ { "&7", "kspd" },
+ { "&8", "kund" },
+ { "ku", "kcuul" },
+ { "ke", "rmkx" },
+ { "ks", "smkx" },
+
+ /* more strings */
+ { "l0", "lf0" },
+ { "l1", "lf1" },
+ { "l2", "lf2" },
+ { "l3", "lf3" },
+ { "l4", "lf4" },
+ { "l5", "lf5" },
+ { "l6", "lf6" },
+ { "l7", "lf7" },
+ { "l8", "lf8" },
+ { "l9", "lf9" },
+ { "la", "lf10" },
+ { "Lf", "fln" },
+ { "LF", "rmln" },
+ { "LO", "smln" },
+ { "mo", "rmm" },
+ { "mm", "smm" },
+ { "ZY", "mhpa" },
+ { "ZZ", "mcudl" },
+ { "Za", "mcubl" },
+ { "Zb", "mcufl" },
+ { "Zc", "mvpa" },
+ { "Zd", "mcuul" },
+ { "Mi", "minfo" },
+ { "nw", "nel" },
+ { "Ze", "porder" },
+ { "oc", "oc" },
+ { "op", "op" },
+ { "pc", "pad" },
+ { "DC", "dch" },
+ { "DL", "dl" },
+ { "DO", "cud" },
+ { "Zf", "mcud" },
+ { "IC", "ich" },
+ { "SF", "indn" },
+ { "AL", "il" },
+ { "LE", "cub" },
+ { "Zg", "mcub" },
+ { "RI", "cuf" },
+ { "Zh", "mcuf" },
+ { "SR", "rin" },
+ { "UP", "cuu" },
+ { "Zi", "mcuu" },
+ { "S6", "pctrm" },
+ { "pk", "pfkey" },
+ { "pl", "pfloc" },
+ { "xl", "pfxl" },
+ { "px", "pfx" },
+ { "pn", "pln" },
+ { "ps", "mc0" },
+ { "p0", "mc5p" },
+ { "pf", "mc4" },
+ { "po", "mc5" },
+ { "PU", "pulse" },
+ { "QD", "qdial" },
+ { "RC", "rmclk" },
+ { "rp", "rep" },
+ { "RF", "rfi" },
+ { "RQ", "reqmp" },
+ { "r1", "rs1" },
+ { "r2", "rs2" },
+ { "r3", "rs3" },
+ { "rf", "rf" },
+ { "rc", "rc" },
+ { "cv", "vpa" },
+ { "sc", "sc" },
+ { "S7", "scesc" },
+ { "sf", "ind" },
+ { "sr", "ri" },
+ { "Zj", "scs" },
+ { "s0", "s0ds" },
+ { "s1", "s1ds" },
+ { "s2", "s2ds" },
+ { "s3", "s3ds" },
+ { "AB", "setab" },
+ { "AF", "setaf" },
+ { "sa", "sgr" },
+ { "Sb", "setb" },
+ { "Zk", "smgb" },
+ { "Zl", "smgbp" },
+ { "SC", "sclk" },
+ { "Yz", "setcolor" },
+ { "sp", "scp" },
+ { "Sf", "setf" },
+ { "ML", "smgl" }, /* note: duplicate */
+ { "Zm", "smglp" },
+ { "ML", "smgrl" }, /* note: duplicate */
+ { "YZ", "slines" },
+ { "YI", "slength" },
+ { "MR", "smgr" },
+ { "Zn", "smgrp" },
+ { "st", "hts" },
+ { "MT", "smgtb" },
+ { "Zo", "smgt" },
+ { "Zp", "smgtp" },
+ { "wi", "wind" },
+ { "Zq", "sbim" },
+ { "Zr", "scsd" },
+ { "Zs", "rbim" },
+ { "Zt", "rcsd" },
+ { "Zu", "subcs" },
+ { "Zv", "supcs" },
+ { "ta", "ht" },
+ { "Zw", "docr" },
+ { "ts", "tsl" },
+ { "u0", "u0" },
+ { "u1", "u1" },
+ { "u2", "u2" },
+ { "u3", "u3" },
+ { "u4", "u4" },
+ { "u5", "u5" },
+ { "u6", "u6" },
+ { "u7", "u7" },
+ { "u8", "u8" },
+ { "u9", "u9" },
+ { "uc", "uc" },
+ { "hu", "hu" },
+ { "WA", "wait" },
+ { "XF", "xoffc" },
+ { "XN", "xonc" },
+ { "Zx", "zerom" },
+ };
+
+ for (i = 0; i < sizeof(map) / sizeof(map[0]); i++) {
+ if (map[i].tc[0] == id[0] && map[i].tc[1] == id[1]) {
+ str = tigetstr(map[i].ti);
+ break;
+ }
+ }
+
+ /* TODO: the rest isn't quite right */
+ if (str != NULL) {
+ strcpy(*area, str);
+ *area += strlen(*area);
+ }
+
+ return str;
+}
+
+/*
+XOPEN(400, 700)
+LINK(curses)
+*/
diff --git a/src/term/tgoto.c b/src/term/tgoto.c
new file mode 100644
index 00000000..ed0b6eae
--- /dev/null
+++ b/src/term/tgoto.c
@@ -0,0 +1,11 @@
+#include <term.h>
+
+char * tgoto(char * cap, int col, int row)
+{
+ return tiparam(cap, col, row);
+}
+
+/*
+XOPEN(400, 700)
+LINK(curses)
+*/
diff --git a/src/term/these_cause_cr.c b/src/term/these_cause_cr.c
new file mode 100644
index 00000000..e7632e06
--- /dev/null
+++ b/src/term/these_cause_cr.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define these_cause_cr tigetstr("docr")
+
+/** printing any of these characters causes TERMCAP(cr) **/
+
+/*
+TERMINFO_NAME(docr)
+TERMCAP_NAME(Zw)
+XOPEN(400)
+*/
diff --git a/src/term/tigetflag.c b/src/term/tigetflag.c
new file mode 100644
index 00000000..be8a7405
--- /dev/null
+++ b/src/term/tigetflag.c
@@ -0,0 +1,11 @@
+#include <term.h>
+
+int tigetflag(const char * capname)
+{
+ return -1;
+}
+
+/*
+XOPEN(400)
+LINK(curses)
+*/
diff --git a/src/term/tigetnum.c b/src/term/tigetnum.c
new file mode 100644
index 00000000..bd8d28a3
--- /dev/null
+++ b/src/term/tigetnum.c
@@ -0,0 +1,11 @@
+#include <term.h>
+
+int tigetnum(const char * capname)
+{
+ return -1;
+}
+
+/*
+XOPEN(400)
+LINK(curses)
+*/
diff --git a/src/term/tigetstr.c b/src/term/tigetstr.c
new file mode 100644
index 00000000..46d4f029
--- /dev/null
+++ b/src/term/tigetstr.c
@@ -0,0 +1,11 @@
+#include <term.h>
+
+char * tigetstr(const char * capname)
+{
+ return 0;
+}
+
+/*
+XOPEN(400)
+LINK(curses)
+*/
diff --git a/src/term/tilde_glitch.c b/src/term/tilde_glitch.c
new file mode 100644
index 00000000..8e76475f
--- /dev/null
+++ b/src/term/tilde_glitch.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define tilde_glitch tigetflag("hz")
+
+/** can't print tilde (~) **/
+
+/*
+TERMINFO_NAME(hz)
+TERMCAP_NAME(hz)
+XOPEN(400)
+*/
diff --git a/src/term/tiparm.c b/src/term/tiparm.c
new file mode 100644
index 00000000..c3ffe59c
--- /dev/null
+++ b/src/term/tiparm.c
@@ -0,0 +1,11 @@
+#include <term.h>
+
+char * tiparm(const char * cap, ...)
+{
+ return 0;
+}
+
+/*
+XOPEN(400)
+LINK(curses)
+*/
diff --git a/src/term/to_status_line.c b/src/term/to_status_line.c
new file mode 100644
index 00000000..e2d8e355
--- /dev/null
+++ b/src/term/to_status_line.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define to_status_line tigetstr("tsl")
+
+/** go to status line, col #1 **/
+
+/*
+TERMINFO_NAME(tsl)
+TERMCAP_NAME(ts)
+XOPEN(400)
+*/
diff --git a/src/term/tone.c b/src/term/tone.c
new file mode 100644
index 00000000..3f59e80c
--- /dev/null
+++ b/src/term/tone.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define tone tigetstr("tone")
+
+/** select touch tone dialing **/
+
+/*
+TERMINFO_NAME(tone)
+TERMCAP_NAME(TO)
+XOPEN(400)
+*/
diff --git a/src/term/tparm.c b/src/term/tparm.c
new file mode 100644
index 00000000..af97ce1d
--- /dev/null
+++ b/src/term/tparm.c
@@ -0,0 +1,11 @@
+#include <term.h>
+
+char * tiparm(const char * cap, long p1, long p2, long p3, long p4, long p5, long p6, long p7, long p8, long p9)
+{
+ return 0;
+}
+
+/*
+XOPEN(400)
+LINK(curses)
+*/
diff --git a/src/term/tputs.c b/src/term/tputs.c
new file mode 100644
index 00000000..6e060580
--- /dev/null
+++ b/src/term/tputs.c
@@ -0,0 +1,11 @@
+#include <term.h>
+
+int tputs(const char * str, int affcnt, int (*putfunc)(int))
+{
+ return -1;
+}
+
+/*
+XOPEN(400)
+LINK(curses)
+*/
diff --git a/src/term/transparent_underline.c b/src/term/transparent_underline.c
new file mode 100644
index 00000000..94700bd9
--- /dev/null
+++ b/src/term/transparent_underline.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define transparent_underline tigetflag("ul")
+
+/** underline character overstrikes **/
+
+/*
+TERMINFO_NAME(ul)
+TERMCAP_NAME(ul)
+XOPEN(400)
+*/
diff --git a/src/term/txttoc.sh b/src/term/txttoc.sh
new file mode 100644
index 00000000..7b360b1d
--- /dev/null
+++ b/src/term/txttoc.sh
@@ -0,0 +1,15 @@
+while read long_name terminfo_name termcap_name description; do
+ cat <<-EOF > $long_name.c
+ #include <curses.h>
+
+ #define $long_name tigetstr("$terminfo_name")
+
+ /** $description **/
+
+ /*
+ TERMINFO_NAME($terminfo_name)
+ TERMCAP_NAME($termcap_name)
+ XOPEN(400)
+ */
+EOF
+done
diff --git a/src/term/underline_char.c b/src/term/underline_char.c
new file mode 100644
index 00000000..f21a55a5
--- /dev/null
+++ b/src/term/underline_char.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define underline_char tigetstr("uc")
+
+/** underscore one character and move past it **/
+
+/*
+TERMINFO_NAME(uc)
+TERMCAP_NAME(uc)
+XOPEN(400)
+*/
diff --git a/src/term/up_half_line.c b/src/term/up_half_line.c
new file mode 100644
index 00000000..17b7fae4
--- /dev/null
+++ b/src/term/up_half_line.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define up_half_line tigetstr("hu")
+
+/** half-line up (reverse 1/2 linefeed) **/
+
+/*
+TERMINFO_NAME(hu)
+TERMCAP_NAME(hu)
+XOPEN(400)
+*/
diff --git a/src/term/user0.c b/src/term/user0.c
new file mode 100644
index 00000000..9eb6d0a9
--- /dev/null
+++ b/src/term/user0.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define user0 tigetstr("u0")
+
+/** user string 0 **/
+
+/*
+TERMINFO_NAME(u0)
+TERMCAP_NAME(u0)
+XOPEN(400)
+*/
diff --git a/src/term/user1.c b/src/term/user1.c
new file mode 100644
index 00000000..6e91c80a
--- /dev/null
+++ b/src/term/user1.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define user1 tigetstr("u1")
+
+/** user string 1 **/
+
+/*
+TERMINFO_NAME(u1)
+TERMCAP_NAME(u1)
+XOPEN(400)
+*/
diff --git a/src/term/user2.c b/src/term/user2.c
new file mode 100644
index 00000000..c32b1a44
--- /dev/null
+++ b/src/term/user2.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define user2 tigetstr("u2")
+
+/** user string 2 **/
+
+/*
+TERMINFO_NAME(u2)
+TERMCAP_NAME(u2)
+XOPEN(400)
+*/
diff --git a/src/term/user3.c b/src/term/user3.c
new file mode 100644
index 00000000..8f275a8f
--- /dev/null
+++ b/src/term/user3.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define user3 tigetstr("u3")
+
+/** user string 3 **/
+
+/*
+TERMINFO_NAME(u3)
+TERMCAP_NAME(u3)
+XOPEN(400)
+*/
diff --git a/src/term/user4.c b/src/term/user4.c
new file mode 100644
index 00000000..a31a12e4
--- /dev/null
+++ b/src/term/user4.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define user4 tigetstr("u4")
+
+/** user string 4 **/
+
+/*
+TERMINFO_NAME(u4)
+TERMCAP_NAME(u4)
+XOPEN(400)
+*/
diff --git a/src/term/user5.c b/src/term/user5.c
new file mode 100644
index 00000000..cb20f48b
--- /dev/null
+++ b/src/term/user5.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define user5 tigetstr("u5")
+
+/** user string 5 **/
+
+/*
+TERMINFO_NAME(u5)
+TERMCAP_NAME(u5)
+XOPEN(400)
+*/
diff --git a/src/term/user6.c b/src/term/user6.c
new file mode 100644
index 00000000..52bc513c
--- /dev/null
+++ b/src/term/user6.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define user6 tigetstr("u6")
+
+/** user string 6 **/
+
+/*
+TERMINFO_NAME(u6)
+TERMCAP_NAME(u6)
+XOPEN(400)
+*/
diff --git a/src/term/user7.c b/src/term/user7.c
new file mode 100644
index 00000000..61ef91f7
--- /dev/null
+++ b/src/term/user7.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define user7 tigetstr("u7")
+
+/** user string 7 **/
+
+/*
+TERMINFO_NAME(u7)
+TERMCAP_NAME(u7)
+XOPEN(400)
+*/
diff --git a/src/term/user8.c b/src/term/user8.c
new file mode 100644
index 00000000..dff55403
--- /dev/null
+++ b/src/term/user8.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define user8 tigetstr("u8")
+
+/** user string 8 **/
+
+/*
+TERMINFO_NAME(u8)
+TERMCAP_NAME(u8)
+XOPEN(400)
+*/
diff --git a/src/term/user9.c b/src/term/user9.c
new file mode 100644
index 00000000..d7cc273c
--- /dev/null
+++ b/src/term/user9.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define user9 tigetstr("u9")
+
+/** user string 9 **/
+
+/*
+TERMINFO_NAME(u9)
+TERMCAP_NAME(u9)
+XOPEN(400)
+*/
diff --git a/src/term/virtual_terminal.c b/src/term/virtual_terminal.c
new file mode 100644
index 00000000..aac79647
--- /dev/null
+++ b/src/term/virtual_terminal.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define virtual_terminal tigetnum("vt")
+
+/** virtual terminal number **/
+
+/*
+TERMINFO_NAME(vt)
+TERMCAP_NAME(vt)
+XOPEN(400)
+*/
diff --git a/src/term/wait_tone.c b/src/term/wait_tone.c
new file mode 100644
index 00000000..c976c563
--- /dev/null
+++ b/src/term/wait_tone.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define wait_tone tigetstr("wait")
+
+/** wait for dial tone **/
+
+/*
+TERMINFO_NAME(wait)
+TERMCAP_NAME(WA)
+XOPEN(400)
+*/
diff --git a/src/term/wide_char_size.c b/src/term/wide_char_size.c
new file mode 100644
index 00000000..06b15c7e
--- /dev/null
+++ b/src/term/wide_char_size.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define wide_char_size tigetnum("widcs")
+
+/** character step size when in double-wide mode **/
+
+/*
+TERMINFO_NAME(widcs)
+TERMCAP_NAME(Yn)
+XOPEN(400)
+*/
diff --git a/src/term/width_status_line.c b/src/term/width_status_line.c
new file mode 100644
index 00000000..7247b7e7
--- /dev/null
+++ b/src/term/width_status_line.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define width_status_line tigetnum("wsl")
+
+/** number of columns in a status line **/
+
+/*
+TERMINFO_NAME(wsl)
+TERMCAP_NAME(ws)
+XOPEN(400)
+*/
diff --git a/src/term/xoff_character.c b/src/term/xoff_character.c
new file mode 100644
index 00000000..92072666
--- /dev/null
+++ b/src/term/xoff_character.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define xoff_character tigetstr("xoffc")
+
+/** x-off character **/
+
+/*
+TERMINFO_NAME(xoffc)
+TERMCAP_NAME(XF)
+XOPEN(400)
+*/
diff --git a/src/term/xon_character.c b/src/term/xon_character.c
new file mode 100644
index 00000000..6db26572
--- /dev/null
+++ b/src/term/xon_character.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define xon_character tigetstr("xonc")
+
+/** x-on character **/
+
+/*
+TERMINFO_NAME(xonc)
+TERMCAP_NAME(XN)
+XOPEN(400)
+*/
diff --git a/src/term/xon_xoff.c b/src/term/xon_xoff.c
new file mode 100644
index 00000000..8742c50a
--- /dev/null
+++ b/src/term/xon_xoff.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define xon_xoff tigetflag("xon")
+
+/** terminal uses xon/xoff handshaking **/
+
+/*
+TERMINFO_NAME(xon)
+TERMCAP_NAME(xo)
+XOPEN(400)
+*/
diff --git a/src/term/zero_motion.c b/src/term/zero_motion.c
new file mode 100644
index 00000000..1e653d4a
--- /dev/null
+++ b/src/term/zero_motion.c
@@ -0,0 +1,11 @@
+#include <curses.h>
+
+#define zero_motion tigetstr("zerom")
+
+/** no motion for the subsequent character **/
+
+/*
+TERMINFO_NAME(zerom)
+TERMCAP_NAME(Zx)
+XOPEN(400)
+*/