home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-User.iso / usr / lib / emacs / info / termcap-3 (.txt) < prev    next >
GNU Info File  |  1992-10-30  |  48KB  |  847 lines

  1. This is Info file ../info/termcap, produced by Makeinfo-1.49 from the
  2. input file termcap.texi.
  3.    This file documents the termcap library of the GNU system.
  4.    Copyright (C) 1988 Free Software Foundation, Inc.
  5.    Permission is granted to make and distribute verbatim copies of this
  6. manual provided the copyright notice and this permission notice are
  7. preserved on all copies.
  8.    Permission is granted to copy and distribute modified versions of
  9. this manual under the conditions for verbatim copying, provided that
  10. the entire resulting derived work is distributed under the terms of a
  11. permission notice identical to this one.
  12.    Permission is granted to copy and distribute translations of this
  13. manual into another language, under the above conditions for modified
  14. versions, except that this permission notice may be stated in a
  15. translation approved by the Foundation.
  16. File: termcap,  Node: Standout,  Next: Underlining,  Prev: Insdel Char,  Up: Capabilities
  17. Standout and Appearance Modes
  18. =============================
  19.    "Appearance modes" are modifications to the ways characters are
  20. displayed.  Typical appearance modes include reverse video, dim, bright,
  21. blinking, underlined, invisible, and alternate character set.  Each
  22. kind of terminal supports various among these, or perhaps none.
  23.    For each type of terminal, one appearance mode or combination of
  24. them that looks good for highlighted text is chosen as the "standout
  25. mode".  The capabilities `so' and `se' say how to enter and leave
  26. standout mode.  Programs that use appearance modes only to highlight
  27. some text generally use the standout mode so that they can work on as
  28. many terminals as possible.  Use of specific appearance modes other
  29. than "underlined" and "alternate character set" is rare.
  30.    Terminals that implement appearance modes fall into two general
  31. classes as to how they do it.
  32.    In some terminals, the presence or absence of any appearance mode is
  33. recorded separately for each character position.  In these terminals,
  34. each graphic character written is given the appearance modes current at
  35. the time it is written, and keeps those modes until it is erased or
  36. overwritten. There are special commands to turn the appearance modes on
  37. or off for characters to be written in the future.
  38.    In other terminals, the change of appearance modes is represented by
  39. a marker that belongs to a certain screen position but affects all
  40. following screen positions until the next marker.  These markers are
  41. traditionally called "magic cookies".
  42.    The same capabilities (`so', `se', `mb' and so on) for turning
  43. appearance modes on and off are used for both magic-cookie terminals
  44. and per-character terminals.  On magic cookie terminals, these give the
  45. commands to write the magic cookies.  On per-character terminals, they
  46. change the current modes that affect future output and erasure.  Some
  47. simple applications can use these commands without knowing whether or
  48. not they work by means of cookies.
  49.    However, a program that maintains and updates a display needs to know
  50. whether the terminal uses magic cookies, and exactly what their effect
  51. is. This information comes from the `sg' capability.
  52.    The `sg' capability is a numeric capability whose presence indicates
  53. that the terminal uses magic cookies for appearance modes.  Its value is
  54. the number of character positions that a magic cookie occupies.  Usually
  55. the cookie occupies one or more character positions on the screen, and
  56. these character positions are displayed as blank, but in some terminals
  57. the cookie has zero width.
  58.    The `sg' capability describes both the magic cookie to turn standout
  59. on and the cookie to turn it off.  This makes the assumption that both
  60. kinds of cookie have the same width on the screen.  If that is not true,
  61. the narrower cookie must be "widened" with spaces until it has the same
  62. width as the other.
  63.    On some magic cookie terminals, each line always starts with normal
  64. display; in other words, the scope of a magic cookie never extends over
  65. more than one line.  But on other terminals, one magic cookie affects
  66. all the lines below it unless explicitly canceled.  Termcap does not
  67. define any way to distinguish these two ways magic cookies can work. 
  68. To be safe, it is best to put a cookie at the beginning of each line.
  69.    On some per-character terminals, standout mode or other appearance
  70. modes may be canceled by moving the cursor.  On others, moving the
  71. cursor has no effect on the state of the appearance modes.  The latter
  72. class of terminals are given the flag capability `ms' ("can move in
  73. standout").  All programs that might have occasion to move the cursor
  74. while appearance modes are turned on must check for this flag; if it is
  75. not present, they should reset appearance modes to normal before doing
  76. cursor motion.
  77.    A program that has turned on only standout mode should use `se' to
  78. reset the standout mode to normal.  A program that has turned on only
  79. alternate character set mode should use `ae' to return it to normal. If
  80. it is possible that any other appearance modes are turned on, use the
  81. `me' capability to return them to normal.
  82.    Note that the commands to turn on one appearance mode, including `so'
  83. and `mb' ... `mr', if used while some other appearance modes are turned
  84. on, may combine the two modes on some terminals but may turn off the
  85. mode previously enabled on other terminals.  This is because some
  86. terminals do not have a command to set or clear one appearance mode
  87. without changing the others.  Programs should not attempt to use
  88. appearance modes in combination except with `sa', and when switching
  89. from one single mode to another should always turn off the previously
  90. enabled mode and then turn on the new desired mode.
  91.    On some old terminals, the `so' and `se' commands may be the same
  92. command, which has the effect of turning standout on if it is off, or
  93. off it is on.  It is therefore risky for a program to output extra `se'
  94. commands for good measure.  Fortunately, all these terminals are
  95. obsolete.
  96.    Programs that update displays in which standout-text may be replaced
  97. with non-standout text must check for the `xs' flag.  In a per-character
  98. terminal, this flag says that the only way to remove standout once
  99. written is to clear that portion of the line with the `ce' string or
  100. something even more powerful (*note Clearing::.); just writing new
  101. characters at those screen positions will not change the modes in
  102. effect there.  In a magic cookie terminal, `xs' says that the only way
  103. to remove a cookie is to clear a portion of the line that includes the
  104. cookie; writing a different cookie at the same position does not work.
  105.    Such programs must also check for the `xt' flag, which means that the
  106. terminal is a Teleray 1061.  On this terminal it is impossible to
  107. position the cursor at the front of a magic cookie, so the only two
  108. ways to remove a cookie are (1) to delete the line it is on or (2) to
  109. position the cursor at least one character before it (possibly on a
  110. previous line) and output the `se' string, which on these terminals
  111. finds and removes the next `so' magic cookie on the screen.  (It may
  112. also be possible to remove a cookie which is not at the beginning of a
  113. line by clearing that line.)  The `xt' capability also has implications
  114. for the use of tab characters, but in that regard it is obsolete (*Note
  115. Cursor Motion::).
  116.      String of commands to enter standout mode.
  117.      String of commands to leave standout mode.
  118.      Numeric capability, the width on the screen of the magic cookie. 
  119.      This capability is absent in terminals that record appearance modes
  120.      character by character.
  121.      Flag whose presence means that it is safe to move the cursor while
  122.      the appearance modes are not in the normal state.  If this flag is
  123.      absent, programs should always reset the appearance modes to
  124.      normal before moving the cursor.
  125.      Flag whose presence means that the only way to reset appearance
  126.      modes already on the screen is to clear to end of line.  On a
  127.      per-character terminal, you must clear the area where the modes
  128.      are set.  On a magic cookie terminal, you must clear an area
  129.      containing the cookie. See the discussion above.
  130.      Flag whose presence means that the cursor cannot be positioned
  131.      right in front of a magic cookie, and that `se' is a command to
  132.      delete the next magic cookie following the cursor.  See discussion
  133.      above.
  134.      String of commands to enter blinking mode.
  135.      String of commands to enter double-bright mode.
  136.      String of commands to enter half-bright mode.
  137.      String of commands to enter invisible mode.
  138.      String of commands to enter protected mode.
  139.      String of commands to enter reverse-video mode.
  140.      String of commands to turn off all appearance modes, including
  141.      standout mode and underline mode.  On some terminals it also turns
  142.      off alternate character set mode; on others, it may not.  This
  143.      capability must be present if any of `mb' ... `mr' is present.
  144.      String of commands to turn on alternate character set mode.  This
  145.      mode assigns some or all graphic characters an alternate picture
  146.      on the screen.  There is no standard as to what the alternate
  147.      pictures look like.
  148.      String of commands to turn off alternate character set mode.
  149.      String of commands to turn on an arbitrary combination of
  150.      appearance modes.  It accepts 9 parameters, each of which controls
  151.      a particular kind of appearance mode.  A parameter should be 1 to
  152.      turn its appearance mode on, or zero to turn that mode off.  Most
  153.      terminals do not support the `sa' capability, even among those
  154.      that do have various appearance modes.
  155.      The nine parameters are, in order, STANDOUT, UNDERLINE, REVERSE,
  156.      BLINK, HALF-BRIGHT, DOUBLE-BRIGHT, BLANK, PROTECT, ALT CHAR SET.
  157. File: termcap,  Node: Underlining,  Next: Cursor Visibility,  Prev: Standout,  Up: Capabilities
  158. Underlining
  159. ===========
  160.    Underlining on most terminals is a kind of appearance mode, much like
  161. standout mode.  Therefore, it may be implemented using magic cookies or
  162. as a flag in the terminal whose current state affects each character
  163. that is output.  *Note Standout::, for a full explanation.
  164.    The `ug' capability is a numeric capability whose presence indicates
  165. that the terminal uses magic cookies for underlining.  Its value is the
  166. number of character positions that a magic cookie for underlining
  167. occupies; it is used for underlining just as `sg' is used for standout.
  168.  Aside from the simplest applications, it is impossible to use
  169. underlining correctly without paying attention to the value of `ug'.
  170.      String of commands to turn on underline mode or to output a magic
  171.      cookie to start underlining.
  172.      String of commands to turn off underline mode or to output a magic
  173.      cookie to stop underlining.
  174.      Width of magic cookie that represents a change of underline mode;
  175.      or missing, if the terminal does not use a magic cookie for this.
  176.      Flag whose presence means that it is safe to move the cursor while
  177.      the appearance modes are not in the normal state.  Underlining is
  178.      an appearance mode.  If this flag is absent, programs should
  179.      always turn off underlining before moving the cursor.
  180.    There are two other, older ways of doing underlining: there can be a
  181. command to underline a single character, or the output of `_', the
  182. ASCII underscore character, as an overstrike could cause a character to
  183. be underlined.  New programs need not bother to handle these
  184. capabilities unless the author cares strongly about the obscure
  185. terminals which support them.  However, terminal descriptions should
  186. provide these capabilities when appropriate.
  187.      String of commands to underline the character under the cursor, and
  188.      move the cursor right.
  189.      Flag whose presence means that the terminal can underline by
  190.      overstriking an underscore character (`_'); some terminals can do
  191.      this even though they do not support overstriking in general.  An
  192.      implication of this flag is that when outputting new text to
  193.      overwrite old text, underscore characters must be treated
  194.      specially lest they underline the old text instead.
  195. File: termcap,  Node: Cursor Visibility,  Next: Bell,  Prev: Underlining,  Up: Capabilities
  196. Cursor Visibility
  197. =================
  198.    Some terminals have the ability to make the cursor invisible, or to
  199. enhance it.  Enhancing the cursor is often done by programs that plan
  200. to use the cursor to indicate to the user a position of interest that
  201. may be anywhere on the screen--for example, the Emacs editor enhances
  202. the cursor on entry. Such programs should always restore the cursor to
  203. normal on exit.
  204.      String of commands to enhance the cursor.
  205.      String of commands to make the cursor invisible.
  206.      String of commands to return the cursor to normal.
  207.    If you define either `vs' or `vi', you must also define `ve'.
  208. File: termcap,  Node: Bell,  Next: Keypad,  Prev: Cursor Visibility,  Up: Capabilities
  209.    Here we describe commands to make the terminal ask for the user to
  210. pay attention to it.
  211.      String of commands to cause the terminal to make an audible sound.
  212.       If this capability is absent, the terminal has no way to make a
  213.      suitable sound.
  214.      String of commands to cause the screen to flash to attract
  215.      attention ("visible bell").  If this capability is absent, the
  216.      terminal has no way to do such a thing.
  217. File: termcap,  Node: Keypad,  Next: Meta Key,  Prev: Bell,  Up: Capabilities
  218. Keypad and Function Keys
  219. ========================
  220.    Many terminals have arrow and function keys that transmit specific
  221. character sequences to the computer.  Since the precise sequences used
  222. depend on the terminal, termcap defines capabilities used to say what
  223. the sequences are.  Unlike most termcap string-valued capabilities,
  224. these are not strings of commands to be sent to the terminal, rather
  225. strings that are received from the terminal.
  226.    Programs that expect to use keypad keys should check, initially, for
  227. a `ks' capability and send it, to make the keypad actually transmit.
  228. Such programs should also send the `ke' string when exiting.
  229.      String of commands to make the function keys transmit.  If this
  230.      capability is not provided, but the others in this section are,
  231.      programs may assume that the function keys always transmit.
  232.      String of commands to make the function keys work locally.  This
  233.      capability is provided only if `ks' is.
  234.      String of input characters sent by typing the left-arrow key.  If
  235.      this capability is missing, you cannot expect the terminal to have
  236.      a left-arrow key that transmits anything to the computer.
  237.      String of input characters sent by typing the right-arrow key.
  238.      String of input characters sent by typing the up-arrow key.
  239.      String of input characters sent by typing the down-arrow key.
  240.      String of input characters sent by typing the "home-position" key.
  241. `K1' ... `K5'
  242.      Strings of input characters sent by the five other keys in a 3-by-3
  243.      array that includes the arrow keys, if the keyboard has such a
  244.      3-by-3 array.  Note that one of these keys may be the
  245.      "home-position" key, in which case one of these capabilities will
  246.      have the same value as the `kh' key.
  247.      String of input characters sent by function key 10 (or 0, if the
  248.      terminal has one labeled 0).
  249. `k1' ... `k9'
  250.      Strings of input characters sent by function keys 1 through 9,
  251.      provided for those function keys that exist.
  252.      Number: the number of numbered function keys, if there are more
  253.      than 10.
  254. `l0' ... `l9'
  255.      Strings which are the labels appearing on the keyboard on the keys
  256.      described by the capabilities `k0' ... `l9'.  These capabilities
  257.      should be left undefined if the labels are `f0' or `f10' and `f1'
  258.      ... `f9'.
  259.      String of input characters sent by the "home down" key, if there is
  260.      one.
  261.      String of input characters sent by the "backspace" key, if there is
  262.      one.
  263.      String of input characters sent by the "clear all tabs" key, if
  264.      there is one.
  265.      String of input characters sent by the "clear tab stop this column"
  266.      key, if there is one.
  267.      String of input characters sent by the "clear screen" key, if
  268.      there is one.
  269.      String of input characters sent by the "delete character" key, if
  270.      there is one.
  271.      String of input characters sent by the "delete line" key, if there
  272.      is one.
  273.      String of input characters sent by the "exit insert mode" key, if
  274.      there is one.
  275.      String of input characters sent by the "clear to end of line" key,
  276.      if there is one.
  277.      String of input characters sent by the "clear to end of screen"
  278.      key, if there is one.
  279.      String of input characters sent by the "insert character" or "enter
  280.      insert mode" key, if there is one.
  281.      String of input characters sent by the "insert line" key, if there
  282.      is one.
  283.      String of input characters sent by the "next page" key, if there is
  284.      one.
  285.      String of input characters sent by the "previous page" key, if
  286.      there is one.
  287.      String of input characters sent by the "scroll forward" key, if
  288.      there is one.
  289.      String of input characters sent by the "scroll reverse" key, if
  290.      there is one.
  291.      String of input characters sent by the "set tab stop in this
  292.      column" key, if there is one.
  293.      String listing the other function keys the terminal has.  This is a
  294.      very obsolete way of describing the same information found in the
  295.      `kH' ... `kT' keys.  The string contains a list of two-character
  296.      termcap capability names, separated by commas.  The meaning is
  297.      that for each capability name listed, the terminal has a key which
  298.      sends the string which is the value of that capability.  For
  299.      example, the value `:ko=cl,ll,sf,sr:' says that the terminal has
  300.      four function keys which mean "clear screen", "home down", "scroll
  301.      forward" and "scroll reverse".
  302. File: termcap,  Node: Meta Key,  Next: Initialization,  Prev: Keypad,  Up: Capabilities
  303. Meta Key
  304. ========
  305.    A Meta key is a key on the keyboard that modifies each character you
  306. type by controlling the 0200 bit.  This bit is on if and only if the
  307. Meta key is held down when the character is typed.  Characters typed
  308. using the Meta key are called Meta characters.  Emacs uses Meta
  309. characters as editing commands.
  310.      Flag whose presence means that the terminal has a Meta key.
  311.      String of commands to enable the functioning of the Meta key.
  312.      String of commands to disable the functioning of the Meta key.
  313.    If the terminal has `km' but does not have `mm' and `mo', it means
  314. that the Meta key always functions.  If it has `mm' and `mo', it means
  315. that the Meta key can be turned on or off.  Send the `mm' string to
  316. turn it on, and the `mo' string to turn it off. I do not know why one
  317. would ever not want it to be on.
  318. File: termcap,  Node: Initialization,  Next: Pad Specs,  Prev: Meta Key,  Up: Capabilities
  319. Initialization
  320. ==============
  321.      String of commands to put the terminal into whatever special modes
  322.      are needed or appropriate for programs that move the cursor
  323.      nonsequentially around the screen.  Programs that use termcap to do
  324.      full-screen display should output this string when they start up.
  325.      String of commands to undo what is done by the `ti' string.
  326.      Programs that output the `ti' string on entry should output this
  327.      string when they exit.
  328.      String of commands to initialize the terminal for each login
  329.      session.
  330.      String which is the name of a file containing the string of
  331.      commands to initialize the terminal for each session of use. 
  332.      Normally `is' and `if' are not both used.
  333.      Two more strings of commands to initialize the terminal for each
  334.      login session.  The `i1' string (if defined) is output before `is'
  335.      or `if', and the `i3' string (if defined) is output after.
  336.      The reason for having three separate initialization strings is to
  337.      make it easier to define a group of related terminal types with
  338.      slightly different initializations.  Define two or three of the
  339.      strings in the basic type; then the other types can override one
  340.      or two of the strings.
  341.      String of commands to reset the terminal from any strange mode it
  342.      may be in.  Normally this includes the `is' string (or other
  343.      commands with the same effects) and more.  What would go in the
  344.      `rs' string but not in the `is' string are annoying or slow
  345.      commands to bring the terminal back from strange modes that nobody
  346.      would normally use.
  347.      Numeric value, the initial spacing between hardware tab stop
  348.      columns when the terminal is powered up.  Programs to initialize
  349.      the terminal can use this to decide whether there is a need to set
  350.      the tab stops. If the initial width is 8, well and good; if it is
  351.      not 8, then the tab stops should be set; if they cannot be set,
  352.      the kernel is told to convert tabs to spaces, and other programs
  353.      will observe this and do likewise.
  354.      String of commands to clear all tab stops.
  355.      String of commands to set tab stop at current cursor column on all
  356.      lines.
  357. File: termcap,  Node: Pad Specs,  Next: Status Line,  Prev: Initialization,  Up: Capabilities
  358. Padding Capabilities
  359. ====================
  360.    There are two terminal capabilities that exist just to explain the
  361. proper way to obey the padding specifications in all the command string
  362. capabilities.  One, `pc', must be obeyed by all termcap-using programs.
  363.      Numeric value, the lowest baud rate at which padding is actually
  364.      needed.  Programs may check this and refrain from doing any
  365.      padding at lower speeds.
  366.      String of commands for padding.  The first character of this
  367.      string is to be used as the pad character, instead of using null
  368.      characters for padding.  If `pc' is not provided, use null
  369.      characters.  Every program that uses termcap must look up this
  370.      capability and use it to set the variable `PC' that is used by
  371.      `tputs'. *Note Padding::.
  372.    Some termcap capabilities exist just to specify the amount of
  373. padding that the kernel should give to cursor motion commands used in
  374. ordinary sequential output.
  375.      Numeric value, the number of msec of padding needed for the
  376.      carriage-return character.
  377.      Numeric value, the number of msec of padding needed for the newline
  378.      (linefeed) character.
  379.      Numeric value, the number of msec of padding needed for the
  380.      backspace character.
  381.      Numeric value, the number of msec of padding needed for the
  382.      formfeed character.
  383.      Numeric value, the number of msec of padding needed for the tab
  384.      character.
  385.    In some systems, the kernel uses the above capabilities; in other
  386. systems, the kernel uses the paddings specified in the string
  387. capabilities `cr', `sf', `le', `ff' and `ta'.  Descriptions of
  388. terminals which require such padding should contain the `dC' ... `dT'
  389. capabilities and also specify the appropriate padding in the
  390. corresponding string capabilities.  Since no modern terminals require
  391. padding for ordinary sequential output, you probably won't need to do
  392. either of these things.
  393. File: termcap,  Node: Status Line,  Next: Half-Line,  Prev: Pad Specs,  Up: Capabilities
  394. Status Line
  395. ===========
  396.    A "status line" is a line on the terminal that is not used for
  397. ordinary display output but instead used for a special message.  The
  398. intended use is for a continuously updated description of what the
  399. user's program is doing, and that is where the name "status line" comes
  400. from, but in fact it could be used for anything.  The distinguishing
  401. characteristic of a status line is that ordinary output to the terminal
  402. does not affect it; it changes only if the special status line commands
  403. of this section are used.
  404.      Flag whose presence means that the terminal has a status line.  If
  405.      a terminal description specifies that there is a status line, it
  406.      must provide the `ts' and `fs' capabilities.
  407.      String of commands to move the terminal cursor into the status
  408.      line. Usually these commands must specifically record the old
  409.      cursor position for the sake of the `fs' string.
  410.      String of commands to move the cursor back from the status line to
  411.      its previous position (outside the status line).
  412.      Flag whose presence means that other display commands work while
  413.      writing the status line.  In other words, one can clear parts of
  414.      it, insert or delete characters, move the cursor within it using
  415.      `ch' if there is a `ch' capability, enter and leave standout mode,
  416.      and so on.
  417.      String of commands to disable the display of the status line.  This
  418.      may be absent, if there is no way to disable the status line
  419.      display.
  420.      Numeric value, the width of the status line.  If this capability is
  421.      absent in a terminal that has a status line, it means the status
  422.      line is the same width as the other lines.
  423.      Note that the value of `ws' is sometimes as small as 8.
  424. File: termcap,  Node: Half-Line,  Next: Printer,  Prev: Status Line,  Up: Capabilities
  425. Half-Line Motion
  426. ================
  427.    Some terminals have commands for moving the cursor vertically by
  428. half-lines, useful for outputting subscripts and superscripts.  Mostly
  429. it is hardcopy terminals that have such features.
  430.      String of commands to move the cursor up half a line.  If the
  431.      terminal is a display, it is your responsibility to avoid moving
  432.      up past the top line; however, most likely the terminal that
  433.      supports this is a hardcopy terminal and there is nothing to be
  434.      concerned about.
  435.      String of commands to move the cursor down half a line.  If the
  436.      terminal is a display, it is your responsibility to avoid moving
  437.      down past the bottom line, etc.
  438. File: termcap,  Node: Printer,  Prev: Half-Line,  Up: Capabilities
  439. Controlling Printers Attached to Terminals
  440. ==========================================
  441.    Some terminals have attached hardcopy printer ports.  They may be
  442. able to copy the screen contents to the printer; they may also be able
  443. to redirect output to the printer.  Termcap does not have anything to
  444. tell the program whether the redirected output appears also on the
  445. screen; it does on some terminals but not all.
  446.      String of commands to cause the contents of the screen to be
  447.      printed. If it is absent, the screen contents cannot be printed.
  448.      String of commands to redirect further output to the printer.
  449.      String of commands to terminate redirection of output to the
  450.      printer. This capability must be present in the description if
  451.      `po' is.
  452.      String of commands to redirect output to the printer for next N
  453.      characters of output, regardless of what they are.  Redirection
  454.      will end automatically after N characters of further output.  Until
  455.      then, nothing that is output can end redirection, not even the
  456.      `pf' string if there is one.  The number N should not be more than
  457.      255.
  458.      One use of this capability is to send non-text byte sequences
  459.      (such as bit-maps) to the printer.
  460.    Most terminals with printers do not support all of `ps', `po' and
  461. `pO'; any one or two of them may be supported.  To make a program that
  462. can send output to all kinds of printers, it is necessary to check for
  463. all three of these capabilities, choose the most convenient of the ones
  464. that are provided, and use it in its own appropriate fashion.
  465. File: termcap,  Node: Summary,  Next: Var Index,  Prev: Capabilities,  Up: Top
  466. Summary of Capability Names
  467. ***************************
  468.    Here are all the terminal capability names in alphabetical order
  469. with a brief description of each.  For cross references to their
  470. definitions, see the index of capability names (*note Cap Index::.).
  471.      String to turn off alternate character set mode.
  472.      String to insert a blank line before the cursor.
  473.      String to insert N blank lines before the cursor.
  474.      Flag: output to last column wraps cursor to next line.
  475.      String to turn on alternate character set mode.like.
  476.      Very obsolete alternative name for the `le' capability.
  477.      String to sound the bell.
  478.      Obsolete flag: ASCII backspace may be used for leftward motion.
  479.      String to move the cursor left to the previous hardware tab stop
  480.      column.
  481.      Flag: `le' at left margin wraps to end of previous line.
  482.      String to change terminal's command character.
  483.      String to clear the line the cursor is on, and following lines.
  484.      String to clear from the cursor to the end of the line.
  485.      String to position the cursor at column C in the same line.
  486.      String to clear the entire screen and put cursor at upper left
  487.      corner.
  488.      String to position the cursor at line L, column C.
  489.      String to position the cursor at line L, column C, relative to
  490.      display memory.
  491.      Number: width of the screen.
  492.      String to move cursor sideways to left margin.
  493.      String to set the scroll region.
  494.      Alternate form of string to set the scroll region.
  495.      String to clear all tab stops.
  496.      String to position the cursor at line L in the same column.
  497.      Flag: data scrolled off top of screen may be scrolled back.
  498.      Flag: data scrolled off bottom of screen may be scrolled back.
  499.      Obsolete number: msec of padding needed for the backspace
  500.      character.
  501.      String to delete one character position at the cursor.
  502.      Obsolete number: msec of padding needed for the carriage-return
  503.      character.
  504.      String to delete N characters starting at the cursor.
  505.      Obsolete number: msec of padding needed for the formfeed character.
  506.      String to delete the line the cursor is on.
  507.      String to delete N lines starting with the cursor's line.
  508.      String to enter delete mode.
  509.      Obsolete number: msec of padding needed for the newline character.
  510.      String to move the cursor vertically down one line.
  511.      String to move cursor vertically down N lines.
  512.      String to disable the display of the status line.
  513.      Obsolete number: msec of padding needed for the tab character.
  514.      String of commands to clear N characters at cursor.
  515.      String to exit delete mode.
  516.      String to leave insert mode.
  517.      Flag: output of a space can erase an overstrike.
  518.      Flag: other display commands work while writing the status line.
  519.      String to advance to the next page, for a hardcopy terminal.
  520.      String to move the cursor back from the status line to its
  521.      previous position (outside the status line).
  522.      Flag: this terminal type is generic, not real.
  523.      Flag: hardcopy terminal.
  524.      String to move the cursor down half a line.
  525.      String to position cursor at upper left corner.
  526.      Flag: the terminal has a status line.
  527.      String to move the cursor up half a line.
  528.      Flag: terminal cannot accept `~' as output.
  529.      String to initialize the terminal for each login session.
  530.      String to initialize the terminal for each login session.
  531.      String to insert one character position at the cursor.
  532.      String to insert N character positions at the cursor.
  533.      String naming a file of commands to initialize the terminal.
  534.      String to enter insert mode.
  535.      Flag: outputting a space is different from moving over empty
  536.      positions.
  537.      String to output following an inserted character in insert mode.
  538.      String to initialize the terminal for each login session.
  539.      Number: initial spacing between hardware tab stop columns.
  540.      String of input sent by function key 0 or 10.
  541. `k1 ... k9'
  542.      Strings of input sent by function keys 1 through 9.
  543. `K1 ... K5'
  544.      Strings sent by the five other keys in 3-by-3 array with arrows.
  545.      String of input sent by the "clear all tabs" key.
  546.      String of input sent by the "insert line" key.
  547.      String of input sent by the "backspace" key.
  548.      String of input sent by the "clear screen" key.
  549.      String of input sent by typing the down-arrow key.
  550.      String of input sent by the "delete character" key.
  551.      String to make the function keys work locally.
  552.      String of input sent by the "clear to end of line" key.
  553.      String of input sent by the "scroll forward" key.
  554.      String of input sent by typing the "home-position" key.
  555.      String of input sent by the "home down" key.
  556.      String of input sent by the "insert character" or "enter insert
  557.      mode" key.
  558.      String of input sent by typing the left-arrow key.
  559.      String of input sent by the "delete line" key.
  560.      Flag: the terminal has a Meta key.
  561.      String of input sent by the "exit insert mode" key.
  562.      Numeric value, the number of numbered function keys.
  563.      String of input sent by the "next page" key.
  564.      Very obsolete string listing the terminal's named function keys.
  565.      String of input sent by the "previous page" key.
  566.      String of input sent by typing the right-arrow key.
  567.      String of input sent by the "scroll reverse" key.
  568.      String to make the function keys transmit.
  569.      String of input sent by the "clear to end of screen" key.
  570.      String of input sent by the "clear tab stop this column" key.
  571.      String of input sent by the "set tab stop in this column" key.
  572.      String of input sent by typing the up-arrow key.
  573.      String on keyboard labelling function key 0 or 10.
  574. `l1 ... l9'
  575.      Strings on keyboard labelling function keys 1 through 9.
  576.      String to move the cursor left one column.
  577.      String to move cursor left N columns.
  578.      Number: height of the screen.
  579.      String to position cursor at lower left corner.
  580.      Number: lines of display memory.
  581.      String to enter blinking mode.
  582.      String to enter double-bright mode.
  583.      String to turn off all appearance modes
  584.      String to enter half-bright mode.
  585.      Flag: cursor motion in insert mode is safe.
  586.      String to enter invisible mode.
  587.      String to enable the functioning of the Meta key.
  588.      String to disable the functioning of the Meta key.
  589.      String to enter protected mode.
  590.      String to enter reverse-video mode.
  591.      Flag: cursor motion in standout mode is safe.
  592.      Obsolete flag: do not use ASCII carriage-return on this terminal.
  593.      String to move the cursor right one column.
  594.      Obsolete alternative name for the `do' and `sf' capabilities.
  595.      Flag: the terminal does not normally scroll for sequential output.
  596.      String to move to start of next line, possibly clearing rest of
  597.      old line.
  598.      Flag: terminal can overstrike.
  599.      Number: the lowest baud rate at which padding is actually needed.
  600.      String containing character for padding.
  601.      String to terminate redirection of output to the printer.
  602.      String to redirect further output to the printer.
  603.      String to redirect N characters ofoutput to the printer.
  604.      String to print the screen on the attached printer.
  605.      String to move to last saved cursor position.
  606.      String to move cursor right N columns.
  607.      String to output character C repeated N times.
  608.      String to reset the terminal from any strange modes.
  609.      String to turn on an arbitrary combination of appearance modes.
  610.      String to save the current cursor position.
  611.      String to leave standout mode.
  612.      String to scroll the screen one line up.
  613.      String to scroll the screen N lines up.
  614.      Number: width of magic standout cookie.  Absent if magic cookies
  615.      are not used.
  616.      String to enter standout mode.
  617.      String to scroll the screen one line down.
  618.      String to scroll the screen N line down.
  619.      String to set tab stop at current cursor column on all lines.
  620.      programs.
  621.      String to move the cursor right to the next hardware tab stop
  622.      column.
  623.      String to return terminal to settings for sequential output.
  624.      String to initialize terminal for random cursor motion.
  625.      String to move the terminal cursor into the status line.
  626.      String to underline one character and move cursor right.
  627.      String to turn off underline mode
  628.      Number: width of underlining magic cookie.  Absent if underlining
  629.      doesn't use magic cookies.
  630.      Flag: underline by overstriking with an underscore.
  631.      String to move the cursor vertically up one line.
  632.      String to move cursor vertically up N lines.
  633.      String to turn on underline mode
  634.      String to make the screen flash.
  635.      String to return the cursor to normal.
  636.      String to make the cursor invisible.
  637.      String to enhance the cursor.
  638.      String to set the terminal output screen window.
  639.      Number: the width of the status line.
  640.      Flag: superbee terminal.
  641.      Flag: cursor wraps in a strange way.
  642.      Flag: clearing a line is the only way to clear the appearance
  643.      modes of positions in that line (or, only way to remove magic
  644.      cookies on that line).
  645.      Flag: Teleray 1061; several strange characteristics.
  646. File: termcap,  Node: Var Index,  Next: Cap Index,  Prev: Summary,  Up: Top
  647. Variable and Function Index
  648. ***************************
  649. * Menu:
  650. * BC:                                   tgoto.
  651. * ospeed:                               Output Padding.
  652. * PC:                                   Output Padding.
  653. * tgetent:                              Find.
  654. * tgetflag:                             Interrogate.
  655. * tgetnum:                              Interrogate.
  656. * tgetstr:                              Interrogate.
  657. * tgoto:                                tgoto.
  658. * tparam:                               tparam.
  659. * tputs:                                Output Padding.
  660. * UP:                                   tgoto.
  661. File: termcap,  Node: Cap Index,  Next: Index,  Prev: Var Index,  Up: Top
  662. Capability Index
  663. ****************
  664. * Menu:
  665. * ae:                                   Standout.
  666. * AL:                                   Insdel Line.
  667. * al:                                   Insdel Line.
  668. * am:                                   Wrapping.
  669. * as:                                   Standout.
  670. * bc:                                   Cursor Motion.
  671. * bl:                                   Bell.
  672. * bs:                                   Cursor Motion.
  673. * bt:                                   Cursor Motion.
  674. * bw:                                   Cursor Motion.
  675. * CC:                                   Basic.
  676. * cd:                                   Clearing.
  677. * ce:                                   Clearing.
  678. * ch:                                   Cursor Motion.
  679. * cl:                                   Clearing.
  680. * CM:                                   Cursor Motion.
  681. * cm:                                   Cursor Motion.
  682. * co:                                   Screen Size.
  683. * cr:                                   Cursor Motion.
  684. * cs:                                   Scrolling.
  685. * cS:                                   Scrolling.
  686. * ct:                                   Initialization.
  687. * cv:                                   Cursor Motion.
  688. * da:                                   Scrolling.
  689. * dB:                                   Pad Specs.
  690. * db:                                   Scrolling.
  691. * dC:                                   Pad Specs.
  692. * DC:                                   Insdel Char.
  693. * dc:                                   Insdel Char.
  694. * dF:                                   Pad Specs.
  695. * dl:                                   Insdel Line.
  696. * DL:                                   Insdel Line.
  697. * dm:                                   Insdel Char.
  698. * dN:                                   Pad Specs.
  699. * DO:                                   Cursor Motion.
  700. * do:                                   Cursor Motion.
  701. * ds:                                   Status Line.
  702. * dT:                                   Pad Specs.
  703. * ec:                                   Clearing.
  704. * ed:                                   Insdel Char.
  705. * ei:                                   Insdel Char.
  706. * eo:                                   Basic.
  707. * es:                                   Status Line.
  708. * ff:                                   Cursor Motion.
  709. * fs:                                   Status Line.
  710. * gn:                                   Basic.
  711. * hc:                                   Basic.
  712. * hd:                                   Half-Line.
  713. * ho:                                   Cursor Motion.
  714. * hs:                                   Status Line.
  715. * hu:                                   Half-Line.
  716. * hz:                                   Basic.
  717. * i1:                                   Initialization.
  718. * i3:                                   Initialization.
  719. * IC:                                   Insdel Char.
  720. * ic:                                   Insdel Char.
  721. * if:                                   Initialization.
  722. * im:                                   Insdel Char.
  723. * in:                                   Insdel Char.
  724. * ip:                                   Insdel Char.
  725. * is:                                   Initialization.
  726. * it:                                   Initialization.
  727. * K1...K5:                              Keypad.
  728. * k1...k9:                              Keypad.
  729. * kA...kT:                              Keypad.
  730. * ka...ku:                              Keypad.
  731. * km:                                   Meta Key.
  732. * l0...l9:                              Keypad.
  733. * le:                                   Cursor Motion.
  734. * LE:                                   Cursor Motion.
  735. * li:                                   Screen Size.
  736. * ll:                                   Cursor Motion.
  737. * lm:                                   Scrolling.
  738. * mb:                                   Standout.
  739. * md:                                   Standout.
  740. * me:                                   Standout.
  741. * mh:                                   Standout.
  742. * mi:                                   Insdel Char.
  743. * mk:                                   Standout.
  744. * mm:                                   Meta Key.
  745. * mo:                                   Meta Key.
  746. * mp:                                   Standout.
  747. * mr:                                   Standout.
  748. * ms:                                   Standout.
  749. * ms:                                   Underlining.
  750. * nc:                                   Cursor Motion.
  751. * nd:                                   Cursor Motion.
  752. * nl:                                   Cursor Motion.
  753. * ns:                                   Scrolling.
  754. * nw:                                   Cursor Motion.
  755. * os:                                   Basic.
  756. * pb:                                   Pad Specs.
  757. * pc:                                   Pad Specs.
  758. * pf:                                   Printer.
  759. * po:                                   Printer.
  760. * pO:                                   Printer.
  761. * ps:                                   Printer.
  762. * rc:                                   Cursor Motion.
  763. * RI:                                   Cursor Motion.
  764. * rp:                                   Basic.
  765. * rs:                                   Initialization.
  766. * sa:                                   Standout.
  767. * sc:                                   Cursor Motion.
  768. * se:                                   Standout.
  769. * sf:                                   Scrolling.
  770. * SF:                                   Scrolling.
  771. * sg:                                   Standout.
  772. * so:                                   Standout.
  773. * SR:                                   Scrolling.
  774. * sr:                                   Scrolling.
  775. * st:                                   Initialization.
  776. * ta:                                   Cursor Motion.
  777. * te:                                   Initialization.
  778. * ti:                                   Initialization.
  779. * ts:                                   Status Line.
  780. * uc:                                   Underlining.
  781. * ue:                                   Underlining.
  782. * ug:                                   Underlining.
  783. * ul:                                   Underlining.
  784. * up:                                   Cursor Motion.
  785. * UP:                                   Cursor Motion.
  786. * us:                                   Underlining.
  787. * vb:                                   Bell.
  788. * ve:                                   Cursor Visibility.
  789. * vi:                                   Cursor Visibility.
  790. * vs:                                   Cursor Visibility.
  791. * wi:                                   Windows.
  792. * ws:                                   Status Line.
  793. * xb:                                   Basic.
  794. * xn:                                   Wrapping.
  795. * xs:                                   Standout.
  796. * xt:                                   Cursor Motion.
  797. * xt:                                   Standout.
  798. File: termcap,  Node: Index,  Prev: Cap Index,  Up: Top
  799. Concept Index
  800. *************
  801. * Menu:
  802. * %:                                    Encode Parameters.
  803. * appearance modes:                     Standout.
  804. * bell:                                 Bell.
  805. * clearing the screen:                  Clearing.
  806. * command character:                    Basic.
  807. * cursor motion:                        Cursor Motion.
  808. * delete character:                     Insdel Char.
  809. * delete line:                          Insdel Line.
  810. * delete mode:                          Insdel Char.
  811. * description format:                   Format.
  812. * erasing:                              Clearing.
  813. * generic terminal type:                Basic.
  814. * home position:                        Cursor Motion.
  815. * inheritance:                          Inheriting.
  816. * initialization:                       Initialization.
  817. * insert character:                     Insdel Char.
  818. * insert line:                          Insdel Line.
  819. * insert mode:                          Insdel Char.
  820. * line speed:                           Output Padding.
  821. * magic cookie:                         Standout.
  822. * meta key:                             Meta Key.
  823. * names of terminal types:              Naming.
  824. * overstrike:                           Basic.
  825. * padding:                              Pad Specs.
  826. * padding:                              Padding.
  827. * parameters:                           Parameters.
  828. * printer:                              Printer.
  829. * repeat output:                        Basic.
  830. * reset:                                Initialization.
  831. * screen size:                          Screen Size.
  832. * screen size:                          Naming.
  833. * screen size:                          Screen Size.
  834. * scrolling:                            Scrolling.
  835. * standout:                             Standout.
  836. * status line:                          Status Line.
  837. * Superbee:                             Basic.
  838. * tab stops:                            Initialization.
  839. * termcap:                              Introduction.
  840. * terminal flags (kernel):              Initialize.
  841. * underlining:                          Underlining.
  842. * visibility:                           Cursor Visibility.
  843. * visible bell:                         Bell.
  844. * window:                               Windows.
  845. * wrapping:                             Wrapping.
  846. * wrapping:                             Naming.
  847.