Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libterminfo We should always generate terminfo.5 to save...



details:   https://anonhg.NetBSD.org/src/rev/45bc8cb51753
branches:  trunk
changeset: 751960:45bc8cb51753
user:      roy <roy%NetBSD.org@localhost>
date:      Tue Feb 09 22:16:12 2010 +0000

description:
We should always generate terminfo.5 to save human error syncing.

diffstat:

 lib/libterminfo/Makefile   |    8 +-
 lib/libterminfo/terminfo.5 |  699 ---------------------------------------------
 2 files changed, 5 insertions(+), 702 deletions(-)

diffs (truncated from 726 to 300 lines):

diff -r 9ef7bf8c6344 -r 45bc8cb51753 lib/libterminfo/Makefile
--- a/lib/libterminfo/Makefile  Tue Feb 09 19:02:19 2010 +0000
+++ b/lib/libterminfo/Makefile  Tue Feb 09 22:16:12 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2010/02/03 20:56:54 roy Exp $
+#      $NetBSD: Makefile,v 1.4 2010/02/09 22:16:12 roy Exp $
 
 USE_SHLIBDIR=  yes
 
@@ -38,9 +38,11 @@
                cd ${.CURDIR} && ${HOST_SH} ./genthash >termcap_hash.c
 
 # Generate our man pages
-man:
+terminfo.5: terminfo.5.in term.h termcap_map.c
                @echo "Generating terminfo man pages"
-               cd ${.CURDIR} && ${HOST_SH} ./genman >terminfo.5
+               cd ${.CURDIR} && ${HOST_SH} ./genman >${.OBJDIR}/$@
+
+man: terminfo.5
 
 gen: hash man
 
diff -r 9ef7bf8c6344 -r 45bc8cb51753 lib/libterminfo/terminfo.5
--- a/lib/libterminfo/terminfo.5        Tue Feb 09 19:02:19 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,699 +0,0 @@
-.\"DO NOT EDIT
-.\"Automatically generated from termcap.5.in
-.\"
-.\"    $NetBSD: terminfo.5,v 1.5 2010/02/05 19:21:02 roy Exp $
-.\"
-.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" This code is derived from software contributed to The NetBSD Foundation
-.\" by Roy Marples.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\"    notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\"    notice, this list of conditions and the following disclaimer in the
-.\"    documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-.\" POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd February 5, 2009
-.Dt TERMINFO 5
-.Os
-.Sh NAME
-.Nm terminfo
-.Nd terminal capability definition
-.Sh DESCRIPTION
-.Nm
-describes the capabilities of terminals, used by programs such as
-.Xr vi 1 ,
-.Xr rogue 6
-and libraries such as
-.Xr curses 3 .
-The
-.Nm
-source described here needs to be compiled with
-.Xr tic 1
-to be of any use.
-.Pp
-Entries in
-.Nm
-consist of a number of comma separated fields.
-White space after each comma is ignored.
-Embedded commas must be escaped by using a backslash.
-Lines beginning with
-.Sq #
-in the first column are treated as comments.
-Blank lines are ignored.
-.Pp
-The header line must begin in column one and end with a comma.
-Inside the header line are terminal name and aliases,
-separated by vertical bars, the last one being the long
-description of the terminal.
-.Pp
-Capability lines then follow, starting on column two and ending with a comma.
-Each capability is listed by its name, followed by its value if applicable.
-Booleans have no values, numeric values are prefixed by
-.Sq #
-and strings are prefixed by
-.Sq = .
-Numbers can range from 0 to 32767 and string values can be up to 1000
-characters long.
-This implementation supports strings upto 32767 characters long, including the
-.Dv NUL
-terminator.
-.Pp
-Some escapes are available for strings - both
-.Sy \eE
-and
-.Sy \ee
-map to the
-.Dv ESC
-character,
-.Sy ^X
-maps to a control-X for any appropriate X, and the sequences
-.Sy \en ,
-.Sy \er ,
-.Sy \et ,
-.Sy \eb
-and
-.Sy \ef
-map to linefeed, return, tab, backspace and formfeed respectively.
-Any character can be escaped in octal, such as
-.Sy \e072 .
-If you need to encode a
-.Dv NUL
-character, it should be escaped as
-.Sy \e200 .
-.Pp
-A delay in milliseconds may appear anywhere in a string capability,
-prefixed with a dollar sign and enclosed by angled brackets, such as
-.Sy $\*[Lt]5\*[Gt] .
-.Ss String Parameters
-String capabilities sometimes require parameters.
-Normally this just involves replacing the parameter with a supplied
-variable; however, there are cases where the variable needs to be manipulated
-or used in conditional expressions.
-A stack is also provided for simple pop and push operations.
-.Pp
-The below % encodings have the following meanings:
-.Bl -tag -width %P[a-z]
-.It Sy %%
-outputs %
-.It Sy %[[:]flags][width[.precision]][doxXs]
-flags are
-.Dq [-+#] .
-Prefix with
-.Sq \&:
-to avoid interpreting
-.Dq %-
-as an operator.
-.It Sy %c
-pop a parameter and print the character representation of it.
-.It Sy %s
-pop a parameter and print the string representation of it.
-.It Sy %p[1-9]
-push the parameter [1-9].
-.It Sy %P[a-z]
-pop a parameter and push it to dynamic variable [a-z].
-.It Sy %g[a-z]
-push the dynamic variable [a-z].
-.It Sy %P[A-Z]
-pop a parameter and push it to static variable [a-z].
-.It Sy %g[A-Z]
-push the dynamic variable [A-Z].
-.Pp
-Static variables persist over
-.Fn tparm
-whereas dynamic variables do not.
-.It Sy %'c'
-char constant c.
-.It Sy %{nn}
-integer constant nn.
-.It Sy %l
-push the string length of the previously popped parameter.
-.It Sy %+ Sy %- Sy %* Sy %/ Sy %m
-arithmetic: pop two parameters and push the result.
-.It Sy %& Sy %| Sy %^
-bit operations: pop two parameters and push the result.
-.It Sy %! Sy %~
-unary operations: pop two parameters and push the result.
-.It Sy %i
-add 1 to parameters 1 and 2.
-.It Sy %? Va expr Sy %t Ic then Sy %e Ic else Sy %;
-If expr equates to zero then control passes to the optional else part.
-.El
-.Ss Boolean Capabilities
-.Bl -column "enter_near_quality_letter" "setcolor" "TC"
-.It Sy "Long name" Ta Sy "Code" Ta Sy "TC"
-.It Li "auto_left_margin" Ta Sy "\&bw" Ta Sy "\&bw"
-.It Li "auto_right_margin" Ta Sy "\&am" Ta Sy "\&am"
-.It Li "back_color_erase" Ta Sy "\&bce" Ta Sy "\&ut"
-.It Li "can_change" Ta Sy "\&ccc" Ta Sy "\&cc"
-.It Li "ceol_standout_glitch" Ta Sy "\&xhp" Ta Sy "\&xs"
-.It Li "col_addr_glitch" Ta Sy "\&xhpa" Ta Sy "\&YA"
-.It Li "cpi_changes_res" Ta Sy "\&cpix" Ta Sy "\&YF"
-.It Li "cr_cancels_micro_mode" Ta Sy "\&crxm" Ta Sy "\&YB"
-.It Li "dest_tabs_magic_smso" Ta Sy "\&xt" Ta Sy "\&xt"
-.It Li "eat_newline_glitch" Ta Sy "\&xenl" Ta Sy "\&xn"
-.It Li "erase_overstrike" Ta Sy "\&eo" Ta Sy "\&eo"
-.It Li "generic_type" Ta Sy "\&gn" Ta Sy "\&gn"
-.It Li "hard_copy" Ta Sy "\&hc" Ta Sy "\&hc"
-.It Li "hard_cursor" Ta Sy "\&chts" Ta Sy "\&HC"
-.It Li "has_meta_key" Ta Sy "\&km" Ta Sy "\&km"
-.It Li "has_print_wheel" Ta Sy "\&daisy" Ta Sy "\&YC"
-.It Li "has_status_line" Ta Sy "\&hs" Ta Sy "\&hs"
-.It Li "hue_light_saturation" Ta Sy "\&hls" Ta Sy "\&hl"
-.It Li "insert_null_glitch" Ta Sy "\&in" Ta Sy "\&in"
-.It Li "lpi_changes_yes" Ta Sy "\&lpix" Ta Sy "\&YG"
-.It Li "memory_above" Ta Sy "\&da" Ta Sy "\&da"
-.It Li "memory_below" Ta Sy "\&db" Ta Sy "\&db"
-.It Li "move_insert_mode" Ta Sy "\&mir" Ta Sy "\&mi"
-.It Li "move_standout_mode" Ta Sy "\&msgr" Ta Sy "\&ms"
-.It Li "needs_xon_xoff" Ta Sy "\&nxon" Ta Sy "\&nx"
-.It Li "no_esc_ctlc" Ta Sy "\&xsb" Ta Sy "\&xb"
-.It Li "no_pad_char" Ta Sy "\&npc" Ta Sy "\&NP"
-.It Li "non_dest_scroll_region" Ta Sy "\&ndscr" Ta Sy "\&ND"
-.It Li "non_rev_rmcup" Ta Sy "\&nrrmc" Ta Sy "\&NR"
-.It Li "over_strike" Ta Sy "\&os" Ta Sy "\&os"
-.It Li "prtr_silent" Ta Sy "\&mc5i" Ta Sy "\&5i"
-.It Li "row_addr_glitch" Ta Sy "\&xvpa" Ta Sy "\&YD"
-.It Li "semi_auto_right_margin" Ta Sy "\&sam" Ta Sy "\&YE"
-.It Li "status_line_esc_ok" Ta Sy "\&eslok" Ta Sy "\&es"
-.It Li "tilde_glitch" Ta Sy "\&hz" Ta Sy "\&hz"
-.It Li "transparent_underline" Ta Sy "\&ul" Ta Sy "\&ul"
-.It Li "xon_xoff" Ta Sy "\&xon" Ta Sy "\&xo"
-.El
-.Ss Numeric Capabilities
-.Bl -column "enter_near_quality_letter" "setcolor" "TC"
-.It Sy "Long name" Ta Sy "Code" Ta Sy "TC"
-.It Li "bit_image_entwining" Ta Sy "\&bitwin" Ta Sy "\&Yo"
-.It Li "bit_image_type" Ta Sy "\&bitype" Ta Sy "\&Yp"
-.It Li "buffer_capacity" Ta Sy "\&bufsz" Ta Sy "\&Ya"
-.It Li "buttons" Ta Sy "\&btns" Ta Sy "\&BT"
-.It Li "columns" Ta Sy "\&cols" Ta Sy "\&co"
-.It Li "dot_horz_spacing" Ta Sy "\&spinh" Ta Sy "\&Yc"
-.It Li "dot_vert_spacing" Ta Sy "\&spinv" Ta Sy "\&Yb"
-.It Li "init_tabs" Ta Sy "\&it" Ta Sy "\&it"
-.It Li "label_height" Ta Sy "\&lh" Ta Sy "\&lh"
-.It Li "label_width" Ta Sy "\&lw" Ta Sy "\&lw"
-.It Li "lines" Ta Sy "\&lines" Ta Sy "\&li"
-.It Li "lines_of_memory" Ta Sy "\&lm" Ta Sy "\&lm"
-.It Li "magic_cookie_glitch" Ta Sy "\&xmc" Ta Sy "\&sg"
-.It Li "max_attributes" Ta Sy "\&ma" Ta Sy "\&ma"
-.It Li "max_colors" Ta Sy "\&colors" Ta Sy "\&Co"
-.It Li "max_micro_address" Ta Sy "\&maddr" Ta Sy "\&Yd"
-.It Li "max_micro_jump" Ta Sy "\&mjump" Ta Sy "\&Ye"
-.It Li "max_pairs" Ta Sy "\&pairs" Ta Sy "\&pa"
-.It Li "maximum_windows" Ta Sy "\&wnum" Ta Sy "\&MW"
-.It Li "micro_col_size" Ta Sy "\&mcs" Ta Sy "\&Yf"
-.It Li "micro_line_size" Ta Sy "\&mls" Ta Sy "\&Yg"
-.It Li "no_color_video" Ta Sy "\&ncv" Ta Sy "\&NC"
-.It Li "num_labels" Ta Sy "\&nlab" Ta Sy "\&Nl"
-.It Li "number_of_pins" Ta Sy "\&npins" Ta Sy "\&Yh"
-.It Li "output_res_char" Ta Sy "\&orc" Ta Sy "\&Yi"
-.It Li "output_res_horz_inch" Ta Sy "\&orhi" Ta Sy "\&Yk"
-.It Li "output_res_line" Ta Sy "\&orl" Ta Sy "\&Yj"
-.It Li "output_res_vert_inch" Ta Sy "\&orvi" Ta Sy "\&Yl"
-.It Li "padding_baud_rate" Ta Sy "\&pb" Ta Sy "\&pb"
-.It Li "print_rate" Ta Sy "\&cps" Ta Sy "\&Ym"
-.It Li "virtual_terminal" Ta Sy "\&vt" Ta Sy "\&vt"
-.It Li "wide_char_size" Ta Sy "\&widcs" Ta Sy "\&Yn"
-.It Li "width_status_line" Ta Sy "\&wsl" Ta Sy "\&ws"
-.El
-.Ss String Capabilities
-.Bl -column "enter_near_quality_letter" "setcolor" "TC"
-.It Sy "Long name" Ta Sy "Code" Ta Sy "TC"
-.It Li "acs_chars" Ta Sy "\&acsc" Ta Sy "\&ac"
-.It Li "alt_scancode_esc" Ta Sy "\&scesa" Ta Sy "\&S8"
-.It Li "back_tab" Ta Sy "\&cbt" Ta Sy "\&bt"
-.It Li "bell" Ta Sy "\&bel" Ta Sy "\&bl"
-.It Li "bit_image_carriage_return" Ta Sy "\&bicr" Ta Sy "\&Yv"
-.It Li "bit_image_newline" Ta Sy "\&binel" Ta Sy "\&Zz"
-.It Li "bit_image_repeat" Ta Sy "\&birep" Ta Sy "\&Xy"
-.It Li "carriage_return" Ta Sy "\&cr" Ta Sy "\&cr"
-.It Li "change_char_pitch" Ta Sy "\&cpi" Ta Sy "\&ZA"
-.It Li "change_line_pitch" Ta Sy "\&lpi" Ta Sy "\&ZB"
-.It Li "change_res_horz" Ta Sy "\&chr" Ta Sy "\&ZC"
-.It Li "change_res_vert" Ta Sy "\&cvr" Ta Sy "\&ZD"
-.It Li "change_scroll_region" Ta Sy "\&csr" Ta Sy "\&cs"
-.It Li "char_padding" Ta Sy "\&rmp" Ta Sy "\&rP"
-.It Li "char_set_names" Ta Sy "\&csnm" Ta Sy "\&Zy"
-.It Li "clear_all_tabs" Ta Sy "\&tbc" Ta Sy "\&ct"
-.It Li "clear_margins" Ta Sy "\&mgc" Ta Sy "\&MC"
-.It Li "clear_screen" Ta Sy "\&clear" Ta Sy "\&cl"
-.It Li "clr_bol" Ta Sy "\&el1" Ta Sy "\&cb"
-.It Li "clr_eol" Ta Sy "\&el" Ta Sy "\&ce"
-.It Li "clr_eos" Ta Sy "\&ed" Ta Sy "\&cd"
-.It Li "code_set_init" Ta Sy "\&csin" Ta Sy "\&ci"
-.It Li "color_names" Ta Sy "\&colornm" Ta Sy "\&Yw"
-.It Li "column_address" Ta Sy "\&hpa" Ta Sy "\&ch"
-.It Li "command_character" Ta Sy "\&cmdch" Ta Sy "\&CC"
-.It Li "create_window" Ta Sy "\&cwin" Ta Sy "\&"
-.It Li "cursor_address" Ta Sy "\&cup" Ta Sy "\&cm"
-.It Li "cursor_down" Ta Sy "\&cud1" Ta Sy "\&do"
-.It Li "cursor_home" Ta Sy "\&home" Ta Sy "\&ho"
-.It Li "cursor_invisible" Ta Sy "\&civis" Ta Sy "\&vi"
-.It Li "cursor_left" Ta Sy "\&cub1" Ta Sy "\&le"
-.It Li "cursor_mem_address" Ta Sy "\&mrcup" Ta Sy "\&CM"
-.It Li "cursor_normal" Ta Sy "\&cnorm" Ta Sy "\&ve"
-.It Li "cursor_right" Ta Sy "\&cuf1" Ta Sy "\&nd"



Home | Main Index | Thread Index | Old Index