#*********************************************************************
#                         COPYRIGHT NOTICE                           *
#*********************************************************************
#        This software is copyright (C) 1982 by Pavel Curtis         *
#                                                                    *
#        Permission is granted to reproduce and distribute           *
#        this file by any means so long as no fee is charged         *
#        above a nominal handling fee and so long as this            *
#        notice is always included in the copies.                    *
#                                                                    *
#        Other rights are reserved except as explicitly granted      *
#        by written permission of the author.                        *
#                Pavel Curtis                                        *
#                Computer Science Dept.                              *
#                405 Upson Hall                                      *
#                Cornell University                                  *
#                Ithaca, NY 14853                                    *
#                                                                    *
#                Ph- (607) 256-4934                                  *
#                                                                    *
#                Pavel.Cornell@Udel-Relay   (ARPAnet)                *
#                decvax!cornell!pavel       (UUCPnet)                *
#********************************************************************/

# $Header:   RCS/Caps.v  Revision 2.1  82/10/25  14:45:23  pavel  Exp$
#
#       Format for the Caps file:
#               variable_name    "capname"   type   Comment
#
#       where variable_name is the name of the variable used by a
#       programmer capname is the name used inside the /etc/terminfo
#       file type is one of bool, number or str and Comment is the text
#       of the comment which will go in term.h.
#
#       All blank lines and lines beginning with '#' are ignored.
#
#       >>   NOTE!!!  New capabilities \must/ be placed at the end of
#       >>>> the appropriate list (e.g. bools, numbers, strings).
#       >>>> This allows previous versions of programs to still function
#	>>   \without/ recompilation.
#

auto_left_margin        "bw"     bool   cub1 wraps from column 0 to last column
auto_right_margin       "am"     bool   Terminal has automatic margins
beehive_glitch          "xsb"    bool   Beehive (f1=escape, f2=ctrl C)
ceol_standout_glitch    "xhp"    bool   Standout not erased by overwriting (hp)
eat_newline_glitch      "xenl"   bool   newline ignored after 80 cols (Concept)
erase_overstrike        "eo"     bool   Can erase overstrikes with a blank
generic_type            "gn"     bool   Generic line type (e.g. dialup, switch).
hard_copy               "hc"     bool   Hardcopy terminal
has_meta_key            "km"     bool   Has a meta key (shift, sets parity bit)
has_status_line         "hs"     bool   Has extra "status line"
insert_null_glitch      "in"     bool   Insert mode distinguishes nulls
memory_above            "da"     bool   Display may be retained above the screen
memory_below            "db"     bool   Display may be retained below the screen
move_insert_mode        "mir"    bool   Safe to move while in insert mode
move_standout_mode      "msgr"   bool   Safe to move in standout modes
over_strike             "os"     bool   Terminal overstrikes
status_line_esc_ok      "eslok"  bool   Escape can be used on the status line
teleray_glitch          "xt"     bool   Tabs destructive, magic so char (Teleray 1061)
tilde_glitch            "hz"     bool   Hazeltine; can't print ~'s
transparent_underline   "ul"     bool   underline character overstrikes
xon_xoff                "xon"    bool   Terminal uses xon/xoff handshaking

columns              "cols"   number  Number of columns in a line
init_tabs	     "it"     number  Tabs initially every # spaces
lines                "lines"  number  Number of lines on screen or page
lines_of_memory      "lm"     number  Lines of memory if > lines. 0 means varies
magic_cookie_glitch  "xmc"    number  Number of blank chars left by smso or rmso
padding_baud_rate    "pb"     number  Lowest baud rate where cr/nl padding needed
virtual_terminal     "vt"     number  Virtual terminal number (CB/Unix)
width_status_line    "wsl"    number  No. columns in status line
num_labels           "nlab"   number  No. of labels on screen (start at 1)
label_height         "lh"     number  No. rows in each label
label_width          "lw"     number  No. cols in each label

back_tab                "cbt"    str    Back tab (P)
bell                    "bel"    str    Audible signal (bell) (P)
carriage_return         "cr"     str    Carriage return (P*)
change_scroll_region    "csr"    str    change to lines #1 through #2 (vt100) (PG)
clear_all_tabs          "tbc"    str    Clear all tab stops. (P)
clear_screen            "clear"  str    Clear screen (P*)
clr_eol                 "el"     str    Clear to end of line (P)
clr_eos                 "ed"     str    Clear to end of display (P*)
column_address          "hpa"    str    Set cursor column (PG)
command_character       "CC"     str    Term. settable cmd char in prototype
cursor_address          "cup"    str    Cursor motion to row #1 col #2 (PG)
cursor_down             "cud1"   str    Down one line
cursor_home             "home"   str    Home cursor (if no cup)
cursor_invisible        "civis"  str    Make cursor invisible
cursor_left             "cub1"   str    Move cursor left one space.
cursor_mem_address      "mrcup"  str    Memory relative cursor addressing.
cursor_normal           "cnorm"  str    Make cursor appear normal (undo vs/vi)
cursor_right            "cuf1"   str    Non-destructive space (cursor right)
cursor_to_ll            "ll"     str    Last line, first column (if no cup)
cursor_up               "cuu1"   str    Upline (cursor up)
cursor_visible          "cvvis"  str    Make cursor very visible
delete_character        "dch1"   str    Delete character (P*)
delete_line             "dl1"    str    Delete line (P*)
dis_status_line         "dsl"    str    Disable status line
down_half_line          "hd"     str    Half-line down (forward 1/2 linefeed)
enter_alt_charset_mode  "smacs"  str    Start alternate character set (P)
enter_blink_mode        "blink"  str    Turn on blinking
enter_bold_mode         "bold"   str    Turn on bold (extra bright) mode
enter_ca_mode           "smcup"  str    String to end programs that use cup
enter_delete_mode       "smdc"   str    Delete mode (enter)
enter_dim_mode          "dim"    str    Turn on half-bright mode
enter_insert_mode       "smir"   str    Insert mode (enter);
enter_secure_mode       "invis"  str    Turn on blank mode (chars invisible)
enter_protected_mode    "prot"   str    Turn on protected mode
enter_reverse_mode      "rev"    str    Turn on reverse video mode
enter_standout_mode     "smso"   str    Begin stand out mode
enter_underline_mode    "smul"   str    Start underscore mode
erase_chars             "ech"    str    Erase #1 characters (PG)
exit_alt_charset_mode   "rmacs"  str    End alternate character set (P)
exit_attribute_mode     "sgr0"   str    Turn off all attributes
exit_ca_mode            "rmcup"  str    String to begin programs that use cup
exit_delete_mode        "rmdc"   str    End delete mode
exit_insert_mode        "rmir"   str    End insert mode;
exit_standout_mode      "rmso"   str    End stand out mode
exit_underline_mode     "rmul"   str    End underscore mode
flash_screen            "flash"  str    Visible bell (may not move cursor)
form_feed               "ff"     str    Hardcopy terminal page eject (P*)
from_status_line        "fsl"    str    Return from status line
init_1string            "is1"    str    Terminal initialization string
init_2string            "is2"    str    Terminal initialization string
init_3string            "is3"    str    Terminal initialization string
init_file               "if"     str    Name of file containing is
insert_character        "ich1"   str    Insert character (P)
insert_line             "il1"    str    Add new blank line (P*)
insert_padding          "ip"     str    Insert pad after character inserted (P*)
key_backspace           "kbs"    str    Sent by backspace key
key_catab               "ktbc"   str    Sent by clear-all-tabs key.
key_clear               "kclr"   str    Sent by clear screen or erase key.
key_ctab                "kctab"  str    Sent by clear-tab key
key_dc                  "kdch1"  str    Sent by delete character key.
key_dl                  "kdl1"   str    Sent by delete line key.
key_down                "kcud1"  str    Sent by terminal down arrow key
key_eic                 "krmir"  str    Sent by rmir or smir in insert mode.
key_eol                 "kel"    str    Sent by clear-to-end-of-line key.
key_eos                 "ked"    str    Sent by clear-to-end-of-screen key.
key_f0                  "kf0"    str    Sent by function key f0.
key_f1                  "kf1"    str    Sent by function key f1.
key_f10                 "kf10"   str    Sent by function key f10.
key_f2                  "kf2"    str    Sent by function key f2.
key_f3                  "kf3"    str    Sent by function key f3.
key_f4                  "kf4"    str    Sent by function key f4.
key_f5                  "kf5"    str    Sent by function key f5.
key_f6                  "kf6"    str    Sent by function key f6.
key_f7                  "kf7"    str    Sent by function key f7.
key_f8                  "kf8"    str    Sent by function key f8.
key_f9                  "kf9"    str    Sent by function key f9.
key_home                "khome"  str    Sent by home key.
key_ic                  "kich1"  str    Sent by ins char/enter ins mode key.
key_il                  "kil1"   str    Sent by insert line.
key_left                "kcub1"  str    Sent by terminal left arrow key
key_ll			"kll"	 str	Sent by "home down" key (lower left)
key_npage               "knp"    str    Sent by next-page key
key_ppage               "kpp"    str    Sent by previous-page key
key_right               "kcuf1"  str    Sent by terminal right arrow key
key_sf                  "kind"   str    Sent by scroll-forward/down key
key_sr                  "kri"    str    Sent by scroll-backward/up key
key_stab                "khts"   str    Sent by set-tab key
key_up                  "kcuu1"  str    Sent by terminal up arrow key
keypad_local            "rmkx"   str    Out of "keypad transmit" mode
keypad_xmit             "smkx"   str    Put terminal in "keypad transmit" mode
lab_f0                  "lf0"    str    Labels on function key f0 if not f0
lab_f1                  "lf1"    str    Labels on function key f1 if not f1
lab_f10                 "lf10"   str    Labels on function key f10 if not f10
lab_f2                  "lf2"    str    Labels on function key f2 if not f2
lab_f3                  "lf3"    str    Labels on function key f3 if not f3
lab_f4                  "lf4"    str    Labels on function key f4 if not f4
lab_f5                  "lf5"    str    Labels on function key f5 if not f5
lab_f6                  "lf6"    str    Labels on function key f6 if not f6
lab_f7                  "lf7"    str    Labels on function key f7 if not f7
lab_f8                  "lf8"    str    Labels on function key f8 if not f8
lab_f9                  "lf9"    str    Labels on function key f9 if not f9
meta_off                "rmm"    str    Turn off "meta mode"
meta_on                 "smm"    str    Turn on "meta mode" (8th bit)
newline                 "nel"    str    Newline (behaves like cr followed by lf)
pad_char                "pad"    str    Pad character (rather than null)
parm_dch                "dch"    str    Delete #1 chars (PG*)
parm_delete_line        "dl"     str    Delete #1 lines (PG*)
parm_down_cursor        "cud"    str    Move cursor down #1 lines. (PG*)
parm_ich                "ich"    str    Insert #1 blank chars (PG*)
parm_index		"indn"	 str	Scroll forward #1 lines (PG)
parm_insert_line        "il"     str    Add #1 new blank lines (PG*)
parm_left_cursor        "cub"    str    Move cursor left #1 spaces (PG)
parm_right_cursor       "cuf"    str    Move cursor right #1 spaces. (PG*)
parm_rindex		"rin"	 str	Scroll backward #1 lines (PG)
parm_up_cursor          "cuu"    str    Move cursor up #1 lines. (PG*)
pkey_key                "pfkey"  str    Prog funct key #1 to type string #2
pkey_local              "pfloc"  str    Prog funct key #1 to execute string #2
pkey_xmit               "pfx"    str    Prog funct key #1 to xmit string #2
print_screen            "mc0"    str    Print contents of the screen
prtr_off                "mc4"    str    Turn off the printer
prtr_on                 "mc5"    str    Turn on the printer
repeat_char             "rep"    str    Repeat char #1 #2 times.  (PG*)
reset_1string           "rs1"    str    Reset terminal completely to sane modes.
reset_2string           "rs2"    str    Reset terminal completely to sane modes.
reset_3string           "rs3"    str    Reset terminal completely to sane modes.
reset_file              "rf"     str    Name of file containing reset string.
restore_cursor          "rc"     str    Restore cursor to position of last sc.
row_address             "vpa"    str    Like hpa but sets row. (PG)
save_cursor             "sc"     str    Save cursor position. (P)
scroll_forward          "ind"    str    Scroll text up (P)
scroll_reverse          "ri"     str    Scroll text down (P)
set_attributes          "sgr"    str    Define the video attributes (PG9)
set_tab                 "hts"    str    Set a tab in all rows, current column.
set_window              "wind"   str    Current window is lines #1-#2 cols #3-#4
tab                     "ht"     str    Tab to next 8 space hardware tab stop.
to_status_line          "tsl"    str    Go to status line
underline_char          "uc"     str    Underscore one char and move past it
up_half_line            "hu"     str    Half-line up (reverse 1/2 linefeed)
init_prog               "iprog"  str    Path name of program for init
key_a1                  "ka1"    str    Upper left of keypad
key_a3                  "ka3"    str    Upper right of keypad
key_b2                  "kb2"    str    Center of keypad
key_c1                  "kc1"    str    Lower left of keypad
key_c3                  "kc3"    str    Lower right of keypad
prtr_non                "mc5p"   str    Turn on the printer for #1 bytes.
char_padding            "rmp"    str    Like ip but when in replace mode
acs_chars               "acsc"   str    Graphics char set pairs aAbBcC - defn=vt100
plab_norm               "pln"    str    Prog label #1 to show string #2
