home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / readline.zip / readline-2.1 / doc / history.info (.txt) < prev    next >
GNU Info File  |  1997-06-03  |  30KB  |  592 lines

  1. This is Info file history.info, produced by Makeinfo-1.55 from the
  2. input file /usr/homes/chet/src/bash/readline-2.1/doc/hist.texinfo.
  3.    This document describes the GNU History library, a programming tool
  4. that provides a consistent user interface for recalling lines of
  5. previously typed input.
  6.    Copyright (C) 1988, 1991, 1993, 1995, 1996 Free Software Foundation,
  7.    Permission is granted to make and distribute verbatim copies of this
  8. manual provided the copyright notice and this permission notice pare
  9. preserved on all copies.
  10.    Permission is granted to copy and distribute modified versions of
  11. this manual under the conditions for verbatim copying, provided that
  12. the entire resulting derived work is distributed under the terms of a
  13. permission notice identical to this one.
  14.    Permission is granted to copy and distribute translations of this
  15. manual into another language, under the above conditions for modified
  16. versions, except that this permission notice may be stated in a
  17. translation approved by the Foundation.
  18. File: history.info,  Node: Top,  Next: Using History Interactively,  Prev: (DIR),  Up: (DIR)
  19. GNU History Library
  20. *******************
  21.    This document describes the GNU History library, a programming tool
  22. that provides a consistent user interface for recalling lines of
  23. previously typed input.
  24. * Menu:
  25. * Using History Interactively::      GNU History User's Manual.
  26. * Programming with GNU History::  GNU History Programmer's Manual.
  27. * Concept Index::          Index of concepts described in this manual.
  28. * Function and Variable Index::      Index of externally visible functions
  29.                   and variables.
  30. File: history.info,  Node: Using History Interactively,  Next: Programming with GNU History,  Prev: Top,  Up: Top
  31. Using History Interactively
  32. ***************************
  33.    This chapter describes how to use the GNU History Library
  34. interactively, from a user's standpoint.  It should be considered a
  35. user's guide.  For information on using the GNU History Library in your
  36. own programs, *note Programming with GNU History::..
  37. * Menu:
  38. * History Interaction::        What it feels like using History as a user.
  39. File: history.info,  Node: History Interaction,  Up: Using History Interactively
  40. Interactive History Expansion
  41. =============================
  42.    The History library provides a history expansion feature that is
  43. similar to the history expansion provided by `csh'.  This section
  44. describes the syntax used to manipulate the history information.
  45.    History expansions introduce words from the history list into the
  46. input stream, making it easy to repeat commands, insert the arguments
  47. to a previous command into the current input line, or fix errors in
  48. previous commands quickly.
  49.    History expansion takes place in two parts.  The first is to
  50. determine which line from the previous history should be used during
  51. substitution.  The second is to select portions of that line for
  52. inclusion into the current one.  The line selected from the previous
  53. history is called the "event", and the portions of that line that are
  54. acted upon are called "words".  Various "modifiers" are available to
  55. manipulate the selected words.  The line is broken into words in the
  56. same fashion that Bash does, so that several English (or Unix) words
  57. surrounded by quotes are considered as one word.  History expansions
  58. are introduced by the appearance of the history expansion character,
  59. which is `!' by default.
  60. * Menu:
  61. * Event Designators::    How to specify which history line to use.
  62. * Word Designators::    Specifying which words are of interest.
  63. * Modifiers::        Modifying the results of substitution.
  64. File: history.info,  Node: Event Designators,  Next: Word Designators,  Up: History Interaction
  65. Event Designators
  66. -----------------
  67.    An event designator is a reference to a command line entry in the
  68. history list.
  69.      Start a history substitution, except when followed by a space, tab,
  70.      the end of the line, = or (.
  71.      Refer to command line N.
  72. `!-N'
  73.      Refer to the command N lines back.
  74.      Refer to the previous command.  This is a synonym for `!-1'.
  75. `!STRING'
  76.      Refer to the most recent command starting with STRING.
  77. `!?STRING[?]'
  78.      Refer to the most recent command containing STRING.  The trailing
  79.      `?' may be omitted if the STRING is followed immediately by a
  80.      newline.
  81. `^STRING1^STRING2^'
  82.      Quick Substitution.  Repeat the last command, replacing STRING1
  83.      with STRING2.  Equivalent to `!!:s/STRING1/STRING2/'.
  84.      The entire command line typed so far.
  85. File: history.info,  Node: Word Designators,  Next: Modifiers,  Prev: Event Designators,  Up: History Interaction
  86. Word Designators
  87. ----------------
  88.    Word designators are used to select desired words from the event.  A
  89. `:' separates the event specification from the word designator.  It can
  90. be omitted if the word designator begins with a `^', `$', `*', `-', or
  91. `%'.  Words are numbered from the beginning of the line, with the first
  92. word being denoted by 0 (zero).  Words are inserted into the current
  93. line separated by single spaces.
  94. `0 (zero)'
  95.      The `0'th word.  For many applications, this is the command word.
  96.      The Nth word.
  97.      The first argument; that is, word 1.
  98.      The last argument.
  99.      The word matched by the most recent `?STRING?' search.
  100. `X-Y'
  101.      A range of words; `-Y' abbreviates `0-Y'.
  102.      All of the words, except the `0'th.  This is a synonym for `1-$'.
  103.      It is not an error to use `*' if there is just one word in the
  104.      event; the empty string is returned in that case.
  105.      Abbreviates `X-$'
  106.      Abbreviates `X-$' like `X*', but omits the last word.
  107.    If a word designator is supplied without an event specification, the
  108. previous command is used as the event.
  109. File: history.info,  Node: Modifiers,  Prev: Word Designators,  Up: History Interaction
  110. Modifiers
  111. ---------
  112.    After the optional word designator, you can add a sequence of one or
  113. more of the following modifiers, each preceded by a `:'.
  114.      Remove a trailing pathname component, leaving only the head.
  115.      Remove all leading  pathname  components, leaving the tail.
  116.      Remove a trailing suffix of the form `.SUFFIX', leaving the
  117.      basename.
  118.      Remove all but the trailing suffix.
  119.      Print the new command but do not execute it.
  120. `s/OLD/NEW/'
  121.      Substitute NEW for the first occurrence of OLD in the event line.
  122.      Any delimiter may be used in place of `/'.  The delimiter may be
  123.      quoted in OLD and NEW with a single backslash.  If `&' appears in
  124.      NEW, it is replaced by OLD.  A single backslash will quote the
  125.      `&'.  The final delimiter is optional if it is the last character
  126.      on the input line.
  127.      Repeat the previous substitution.
  128.      Cause changes to be applied over the entire event line.  Used in
  129.      conjunction with `s', as in `gs/OLD/NEW/', or with `&'.
  130. File: history.info,  Node: Programming with GNU History,  Next: Concept Index,  Prev: Using History Interactively,  Up: Top
  131. Programming with GNU History
  132. ****************************
  133.    This chapter describes how to interface programs that you write with
  134. the GNU History Library.  It should be considered a technical guide.
  135. For information on the interactive use of GNU History, *note Using
  136. History Interactively::..
  137. * Menu:
  138. * Introduction to History::    What is the GNU History library for?
  139. * History Storage::        How information is stored.
  140. * History Functions::        Functions that you can use.
  141. * History Variables::        Variables that control behaviour.
  142. * History Programming Example::    Example of using the GNU History Library.
  143. File: history.info,  Node: Introduction to History,  Next: History Storage,  Up: Programming with GNU History
  144. Introduction to History
  145. =======================
  146.    Many programs read input from the user a line at a time.  The GNU
  147. History library is able to keep track of those lines, associate
  148. arbitrary data with each line, and utilize information from previous
  149. lines in composing new ones.
  150.    The programmer using the History library has available functions for
  151. remembering lines on a history list, associating arbitrary data with a
  152. line, removing lines from the list, searching through the list for a
  153. line containing an arbitrary text string, and referencing any line in
  154. the list directly.  In addition, a history "expansion" function is
  155. available which provides for a consistent user interface across
  156. different programs.
  157.    The user using programs written with the History library has the
  158. benefit of a consistent user interface with a set of well-known
  159. commands for manipulating the text of previous lines and using that text
  160. in new commands.  The basic history manipulation commands are similar to
  161. the history substitution provided by `csh'.
  162.    If the programmer desires, he can use the Readline library, which
  163. includes some history manipulation by default, and has the added
  164. advantage of command line editing.
  165. File: history.info,  Node: History Storage,  Next: History Functions,  Prev: Introduction to History,  Up: Programming with GNU History
  166. History Storage
  167. ===============
  168.    The history list is an array of history entries.  A history entry is
  169. declared as follows:
  170.      typedef struct _hist_entry {
  171.        char *line;
  172.        char *data;
  173.      } HIST_ENTRY;
  174.    The history list itself might therefore be declared as
  175.      HIST_ENTRY **the_history_list;
  176.    The state of the History library is encapsulated into a single
  177. structure:
  178.      /* A structure used to pass the current state of the history stuff around. */
  179.      typedef struct _hist_state {
  180.        HIST_ENTRY **entries;         /* Pointer to the entries themselves. */
  181.        int offset;                   /* The location pointer within this array. */
  182.        int length;                   /* Number of elements within this array. */
  183.        int size;                     /* Number of slots allocated to this array. */
  184.        int flags;
  185.      } HISTORY_STATE;
  186.    If the flags member includes `HS_STIFLED', the history has been
  187. stifled.
  188. File: history.info,  Node: History Functions,  Next: History Variables,  Prev: History Storage,  Up: Programming with GNU History
  189. History Functions
  190. =================
  191.    This section describes the calling sequence for the various functions
  192. present in GNU History.
  193. * Menu:
  194. * Initializing History and State Management::    Functions to call when you
  195.                         want to use history in a
  196.                         program.
  197. * History List Management::        Functions used to manage the list
  198.                     of history entries.
  199. * Information About the History List::    Functions returning information about
  200.                     the history list.
  201. * Moving Around the History List::    Functions used to change the position
  202.                     in the history list.
  203. * Searching the History List::        Functions to search the history list
  204.                     for entries containing a string.
  205. * Managing the History File::        Functions that read and write a file
  206.                     containing the history list.
  207. * History Expansion::            Functions to perform csh-like history
  208.                     expansion.
  209. File: history.info,  Node: Initializing History and State Management,  Next: History List Management,  Up: History Functions
  210. Initializing History and State Management
  211. -----------------------------------------
  212.    This section describes functions used to initialize and manage the
  213. state of the History library when you want to use the history functions
  214. in your program.
  215.  - Function: void using_history ()
  216.      Begin a session in which the history functions might be used.  This
  217.      initializes the interactive variables.
  218.  - Function: HISTORY_STATE * history_get_history_state ()
  219.      Return a structure describing the current state of the input
  220.      history.
  221.  - Function: void history_set_history_state (HISTORY_STATE *state)
  222.      Set the state of the history list according to STATE.
  223. File: history.info,  Node: History List Management,  Next: Information About the History List,  Prev: Initializing History and State Management,  Up: History Functions
  224. History List Management
  225. -----------------------
  226.    These functions manage individual entries on the history list, or set
  227. parameters managing the list itself.
  228.  - Function: void add_history (char *string)
  229.      Place STRING at the end of the history list.  The associated data
  230.      field (if any) is set to `NULL'.
  231.  - Function: HIST_ENTRY * remove_history (int which)
  232.      Remove history entry at offset WHICH from the history.  The
  233.      removed element is returned so you can free the line, data, and
  234.      containing structure.
  235.  - Function: HIST_ENTRY * replace_history_entry (int which, char *line,
  236.           char *data)
  237.      Make the history entry at offset WHICH have LINE and DATA.  This
  238.      returns the old entry so you can dispose of the data.  In the case
  239.      of an invalid WHICH, a `NULL' pointer is returned.
  240.  - Function: void clear_history ()
  241.      Clear the history list by deleting all the entries.
  242.  - Function: void stifle_history (int max)
  243.      Stifle the history list, remembering only the last MAX entries.
  244.  - Function: int unstifle_history ()
  245.      Stop stifling the history.  This returns the previous amount the
  246.      history was stifled.  The value is positive if the history was
  247.      stifled, negative if it wasn't.
  248.  - Function: int history_is_stifled ()
  249.      Returns non-zero if the history is stifled, zero if it is not.
  250. File: history.info,  Node: Information About the History List,  Next: Moving Around the History List,  Prev: History List Management,  Up: History Functions
  251. Information About the History List
  252. ----------------------------------
  253.    These functions return information about the entire history list or
  254. individual list entries.
  255.  - Function: HIST_ENTRY ** history_list ()
  256.      Return a `NULL' terminated array of `HIST_ENTRY' which is the
  257.      current input history.  Element 0 of this list is the beginning of
  258.      time.  If there is no history, return `NULL'.
  259.  - Function: int where_history ()
  260.      Returns the offset of the current history element.
  261.  - Function: HIST_ENTRY * current_history ()
  262.      Return the history entry at the current position, as determined by
  263.      `where_history ()'.  If there is no entry there, return a `NULL'
  264.      pointer.
  265.  - Function: HIST_ENTRY * history_get (int offset)
  266.      Return the history entry at position OFFSET, starting from
  267.      `history_base'.  If there is no entry there, or if OFFSET is
  268.      greater than the history length, return a `NULL' pointer.
  269.  - Function: int history_total_bytes ()
  270.      Return the number of bytes that the primary history entries are
  271.      using.  This function returns the sum of the lengths of all the
  272.      lines in the history.
  273. File: history.info,  Node: Moving Around the History List,  Next: Searching the History List,  Prev: Information About the History List,  Up: History Functions
  274. Moving Around the History List
  275. ------------------------------
  276.    These functions allow the current index into the history list to be
  277. set or changed.
  278.  - Function: int history_set_pos (int pos)
  279.      Set the position in the history list to POS, an absolute index
  280.      into the list.
  281.  - Function: HIST_ENTRY * previous_history ()
  282.      Back up the current history offset to the previous history entry,
  283.      and return a pointer to that entry.  If there is no previous
  284.      entry, return a `NULL' pointer.
  285.  - Function: HIST_ENTRY * next_history ()
  286.      Move the current history offset forward to the next history entry,
  287.      and return the a pointer to that entry.  If there is no next
  288.      entry, return a `NULL' pointer.
  289. File: history.info,  Node: Searching the History List,  Next: Managing the History File,  Prev: Moving Around the History List,  Up: History Functions
  290. Searching the History List
  291. --------------------------
  292.    These functions allow searching of the history list for entries
  293. containing a specific string.  Searching may be performed both forward
  294. and backward from the current history position.  The search may be
  295. "anchored", meaning that the string must match at the beginning of the
  296. history entry.
  297.  - Function: int history_search (char *string, int direction)
  298.      Search the history for STRING, starting at the current history
  299.      offset.  If DIRECTION < 0, then the search is through previous
  300.      entries, else through subsequent.  If STRING is found, then the
  301.      current history index is set to that history entry, and the value
  302.      returned is the offset in the line of the entry where STRING was
  303.      found.  Otherwise, nothing is changed, and a -1 is returned.
  304.  - Function: int history_search_prefix (char *string, int direction)
  305.      Search the history for STRING, starting at the current history
  306.      offset.  The search is anchored: matching lines must begin with
  307.      STRING.  If DIRECTION < 0, then the search is through previous
  308.      entries, else through subsequent.  If STRING is found, then the
  309.      current history index is set to that entry, and the return value
  310.      is 0.  Otherwise, nothing is changed, and a -1 is returned.
  311.  - Function: int history_search_pos (char *string, int direction, int
  312.           pos)
  313.      Search for STRING in the history list, starting at POS, an
  314.      absolute index into the list.  If DIRECTION is negative, the search
  315.      proceeds backward from POS, otherwise forward.  Returns the
  316.      absolute index of the history element where STRING was found, or
  317.      -1 otherwise.
  318. File: history.info,  Node: Managing the History File,  Next: History Expansion,  Prev: Searching the History List,  Up: History Functions
  319. Managing the History File
  320. -------------------------
  321.    The History library can read the history from and write it to a file.
  322. This section documents the functions for managing a history file.
  323.  - Function: int read_history (char *filename)
  324.      Add the contents of FILENAME to the history list, a line at a
  325.      time.  If FILENAME is `NULL', then read from `~/.history'.
  326.      Returns 0 if successful, or errno if not.
  327.  - Function: int read_history_range (char *filename, int from, int to)
  328.      Read a range of lines from FILENAME, adding them to the history
  329.      list.  Start reading at line FROM and end at TO.  If FROM is zero,
  330.      start at the beginning.  If TO is less than FROM, then read until
  331.      the end of the file.  If FILENAME is `NULL', then read from
  332.      `~/.history'.  Returns 0 if successful, or `errno' if not.
  333.  - Function: int write_history (char *filename)
  334.      Write the current history to FILENAME, overwriting FILENAME if
  335.      necessary.  If FILENAME is `NULL', then write the history list to
  336.      `~/.history'.  Values returned are as in `read_history ()'.
  337.  - Function: int append_history (int nelements, char *filename)
  338.      Append the last NELEMENTS of the history list to FILENAME.
  339.  - Function: int history_truncate_file (char *filename, int nlines)
  340.      Truncate the history file FILENAME, leaving only the last NLINES
  341.      lines.
  342. File: history.info,  Node: History Expansion,  Prev: Managing the History File,  Up: History Functions
  343. History Expansion
  344. -----------------
  345.    These functions implement `csh'-like history expansion.
  346.  - Function: int history_expand (char *string, char **output)
  347.      Expand STRING, placing the result into OUTPUT, a pointer to a
  348.      string (*note History Interaction::.).  Returns:
  349.     `0'
  350.           If no expansions took place (or, if the only change in the
  351.           text was the de-slashifying of the history expansion
  352.           character);
  353.     `1'
  354.           if expansions did take place;
  355.     `-1'
  356.           if there was an error in expansion;
  357.     `2'
  358.           if the returned line should only be displayed, but not
  359.           executed, as with the `:p' modifier (*note Modifiers::.).
  360.      If an error ocurred in expansion, then OUTPUT contains a
  361.      descriptive error message.
  362.  - Function: char * history_arg_extract (int first, int last, char
  363.           *string)
  364.      Extract a string segment consisting of the FIRST through LAST
  365.      arguments present in STRING.  Arguments are broken up as in Bash.
  366.  - Function: char * get_history_event (char *string, int *cindex, int
  367.           qchar)
  368.      Returns the text of the history event beginning at STRING +
  369.      *CINDEX.  *CINDEX is modified to point to after the event
  370.      specifier.  At function entry, CINDEX points to the index into
  371.      STRING where the history event specification begins.  QCHAR is a
  372.      character that is allowed to end the event specification in
  373.      addition to the "normal" terminating characters.
  374.  - Function: char ** history_tokenize (char *string)
  375.      Return an array of tokens parsed out of STRING, much as the shell
  376.      might.  The tokens are split on white space and on the characters
  377.      `()<>;&|$', and shell quoting conventions are obeyed.
  378. File: history.info,  Node: History Variables,  Next: History Programming Example,  Prev: History Functions,  Up: Programming with GNU History
  379. History Variables
  380. =================
  381.    This section describes the externally visible variables exported by
  382. the GNU History Library.
  383.  - Variable: int history_base
  384.      The logical offset of the first entry in the history list.
  385.  - Variable: int history_length
  386.      The number of entries currently stored in the history list.
  387.  - Variable: int max_input_history
  388.      The maximum number of history entries.  This must be changed using
  389.      `stifle_history ()'.
  390.  - Variable: char history_expansion_char
  391.      The character that starts a history event.  The default is `!'.
  392.  - Variable: char history_subst_char
  393.      The character that invokes word substitution if found at the start
  394.      of a line.  The default is `^'.
  395.  - Variable: char history_comment_char
  396.      During tokenization, if this character is seen as the first
  397.      character of a word, then it and all subsequent characters up to a
  398.      newline are ignored, suppressing history expansion for the
  399.      remainder of the line.  This is disabled by default.
  400.  - Variable: char * history_no_expand_chars
  401.      The list of characters which inhibit history expansion if found
  402.      immediately following HISTORY_EXPANSION_CHAR.  The default is
  403.      whitespace and `='.
  404.  - Variable: char * history_search_delimiter_chars
  405.      The list of additional characters which can delimit a history
  406.      search string, in addition to whitespace, `:' and `?' in the case
  407.      of a substring search.  The default is empty.
  408.  - Variable: int history_quotes_inhibit_expansion
  409.      If non-zero, single-quoted words are not scanned for the history
  410.      expansion character.  The default value is 0.
  411.  - Variable: Function * history_inhibit_expansion_function
  412.      This should be set to the address of a function that takes two
  413.      arguments: a `char *' (STRING) and an integer index into that
  414.      string (I).  It should return a non-zero value if the history
  415.      expansion starting at STRING[I] should not be performed; zero if
  416.      the expansion should be done.  It is intended for use by
  417.      applications like Bash that use the history expansion character
  418.      for additional purposes.  By default, this variable is set to NULL.
  419. File: history.info,  Node: History Programming Example,  Prev: History Variables,  Up: Programming with GNU History
  420. History Programming Example
  421. ===========================
  422.    The following program demonstrates simple use of the GNU History
  423. Library.
  424.      main ()
  425.      {
  426.        char line[1024], *t;
  427.        int len, done = 0;
  428.      
  429.        line[0] = 0;
  430.      
  431.        using_history ();
  432.        while (!done)
  433.          {
  434.            printf ("history$ ");
  435.            fflush (stdout);
  436.            t = fgets (line, sizeof (line) - 1, stdin);
  437.            if (t && *t)
  438.              {
  439.                len = strlen (t);
  440.                if (t[len - 1] == '\n')
  441.                  t[len - 1] = '\0';
  442.              }
  443.      
  444.            if (!t)
  445.              strcpy (line, "quit");
  446.      
  447.            if (line[0])
  448.              {
  449.                char *expansion;
  450.                int result;
  451.      
  452.                result = history_expand (line, &expansion);
  453.                if (result)
  454.                  fprintf (stderr, "%s\n", expansion);
  455.      
  456.                if (result < 0 || result == 2)
  457.                  {
  458.                    free (expansion);
  459.                    continue;
  460.                  }
  461.      
  462.                add_history (expansion);
  463.                strncpy (line, expansion, sizeof (line) - 1);
  464.                free (expansion);
  465.              }
  466.      
  467.            if (strcmp (line, "quit") == 0)
  468.              done = 1;
  469.            else if (strcmp (line, "save") == 0)
  470.              write_history ("history_file");
  471.            else if (strcmp (line, "read") == 0)
  472.              read_history ("history_file");
  473.            else if (strcmp (line, "list") == 0)
  474.              {
  475.                register HIST_ENTRY **the_list;
  476.                register int i;
  477.      
  478.                the_list = history_list ();
  479.                if (the_list)
  480.                  for (i = 0; the_list[i]; i++)
  481.                    printf ("%d: %s\n", i + history_base, the_list[i]->line);
  482.              }
  483.            else if (strncmp (line, "delete", 6) == 0)
  484.              {
  485.                int which;
  486.                if ((sscanf (line + 6, "%d", &which)) == 1)
  487.                  {
  488.                    HIST_ENTRY *entry = remove_history (which);
  489.                    if (!entry)
  490.                      fprintf (stderr, "No such entry %d\n", which);
  491.                    else
  492.                      {
  493.                        free (entry->line);
  494.                        free (entry);
  495.                      }
  496.                  }
  497.                else
  498.                  {
  499.                    fprintf (stderr, "non-numeric arg given to `delete'\n");
  500.                  }
  501.              }
  502.          }
  503.      }
  504. File: history.info,  Node: Concept Index,  Next: Function and Variable Index,  Prev: Programming with GNU History,  Up: Top
  505. Concept Index
  506. *************
  507. * Menu:
  508. * anchored search:                      Searching the History List.
  509. * event designators:                    Event Designators.
  510. * history events:                       Event Designators.
  511. * history expansion:                    History Interaction.
  512. * History Searching:                    Searching the History List.
  513. File: history.info,  Node: Function and Variable Index,  Prev: Concept Index,  Up: Top
  514. Function and Variable Index
  515. ***************************
  516. * Menu:
  517. * add_history:                          History List Management.
  518. * append_history:                       Managing the History File.
  519. * clear_history:                        History List Management.
  520. * current_history:                      Information About the History List.
  521. * get_history_event:                    History Expansion.
  522. * history_arg_extract:                  History Expansion.
  523. * history_base:                         History Variables.
  524. * history_comment_char:                 History Variables.
  525. * history_expand:                       History Expansion.
  526. * history_expansion_char:               History Variables.
  527. * history_get:                          Information About the History List.
  528. * history_get_history_state:            Initializing History and State Management.
  529. * history_inhibit_expansion_function:   History Variables.
  530. * history_is_stifled:                   History List Management.
  531. * history_length:                       History Variables.
  532. * history_list:                         Information About the History List.
  533. * history_no_expand_chars:              History Variables.
  534. * history_quotes_inhibit_expansion:     History Variables.
  535. * history_search:                       Searching the History List.
  536. * history_search_delimiter_chars:       History Variables.
  537. * history_search_pos:                   Searching the History List.
  538. * history_search_prefix:                Searching the History List.
  539. * history_set_history_state:            Initializing History and State Management.
  540. * history_set_pos:                      Moving Around the History List.
  541. * history_subst_char:                   History Variables.
  542. * history_tokenize:                     History Expansion.
  543. * history_total_bytes:                  Information About the History List.
  544. * history_truncate_file:                Managing the History File.
  545. * max_input_history:                    History Variables.
  546. * next_history:                         Moving Around the History List.
  547. * previous_history:                     Moving Around the History List.
  548. * read_history:                         Managing the History File.
  549. * read_history_range:                   Managing the History File.
  550. * remove_history:                       History List Management.
  551. * replace_history_entry:                History List Management.
  552. * stifle_history:                       History List Management.
  553. * unstifle_history:                     History List Management.
  554. * using_history:                        Initializing History and State Management.
  555. * where_history:                        Information About the History List.
  556. * write_history:                        Managing the History File.
  557. Tag Table:
  558. Node: Top
  559. Node: Using History Interactively
  560. Node: History Interaction
  561. Node: Event Designators
  562. Node: Word Designators
  563. Node: Modifiers
  564. Node: Programming with GNU History
  565. Node: Introduction to History
  566. Node: History Storage
  567. Node: History Functions
  568. 10064
  569. Node: Initializing History and State Management
  570. 11035
  571. Node: History List Management
  572. 11827
  573. Node: Information About the History List
  574. 13348
  575. Node: Moving Around the History List
  576. 14654
  577. Node: Searching the History List
  578. 15539
  579. Node: Managing the History File
  580. 17371
  581. Node: History Expansion
  582. 18877
  583. Node: History Variables
  584. 20721
  585. Node: History Programming Example
  586. 23039
  587. Node: Concept Index
  588. 25643
  589. Node: Function and Variable Index
  590. 26124
  591. End Tag Table
  592.