Fri Jan 25 12:52:45 2013 UTC ()
Add descriptions for terminfo keys to term.h
These are extracted by genman and placed into the compiled terminfo.5
Fixes PR lib/47090


(roy)
diff -r1.4 -r1.5 src/lib/libterminfo/genman
diff -r1.12 -r1.13 src/lib/libterminfo/term.h
diff -r1.17 -r1.18 src/lib/libterminfo/terminfo.5.in

cvs diff -r1.4 -r1.5 src/lib/libterminfo/genman (expand / switch to unified diff)

--- src/lib/libterminfo/genman 2010/10/12 12:57:51 1.4
+++ src/lib/libterminfo/genman 2013/01/25 12:52:45 1.5
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1#!/bin/sh 1#!/bin/sh
2# $NetBSD: genman,v 1.4 2010/10/12 12:57:51 christos Exp $ 2# $NetBSD: genman,v 1.5 2013/01/25 12:52:45 roy Exp $
3 3
4# Copyright (c) 2009 The NetBSD Foundation, Inc. 4# Copyright (c) 2009, 2013 The NetBSD Foundation, Inc.
5# 5#
6# This code is derived from software contributed to The NetBSD Foundation 6# This code is derived from software contributed to The NetBSD Foundation
7# by Roy Marples. 7# by Roy Marples.
8# 8#
9# Redistribution and use in source and binary forms, with or without 9# Redistribution and use in source and binary forms, with or without
10# modification, are permitted provided that the following conditions 10# modification, are permitted provided that the following conditions
11# are met: 11# are met:
12# 1. Redistributions of source code must retain the above copyright 12# 1. Redistributions of source code must retain the above copyright
13# notice, this list of conditions and the following disclaimer. 13# notice, this list of conditions and the following disclaimer.
14# 2. Redistributions in binary form must reproduce the above copyright 14# 2. Redistributions in binary form must reproduce the above copyright
15# notice, this list of conditions and the following disclaimer in the 15# notice, this list of conditions and the following disclaimer in the
16# documentation and/or other materials provided with the distribution. 16# documentation and/or other materials provided with the distribution.
17# 17#
@@ -37,27 +37,28 @@ TERMM=${1:-terminfo.5.in} @@ -37,27 +37,28 @@ TERMM=${1:-terminfo.5.in}
37TERMH=${2:-term.h} 37TERMH=${2:-term.h}
38TERMC=${3:-termcap_map.c} 38TERMC=${3:-termcap_map.c}
39 39
40gentab() 40gentab()
41{ 41{
42 local ti=$1 tc=$2 tab=$3 42 local ti=$1 tc=$2 tab=$3
43 43
44 # Generate a list of long names and codes 44 # Generate a list of long names and codes
45 $TOOL_SED -n \ 45 $TOOL_SED -n \
46 -e "s/#define t_\([^(]*\).*>$tab\[TICODE_\([^]]*\).*/\1 \2/p" \ 46 -e "s/#define t_\([^(]*\).*>$tab\[TICODE_\([^]]*\).*/\1 \2/p" \
47 $ti | $TOOL_SORT | while read name code foo; do 47 $ti | $TOOL_SORT | while read name code foo; do
48 cap=$($TOOL_SED -ne "s/.*{ \"\(..\)\", TICODE_$code }.*/\1/p" \ 48 cap=$($TOOL_SED -ne "s/.*{ \"\(..\)\", TICODE_$code }.*/\1/p" \
49 $tc | head -n 1) 49 $tc | head -n 1)
50 echo ".It Li \"$name\" Ta Sy \"\\&$code\" Ta Sy \"\\&$cap\"" 50 desc=$($TOOL_SED -ne "s/ \* $name\: \(.*\)/\1/p" $ti)
 51 echo ".It \"\\&$name\" Ta Sy \"\\&$code\" Ta Sy \"\\&$cap\" Ta \"\\&$desc\""
51 done 52 done
52} 53}
53 54
54boolcaps=$(gentab $TERMH $TERMC flags) 55boolcaps=$(gentab $TERMH $TERMC flags)
55numcaps=$(gentab $TERMH $TERMC nums) 56numcaps=$(gentab $TERMH $TERMC nums)
56strcaps=$(gentab $TERMH $TERMC strs) 57strcaps=$(gentab $TERMH $TERMC strs)
57 58
58echo ".\\\"DO NOT EDIT" 59echo ".\\\"DO NOT EDIT"
59echo ".\\\"Automatically generated from termcap.5.in" 60echo ".\\\"Automatically generated from termcap.5.in"
60echo ".\\\"" 61echo ".\\\""
61 62
62while read -r line; do 63while read -r line; do
63 case "$line" in 64 case "$line" in

cvs diff -r1.12 -r1.13 src/lib/libterminfo/term.h (expand / switch to unified diff)

--- src/lib/libterminfo/term.h 2012/05/29 00:27:59 1.12
+++ src/lib/libterminfo/term.h 2013/01/25 12:52:45 1.13
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1/* $NetBSD: term.h,v 1.12 2012/05/29 00:27:59 dholland Exp $ */ 1/* $NetBSD: term.h,v 1.13 2013/01/25 12:52:45 roy Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2009, 2010, 2011 The NetBSD Foundation, Inc. 4 * Copyright (c) 2009, 2010, 2011, 2013 The NetBSD Foundation, Inc.
5 * 5 *
6 * This code is derived from software contributed to The NetBSD Foundation 6 * This code is derived from software contributed to The NetBSD Foundation
7 * by Roy Marples. 7 * by Roy Marples.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the 15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution. 16 * documentation and/or other materials provided with the distribution.
17 * 17 *
@@ -143,26 +143,68 @@ enum TIFLAGS { @@ -143,26 +143,68 @@ enum TIFLAGS {
143#define no_esc_ctlc t_no_esc_ctlc(cur_term) 143#define no_esc_ctlc t_no_esc_ctlc(cur_term)
144#define no_pad_char t_no_pad_char(cur_term) 144#define no_pad_char t_no_pad_char(cur_term)
145#define non_dest_scroll_region t_non_dest_scroll_region(cur_term) 145#define non_dest_scroll_region t_non_dest_scroll_region(cur_term)
146#define non_rev_rmcup t_non_rev_rmcup(cur_term) 146#define non_rev_rmcup t_non_rev_rmcup(cur_term)
147#define over_strike t_over_strike(cur_term) 147#define over_strike t_over_strike(cur_term)
148#define prtr_silent t_prtr_silent(cur_term) 148#define prtr_silent t_prtr_silent(cur_term)
149#define row_addr_glitch t_row_addr_glitch(cur_term) 149#define row_addr_glitch t_row_addr_glitch(cur_term)
150#define semi_auto_right_margin t_semi_auto_right_margin(cur_term) 150#define semi_auto_right_margin t_semi_auto_right_margin(cur_term)
151#define status_line_esc_ok t_status_line_esc_ok(cur_term) 151#define status_line_esc_ok t_status_line_esc_ok(cur_term)
152#define tilde_glitch t_tilde_glitch(cur_term) 152#define tilde_glitch t_tilde_glitch(cur_term)
153#define transparent_underline t_transparent_underline(cur_term) 153#define transparent_underline t_transparent_underline(cur_term)
154#define xon_xoff t_xon_xoff(cur_term) 154#define xon_xoff t_xon_xoff(cur_term)
155 155
 156/*
 157 * BOOLEAN DESCRIPTIONS
 158 *
 159 * auto_left_margin: cub1 wraps from column 0 to last column
 160 * auto_right_margin: Terminal has automatic margins
 161 * back_color_erase: Screen erased with background colour
 162 * can_change: Terminal can re-define existing colour
 163 * ceol_standout_glitch: Standout not erased by overwriting (hp)
 164 * col_addr_glitch: Only positive motion for hpa/mhba caps
 165 * cpi_changes_res: Changing character pitch changes resolution
 166 * cr_cancels_micro_mode: Using cr turns off micro mode
 167 * dest_tabs_magic_smso: Destructive tabs, magic smso char (t1061)
 168 * eat_newline_glitch: Newline ignored after 80 columns (Concept)
 169 * erase_overstrike: Can erase overstrikes with a blank line
 170 * generic_type: Generic line type (e.g. dialup, switch)
 171 * hard_copy: Hardcopy terminal
 172 * hard_cursor: Cursor is hard to see
 173 * has_meta_key: Has a meta key (shift, sets parity bit)
 174 * has_print_wheel: Printer needs operator to change character set
 175 * has_status_line: Has extra "status line"
 176 * hue_light_saturation: Terminal only uses HLS colour notion (Tektronix)
 177 * insert_null_glitch: Insert mode distinguishes nulls
 178 * lpi_changes_yes: Changing line pitch changes resolution
 179 * memory_above: Display may be retained above the screen
 180 * memory_below: Display may be retained below the screen
 181 * move_insert_mode: Safe to move while in insert mode
 182 * move_standout_mode: Safe to move in standout modes
 183 * needs_xon_xoff: Padding won't work, xon/xoff required
 184 * no_esc_ctlc: Beehive (f1=escape, f2=ctrl C)
 185 * no_pad_char: Pad character doesn't exist
 186 * non_dest_scroll_region: Scrolling region is nondestructive
 187 * non_rev_rmcup: smcup does not reverse rmcup
 188 * over_strike: Terminal overstrikes on hard-copy terminal
 189 * prtr_silent: Printer won't echo on screen
 190 * row_addr_glitch: Only positive motion for vpa/mvpa caps
 191 * semi_auto_right_margin: Printing in last column causes cr
 192 * status_line_esc_ok: Escape can be used on the status line
 193 * tilde_glitch: Hazeltine; can't print tilde (~)
 194 * transparent_underline: Underline character overstrikes
 195 * xon_xoff: Terminal uses xon/xoff handshaking
 196*/
 197
156/* Define available terminfo numbers */ 198/* Define available terminfo numbers */
157enum TINUMS { 199enum TINUMS {
158 TICODE_bitwin, 200 TICODE_bitwin,
159 TICODE_bitype, 201 TICODE_bitype,
160 TICODE_bufsz, 202 TICODE_bufsz,
161 TICODE_btns, 203 TICODE_btns,
162 TICODE_cols, 204 TICODE_cols,
163 TICODE_spinh, 205 TICODE_spinh,
164 TICODE_spinv, 206 TICODE_spinv,
165 TICODE_it, 207 TICODE_it,
166 TICODE_lh, 208 TICODE_lh,
167 TICODE_lw, 209 TICODE_lw,
168 TICODE_lines, 210 TICODE_lines,
@@ -249,26 +291,64 @@ enum TINUMS { @@ -249,26 +291,64 @@ enum TINUMS {
249#define no_color_video t_no_color_video(cur_term) 291#define no_color_video t_no_color_video(cur_term)
250#define num_labels t_num_labels(cur_term) 292#define num_labels t_num_labels(cur_term)
251#define number_of_pins t_number_of_pins(cur_term) 293#define number_of_pins t_number_of_pins(cur_term)
252#define output_res_char t_output_res_char(cur_term) 294#define output_res_char t_output_res_char(cur_term)
253#define output_res_line t_output_res_line(cur_term) 295#define output_res_line t_output_res_line(cur_term)
254#define output_res_horz_inch t_output_res_horz_inch(cur_term) 296#define output_res_horz_inch t_output_res_horz_inch(cur_term)
255#define output_res_vert_inch t_output_res_vert_inch(cur_term) 297#define output_res_vert_inch t_output_res_vert_inch(cur_term)
256#define padding_baud_rate t_padding_baud_rate(cur_term) 298#define padding_baud_rate t_padding_baud_rate(cur_term)
257#define print_rate t_print_rate(cur_term) 299#define print_rate t_print_rate(cur_term)
258#define virtual_terminal t_virtual_terminal(cur_term) 300#define virtual_terminal t_virtual_terminal(cur_term)
259#define wide_char_size t_wide_char_size(cur_term) 301#define wide_char_size t_wide_char_size(cur_term)
260#define width_status_line t_width_status_line(cur_term) 302#define width_status_line t_width_status_line(cur_term)
261 303
 304/*
 305 * NUMBER DESCRIPTIONS
 306 *
 307 * bit_image_entwining: Number of passes for each bit-map row
 308 * bit_image_type: Type of bit image device
 309 * buffer_capacity: Number of bytes buffered before printing
 310 * buttons: Number of buttons on the mouse
 311 * columns: Number of columns in a line
 312 * dot_horz_spacing: Spacing of dots horizontally in dots per inch
 313 * dot_vert_spacing: Spacing of pins vertically in pins per inch
 314 * init_tabs: Tabs initially every #1 spaces
 315 * label_height: Number of rows in each label
 316 * label_width: Numbre of columns in each label
 317 * lines: Number of lines on a screen or a page
 318 * lines_of_memory: Lines of memory of > lines; 0 means varies
 319 * max_attributes: Maximum combined video attributes terminal can display
 320 * magic_cookie_glitch: Number of blank characters left by smso or rmso
 321 * max_colors: Maximum number of colours on the screen
 322 * max_micro_address: Maximum value in micro_..._addresss
 323 * max_micro_jump: Maximum value in parm_..._micro
 324 * max_pairs: Maximum number of colour-pairs on the screen
 325 * maximum_windows: Maximum number of definable windows
 326 * micro_col_size: Character step size when in micro mode
 327 * micro_line_size: Line step size when in micro mode
 328 * no_color_video: Video attributes that can't be used with colours
 329 * num_labels: Number of labels on screen (start at 1)
 330 * number_of_pins: Number of pins in print-head
 331 * output_res_char: Horizontal resolution in units per character
 332 * output_res_line: Vertical resolution in units per line
 333 * output_res_horz_inch: Horizontal resolution in units per inch
 334 * output_res_vert_inch: Vertical resolution in units per inch
 335 * padding_baud_rate: Lowest baud rate where padding needed
 336 * print_rate: Print rate in characters per second
 337 * virtual_terminal: Virtual terminal number
 338 * wide_char_size: Character step size when in double-wide mode
 339 * width_status_line: Number of columns in status line
 340 */
 341
262/* Define available terminfo strings */ 342/* Define available terminfo strings */
263enum TISTRS{ 343enum TISTRS{
264 TICODE_acsc, 344 TICODE_acsc,
265 TICODE_scesa, 345 TICODE_scesa,
266 TICODE_cbt, 346 TICODE_cbt,
267 TICODE_bel, 347 TICODE_bel,
268 TICODE_bicr, 348 TICODE_bicr,
269 TICODE_binel, 349 TICODE_binel,
270 TICODE_birep, 350 TICODE_birep,
271 TICODE_cr, 351 TICODE_cr,
272 TICODE_cpi, 352 TICODE_cpi,
273 TICODE_lpi, 353 TICODE_lpi,
274 TICODE_chr, 354 TICODE_chr,
@@ -1438,26 +1518,425 @@ enum TISTRS{ @@ -1438,26 +1518,425 @@ enum TISTRS{
1438#define user4 t_user4(cur_term) 1518#define user4 t_user4(cur_term)
1439#define user5 t_user5(cur_term) 1519#define user5 t_user5(cur_term)
1440#define user6 t_user6(cur_term) 1520#define user6 t_user6(cur_term)
1441#define user7 t_user7(cur_term) 1521#define user7 t_user7(cur_term)
1442#define user8 t_user8(cur_term) 1522#define user8 t_user8(cur_term)
1443#define user9 t_user9(cur_term) 1523#define user9 t_user9(cur_term)
1444#define underline_char t_underline_char(cur_term) 1524#define underline_char t_underline_char(cur_term)
1445#define up_half_line t_up_half_line(cur_term) 1525#define up_half_line t_up_half_line(cur_term)
1446#define wait_tone t_wait_tone(cur_term) 1526#define wait_tone t_wait_tone(cur_term)
1447#define xoff_character t_xoff_character(cur_term) 1527#define xoff_character t_xoff_character(cur_term)
1448#define xon_character t_xon_character(cur_term) 1528#define xon_character t_xon_character(cur_term)
1449#define zero_motion t_zero_motion(cur_term) 1529#define zero_motion t_zero_motion(cur_term)
1450 1530
 1531/*
 1532 * STRING DESCRIPTIONS
 1533 *
 1534 * acs_chars: Graphic charset pairs aAbBcC
 1535 * alt_scancode_esc: Alternate escape for scancode emulation
 1536 * back_tab: Back tab
 1537 * bell: Audible signal (bell)
 1538 * bit_image_carriage_return: Move to beginning of same row
 1539 * bit_image_newline: Move to next row of the bit image
 1540 * bit_image_repeat: Repeat bit-image cell #1 #2 times
 1541 * carriage_return: Carriage return
 1542 * change_char_pitch: Change number of characters per inch
 1543 * change_line_pitch: Change number of lines per inch
 1544 * change_res_horz: Change horizontal resolution
 1545 * change_res_vert: Change vertical resolution
 1546 * change_scroll_region: Change to lines #1 through #2 (VT100)
 1547 * char_padding: Like ip but when in replace mode
 1548 * char_set_names: Returns a list of character set names
 1549 * clear_all_tabs: Clear all tab stops
 1550 * clear_margins: Clear all margins (top, bottom and sides)
 1551 * clear_screen: Clear screen and home cursor
 1552 * clr_bol: Clear to beginning of line, inclusive
 1553 * clr_eol: Clear to end of line
 1554 * clr_eos: Clear to end of display
 1555 * code_set_init: Init sequence for multiple codesets
 1556 * color_names: Give name for colour #1
 1557 * column_address: Set horizontal position to absolute #1
 1558 * command_character: Terminal settable cmd character in prototype
 1559 * create_window: Define win #1 to go from #2,#3 to #4,#5
 1560 * cursor_address: Move to row #1, col #2
 1561 * cursor_down: Down one line
 1562 * cursor_home: Home cursor (if no cup)
 1563 * cursor_invisible: Make cursor invisible
 1564 * cursor_left: Move left one space
 1565 * cursor_mem_address: Memory relative cursor addressing
 1566 * cursor_normal: Make cursor appear normal (under vs/vi)
 1567 * cursor_right: Non-destructive space (cursor or carriage right)
 1568 * cursor_to_ll: Last line, first column (if no cup)
 1569 * cursor_up: Upline (cursor up)
 1570 * cursor_visible: Make cursor very visible
 1571 * define_bit_image_region: Define rectangular bit-image region
 1572 * define_char: Define a character in a character set
 1573 * delete_character: Delete character
 1574 * delete_line: Delete line
 1575 * device_type: Indicate language/codeset support
 1576 * dial_phone: Dial phone number #1
 1577 * dis_status_line: Disable status line
 1578 * display_clock: Display time-of-day clock
 1579 * display_pc_char: Display PC character
 1580 * down_half_time: Half-line down (forward 1/2 linefeed)
 1581 * ena_acs: Enable alternate character set
 1582 * end_bit_image_region: End a bit-image region
 1583 * enter_alt_charset_mode: Start alternate character set
 1584 * enter_am_mode: Turn on automatic margins
 1585 * enter_blink_mode: Turn on blinking
 1586 * enter_bold_mode: Turn on bold (extra bright) mode
 1587 * enter_ca_mode: String to begin programs that use cup
 1588 * enter_delete_mode: Delete mode (enter)
 1589 * enter_dim_mode: Turn on half-bright mode
 1590 * enter_doublewide_mode: Enable double wide printing
 1591 * enter_draft_quality: Set draft qualify print
 1592 * enter_horizontal_hl_mode: Turn on horizontal highlight mode
 1593 * enter_insert_mode: Insert mode (enter)
 1594 * enter_italics_mode: Enable italics
 1595 * enter_left_hl_mode: Turn on left highlight mode
 1596 * enter_leftward_mode: Enable leftward carriage motion
 1597 * enter_low_hl_mode: Turn on low highlight mode
 1598 * enter_micro_mode: Enable micro motion capabilities
 1599 * enter_near_quality_letter: Set near-letter quality print
 1600 * enter_normal_quality: Set normal quality print
 1601 * enter_pc_charset_mode: Enter PC character display mode
 1602 * enter_protected_mode: Turn on protected mode
 1603 * enter_reverse_mode: Turn on reverse video mode
 1604 * enter_right_hl_mode: Turn on right highlight mode
 1605 * enter_scancode_mode: Enter PC scancode mode
 1606 * enter_secure_mode: Turn on blank mode (characters invisible)
 1607 * enter_shadow_mode: Enable shadow printing
 1608 * enter_standout_mode: Begin standout mode
 1609 * enter_subscript_mode: Enable subscript printing
 1610 * enter_superscript_mode: Enable superscript printing
 1611 * enter_top_hl_mode: Turn on top highlight mode
 1612 * enter_underline_mode: Start underscore mode
 1613 * enter_upward_mode: Enable upward carriage motion
 1614 * enter_vertical_hl_mode: Turn on verticle highlight mode
 1615 * enter_xon_mode: Turn on xon/xoff handshaking
 1616 * erase_chars: Erase #1 characters
 1617 * exit_alt_charset_mode: End alternate character set
 1618 * exit_am_mode: Turn off automatic margins
 1619 * exit_attribute_mode: Turn off all attributes
 1620 * exit_ca_mode: String to end programs that use cup
 1621 * exit_delete_mode: End delete mode
 1622 * exit_doublewide_mode: Disable double wide printing
 1623 * exit_insert_mode: End insert mode
 1624 * exit_italics_mode: Disable italics
 1625 * exit_leftward_mode: Enable rightward (normal) carriage motion
 1626 * exit_micro_mode: Disable micro motion capabilities
 1627 * exit_pc_charset_mode: Disable PC character display mode
 1628 * exit_scancode_mode: Disable PC scancode mode
 1629 * exit_shadow_mode: Disable shadow printing
 1630 * exit_standout_mode: End standout mode
 1631 * exit_subscript_mode: Disable subscript printing
 1632 * exit_superscript_mode: Disable superscript printing
 1633 * exit_underline_mode: End underscore mode
 1634 * exit_upward_mode: Enable downward (normal) carriage motion
 1635 * exit_xon_mode: Turn off xon/xoff handshaking
 1636 * fixed_pause: Pause for 2-3 seconds
 1637 * flash_hook: Flash the switch hook
 1638 * flash_screen: Visible bell (may move cursor)
 1639 * form_feed: Hardcopy terminal eject page
 1640 * from_status_line: Return from status line
 1641 * get_mouse: Curses should get button events
 1642 * goto_window: Go to window #1
 1643 * hangup: Hang-up phone
 1644 * init_1string: Terminal or printer initialisation string
 1645 * init_2string: Terminal or printer initialisation string
 1646 * init_3string: Terminal or printer initialisation string
 1647 * init_file: Name of initialisation file
 1648 * init_prog: Path name of program for initialisation
 1649 * initialize_color: Set colour #1 to RGB #2, #3, #4
 1650 * initialize_pair: Set colour-pair #1 to fg #2, bg #3
 1651 * insert_character: Insert character
 1652 * insert_line: Add new blank line
 1653 * insert_padding: Insert pad after character inserted
 1654 * key_a1: upper left of keypad
 1655 * key_a3: upper right of keypad
 1656 * key_b2: center of keypad
 1657 * key_backspace: set by backspace key
 1658 * key_beg: 1
 1659 * key_btab: sent by back-tab key
 1660 * key_c1: lower left of keypad
 1661 * key_c3: lower right of keypad
 1662 * key_cancel: 2
 1663 * key_catab: sent by clear-all-tabs key
 1664 * key_clear: sent by clear-screen or erase key
 1665 * key_close: 3
 1666 * key_command: 4
 1667 * key_copy: 5
 1668 * key_create: 6
 1669 * key_ctab: sent by clear-tab key
 1670 * key_dc: sent by delete-character key
 1671 * key_dl: sent by delete-line key
 1672 * key_down: sent by terminal down-arrow key
 1673 * key_eic: sent by rmir or smir in insert mode
 1674 * key_end: 7
 1675 * key_enter: 8
 1676 * key_eol: sent by clear-to-end-of-line key
 1677 * key_eos: sent by clear-to-end-of-screen key
 1678 * key_exit: 9
 1679 * key_f0: sent by function key f0
 1680 * key_f1: sent by function key f1
 1681 * key_f2: sent by function key f2
 1682 * key_f3: sent by function key f3
 1683 * key_f4: sent by function key f4
 1684 * key_f5: sent by function key f5
 1685 * key_f6: sent by function key f6
 1686 * key_f7: sent by function key f7
 1687 * key_f8: sent by function key f8
 1688 * key_f9: sent by function key f9
 1689 * key_f10: sent by function key f10
 1690 * key_f11: sent by function key f11
 1691 * key_f12: sent by function key f12
 1692 * key_f13: sent by function key f13
 1693 * key_f14: sent by function key f14
 1694 * key_f15: sent by function key f15
 1695 * key_f16: sent by function key f16
 1696 * key_f17: sent by function key f17
 1697 * key_f18: sent by function key f18
 1698 * key_f19: sent by function key f19
 1699 * key_f20: sent by function key f20
 1700 * key_f21: sent by function key f21
 1701 * key_f22: sent by function key f22
 1702 * key_f23: sent by function key f23
 1703 * key_f24: sent by function key f24
 1704 * key_f25: sent by function key f25
 1705 * key_f26: sent by function key f26
 1706 * key_f27: sent by function key f27
 1707 * key_f28: sent by function key f28
 1708 * key_f29: sent by function key f29
 1709 * key_f30: sent by function key f30
 1710 * key_f31: sent by function key f31
 1711 * key_f32: sent by function key f32
 1712 * key_f33: sent by function key f33
 1713 * key_f34: sent by function key f34
 1714 * key_f35: sent by function key f35
 1715 * key_f36: sent by function key f36
 1716 * key_f37: sent by function key f37
 1717 * key_f38: sent by function key f38
 1718 * key_f39: sent by function key f39
 1719 * key_f40: sent by function key f40
 1720 * key_f41: sent by function key f41
 1721 * key_f42: sent by function key f42
 1722 * key_f43: sent by function key f43
 1723 * key_f44: sent by function key f44
 1724 * key_f45: sent by function key f45
 1725 * key_f46: sent by function key f46
 1726 * key_f47: sent by function key f47
 1727 * key_f48: sent by function key f48
 1728 * key_f49: sent by function key f49
 1729 * key_f50: sent by function key f50
 1730 * key_f51: sent by function key f51
 1731 * key_f52: sent by function key f52
 1732 * key_f53: sent by function key f53
 1733 * key_f54: sent by function key f54
 1734 * key_f55: sent by function key f55
 1735 * key_f56: sent by function key f56
 1736 * key_f57: sent by function key f57
 1737 * key_f58: sent by function key f58
 1738 * key_f59: sent by function key f59
 1739 * key_f60: sent by function key f60
 1740 * key_f61: sent by function key f61
 1741 * key_f62: sent by function key f62
 1742 * key_f63: sent by function key f63
 1743 * key_find: 0
 1744 * key_help: sent by help key
 1745 * key_home: sent by home key
 1746 * key_ic: sent by ins-char/enter ins-mode key
 1747 * key_il: sent by insert-line key
 1748 * key_left: sent by terminal left-arrow key
 1749 * key_ll: sent by home-down key
 1750 * key_mark: sent by mark key
 1751 * key_message: sent by message key
 1752 * key_mouse: 0631, Mouse event has occured
 1753 * key_move: sent by move key
 1754 * key_next: sent by next-object key
 1755 * key_npage: sent by next-page key
 1756 * key_open: sent by open key
 1757 * key_options: sent by options key
 1758 * key_ppage: sent by previous-page key
 1759 * key_previous: sent by previous-object key
 1760 * key_print: sent by print or copy key
 1761 * key_redo: sent by redo key
 1762 * key_reference: sent by ref(erence) key
 1763 * key_refresh: sent by refresh key
 1764 * key_replace: sent by replace key
 1765 * key_restart: sent by restart key
 1766 * key_resume: sent by resume key
 1767 * key_right: sent by terminal right-arrow key
 1768 * key_save: sent by save key
 1769 * key_sbeg: sent by shifted beginning key
 1770 * key_scancel: sent by shifted cancel key
 1771 * key_scommand: sent by shifted command key
 1772 * key_scopy: sent by shifted copy key
 1773 * key_screate: sent by shifted create key
 1774 * key_sdc: sent by shifted delete-char key
 1775 * key_sdl: sent by shifted delete-line key
 1776 * key_select: sent by select key
 1777 * key_send: sent by shifted end key
 1778 * key_seol: sent by shifted clear-line key
 1779 * key_sexit: sent by shited exit key
 1780 * key_sf: sent by scroll-forward/down key
 1781 * key_sfind: sent by shifted find key
 1782 * key_shelp: sent by shifted help key
 1783 * key_shome: sent by shifted home key
 1784 * key_sic: sent by shifted input key
 1785 * key_sleft: sent by shifted left-arrow key
 1786 * key_smessage: sent by shifted message key
 1787 * key_smove: sent by shifted move key
 1788 * key_snext: sent by shifted next key
 1789 * key_soptions: sent by shifted options key
 1790 * key_sprevious: sent by shifted prev key
 1791 * key_sprint: sent by shifted print key
 1792 * key_sr: sent by scroll-backwards/up key
 1793 * key_sredo: sent by shifted redo key
 1794 * key_sreplace: sent by shifted replace key
 1795 * key_sright: sent by shifted right-arrow key
 1796 * key_srsume: sent by shifted resume key
 1797 * key_ssave: sent by shifted save key
 1798 * key_ssuspend: sent by shifted suspend key
 1799 * key_stab: sent by set-tab key
 1800 * key_sundo: sent by shifted undo key
 1801 * key_suspend: sent by suspend key
 1802 * key_undo: sent by undo key
 1803 * key_up: sent by terminal up-arrow key
 1804 * keypad_local: Out of "keypad-transmit" mode
 1805 * keypad_xmit: Put terminal in "keypad-transmit" mode
 1806 * lab_f0: Labels on function key f0 if not f0
 1807 * lab_f1: Labels on function key f1 if not f1
 1808 * lab_f2: Labels on function key f2 if not f2
 1809 * lab_f3: Labels on function key f3 if not f3
 1810 * lab_f4: Labels on function key f4 if not f4
 1811 * lab_f5: Labels on function key f5 if not f5
 1812 * lab_f6: Labels on function key f6 if not f6
 1813 * lab_f7: Labels on function key f7 if not f7
 1814 * lab_f8: Labels on function key f8 if not f8
 1815 * lab_f8: Labels on function key f9 if not f9
 1816 * lab_f10: Labels on function key f10 if not f10
 1817 * label_format: Label format
 1818 * label_off: Turn off soft labels
 1819 * label_on: Turn on soft labels
 1820 * meta_off: Turn off "meta mode"
 1821 * meta_on: Turn on "meta mode" (8th bit)
 1822 * micro_column_address: Like column_address for micro adjustment
 1823 * micro_down: Like cursor_down for micro adjustment
 1824 * micro_left: Like cursor_left for micro adjustment
 1825 * micro_right: Like cursor_right for micro adjustment
 1826 * micro_row_address: Like row_address for micro adjustment
 1827 * micro_up: Like cursor_up for micro adjustment
 1828 * mouse_info: Mouse status information
 1829 * newline: Newline (behaves like cr followed by lf)
 1830 * order_of_pins: Matches software bits to print-head pins
 1831 * orig_colors: Set all colour(-pair)s to original ones
 1832 * orig_pair: Set default colour-pair to the original one
 1833 * pad_char: Pad character (rather than NULL)
 1834 * parm_dch: Delete #1 chars
 1835 * parm_delete_line: Delete #1 lines
 1836 * parm_down_cursor: Move down #1 lines
 1837 * parm_down_micro: Like parm_down_cursor for micro adjustment
 1838 * parm_ich: Insert #1 blank chars
 1839 * parm_index: Scroll forward #1 lines
 1840 * parm_insert_line: Add #1 new blank lines
 1841 * parm_left_cursor: Move cursor left #1 lines
 1842 * parm_left_micro: Like parm_left_cursor for micro adjustment
 1843 * parm_right_cursor: Move right #1 spaces
 1844 * parm_right_micro: Like parm_right_cursor for micro adjustment
 1845 * parm_rindex: Scroll backward #1 lines
 1846 * parm_up_cursor: Move cursor up #1 lines
 1847 * parm_up_micro: Like parm_up_cursor for micro adjustment
 1848 * pc_term_options: PC terminal options
 1849 * pkey_key: Prog funct key #1 to type string #2
 1850 * pkey_local: Prog funct key #1 to execute string #2
 1851 * pkey_plab: Prog key #1 to xmit string #2 and show string #3
 1852 * pkey_xmit: Prog funct key #1 to xmit string #2
 1853 * pkey_norm: Prog label #1 to show string #3
 1854 * print_screen: Print contents of screen
 1855 * ptr_non: Turn off printer for #1 bytes
 1856 * ptr_off: Turn off the printer
 1857 * ptr_on: Turn on the printer
 1858 * pulse: Select pulse dialing
 1859 * quick_dial: Dial phone number #1, without progress detection
 1860 * remove_clock: Remove time-of-day clock
 1861 * repeat_char: Repeat char #1 #2 times
 1862 * req_for_input: Send next input char (for ptys)
 1863 * req_mouse_pos: Request mouse position report
 1864 * reset_1string: Reset terminal completely to sane modes
 1865 * reset_2string: Reset terminal completely to sane modes
 1866 * reset_3string: Reset terminal completely to sane modes
 1867 * reset_file: Name of file containing reset string
 1868 * restore_cursor: Restore cursor to position of last sc
 1869 * row_address: Set vertical position to absolute #1
 1870 * save_cursor: Save cursor position
 1871 * scancode_escape: Escape for scancode emulation
 1872 * scroll_forward: Scroll text up
 1873 * scroll_reverse: Scroll text down
 1874 * select_char_set: Select character set
 1875 * set0_des_seq: Shift into codeset 0 (EUC set 0, ASCII)
 1876 * set1_des_seq: Shift into codeset 1
 1877 * set2_des_seq: Shift into codeset 2
 1878 * set3_des_seq: Shift into codeset 3
 1879 * set_a_attributes: Define second set of video attributes #1-#6
 1880 * set_a_background: Set background colour to #1 using ANSI escape
 1881 * set_a_foreground: Set foreground colour to #1 using ANSI escape
 1882 * set_attributes: Define first set of video attributes #1-#9
 1883 * set_background: Set background colour to #1
 1884 * set_bottom_margin: Set bottom margin at current line
 1885 * set_bottom_margin_parm: Set bottom margin at line #1 or #2 lines from bottom
 1886 * set_clock: Set clock to hours (#1), minutes (#2), seconds (#3)
 1887 * set_color_band: Change ribbon to colour #1
 1888 * set_color_pair: Set current colour pair to #1
 1889 * set_foreground: Set foreground colour to #1
 1890 * set_left_margin: Set left margin at current column
 1891 * set_left_margin_parm: Set left (right) margin at column #1 (#2)
 1892 * set_lr_margin: Sets both left and right margins
 1893 * set_page_length: Set page length to #1 lines
 1894 * set_pglen_inch: Set page length to #1 hundredth of an inch
 1895 * set_right_margin: Set right margin at current column
 1896 * set_right_margin_parm: Set right margin at #1
 1897 * set_tab: Set a tab in all rows, current column
 1898 * set_tb_margin: Sets both top and bottom margins
 1899 * set_top_margin: Set top margin at current line
 1900 * set_top_margin_parm: Set top (bottom) margin at line #1 (#2)
 1901 * set_window: Current window is lines #1-#2 cols #3-#4
 1902 * start_bit_image: Start printing bit image graphics
 1903 * start_char_set_def: Start definition of a character set
 1904 * stop_bit_image: End printing bit image graphics
 1905 * stop_char_set_def: End definition of a character set
 1906 * subscript_characters: List of "subscript-able" characters
 1907 * superscript_characters: List of "superscript-able" characters
 1908 * tab: Tab to next 8-space hardware tab stop
 1909 * these_cause_cr: Printing any of these characters causes cr
 1910 * to_status_line: Go to status line, col #1
 1911 * tone: Select tone touch dialing
 1912 * user0: User string 0
 1913 * user1: User string 1
 1914 * user2: User string 2
 1915 * user3: User string 3
 1916 * user4: User string 4
 1917 * user5: User string 5
 1918 * user6: User string 6
 1919 * user7: User string 7
 1920 * user8: User string 8
 1921 * user9: User string 9
 1922 * underline_char: Underscore one char and move past it
 1923 * up_half_line: Half-line up (reverse 1/2 linefeed)
 1924 * wait_tone: Wait for dial tone
 1925 * xoff_character: X-off character
 1926 * xon_character: X-on character
 1927 * zero_motion: No motion for the subsequent character
 1928 */
 1929
1451#ifndef _TERMINFO 1930#ifndef _TERMINFO
1452typedef struct { 1931typedef struct {
1453 int fildes; 1932 int fildes;
1454 /* We need to expose these so that the macros work */ 1933 /* We need to expose these so that the macros work */
1455 const char *name; 1934 const char *name;
1456 const char *desc; 1935 const char *desc;
1457 const signed char *flags; 1936 const signed char *flags;
1458 const short *nums; 1937 const short *nums;
1459 const char **strs; 1938 const char **strs;
1460} TERMINAL; 1939} TERMINAL;
1461#endif 1940#endif
1462 1941
1463#include <sys/cdefs.h> 1942#include <sys/cdefs.h>

cvs diff -r1.17 -r1.18 src/lib/libterminfo/terminfo.5.in (expand / switch to unified diff)

--- src/lib/libterminfo/terminfo.5.in 2012/06/05 17:22:01 1.17
+++ src/lib/libterminfo/terminfo.5.in 2013/01/25 12:52:45 1.18
@@ -1,43 +1,43 @@ @@ -1,43 +1,43 @@
1.\" $NetBSD: terminfo.5.in,v 1.17 2012/06/05 17:22:01 wiz Exp $ 1.\" $NetBSD: terminfo.5.in,v 1.18 2013/01/25 12:52:45 roy Exp $
2.\" 2.\"
3.\" Copyright (c) 2009, 2010, 2011 The NetBSD Foundation, Inc. 3.\" Copyright (c) 2009, 2010, 2011, 2013 The NetBSD Foundation, Inc.
4.\" All rights reserved. 4.\" All rights reserved.
5.\" 5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation 6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Roy Marples. 7.\" by Roy Marples.
8.\" 8.\"
9.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions 10.\" modification, are permitted provided that the following conditions
11.\" are met: 11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright 12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer. 13.\" notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\" notice, this list of conditions and the following disclaimer in the 15.\" notice, this list of conditions and the following disclaimer in the
16.\" documentation and/or other materials provided with the distribution. 16.\" documentation and/or other materials provided with the distribution.
17.\" 17.\"
18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 21.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28.\" POSSIBILITY OF SUCH DAMAGE. 28.\" POSSIBILITY OF SUCH DAMAGE.
29.\" 29.\"
30.Dd June 6, 2012 30.Dd January 25, 2013
31.Dt TERMINFO 5 31.Dt TERMINFO 5
32.Os 32.Os
33.Sh NAME 33.Sh NAME
34.Nm terminfo 34.Nm terminfo
35.Nd terminal capability definition 35.Nd terminal capability definition
36.Sh DESCRIPTION 36.Sh DESCRIPTION
37.Nm 37.Nm
38describes the capabilities of terminals, used by programs such as 38describes the capabilities of terminals, used by programs such as
39.Xr vi 1 , 39.Xr vi 1 ,
40.Xr rogue 6 40.Xr rogue 6
41and libraries such as 41and libraries such as
42.Xr curses 3 . 42.Xr curses 3 .
43The 43The
@@ -144,38 +144,38 @@ integer constant nn. @@ -144,38 +144,38 @@ integer constant nn.
144push the string length of the previously popped parameter. 144push the string length of the previously popped parameter.
145.It Sy %+ Sy %- Sy %* Sy %/ Sy %m 145.It Sy %+ Sy %- Sy %* Sy %/ Sy %m
146arithmetic: pop two parameters and push the result. 146arithmetic: pop two parameters and push the result.
147.It Sy %& Sy %| Sy %^ 147.It Sy %& Sy %| Sy %^
148bit operations: pop two parameters and push the result. 148bit operations: pop two parameters and push the result.
149.It Sy %! Sy %~ 149.It Sy %! Sy %~
150unary operations: pop two parameters and push the result. 150unary operations: pop two parameters and push the result.
151.It Sy %i 151.It Sy %i
152add 1 to parameters 1 and 2. 152add 1 to parameters 1 and 2.
153.It Sy %? Va expr Sy %t Ic then Sy %e Ic else Sy %; 153.It Sy %? Va expr Sy %t Ic then Sy %e Ic else Sy %;
154If expr equates to zero then control passes to the optional else part. 154If expr equates to zero then control passes to the optional else part.
155.El 155.El
156.Ss Boolean Capabilities 156.Ss Boolean Capabilities
157.Bl -column "enter_near_quality_letter" "setcolor" "TC" 157.Bl -column "enter_near_quality_letter" "setcolor" "TC" "desc"
158.It Sy "Long name" Ta Sy "Code" Ta Sy "TC" 158.It Sy "Long name" Ta Sy "Code" Ta Sy "TC" Ta Sy "Description"
159@BOOLCAPS@ 159@BOOLCAPS@
160.El 160.El
161.Ss Numeric Capabilities 161.Ss Numeric Capabilities
162.Bl -column "enter_near_quality_letter" "setcolor" "TC" 162.Bl -column "enter_near_quality_letter" "setcolor" "TC" "Desc"
163.It Sy "Long name" Ta Sy "Code" Ta Sy "TC" 163.It Sy "Long name" Ta Sy "Code" Ta Sy "TC" Ta Sy "Description"
164@NUMCAPS@ 164@NUMCAPS@
165.El 165.El
166.Ss String Capabilities 166.Ss String Capabilities
167.Bl -column "enter_near_quality_letter" "setcolor" "TC" 167.Bl -column "enter_near_quality_letter" "setcolor" "TC" "Desc"
168.It Sy "Long name" Ta Sy "Code" Ta Sy "TC" 168.It Sy "Long name" Ta Sy "Code" Ta Sy "TC" Ta Sy "Description"
169@STRCAPS@ 169@STRCAPS@
170.El 170.El
171.Ss A Sample Entry 171.Ss A Sample Entry
172.Bd -literal 172.Bd -literal
173vt100\||dec vt100 (w/advanced video), 173vt100\||dec vt100 (w/advanced video),
174am, xenl, msgr, mc5i, xon, 174am, xenl, msgr, mc5i, xon,
175cols#80, it#8, lines#24, vt#3, 175cols#80, it#8, lines#24, vt#3,
176acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, bel=^G, 176acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, bel=^G,
177cr=^M, csr=\eE[%i%p1%d;%p2%dr, tbc=\eE[3g, clear=\eE[H\eE[J$\*[Lt]50\*[Gt], 177cr=^M, csr=\eE[%i%p1%d;%p2%dr, tbc=\eE[3g, clear=\eE[H\eE[J$\*[Lt]50\*[Gt],
178el1=\eE[1K$\*[Lt]3\*[Gt], el=\eE[K$\*[Lt]3\*[Gt], ed=\eE[J$\*[Lt]50\*[Gt], 178el1=\eE[1K$\*[Lt]3\*[Gt], el=\eE[K$\*[Lt]3\*[Gt], ed=\eE[J$\*[Lt]50\*[Gt],
179cup=\eE[%i%p1%d;%p2%dH$\*[Lt]5\*[Gt], cud1=^J, home=\eE[H, cub1=^H, 179cup=\eE[%i%p1%d;%p2%dH$\*[Lt]5\*[Gt], cud1=^J, home=\eE[H, cub1=^H,
180cuf1=\eE[C$\*[Lt]2\*[Gt], cuu1=\eE[A$\*[Lt]2\*[Gt], enacs=\eE(B\eE)0, smacs=^N, 180cuf1=\eE[C$\*[Lt]2\*[Gt], cuu1=\eE[A$\*[Lt]2\*[Gt], enacs=\eE(B\eE)0, smacs=^N,
181smam=\eE[?7h, blink=\eE[5m$\*[Lt]2\*[Gt], bold=\eE[1m$\*[Lt]2\*[Gt], rev=\eE[7m$\*[Lt]2\*[Gt], 181smam=\eE[?7h, blink=\eE[5m$\*[Lt]2\*[Gt], bold=\eE[1m$\*[Lt]2\*[Gt], rev=\eE[7m$\*[Lt]2\*[Gt],