# PaCkAgE DaTaStReAm readline 1 4607 # end of header 0707010002937b000081a40000000000000000000000014c5239390000010b000000b500010002ffffffffffffffff0000001100000000readline/pkginfoPKG=readline NAME=GNU readline 6.1 i86pc Solaris 10 VERSION=6.1 PSTAMP=30th July 2010 VENDOR=GNU EMAIL=http://tiswww.case.edu/php/chet/readline/rltop.html DESC=GNU readline library ARCH=i386 CATEGORY=utility CLASSES=none BASEDIR=/ ISTATES=S s 1 2 3 RSTATES=S s 1 2 3 0707010002937a000081a40000000000000000000000014c52393900000b5e000000b500010002ffffffffffffffff0000001000000000readline/pkgmap: 1 4607 1 d none /usr ? ? ? 1 d none /usr/local ? ? ? 1 d none /usr/local/include 0755 root root 1 d none /usr/local/include/readline 0755 root root 1 f none /usr/local/include/readline/chardefs.h 0644 root root 4551 20202 1280457014 1 f none /usr/local/include/readline/history.h 0644 root root 10078 13382 1280457014 1 f none /usr/local/include/readline/keymaps.h 0644 root root 3397 25653 1280457014 1 f none /usr/local/include/readline/readline.h 0644 root root 35974 36039 1280457014 1 f none /usr/local/include/readline/rlconf.h 0644 root root 2189 52047 1280457014 1 f none /usr/local/include/readline/rlstdc.h 0644 root root 1546 61309 1280457014 1 f none /usr/local/include/readline/rltypedefs.h 0644 root root 2845 42023 1280457014 1 f none /usr/local/include/readline/tilde.h 0644 root root 3046 63660 1280457014 1 d none /usr/local/lib 0755 root root 1 f none /usr/local/lib/libhistory.a 0644 root root 118000 25831 1280457015 1 s none /usr/local/lib/libhistory.so=libhistory.so.6 1 f none /usr/local/lib/libhistory.so.6 0644 root root 98636 39132 1280457015 1 f none /usr/local/lib/libreadline.a 0644 root root 841984 47509 1280457015 1 s none /usr/local/lib/libreadline.so=libreadline.so.6 1 f none /usr/local/lib/libreadline.so.6 0644 root root 688988 30903 1280457015 1 d none /usr/local/share 0755 root root 1 d none /usr/local/share/info 0755 root root 1 f none /usr/local/share/info/history.info 0644 root root 60968 30387 1280457014 1 f none /usr/local/share/info/readline.info 0644 root root 203785 37916 1280457014 1 f none /usr/local/share/info/rluserman.info 0644 root root 78321 64231 1280457014 1 d none /usr/local/share/man 0755 root root 1 d none /usr/local/share/man/man3 0755 root root 1 f none /usr/local/share/man/man3/history.3 0644 root root 21769 32860 1280457015 1 f none /usr/local/share/man/man3/readline.3 0644 root root 40726 34909 1280457014 1 d none /usr/local/share/readline 0755 root root 1 f none /usr/local/share/readline/excallback.c 0644 root root 5734 22957 1280457015 1 f none /usr/local/share/readline/fileman.c 0644 root root 11426 11069 1280457015 1 f none /usr/local/share/readline/histexamp.c 0644 root root 2889 24105 1280457015 1 f none /usr/local/share/readline/manexamp.c 0644 root root 3300 43704 1280457015 1 f none /usr/local/share/readline/rl-fgets.c 0644 root root 11147 3436 1280457015 1 f none /usr/local/share/readline/rl.c 0644 root root 3179 50733 1280457015 1 f none /usr/local/share/readline/rlcat.c 0644 root root 3299 55901 1280457015 1 f none /usr/local/share/readline/rlevent.c 0644 root root 3295 60133 1280457015 1 f none /usr/local/share/readline/rlptytest.c 0644 root root 6531 38869 1280457015 1 f none /usr/local/share/readline/rltest.c 0644 root root 2146 29759 1280457015 1 f none /usr/local/share/readline/rlversion.c 0644 root root 1287 42286 1280457015 1 i checkinstall 790 2504 1280457017 1 i pkginfo 267 20740 1280457017 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!0707010002937b000081a40000000000000000000000014c5239390000010b000000b500010002ffffffffffffffff0000000800000000pkginfoPKG=readline NAME=GNU readline 6.1 i86pc Solaris 10 VERSION=6.1 PSTAMP=30th July 2010 VENDOR=GNU EMAIL=http://tiswww.case.edu/php/chet/readline/rltop.html DESC=GNU readline library ARCH=i386 CATEGORY=utility CLASSES=none BASEDIR=/ ISTATES=S s 1 2 3 RSTATES=S s 1 2 3 0707010002937a000081a40000000000000000000000014c52393900000b5e000000b500010002ffffffffffffffff0000000700000000pkgmap: 1 4607 1 d none /usr ? ? ? 1 d none /usr/local ? ? ? 1 d none /usr/local/include 0755 root root 1 d none /usr/local/include/readline 0755 root root 1 f none /usr/local/include/readline/chardefs.h 0644 root root 4551 20202 1280457014 1 f none /usr/local/include/readline/history.h 0644 root root 10078 13382 1280457014 1 f none /usr/local/include/readline/keymaps.h 0644 root root 3397 25653 1280457014 1 f none /usr/local/include/readline/readline.h 0644 root root 35974 36039 1280457014 1 f none /usr/local/include/readline/rlconf.h 0644 root root 2189 52047 1280457014 1 f none /usr/local/include/readline/rlstdc.h 0644 root root 1546 61309 1280457014 1 f none /usr/local/include/readline/rltypedefs.h 0644 root root 2845 42023 1280457014 1 f none /usr/local/include/readline/tilde.h 0644 root root 3046 63660 1280457014 1 d none /usr/local/lib 0755 root root 1 f none /usr/local/lib/libhistory.a 0644 root root 118000 25831 1280457015 1 s none /usr/local/lib/libhistory.so=libhistory.so.6 1 f none /usr/local/lib/libhistory.so.6 0644 root root 98636 39132 1280457015 1 f none /usr/local/lib/libreadline.a 0644 root root 841984 47509 1280457015 1 s none /usr/local/lib/libreadline.so=libreadline.so.6 1 f none /usr/local/lib/libreadline.so.6 0644 root root 688988 30903 1280457015 1 d none /usr/local/share 0755 root root 1 d none /usr/local/share/info 0755 root root 1 f none /usr/local/share/info/history.info 0644 root root 60968 30387 1280457014 1 f none /usr/local/share/info/readline.info 0644 root root 203785 37916 1280457014 1 f none /usr/local/share/info/rluserman.info 0644 root root 78321 64231 1280457014 1 d none /usr/local/share/man 0755 root root 1 d none /usr/local/share/man/man3 0755 root root 1 f none /usr/local/share/man/man3/history.3 0644 root root 21769 32860 1280457015 1 f none /usr/local/share/man/man3/readline.3 0644 root root 40726 34909 1280457014 1 d none /usr/local/share/readline 0755 root root 1 f none /usr/local/share/readline/excallback.c 0644 root root 5734 22957 1280457015 1 f none /usr/local/share/readline/fileman.c 0644 root root 11426 11069 1280457015 1 f none /usr/local/share/readline/histexamp.c 0644 root root 2889 24105 1280457015 1 f none /usr/local/share/readline/manexamp.c 0644 root root 3300 43704 1280457015 1 f none /usr/local/share/readline/rl-fgets.c 0644 root root 11147 3436 1280457015 1 f none /usr/local/share/readline/rl.c 0644 root root 3179 50733 1280457015 1 f none /usr/local/share/readline/rlcat.c 0644 root root 3299 55901 1280457015 1 f none /usr/local/share/readline/rlevent.c 0644 root root 3295 60133 1280457015 1 f none /usr/local/share/readline/rlptytest.c 0644 root root 6531 38869 1280457015 1 f none /usr/local/share/readline/rltest.c 0644 root root 2146 29759 1280457015 1 f none /usr/local/share/readline/rlversion.c 0644 root root 1287 42286 1280457015 1 i checkinstall 790 2504 1280457017 1 i pkginfo 267 20740 1280457017 07070100029422000041ed0000000000000000000000024c52393900000000000000b500010002ffffffffffffffff0000000800000000install07070100029426000081ed0000000000000000000000014c52393900000316000000b500010002ffffffffffffffff0000001500000000install/checkinstall#!/bin/sh # expected_bits="64" expected_release="5.10" expected_platform="i386" # release=`uname -r` platform=`uname -p` bits=`isainfo -b` # if [ ${platform} != ${expected_platform} ]; then echo "\n\n\n\tThis package must be installed on a ${expected_platform} architecture\n" echo "\tAborting installation.\n\n\n" exit 1 fi if [ ${release} != ${expected_release} ]; then echo "\n\n\n\tThis package must be installed on a ${expected_release} machine\n" echo "\tAborting installation.\n\n\n" exit 1 fi #if [ ${bits} != ${expected_bits} ]; then # echo "\n\n\n\tThis package must be installed on a ${expected_bits} bit machine\n" # echo "\tYour machine is running a ${bits} bit O.S. currently\n" # echo "\tAborting installation.\n\n\n" # exit 1 #fi exit 0 0707010002937d000041ed0000000000000000000000034c52393900000000000000b500010002ffffffffffffffff0000000500000000root0707010002937e000041ed0000000000000000000000034c52393900000000000000b500010002ffffffffffffffff0000000900000000root/usr0707010002937f000041ed0000000000000000000000054c52393900000000000000b500010002ffffffffffffffff0000000f00000000root/usr/local070701000293ce000041ed0000000000000000000000054c52393900000000000000b500010002ffffffffffffffff0000001500000000root/usr/local/share070701000293e2000041ed0000000000000000000000034c52393900000000000000b500010002ffffffffffffffff0000001900000000root/usr/local/share/man070701000293e6000041ed0000000000000000000000024c52393900000000000000b500010002ffffffffffffffff0000001e00000000root/usr/local/share/man/man3070701000293ea000081a40000000000000000000000014c52393700005509000000b500010002ffffffffffffffff0000002800000000root/usr/local/share/man/man3/history.3.\" .\" MAN PAGE COMMENTS to .\" .\" Chet Ramey .\" Information Network Services .\" Case Western Reserve University .\" chet@ins.CWRU.Edu .\" .\" Last Change: Thu Jul 31 08:46:08 EDT 2003 .\" .TH HISTORY 3 "2003 July 31" "GNU History 6.0" .\" .\" File Name macro. This used to be `.PN', for Path Name, .\" but Sun doesn't seem to like that very much. .\" .de FN \fI\|\\$1\|\fP .. .ds lp \fR\|(\fP .ds rp \fR\|)\fP .\" FnN return-value fun-name N arguments .de Fn1 \fI\\$1\fP \fB\\$2\fP \\*(lp\fI\\$3\fP\\*(rp .br .. .de Fn2 .if t \fI\\$1\fP \fB\\$2\fP \\*(lp\fI\\$3,\|\\$4\fP\\*(rp .if n \fI\\$1\fP \fB\\$2\fP \\*(lp\fI\\$3, \\$4\fP\\*(rp .br .. .de Fn3 .if t \fI\\$1\fP \fB\\$2\fP \\*(lp\fI\\$3,\|\\$4,\|\\$5\fP\|\\*(rp .if n \fI\\$1\fP \fB\\$2\fP \\*(lp\fI\\$3, \\$4, \\$5\fP\\*(rp .br .. .de Vb \fI\\$1\fP \fB\\$2\fP .br .. .SH NAME history \- GNU History Library .SH COPYRIGHT .if t The GNU History Library is Copyright \(co 1989-2002 by the Free Software Foundation, Inc. .if n The GNU History Library is Copyright (C) 1989-2002 by the Free Software Foundation, Inc. .SH DESCRIPTION Many programs read input from the user a line at a time. The GNU History library is able to keep track of those lines, associate arbitrary data with each line, and utilize information from previous lines in composing new ones. .PP .SH "HISTORY EXPANSION" .PP The history library supports a history expansion feature that is identical to the history expansion in .BR bash. This section describes what syntax features are available. .PP History expansions introduce words from the history list into the input stream, making it easy to repeat commands, insert the arguments to a previous command into the current input line, or fix errors in previous commands quickly. .PP History expansion is usually performed immediately after a complete line is read. It takes place in two parts. The first is to determine which line from the history list to use during substitution. The second is to select portions of that line for inclusion into the current one. The line selected from the history is the \fIevent\fP, and the portions of that line that are acted upon are \fIwords\fP. Various \fImodifiers\fP are available to manipulate the selected words. The line is broken into words in the same fashion as \fBbash\fP does when reading input, so that several words that would otherwise be separated are considered one word when surrounded by quotes (see the description of \fBhistory_tokenize()\fP below). History expansions are introduced by the appearance of the history expansion character, which is \^\fB!\fP\^ by default. Only backslash (\^\fB\e\fP\^) and single quotes can quote the history expansion character. .SS Event Designators .PP An event designator is a reference to a command line entry in the history list. .PP .PD 0 .TP .B ! Start a history substitution, except when followed by a .BR blank , newline, = or (. .TP .B !\fIn\fR Refer to command line .IR n . .TP .B !\-\fIn\fR Refer to the current command line minus .IR n . .TP .B !! Refer to the previous command. This is a synonym for `!\-1'. .TP .B !\fIstring\fR Refer to the most recent command starting with .IR string . .TP .B !?\fIstring\fR\fB[?]\fR Refer to the most recent command containing .IR string . The trailing \fB?\fP may be omitted if .I string is followed immediately by a newline. .TP .B \d\s+2^\s-2\u\fIstring1\fP\d\s+2^\s-2\u\fIstring2\fP\d\s+2^\s-2\u Quick substitution. Repeat the last command, replacing .I string1 with .IR string2 . Equivalent to ``!!:s/\fIstring1\fP/\fIstring2\fP/'' (see \fBModifiers\fP below). .TP .B !# The entire command line typed so far. .PD .SS Word Designators .PP Word designators are used to select desired words from the event. A .B : separates the event specification from the word designator. It may be omitted if the word designator begins with a .BR ^ , .BR $ , .BR * , .BR \- , or .BR % . Words are numbered from the beginning of the line, with the first word being denoted by 0 (zero). Words are inserted into the current line separated by single spaces. .PP .PD 0 .TP .B 0 (zero) The zeroth word. For the shell, this is the command word. .TP .I n The \fIn\fRth word. .TP .B ^ The first argument. That is, word 1. .TP .B $ The last argument. .TP .B % The word matched by the most recent `?\fIstring\fR?' search. .TP .I x\fB\-\fPy A range of words; `\-\fIy\fR' abbreviates `0\-\fIy\fR'. .TP .B * All of the words but the zeroth. This is a synonym for `\fI1\-$\fP'. It is not an error to use .B * if there is just one word in the event; the empty string is returned in that case. .TP .B x* Abbreviates \fIx\-$\fP. .TP .B x\- Abbreviates \fIx\-$\fP like \fBx*\fP, but omits the last word. .PD .PP If a word designator is supplied without an event specification, the previous command is used as the event. .SS Modifiers .PP After the optional word designator, there may appear a sequence of one or more of the following modifiers, each preceded by a `:'. .PP .PD 0 .PP .TP .B h Remove a trailing file name component, leaving only the head. .TP .B t Remove all leading file name components, leaving the tail. .TP .B r Remove a trailing suffix of the form \fI.xxx\fP, leaving the basename. .TP .B e Remove all but the trailing suffix. .TP .B p Print the new command but do not execute it. .TP .B q Quote the substituted words, escaping further substitutions. .TP .B x Quote the substituted words as with .BR q , but break into words at .B blanks and newlines. .TP .B s/\fIold\fP/\fInew\fP/ Substitute .I new for the first occurrence of .I old in the event line. Any delimiter can be used in place of /. The final delimiter is optional if it is the last character of the event line. The delimiter may be quoted in .I old and .I new with a single backslash. If & appears in .IR new , it is replaced by .IR old . A single backslash will quote the &. If .I old is null, it is set to the last .I old substituted, or, if no previous history substitutions took place, the last .I string in a .B !?\fIstring\fR\fB[?]\fR search. .TP .B & Repeat the previous substitution. .TP .B g Cause changes to be applied over the entire event line. This is used in conjunction with `\fB:s\fP' (e.g., `\fB:gs/\fIold\fP/\fInew\fP/\fR') or `\fB:&\fP'. If used with `\fB:s\fP', any delimiter can be used in place of /, and the final delimiter is optional if it is the last character of the event line. An \fBa\fP may be used as a synonym for \fBg\fP. .TP .B G Apply the following `\fBs\fP' modifier once to each word in the event line. .PD .SH "PROGRAMMING WITH HISTORY FUNCTIONS" This section describes how to use the History library in other programs. .SS Introduction to History .PP The programmer using the History library has available functions for remembering lines on a history list, associating arbitrary data with a line, removing lines from the list, searching through the list for a line containing an arbitrary text string, and referencing any line in the list directly. In addition, a history \fIexpansion\fP function is available which provides for a consistent user interface across different programs. .PP The user using programs written with the History library has the benefit of a consistent user interface with a set of well-known commands for manipulating the text of previous lines and using that text in new commands. The basic history manipulation commands are identical to the history substitution provided by \fBbash\fP. .PP If the programmer desires, he can use the Readline library, which includes some history manipulation by default, and has the added advantage of command line editing. .PP Before declaring any functions using any functionality the History library provides in other code, an application writer should include the file .FN in any file that uses the History library's features. It supplies extern declarations for all of the library's public functions and variables, and declares all of the public data structures. .SS History Storage .PP The history list is an array of history entries. A history entry is declared as follows: .PP .Vb "typedef void *" histdata_t; .PP .nf typedef struct _hist_entry { char *line; char *timestamp; histdata_t data; } HIST_ENTRY; .fi .PP The history list itself might therefore be declared as .PP .Vb "HIST_ENTRY **" the_history_list; .PP The state of the History library is encapsulated into a single structure: .PP .nf /* * A structure used to pass around the current state of the history. */ typedef struct _hist_state { HIST_ENTRY **entries; /* Pointer to the entries themselves. */ int offset; /* The location pointer within this array. */ int length; /* Number of elements within this array. */ int size; /* Number of slots allocated to this array. */ int flags; } HISTORY_STATE; .fi .PP If the flags member includes \fBHS_STIFLED\fP, the history has been stifled. .SH "History Functions" .PP This section describes the calling sequence for the various functions exported by the GNU History library. .SS Initializing History and State Management This section describes functions used to initialize and manage the state of the History library when you want to use the history functions in your program. .Fn1 void using_history void Begin a session in which the history functions might be used. This initializes the interactive variables. .Fn1 "HISTORY_STATE *" history_get_history_state void Return a structure describing the current state of the input history. .Fn1 void history_set_history_state "HISTORY_STATE *state" Set the state of the history list according to \fIstate\fP. .SS History List Management These functions manage individual entries on the history list, or set parameters managing the list itself. .Fn1 void add_history "const char *string" Place \fIstring\fP at the end of the history list. The associated data field (if any) is set to \fBNULL\fP. .Fn1 void add_history_time "const char *string" Change the time stamp associated with the most recent history entry to \fIstring\fP. .Fn1 "HIST_ENTRY *" remove_history "int which" Remove history entry at offset \fIwhich\fP from the history. The removed element is returned so you can free the line, data, and containing structure. .Fn1 "histdata_t" free_history_entry "HIST_ENTRY *histent" Free the history entry \fIhistent\fP and any history library private data associated with it. Returns the application-specific data so the caller can dispose of it. .Fn3 "HIST_ENTRY *" replace_history_entry "int which" "const char *line" "histdata_t data" Make the history entry at offset \fIwhich\fP have \fIline\fP and \fIdata\fP. This returns the old entry so the caller can dispose of any application-specific data. In the case of an invalid \fIwhich\fP, a \fBNULL\fP pointer is returned. .Fn1 void clear_history "void" Clear the history list by deleting all the entries. .Fn1 void stifle_history "int max" Stifle the history list, remembering only the last \fImax\fP entries. .Fn1 int unstifle_history "void" Stop stifling the history. This returns the previously-set maximum number of history entries (as set by \fBstifle_history()\fP). history was stifled. The value is positive if the history was stifled, negative if it wasn't. .Fn1 int history_is_stifled "void" Returns non-zero if the history is stifled, zero if it is not. .SS Information About the History List These functions return information about the entire history list or individual list entries. .Fn1 "HIST_ENTRY **" history_list "void" Return a \fBNULL\fP terminated array of \fIHIST_ENTRY *\fP which is the current input history. Element 0 of this list is the beginning of time. If there is no history, return \fBNULL\fP. .Fn1 int where_history "void" Returns the offset of the current history element. .Fn1 "HIST_ENTRY *" current_history "void" Return the history entry at the current position, as determined by \fBwhere_history()\fP. If there is no entry there, return a \fBNULL\fP pointer. .Fn1 "HIST_ENTRY *" history_get "int offset" Return the history entry at position \fIoffset\fP, starting from \fBhistory_base\fP. If there is no entry there, or if \fIoffset\fP is greater than the history length, return a \fBNULL\fP pointer. .Fn1 "time_t" history_get_time "HIST_ENTRY *" Return the time stamp associated with the history entry passed as the argument. .Fn1 int history_total_bytes "void" Return the number of bytes that the primary history entries are using. This function returns the sum of the lengths of all the lines in the history. .SS Moving Around the History List These functions allow the current index into the history list to be set or changed. .Fn1 int history_set_pos "int pos" Set the current history offset to \fIpos\fP, an absolute index into the list. Returns 1 on success, 0 if \fIpos\fP is less than zero or greater than the number of history entries. .Fn1 "HIST_ENTRY *" previous_history "void" Back up the current history offset to the previous history entry, and return a pointer to that entry. If there is no previous entry, return a \fBNULL\fP pointer. .Fn1 "HIST_ENTRY *" next_history "void" Move the current history offset forward to the next history entry, and return the a pointer to that entry. If there is no next entry, return a \fBNULL\fP pointer. .SS Searching the History List These functions allow searching of the history list for entries containing a specific string. Searching may be performed both forward and backward from the current history position. The search may be \fIanchored\fP, meaning that the string must match at the beginning of the history entry. .Fn2 int history_search "const char *string" "int direction" Search the history for \fIstring\fP, starting at the current history offset. If \fIdirection\fP is less than 0, then the search is through previous entries, otherwise through subsequent entries. If \fIstring\fP is found, then the current history index is set to that history entry, and the value returned is the offset in the line of the entry where \fIstring\fP was found. Otherwise, nothing is changed, and a -1 is returned. .Fn2 int history_search_prefix "const char *string" "int direction" Search the history for \fIstring\fP, starting at the current history offset. The search is anchored: matching lines must begin with \fIstring\fP. If \fIdirection\fP is less than 0, then the search is through previous entries, otherwise through subsequent entries. If \fIstring\fP is found, then the current history index is set to that entry, and the return value is 0. Otherwise, nothing is changed, and a -1 is returned. .Fn3 int history_search_pos "const char *string" "int direction" "int pos" Search for \fIstring\fP in the history list, starting at \fIpos\fP, an absolute index into the list. If \fIdirection\fP is negative, the search proceeds backward from \fIpos\fP, otherwise forward. Returns the absolute index of the history element where \fIstring\fP was found, or -1 otherwise. .SS Managing the History File The History library can read the history from and write it to a file. This section documents the functions for managing a history file. .Fn1 int read_history "const char *filename" Add the contents of \fIfilename\fP to the history list, a line at a time. If \fIfilename\fP is \fBNULL\fP, then read from \fI~/.history\fP. Returns 0 if successful, or \fBerrno\fP if not. .Fn3 int read_history_range "const char *filename" "int from" "int to" Read a range of lines from \fIfilename\fP, adding them to the history list. Start reading at line \fIfrom\fP and end at \fIto\fP. If \fIfrom\fP is zero, start at the beginning. If \fIto\fP is less than \fIfrom\fP, then read until the end of the file. If \fIfilename\fP is \fBNULL\fP, then read from \fI~/.history\fP. Returns 0 if successful, or \fBerrno\fP if not. .Fn1 int write_history "const char *filename" Write the current history to \fIfilename\fP, overwriting \fIfilename\fP if necessary. If \fIfilename\fP is \fBNULL\fP, then write the history list to \fI~/.history\fP. Returns 0 on success, or \fBerrno\fP on a read or write error. .Fn2 int append_history "int nelements" "const char *filename" Append the last \fInelements\fP of the history list to \fIfilename\fP. If \fIfilename\fP is \fBNULL\fP, then append to \fI~/.history\fP. Returns 0 on success, or \fBerrno\fP on a read or write error. .Fn2 int history_truncate_file "const char *filename" "int nlines" Truncate the history file \fIfilename\fP, leaving only the last \fInlines\fP lines. If \fIfilename\fP is \fBNULL\fP, then \fI~/.history\fP is truncated. Returns 0 on success, or \fBerrno\fP on failure. .SS History Expansion These functions implement history expansion. .Fn2 int history_expand "char *string" "char **output" Expand \fIstring\fP, placing the result into \fIoutput\fP, a pointer to a string. Returns: .RS .PD 0 .TP 0 If no expansions took place (or, if the only change in the text was the removal of escape characters preceding the history expansion character); .TP 1 if expansions did take place; .TP -1 if there was an error in expansion; .TP 2 if the returned line should be displayed, but not executed, as with the \fB:p\fP modifier. .PD .RE If an error ocurred in expansion, then \fIoutput\fP contains a descriptive error message. .Fn3 "char *" get_history_event "const char *string" "int *cindex" "int qchar" Returns the text of the history event beginning at \fIstring\fP + \fI*cindex\fP. \fI*cindex\fP is modified to point to after the event specifier. At function entry, \fIcindex\fP points to the index into \fIstring\fP where the history event specification begins. \fIqchar\fP is a character that is allowed to end the event specification in addition to the ``normal'' terminating characters. .Fn1 "char **" history_tokenize "const char *string" Return an array of tokens parsed out of \fIstring\fP, much as the shell might. The tokens are split on the characters in the \fBhistory_word_delimiters\fP variable, and shell quoting conventions are obeyed. .Fn3 "char *" history_arg_extract "int first" "int last" "const char *string" Extract a string segment consisting of the \fIfirst\fP through \fIlast\fP arguments present in \fIstring\fP. Arguments are split using \fBhistory_tokenize()\fP. .SS History Variables This section describes the externally-visible variables exported by the GNU History Library. .Vb int history_base The logical offset of the first entry in the history list. .Vb int history_length The number of entries currently stored in the history list. .Vb int history_max_entries The maximum number of history entries. This must be changed using \fBstifle_history()\fP. .Vb int history_write_timestamps If non-zero, timestamps are written to the history file, so they can be preserved between sessions. The default value is 0, meaning that timestamps are not saved. .Vb char history_expansion_char The character that introduces a history event. The default is \fB!\fP. Setting this to 0 inhibits history expansion. .Vb char history_subst_char The character that invokes word substitution if found at the start of a line. The default is \fB^\fP. .Vb char history_comment_char During tokenization, if this character is seen as the first character of a word, then it and all subsequent characters up to a newline are ignored, suppressing history expansion for the remainder of the line. This is disabled by default. .Vb "char *" history_word_delimiters The characters that separate tokens for \fBhistory_tokenize()\fP. The default value is \fB"\ \et\en()<>;&|"\fP. .Vb "char *" history_no_expand_chars The list of characters which inhibit history expansion if found immediately following \fBhistory_expansion_char\fP. The default is space, tab, newline, \fB\er\fP, and \fB=\fP. .Vb "char *" history_search_delimiter_chars The list of additional characters which can delimit a history search string, in addition to space, tab, \fI:\fP and \fI?\fP in the case of a substring search. The default is empty. .Vb int history_quotes_inhibit_expansion If non-zero, single-quoted words are not scanned for the history expansion character. The default value is 0. .Vb "rl_linebuf_func_t *" history_inhibit_expansion_function This should be set to the address of a function that takes two arguments: a \fBchar *\fP (\fIstring\fP) and an \fBint\fP index into that string (\fIi\fP). It should return a non-zero value if the history expansion starting at \fIstring[i]\fP should not be performed; zero if the expansion should be done. It is intended for use by applications like \fBbash\fP that use the history expansion character for additional purposes. By default, this variable is set to \fBNULL\fP. .SH FILES .PD 0 .TP .FN ~/.history Default filename for reading and writing saved history .PD .SH "SEE ALSO" .PD 0 .TP \fIThe Gnu Readline Library\fP, Brian Fox and Chet Ramey .TP \fIThe Gnu History Library\fP, Brian Fox and Chet Ramey .TP \fIbash\fP(1) .TP \fIreadline\fP(3) .PD .SH AUTHORS Brian Fox, Free Software Foundation .br bfox@gnu.org .PP Chet Ramey, Case Western Reserve University .br chet@ins.CWRU.Edu .SH BUG REPORTS If you find a bug in the .B history library, you should report it. But first, you should make sure that it really is a bug, and that it appears in the latest version of the .B history library that you have. .PP Once you have determined that a bug actually exists, mail a bug report to \fIbug\-readline\fP@\fIgnu.org\fP. If you have a fix, you are welcome to mail that as well! Suggestions and `philosophical' bug reports may be mailed to \fPbug-readline\fP@\fIgnu.org\fP or posted to the Usenet newsgroup .BR gnu.bash.bug . .PP Comments and bug reports concerning this manual page should be directed to .IR chet@ins.CWRU.Edu . 070701000293ee000081a40000000000000000000000014c52393600009f16000000b500010002ffffffffffffffff0000002900000000root/usr/local/share/man/man3/readline.3.\" .\" MAN PAGE COMMENTS to .\" .\" Chet Ramey .\" Information Network Services .\" Case Western Reserve University .\" chet@ins.CWRU.Edu .\" .\" Last Change: Fri Oct 9 12:57:27 EDT 2009 .\" .TH READLINE 3 "2009 October 9" "GNU Readline 6.1" .\" .\" File Name macro. This used to be `.PN', for Path Name, .\" but Sun doesn't seem to like that very much. .\" .de FN \fI\|\\$1\|\fP .. .SH NAME readline \- get a line from a user with editing .SH SYNOPSIS .LP .nf .ft B #include #include #include .ft .fi .LP .nf \fIchar *\fP .br \fBreadline\fP (\fIconst char *prompt\fP); .fi .SH COPYRIGHT .if n Readline is Copyright (C) 1989\-2009 Free Software Foundation, Inc. .if t Readline is Copyright \(co 1989\-2009 Free Software Foundation, Inc. .SH DESCRIPTION .LP .B readline will read a line from the terminal and return it, using .B prompt as a prompt. If .B prompt is \fBNULL\fP or the empty string, no prompt is issued. The line returned is allocated with .IR malloc (3); the caller must free it when finished. The line returned has the final newline removed, so only the text of the line remains. .LP .B readline offers editing capabilities while the user is entering the line. By default, the line editing commands are similar to those of emacs. A vi\-style line editing interface is also available. .LP This manual page describes only the most basic use of \fBreadline\fP. Much more functionality is available; see \fIThe GNU Readline Library\fP and \fIThe GNU History Library\fP for additional information. .SH RETURN VALUE .LP .B readline returns the text of the line read. A blank line returns the empty string. If .B EOF is encountered while reading a line, and the line is empty, .B NULL is returned. If an .B EOF is read with a non\-empty line, it is treated as a newline. .SH NOTATION .LP An emacs-style notation is used to denote keystrokes. Control keys are denoted by C\-\fIkey\fR, e.g., C\-n means Control\-N. Similarly, .I meta keys are denoted by M\-\fIkey\fR, so M\-x means Meta\-X. (On keyboards without a .I meta key, M\-\fIx\fP means ESC \fIx\fP, i.e., press the Escape key then the .I x key. This makes ESC the \fImeta prefix\fP. The combination M\-C\-\fIx\fP means ESC\-Control\-\fIx\fP, or press the Escape key then hold the Control key while pressing the .I x key.) .PP Readline commands may be given numeric .IR arguments , which normally act as a repeat count. Sometimes, however, it is the sign of the argument that is significant. Passing a negative argument to a command that acts in the forward direction (e.g., \fBkill\-line\fP) causes that command to act in a backward direction. Commands whose behavior with arguments deviates from this are noted. .PP When a command is described as \fIkilling\fP text, the text deleted is saved for possible future retrieval (\fIyanking\fP). The killed text is saved in a \fIkill ring\fP. Consecutive kills cause the text to be accumulated into one unit, which can be yanked all at once. Commands which do not kill text separate the chunks of text on the kill ring. .SH INITIALIZATION FILE .LP Readline is customized by putting commands in an initialization file (the \fIinputrc\fP file). The name of this file is taken from the value of the .B INPUTRC environment variable. If that variable is unset, the default is .IR ~/.inputrc . If that file does not exist or cannot be read, the ultimate default is .IR /etc/inputrc . When a program which uses the readline library starts up, the init file is read, and the key bindings and variables are set. There are only a few basic constructs allowed in the readline init file. Blank lines are ignored. Lines beginning with a \fB#\fP are comments. Lines beginning with a \fB$\fP indicate conditional constructs. Other lines denote key bindings and variable settings. Each program using this library may add its own commands and bindings. .PP For example, placing .RS .PP M\-Control\-u: universal\-argument .RE or .RS C\-Meta\-u: universal\-argument .RE .sp into the .I inputrc would make M\-C\-u execute the readline command .IR universal\-argument . .PP The following symbolic character names are recognized while processing key bindings: .IR DEL , .IR ESC , .IR ESCAPE , .IR LFD , .IR NEWLINE , .IR RET , .IR RETURN , .IR RUBOUT , .IR SPACE , .IR SPC , and .IR TAB . .PP In addition to command names, readline allows keys to be bound to a string that is inserted when the key is pressed (a \fImacro\fP). .PP .SS Key Bindings .PP The syntax for controlling key bindings in the .I inputrc file is simple. All that is required is the name of the command or the text of a macro and a key sequence to which it should be bound. The name may be specified in one of two ways: as a symbolic key name, possibly with \fIMeta\-\fP or \fIControl\-\fP prefixes, or as a key sequence. The name and key sequence are separated by a colon. There can be no whitespace between the name and the colon. .PP When using the form \fBkeyname\fP:\^\fIfunction-name\fP or \fImacro\fP, .I keyname is the name of a key spelled out in English. For example: .sp .RS Control\-u: universal\-argument .br Meta\-Rubout: backward\-kill\-word .br Control\-o: "> output" .RE .LP In the above example, .I C\-u is bound to the function .BR universal\-argument , .I M-DEL is bound to the function .BR backward\-kill\-word , and .I C\-o is bound to run the macro expressed on the right hand side (that is, to insert the text .if t \f(CW> output\fP .if n ``> output'' into the line). .PP In the second form, \fB"keyseq"\fP:\^\fIfunction\-name\fP or \fImacro\fP, .B keyseq differs from .B keyname above in that strings denoting an entire key sequence may be specified by placing the sequence within double quotes. Some GNU Emacs style key escapes can be used, as in the following example, but the symbolic character names are not recognized. .sp .RS "\eC\-u": universal\-argument .br "\eC\-x\eC\-r": re\-read\-init\-file .br "\ee[11~": "Function Key 1" .RE .PP In this example, .I C-u is again bound to the function .BR universal\-argument . .I "C-x C-r" is bound to the function .BR re\-read\-init\-file , and .I "ESC [ 1 1 ~" is bound to insert the text .if t \f(CWFunction Key 1\fP. .if n ``Function Key 1''. .PP The full set of GNU Emacs style escape sequences available when specifying key sequences is .RS .PD 0 .TP .B \eC\- control prefix .TP .B \eM\- meta prefix .TP .B \ee an escape character .TP .B \e\e backslash .TP .B \e" literal ", a double quote .TP .B \e' literal ', a single quote .RE .PD .PP In addition to the GNU Emacs style escape sequences, a second set of backslash escapes is available: .RS .PD 0 .TP .B \ea alert (bell) .TP .B \eb backspace .TP .B \ed delete .TP .B \ef form feed .TP .B \en newline .TP .B \er carriage return .TP .B \et horizontal tab .TP .B \ev vertical tab .TP .B \e\fInnn\fP the eight-bit character whose value is the octal value \fInnn\fP (one to three digits) .TP .B \ex\fIHH\fP the eight-bit character whose value is the hexadecimal value \fIHH\fP (one or two hex digits) .RE .PD .PP When entering the text of a macro, single or double quotes should be used to indicate a macro definition. Unquoted text is assumed to be a function name. In the macro body, the backslash escapes described above are expanded. Backslash will quote any other character in the macro text, including " and '. .PP .B Bash allows the current readline key bindings to be displayed or modified with the .B bind builtin command. The editing mode may be switched during interactive use by using the .B \-o option to the .B set builtin command. Other programs using this library provide similar mechanisms. The .I inputrc file may be edited and re-read if a program does not provide any other means to incorporate new bindings. .SS Variables .PP Readline has variables that can be used to further customize its behavior. A variable may be set in the .I inputrc file with a statement of the form .RS .PP \fBset\fP \fIvariable\-name\fP \fIvalue\fP .RE .PP Except where noted, readline variables can take the values .B On or .B Off (without regard to case). Unrecognized variable names are ignored. When a variable value is read, empty or null values, "on" (case-insensitive), and "1" are equivalent to \fBOn\fP. All other values are equivalent to \fBOff\fP. The variables and their default values are: .PP .PD 0 .TP .B bell\-style (audible) Controls what happens when readline wants to ring the terminal bell. If set to \fBnone\fP, readline never rings the bell. If set to \fBvisible\fP, readline uses a visible bell if one is available. If set to \fBaudible\fP, readline attempts to ring the terminal's bell. .TP .B bind\-tty\-special\-chars (On) If set to \fBOn\fP, readline attempts to bind the control characters treated specially by the kernel's terminal driver to their readline equivalents. .TP .B comment\-begin (``#'') The string that is inserted in \fBvi\fP mode when the .B insert\-comment command is executed. This command is bound to .B M\-# in emacs mode and to .B # in vi command mode. .TP .B completion\-ignore\-case (Off) If set to \fBOn\fP, readline performs filename matching and completion in a case\-insensitive fashion. .TP .B completion\-prefix\-display\-length (0) The length in characters of the common prefix of a list of possible completions that is displayed without modification. When set to a value greater than zero, common prefixes longer than this value are replaced with an ellipsis when displaying possible completions. .TP .B completion\-query\-items (100) This determines when the user is queried about viewing the number of possible completions generated by the \fBpossible\-completions\fP command. It may be set to any integer value greater than or equal to zero. If the number of possible completions is greater than or equal to the value of this variable, the user is asked whether or not he wishes to view them; otherwise they are simply listed on the terminal. A negative value causes readline to never ask. .TP .B convert\-meta (On) If set to \fBOn\fP, readline will convert characters with the eighth bit set to an ASCII key sequence by stripping the eighth bit and prefixing it with an escape character (in effect, using escape as the \fImeta prefix\fP). .TP .B disable\-completion (Off) If set to \fBOn\fP, readline will inhibit word completion. Completion characters will be inserted into the line as if they had been mapped to \fBself-insert\fP. .TP .B editing\-mode (emacs) Controls whether readline begins with a set of key bindings similar to emacs or vi. .B editing\-mode can be set to either .B emacs or .BR vi . .TP .B echo\-control\-characters (On) When set to \fBOn\fP, on operating systems that indicate they support it, readline echoes a character corresponding to a signal generated from the keyboard. .TP .B enable\-keypad (Off) When set to \fBOn\fP, readline will try to enable the application keypad when it is called. Some systems need this to enable the arrow keys. .TP .B enable\-meta\-key (On) When set to \fBOn\fP, readline will try to enable any meta modifier key the terminal claims to support when it is called. On many terminals, the meta key is used to send eight-bit characters. .TP .B expand\-tilde (Off) If set to \fBon\fP, tilde expansion is performed when readline attempts word completion. .TP .B history\-preserve\-point (Off) If set to \fBon\fP, the history code attempts to place point at the same location on each history line retrieved with \fBprevious-history\fP or \fBnext-history\fP. .TP .B history\-size (0) Set the maximum number of history entries saved in the history list. If set to zero, the number of entries in the history list is not limited. .TP .B horizontal\-scroll\-mode (Off) When set to \fBOn\fP, makes readline use a single line for display, scrolling the input horizontally on a single screen line when it becomes longer than the screen width rather than wrapping to a new line. .TP .B input\-meta (Off) If set to \fBOn\fP, readline will enable eight-bit input (that is, it will not clear the eighth bit in the characters it reads), regardless of what the terminal claims it can support. The name .B meta\-flag is a synonym for this variable. .TP .B isearch\-terminators (``C\-[ C\-J'') The string of characters that should terminate an incremental search without subsequently executing the character as a command. If this variable has not been given a value, the characters \fIESC\fP and \fIC\-J\fP will terminate an incremental search. .TP .B keymap (emacs) Set the current readline keymap. The set of legal keymap names is \fIemacs, emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move, vi-command\fP, and .IR vi-insert . \fIvi\fP is equivalent to \fIvi-command\fP; \fIemacs\fP is equivalent to \fIemacs-standard\fP. The default value is .IR emacs . The value of .B editing\-mode also affects the default keymap. .TP .B mark\-directories (On) If set to \fBOn\fP, completed directory names have a slash appended. .TP .B mark\-modified\-lines (Off) If set to \fBOn\fP, history lines that have been modified are displayed with a preceding asterisk (\fB*\fP). .TP .B mark\-symlinked\-directories (Off) If set to \fBOn\fP, completed names which are symbolic links to directories have a slash appended (subject to the value of \fBmark\-directories\fP). .TP .B match\-hidden\-files (On) This variable, when set to \fBOn\fP, causes readline to match files whose names begin with a `.' (hidden files) when performing filename completion, unless the leading `.' is supplied by the user in the filename to be completed. .TP .B output\-meta (Off) If set to \fBOn\fP, readline will display characters with the eighth bit set directly rather than as a meta-prefixed escape sequence. .TP .B page\-completions (On) If set to \fBOn\fP, readline uses an internal \fImore\fP-like pager to display a screenful of possible completions at a time. .TP .B print\-completions\-horizontally (Off) If set to \fBOn\fP, readline will display completions with matches sorted horizontally in alphabetical order, rather than down the screen. .TP .B revert\-all\-at\-newline (Off) If set to \fBon\fP, readline will undo all changes to history lines before returning when \fBaccept\-line\fP is executed. By default, history lines may be modified and retain individual undo lists across calls to \fBreadline\fP. .TP .B show\-all\-if\-ambiguous (Off) This alters the default behavior of the completion functions. If set to .BR on , words which have more than one possible completion cause the matches to be listed immediately instead of ringing the bell. .TP .B show\-all\-if\-unmodified (Off) This alters the default behavior of the completion functions in a fashion similar to \fBshow\-all\-if\-ambiguous\fP. If set to .BR on , words which have more than one possible completion without any possible partial completion (the possible completions don't share a common prefix) cause the matches to be listed immediately instead of ringing the bell. .TP .B skip\-completed\-text (Off) If set to \fBOn\fP, this alters the default completion behavior when inserting a single match into the line. It's only active when performing completion in the middle of a word. If enabled, readline does not insert characters from the completion that match characters after point in the word being completed, so portions of the word following the cursor are not duplicated. .TP .B visible\-stats (Off) If set to \fBOn\fP, a character denoting a file's type as reported by \fIstat\fP(2) is appended to the filename when listing possible completions. .PD .SS Conditional Constructs .PP Readline implements a facility similar in spirit to the conditional compilation features of the C preprocessor which allows key bindings and variable settings to be performed as the result of tests. There are four parser directives used. .IP \fB$if\fP The .B $if construct allows bindings to be made based on the editing mode, the terminal being used, or the application using readline. The text of the test extends to the end of the line; no characters are required to isolate it. .RS .IP \fBmode\fP The \fBmode=\fP form of the \fB$if\fP directive is used to test whether readline is in emacs or vi mode. This may be used in conjunction with the \fBset keymap\fP command, for instance, to set bindings in the \fIemacs-standard\fP and \fIemacs-ctlx\fP keymaps only if readline is starting out in emacs mode. .IP \fBterm\fP The \fBterm=\fP form may be used to include terminal-specific key bindings, perhaps to bind the key sequences output by the terminal's function keys. The word on the right side of the .B = is tested against the full name of the terminal and the portion of the terminal name before the first \fB\-\fP. This allows .I sun to match both .I sun and .IR sun\-cmd , for instance. .IP \fBapplication\fP The \fBapplication\fP construct is used to include application-specific settings. Each program using the readline library sets the \fIapplication name\fP, and an initialization file can test for a particular value. This could be used to bind key sequences to functions useful for a specific program. For instance, the following command adds a key sequence that quotes the current or previous word in Bash: .sp 1 .RS .nf \fB$if\fP Bash # Quote the current or previous word "\eC-xq": "\eeb\e"\eef\e"" \fB$endif\fP .fi .RE .RE .IP \fB$endif\fP This command, as seen in the previous example, terminates an \fB$if\fP command. .IP \fB$else\fP Commands in this branch of the \fB$if\fP directive are executed if the test fails. .IP \fB$include\fP This directive takes a single filename as an argument and reads commands and bindings from that file. For example, the following directive would read \fI/etc/inputrc\fP: .sp 1 .RS .nf \fB$include\fP \^ \fI/etc/inputrc\fP .fi .RE .SH SEARCHING .PP Readline provides commands for searching through the command history for lines containing a specified string. There are two search modes: .I incremental and .IR non-incremental . .PP Incremental searches begin before the user has finished typing the search string. As each character of the search string is typed, readline displays the next entry from the history matching the string typed so far. An incremental search requires only as many characters as needed to find the desired history entry. To search backward in the history for a particular string, type \fBC\-r\fP. Typing \fBC\-s\fP searches forward through the history. The characters present in the value of the \fBisearch-terminators\fP variable are used to terminate an incremental search. If that variable has not been assigned a value the \fIEscape\fP and \fBC\-J\fP characters will terminate an incremental search. \fBC\-G\fP will abort an incremental search and restore the original line. When the search is terminated, the history entry containing the search string becomes the current line. .PP To find other matching entries in the history list, type \fBC\-s\fP or \fBC\-r\fP as appropriate. This will search backward or forward in the history for the next line matching the search string typed so far. Any other key sequence bound to a readline command will terminate the search and execute that command. For instance, a newline will terminate the search and accept the line, thereby executing the command from the history list. A movement command will terminate the search, make the last line found the current line, and begin editing. .PP Non-incremental searches read the entire search string before starting to search for matching history lines. The search string may be typed by the user or be part of the contents of the current line. .SH EDITING COMMANDS .PP The following is a list of the names of the commands and the default key sequences to which they are bound. Command names without an accompanying key sequence are unbound by default. .PP In the following descriptions, \fIpoint\fP refers to the current cursor position, and \fImark\fP refers to a cursor position saved by the \fBset\-mark\fP command. The text between the point and mark is referred to as the \fIregion\fP. .SS Commands for Moving .PP .PD 0 .TP .B beginning\-of\-line (C\-a) Move to the start of the current line. .TP .B end\-of\-line (C\-e) Move to the end of the line. .TP .B forward\-char (C\-f) Move forward a character. .TP .B backward\-char (C\-b) Move back a character. .TP .B forward\-word (M\-f) Move forward to the end of the next word. Words are composed of alphanumeric characters (letters and digits). .TP .B backward\-word (M\-b) Move back to the start of the current or previous word. Words are composed of alphanumeric characters (letters and digits). .TP .B clear\-screen (C\-l) Clear the screen leaving the current line at the top of the screen. With an argument, refresh the current line without clearing the screen. .TP .B redraw\-current\-line Refresh the current line. .PD .SS Commands for Manipulating the History .PP .PD 0 .TP .B accept\-line (Newline, Return) Accept the line regardless of where the cursor is. If this line is non-empty, it may be added to the history list for future recall with \fBadd_history()\fP. If the line is a modified history line, the history line is restored to its original state. .TP .B previous\-history (C\-p) Fetch the previous command from the history list, moving back in the list. .TP .B next\-history (C\-n) Fetch the next command from the history list, moving forward in the list. .TP .B beginning\-of\-history (M\-<) Move to the first line in the history. .TP .B end\-of\-history (M\->) Move to the end of the input history, i.e., the line currently being entered. .TP .B reverse\-search\-history (C\-r) Search backward starting at the current line and moving `up' through the history as necessary. This is an incremental search. .TP .B forward\-search\-history (C\-s) Search forward starting at the current line and moving `down' through the history as necessary. This is an incremental search. .TP .B non\-incremental\-reverse\-search\-history (M\-p) Search backward through the history starting at the current line using a non-incremental search for a string supplied by the user. .TP .B non\-incremental\-forward\-search\-history (M\-n) Search forward through the history using a non-incremental search for a string supplied by the user. .TP .B history\-search\-forward Search forward through the history for the string of characters between the start of the current line and the current cursor position (the \fIpoint\fP). This is a non-incremental search. .TP .B history\-search\-backward Search backward through the history for the string of characters between the start of the current line and the point. This is a non-incremental search. .TP .B yank\-nth\-arg (M\-C\-y) Insert the first argument to the previous command (usually the second word on the previous line) at point. With an argument .IR n , insert the \fIn\fPth word from the previous command (the words in the previous command begin with word 0). A negative argument inserts the \fIn\fPth word from the end of the previous command. Once the argument \fIn\fP is computed, the argument is extracted as if the "!\fIn\fP" history expansion had been specified. .TP .B yank\-last\-arg (M\-.\^, M\-_\^) Insert the last argument to the previous command (the last word of the previous history entry). With an argument, behave exactly like \fByank\-nth\-arg\fP. Successive calls to \fByank\-last\-arg\fP move back through the history list, inserting the last argument of each line in turn. The history expansion facilities are used to extract the last argument, as if the "!$" history expansion had been specified. .PD .SS Commands for Changing Text .PP .PD 0 .TP .B delete\-char (C\-d) Delete the character at point. If point is at the beginning of the line, there are no characters in the line, and the last character typed was not bound to \fBdelete\-char\fP, then return .SM .BR EOF . .TP .B backward\-delete\-char (Rubout) Delete the character behind the cursor. When given a numeric argument, save the deleted text on the kill ring. .TP .B forward\-backward\-delete\-char Delete the character under the cursor, unless the cursor is at the end of the line, in which case the character behind the cursor is deleted. .TP .B quoted\-insert (C\-q, C\-v) Add the next character that you type to the line verbatim. This is how to insert characters like \fBC\-q\fP, for example. .TP .B tab\-insert (M-TAB) Insert a tab character. .TP .B self\-insert (a,\ b,\ A,\ 1,\ !,\ ...) Insert the character typed. .TP .B transpose\-chars (C\-t) Drag the character before point forward over the character at point, moving point forward as well. If point is at the end of the line, then this transposes the two characters before point. Negative arguments have no effect. .TP .B transpose\-words (M\-t) Drag the word before point past the word after point, moving point over that word as well. If point is at the end of the line, this transposes the last two words on the line. .TP .B upcase\-word (M\-u) Uppercase the current (or following) word. With a negative argument, uppercase the previous word, but do not move point. .TP .B downcase\-word (M\-l) Lowercase the current (or following) word. With a negative argument, lowercase the previous word, but do not move point. .TP .B capitalize\-word (M\-c) Capitalize the current (or following) word. With a negative argument, capitalize the previous word, but do not move point. .TP .B overwrite\-mode Toggle overwrite mode. With an explicit positive numeric argument, switches to overwrite mode. With an explicit non-positive numeric argument, switches to insert mode. This command affects only \fBemacs\fP mode; \fBvi\fP mode does overwrite differently. Each call to \fIreadline()\fP starts in insert mode. In overwrite mode, characters bound to \fBself\-insert\fP replace the text at point rather than pushing the text to the right. Characters bound to \fBbackward\-delete\-char\fP replace the character before point with a space. By default, this command is unbound. .PD .SS Killing and Yanking .PP .PD 0 .TP .B kill\-line (C\-k) Kill the text from point to the end of the line. .TP .B backward\-kill\-line (C\-x Rubout) Kill backward to the beginning of the line. .TP .B unix\-line\-discard (C\-u) Kill backward from point to the beginning of the line. The killed text is saved on the kill-ring. .\" There is no real difference between this and backward-kill-line .TP .B kill\-whole\-line Kill all characters on the current line, no matter where point is. .TP .B kill\-word (M\-d) Kill from point the end of the current word, or if between words, to the end of the next word. Word boundaries are the same as those used by \fBforward\-word\fP. .TP .B backward\-kill\-word (M\-Rubout) Kill the word behind point. Word boundaries are the same as those used by \fBbackward\-word\fP. .TP .B unix\-word\-rubout (C\-w) Kill the word behind point, using white space as a word boundary. The killed text is saved on the kill-ring. .TP .B unix\-filename\-rubout Kill the word behind point, using white space and the slash character as the word boundaries. The killed text is saved on the kill-ring. .TP .B delete\-horizontal\-space (M\-\e) Delete all spaces and tabs around point. .TP .B kill\-region Kill the text between the point and \fImark\fP (saved cursor position). This text is referred to as the \fIregion\fP. .TP .B copy\-region\-as\-kill Copy the text in the region to the kill buffer. .TP .B copy\-backward\-word Copy the word before point to the kill buffer. The word boundaries are the same as \fBbackward\-word\fP. .TP .B copy\-forward\-word Copy the word following point to the kill buffer. The word boundaries are the same as \fBforward\-word\fP. .TP .B yank (C\-y) Yank the top of the kill ring into the buffer at point. .TP .B yank\-pop (M\-y) Rotate the kill ring, and yank the new top. Only works following .B yank or .BR yank\-pop . .PD .SS Numeric Arguments .PP .PD 0 .TP .B digit\-argument (M\-0, M\-1, ..., M\-\-) Add this digit to the argument already accumulating, or start a new argument. M\-\- starts a negative argument. .TP .B universal\-argument This is another way to specify an argument. If this command is followed by one or more digits, optionally with a leading minus sign, those digits define the argument. If the command is followed by digits, executing .B universal\-argument again ends the numeric argument, but is otherwise ignored. As a special case, if this command is immediately followed by a character that is neither a digit or minus sign, the argument count for the next command is multiplied by four. The argument count is initially one, so executing this function the first time makes the argument count four, a second time makes the argument count sixteen, and so on. .PD .SS Completing .PP .PD 0 .TP .B complete (TAB) Attempt to perform completion on the text before point. The actual completion performed is application-specific. .BR Bash , for instance, attempts completion treating the text as a variable (if the text begins with \fB$\fP), username (if the text begins with \fB~\fP), hostname (if the text begins with \fB@\fP), or command (including aliases and functions) in turn. If none of these produces a match, filename completion is attempted. .BR Gdb , on the other hand, allows completion of program functions and variables, and only attempts filename completion under certain circumstances. .TP .B possible\-completions (M\-?) List the possible completions of the text before point. .TP .B insert\-completions (M\-*) Insert all completions of the text before point that would have been generated by \fBpossible\-completions\fP. .TP .B menu\-complete Similar to \fBcomplete\fP, but replaces the word to be completed with a single match from the list of possible completions. Repeated execution of \fBmenu\-complete\fP steps through the list of possible completions, inserting each match in turn. At the end of the list of completions, the bell is rung (subject to the setting of \fBbell\-style\fP) and the original text is restored. An argument of \fIn\fP moves \fIn\fP positions forward in the list of matches; a negative argument may be used to move backward through the list. This command is intended to be bound to \fBTAB\fP, but is unbound by default. .TP .B menu\-complete-\backward Identical to \fBmenu\-complete\fP, but moves backward through the list of possible completions, as if \fBmenu\-complete\fP had been given a negative argument. This command is unbound by default. .TP .B delete\-char\-or\-list Deletes the character under the cursor if not at the beginning or end of the line (like \fBdelete-char\fP). If at the end of the line, behaves identically to \fBpossible-completions\fP. .PD .SS Keyboard Macros .PP .PD 0 .TP .B start\-kbd\-macro (C\-x (\^) Begin saving the characters typed into the current keyboard macro. .TP .B end\-kbd\-macro (C\-x )\^) Stop saving the characters typed into the current keyboard macro and store the definition. .TP .B call\-last\-kbd\-macro (C\-x e) Re-execute the last keyboard macro defined, by making the characters in the macro appear as if typed at the keyboard. .PD .SS Miscellaneous .PP .PD 0 .TP .B re\-read\-init\-file (C\-x C\-r) Read in the contents of the \fIinputrc\fP file, and incorporate any bindings or variable assignments found there. .TP .B abort (C\-g) Abort the current editing command and ring the terminal's bell (subject to the setting of .BR bell\-style ). .TP .B do\-uppercase\-version (M\-a, M\-b, M\-\fIx\fP, ...) If the metafied character \fIx\fP is lowercase, run the command that is bound to the corresponding uppercase character. .TP .B prefix\-meta (ESC) Metafy the next character typed. .SM .B ESC .B f is equivalent to .BR Meta\-f . .TP .B undo (C\-_, C\-x C\-u) Incremental undo, separately remembered for each line. .TP .B revert\-line (M\-r) Undo all changes made to this line. This is like executing the .B undo command enough times to return the line to its initial state. .TP .B tilde\-expand (M\-&) Perform tilde expansion on the current word. .TP .B set\-mark (C\-@, M\-) Set the mark to the point. If a numeric argument is supplied, the mark is set to that position. .TP .B exchange\-point\-and\-mark (C\-x C\-x) Swap the point with the mark. The current cursor position is set to the saved position, and the old cursor position is saved as the mark. .TP .B character\-search (C\-]) A character is read and point is moved to the next occurrence of that character. A negative count searches for previous occurrences. .TP .B character\-search\-backward (M\-C\-]) A character is read and point is moved to the previous occurrence of that character. A negative count searches for subsequent occurrences. .TP .B skip\-csi\-sequence () Read enough characters to consume a multi-key sequence such as those defined for keys like Home and End. Such sequences begin with a Control Sequence Indicator (CSI), usually ESC\-[. If this sequence is bound to "\e[", keys producing such sequences will have no effect unless explicitly bound to a readline command, instead of inserting stray characters into the editing buffer. This is unbound by default, but usually bound to ESC\-[. .TP .B insert\-comment (M\-#) Without a numeric argument, the value of the readline .B comment\-begin variable is inserted at the beginning of the current line. If a numeric argument is supplied, this command acts as a toggle: if the characters at the beginning of the line do not match the value of \fBcomment\-begin\fP, the value is inserted, otherwise the characters in \fBcomment-begin\fP are deleted from the beginning of the line. In either case, the line is accepted as if a newline had been typed. The default value of .B comment\-begin makes the current line a shell comment. If a numeric argument causes the comment character to be removed, the line will be executed by the shell. .TP .B dump\-functions Print all of the functions and their key bindings to the readline output stream. If a numeric argument is supplied, the output is formatted in such a way that it can be made part of an \fIinputrc\fP file. .TP .B dump\-variables Print all of the settable variables and their values to the readline output stream. If a numeric argument is supplied, the output is formatted in such a way that it can be made part of an \fIinputrc\fP file. .TP .B dump\-macros Print all of the readline key sequences bound to macros and the strings they output. If a numeric argument is supplied, the output is formatted in such a way that it can be made part of an \fIinputrc\fP file. .TP .B emacs\-editing\-mode (C\-e) When in .B vi command mode, this causes a switch to .B emacs editing mode. .TP .B vi\-editing\-mode (M\-C\-j) When in .B emacs editing mode, this causes a switch to .B vi editing mode. .PD .SH DEFAULT KEY BINDINGS .LP The following is a list of the default emacs and vi bindings. Characters with the eighth bit set are written as M\-, and are referred to as .I metafied characters. The printable ASCII characters not mentioned in the list of emacs standard bindings are bound to the .B self\-insert function, which just inserts the given character into the input line. In vi insertion mode, all characters not specifically mentioned are bound to .BR self\-insert . Characters assigned to signal generation by .IR stty (1) or the terminal driver, such as C-Z or C-C, retain that function. Upper and lower case metafied characters are bound to the same function in the emacs mode meta keymap. The remaining characters are unbound, which causes readline to ring the bell (subject to the setting of the .B bell\-style variable). .SS Emacs Mode .RS +.6i .nf .ta 2.5i .sp Emacs Standard bindings .sp "C-@" set-mark "C-A" beginning-of-line "C-B" backward-char "C-D" delete-char "C-E" end-of-line "C-F" forward-char "C-G" abort "C-H" backward-delete-char "C-I" complete "C-J" accept-line "C-K" kill-line "C-L" clear-screen "C-M" accept-line "C-N" next-history "C-P" previous-history "C-Q" quoted-insert "C-R" reverse-search-history "C-S" forward-search-history "C-T" transpose-chars "C-U" unix-line-discard "C-V" quoted-insert "C-W" unix-word-rubout "C-Y" yank "C-]" character-search "C-_" undo "\^ " to "/" self-insert "0" to "9" self-insert ":" to "~" self-insert "C-?" backward-delete-char .PP Emacs Meta bindings .sp "M-C-G" abort "M-C-H" backward-kill-word "M-C-I" tab-insert "M-C-J" vi-editing-mode "M-C-M" vi-editing-mode "M-C-R" revert-line "M-C-Y" yank-nth-arg "M-C-[" complete "M-C-]" character-search-backward "M-space" set-mark "M-#" insert-comment "M-&" tilde-expand "M-*" insert-completions "M--" digit-argument "M-." yank-last-arg "M-0" digit-argument "M-1" digit-argument "M-2" digit-argument "M-3" digit-argument "M-4" digit-argument "M-5" digit-argument "M-6" digit-argument "M-7" digit-argument "M-8" digit-argument "M-9" digit-argument "M-<" beginning-of-history "M-=" possible-completions "M->" end-of-history "M-?" possible-completions "M-B" backward-word "M-C" capitalize-word "M-D" kill-word "M-F" forward-word "M-L" downcase-word "M-N" non-incremental-forward-search-history "M-P" non-incremental-reverse-search-history "M-R" revert-line "M-T" transpose-words "M-U" upcase-word "M-Y" yank-pop "M-\e" delete-horizontal-space "M-~" tilde-expand "M-C-?" backward-kill-word "M-_" yank-last-arg .PP Emacs Control-X bindings .sp "C-XC-G" abort "C-XC-R" re-read-init-file "C-XC-U" undo "C-XC-X" exchange-point-and-mark "C-X(" start-kbd-macro "C-X)" end-kbd-macro "C-XE" call-last-kbd-macro "C-XC-?" backward-kill-line .sp .RE .SS VI Mode bindings .RS +.6i .nf .ta 2.5i .sp .PP VI Insert Mode functions .sp "C-D" vi-eof-maybe "C-H" backward-delete-char "C-I" complete "C-J" accept-line "C-M" accept-line "C-R" reverse-search-history "C-S" forward-search-history "C-T" transpose-chars "C-U" unix-line-discard "C-V" quoted-insert "C-W" unix-word-rubout "C-Y" yank "C-[" vi-movement-mode "C-_" undo "\^ " to "~" self-insert "C-?" backward-delete-char .PP VI Command Mode functions .sp "C-D" vi-eof-maybe "C-E" emacs-editing-mode "C-G" abort "C-H" backward-char "C-J" accept-line "C-K" kill-line "C-L" clear-screen "C-M" accept-line "C-N" next-history "C-P" previous-history "C-Q" quoted-insert "C-R" reverse-search-history "C-S" forward-search-history "C-T" transpose-chars "C-U" unix-line-discard "C-V" quoted-insert "C-W" unix-word-rubout "C-Y" yank "C-_" vi-undo "\^ " forward-char "#" insert-comment "$" end-of-line "%" vi-match "&" vi-tilde-expand "*" vi-complete "+" next-history "," vi-char-search "-" previous-history "." vi-redo "/" vi-search "0" beginning-of-line "1" to "9" vi-arg-digit ";" vi-char-search "=" vi-complete "?" vi-search "A" vi-append-eol "B" vi-prev-word "C" vi-change-to "D" vi-delete-to "E" vi-end-word "F" vi-char-search "G" vi-fetch-history "I" vi-insert-beg "N" vi-search-again "P" vi-put "R" vi-replace "S" vi-subst "T" vi-char-search "U" revert-line "W" vi-next-word "X" backward-delete-char "Y" vi-yank-to "\e" vi-complete "^" vi-first-print "_" vi-yank-arg "`" vi-goto-mark "a" vi-append-mode "b" vi-prev-word "c" vi-change-to "d" vi-delete-to "e" vi-end-word "f" vi-char-search "h" backward-char "i" vi-insertion-mode "j" next-history "k" prev-history "l" forward-char "m" vi-set-mark "n" vi-search-again "p" vi-put "r" vi-change-char "s" vi-subst "t" vi-char-search "u" vi-undo "w" vi-next-word "x" vi-delete "y" vi-yank-to "|" vi-column "~" vi-change-case .RE .SH "SEE ALSO" .PD 0 .TP \fIThe Gnu Readline Library\fP, Brian Fox and Chet Ramey .TP \fIThe Gnu History Library\fP, Brian Fox and Chet Ramey .TP \fIbash\fP(1) .PD .SH FILES .PD 0 .TP .FN ~/.inputrc Individual \fBreadline\fP initialization file .PD .SH AUTHORS Brian Fox, Free Software Foundation .br bfox@gnu.org .PP Chet Ramey, Case Western Reserve University .br chet@ins.CWRU.Edu .SH BUG REPORTS If you find a bug in .B readline, you should report it. But first, you should make sure that it really is a bug, and that it appears in the latest version of the .B readline library that you have. .PP Once you have determined that a bug actually exists, mail a bug report to \fIbug\-readline\fP@\fIgnu.org\fP. If you have a fix, you are welcome to mail that as well! Suggestions and `philosophical' bug reports may be mailed to \fPbug-readline\fP@\fIgnu.org\fP or posted to the Usenet newsgroup .BR gnu.bash.bug . .PP Comments and bug reports concerning this manual page should be directed to .IR chet@ins.CWRU.Edu . .SH BUGS .PP It's too big and too slow. 070701000293d2000041ed0000000000000000000000024c52393900000000000000b500010002ffffffffffffffff0000001a00000000root/usr/local/share/info070701000293da000081a40000000000000000000000014c52393600031c09000000b500010002ffffffffffffffff0000002800000000root/usr/local/share/info/readline.infoThis is readline.info, produced by makeinfo version 4.13 from /usr/src/local/chet/src/bash/readline-src/doc/rlman.texi. This manual describes the GNU Readline Library (version 6.1, 9 October 2009), a library which aids in the consistency of user interface across discrete programs which provide a command line interface. Copyright (C) 1988-2009 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with the Front-Cover texts being "A GNU Manual", and with the Back-Cover Texts as in (a) below. A copy of the license is included in the section entitled "GNU Free Documentation License". (a) The FSF's Back-Cover Text is: You are free to copy and modify this GNU manual. Buying copies from GNU Press supports the FSF in developing GNU and promoting software freedom." INFO-DIR-SECTION Libraries START-INFO-DIR-ENTRY * Readline: (readline). The GNU readline library API. END-INFO-DIR-ENTRY  File: readline.info, Node: Top, Next: Command Line Editing, Up: (dir) GNU Readline Library ******************** This document describes the GNU Readline Library, a utility which aids in the consistency of user interface across discrete programs which provide a command line interface. * Menu: * Command Line Editing:: GNU Readline User's Manual. * Programming with GNU Readline:: GNU Readline Programmer's Manual. * GNU Free Documentation License:: License for copying this manual. * Concept Index:: Index of concepts described in this manual. * Function and Variable Index:: Index of externally visible functions and variables.  File: readline.info, Node: Command Line Editing, Next: Programming with GNU Readline, Prev: Top, Up: Top 1 Command Line Editing ********************** This chapter describes the basic features of the GNU command line editing interface. * Menu: * Introduction and Notation:: Notation used in this text. * Readline Interaction:: The minimum set of commands for editing a line. * Readline Init File:: Customizing Readline from a user's view. * Bindable Readline Commands:: A description of most of the Readline commands available for binding * Readline vi Mode:: A short description of how to make Readline behave like the vi editor.  File: readline.info, Node: Introduction and Notation, Next: Readline Interaction, Up: Command Line Editing 1.1 Introduction to Line Editing ================================ The following paragraphs describe the notation used to represent keystrokes. The text `C-k' is read as `Control-K' and describes the character produced when the key is pressed while the Control key is depressed. The text `M-k' is read as `Meta-K' and describes the character produced when the Meta key (if you have one) is depressed, and the key is pressed. The Meta key is labeled on many keyboards. On keyboards with two keys labeled (usually to either side of the space bar), the on the left side is generally set to work as a Meta key. The key on the right may also be configured to work as a Meta key or may be configured as some other modifier, such as a Compose key for typing accented characters. If you do not have a Meta or key, or another key working as a Meta key, the identical keystroke can be generated by typing _first_, and then typing . Either process is known as "metafying" the key. The text `M-C-k' is read as `Meta-Control-k' and describes the character produced by "metafying" `C-k'. In addition, several keys have their own names. Specifically, , , , , , and all stand for themselves when seen in this text, or in an init file (*note Readline Init File::). If your keyboard lacks a key, typing will produce the desired character. The key may be labeled or on some keyboards.  File: readline.info, Node: Readline Interaction, Next: Readline Init File, Prev: Introduction and Notation, Up: Command Line Editing 1.2 Readline Interaction ======================== Often during an interactive session you type in a long line of text, only to notice that the first word on the line is misspelled. The Readline library gives you a set of commands for manipulating the text as you type it in, allowing you to just fix your typo, and not forcing you to retype the majority of the line. Using these editing commands, you move the cursor to the place that needs correction, and delete or insert the text of the corrections. Then, when you are satisfied with the line, you simply press . You do not have to be at the end of the line to press ; the entire line is accepted regardless of the location of the cursor within the line. * Menu: * Readline Bare Essentials:: The least you need to know about Readline. * Readline Movement Commands:: Moving about the input line. * Readline Killing Commands:: How to delete text, and how to get it back! * Readline Arguments:: Giving numeric arguments to commands. * Searching:: Searching through previous lines.  File: readline.info, Node: Readline Bare Essentials, Next: Readline Movement Commands, Up: Readline Interaction 1.2.1 Readline Bare Essentials ------------------------------ In order to enter characters into the line, simply type them. The typed character appears where the cursor was, and then the cursor moves one space to the right. If you mistype a character, you can use your erase character to back up and delete the mistyped character. Sometimes you may mistype a character, and not notice the error until you have typed several other characters. In that case, you can type `C-b' to move the cursor to the left, and then correct your mistake. Afterwards, you can move the cursor to the right with `C-f'. When you add text in the middle of a line, you will notice that characters to the right of the cursor are `pushed over' to make room for the text that you have inserted. Likewise, when you delete text behind the cursor, characters to the right of the cursor are `pulled back' to fill in the blank space created by the removal of the text. A list of the bare essentials for editing the text of an input line follows. `C-b' Move back one character. `C-f' Move forward one character. or Delete the character to the left of the cursor. `C-d' Delete the character underneath the cursor. Printing characters Insert the character into the line at the cursor. `C-_' or `C-x C-u' Undo the last editing command. You can undo all the way back to an empty line. (Depending on your configuration, the key be set to delete the character to the left of the cursor and the key set to delete the character underneath the cursor, like `C-d', rather than the character to the left of the cursor.)  File: readline.info, Node: Readline Movement Commands, Next: Readline Killing Commands, Prev: Readline Bare Essentials, Up: Readline Interaction 1.2.2 Readline Movement Commands -------------------------------- The above table describes the most basic keystrokes that you need in order to do editing of the input line. For your convenience, many other commands have been added in addition to `C-b', `C-f', `C-d', and . Here are some commands for moving more rapidly about the line. `C-a' Move to the start of the line. `C-e' Move to the end of the line. `M-f' Move forward a word, where a word is composed of letters and digits. `M-b' Move backward a word. `C-l' Clear the screen, reprinting the current line at the top. Notice how `C-f' moves forward a character, while `M-f' moves forward a word. It is a loose convention that control keystrokes operate on characters while meta keystrokes operate on words.  File: readline.info, Node: Readline Killing Commands, Next: Readline Arguments, Prev: Readline Movement Commands, Up: Readline Interaction 1.2.3 Readline Killing Commands ------------------------------- "Killing" text means to delete the text from the line, but to save it away for later use, usually by "yanking" (re-inserting) it back into the line. (`Cut' and `paste' are more recent jargon for `kill' and `yank'.) If the description for a command says that it `kills' text, then you can be sure that you can get the text back in a different (or the same) place later. When you use a kill command, the text is saved in a "kill-ring". Any number of consecutive kills save all of the killed text together, so that when you yank it back, you get it all. The kill ring is not line specific; the text that you killed on a previously typed line is available to be yanked back later, when you are typing another line. Here is the list of commands for killing text. `C-k' Kill the text from the current cursor position to the end of the line. `M-d' Kill from the cursor to the end of the current word, or, if between words, to the end of the next word. Word boundaries are the same as those used by `M-f'. `M-' Kill from the cursor the start of the current word, or, if between words, to the start of the previous word. Word boundaries are the same as those used by `M-b'. `C-w' Kill from the cursor to the previous whitespace. This is different than `M-' because the word boundaries differ. Here is how to "yank" the text back into the line. Yanking means to copy the most-recently-killed text from the kill buffer. `C-y' Yank the most recently killed text back into the buffer at the cursor. `M-y' Rotate the kill-ring, and yank the new top. You can only do this if the prior command is `C-y' or `M-y'.  File: readline.info, Node: Readline Arguments, Next: Searching, Prev: Readline Killing Commands, Up: Readline Interaction 1.2.4 Readline Arguments ------------------------ You can pass numeric arguments to Readline commands. Sometimes the argument acts as a repeat count, other times it is the sign of the argument that is significant. If you pass a negative argument to a command which normally acts in a forward direction, that command will act in a backward direction. For example, to kill text back to the start of the line, you might type `M-- C-k'. The general way to pass numeric arguments to a command is to type meta digits before the command. If the first `digit' typed is a minus sign (`-'), then the sign of the argument will be negative. Once you have typed one meta digit to get the argument started, you can type the remainder of the digits, and then the command. For example, to give the `C-d' command an argument of 10, you could type `M-1 0 C-d', which will delete the next ten characters on the input line.  File: readline.info, Node: Searching, Prev: Readline Arguments, Up: Readline Interaction 1.2.5 Searching for Commands in the History ------------------------------------------- Readline provides commands for searching through the command history for lines containing a specified string. There are two search modes: "incremental" and "non-incremental". Incremental searches begin before the user has finished typing the search string. As each character of the search string is typed, Readline displays the next entry from the history matching the string typed so far. An incremental search requires only as many characters as needed to find the desired history entry. To search backward in the history for a particular string, type `C-r'. Typing `C-s' searches forward through the history. The characters present in the value of the `isearch-terminators' variable are used to terminate an incremental search. If that variable has not been assigned a value, the and `C-J' characters will terminate an incremental search. `C-g' will abort an incremental search and restore the original line. When the search is terminated, the history entry containing the search string becomes the current line. To find other matching entries in the history list, type `C-r' or `C-s' as appropriate. This will search backward or forward in the history for the next entry matching the search string typed so far. Any other key sequence bound to a Readline command will terminate the search and execute that command. For instance, a will terminate the search and accept the line, thereby executing the command from the history list. A movement command will terminate the search, make the last line found the current line, and begin editing. Readline remembers the last incremental search string. If two `C-r's are typed without any intervening characters defining a new search string, any remembered search string is used. Non-incremental searches read the entire search string before starting to search for matching history lines. The search string may be typed by the user or be part of the contents of the current line.  File: readline.info, Node: Readline Init File, Next: Bindable Readline Commands, Prev: Readline Interaction, Up: Command Line Editing 1.3 Readline Init File ====================== Although the Readline library comes with a set of Emacs-like keybindings installed by default, it is possible to use a different set of keybindings. Any user can customize programs that use Readline by putting commands in an "inputrc" file, conventionally in his home directory. The name of this file is taken from the value of the environment variable `INPUTRC'. If that variable is unset, the default is `~/.inputrc'. If that file does not exist or cannot be read, the ultimate default is `/etc/inputrc'. When a program which uses the Readline library starts up, the init file is read, and the key bindings are set. In addition, the `C-x C-r' command re-reads this init file, thus incorporating any changes that you might have made to it. * Menu: * Readline Init File Syntax:: Syntax for the commands in the inputrc file. * Conditional Init Constructs:: Conditional key bindings in the inputrc file. * Sample Init File:: An example inputrc file.  File: readline.info, Node: Readline Init File Syntax, Next: Conditional Init Constructs, Up: Readline Init File 1.3.1 Readline Init File Syntax ------------------------------- There are only a few basic constructs allowed in the Readline init file. Blank lines are ignored. Lines beginning with a `#' are comments. Lines beginning with a `$' indicate conditional constructs (*note Conditional Init Constructs::). Other lines denote variable settings and key bindings. Variable Settings You can modify the run-time behavior of Readline by altering the values of variables in Readline using the `set' command within the init file. The syntax is simple: set VARIABLE VALUE Here, for example, is how to change from the default Emacs-like key binding to use `vi' line editing commands: set editing-mode vi Variable names and values, where appropriate, are recognized without regard to case. Unrecognized variable names are ignored. Boolean variables (those that can be set to on or off) are set to on if the value is null or empty, ON (case-insensitive), or 1. Any other value results in the variable being set to off. A great deal of run-time behavior is changeable with the following variables. `bell-style' Controls what happens when Readline wants to ring the terminal bell. If set to `none', Readline never rings the bell. If set to `visible', Readline uses a visible bell if one is available. If set to `audible' (the default), Readline attempts to ring the terminal's bell. `bind-tty-special-chars' If set to `on', Readline attempts to bind the control characters treated specially by the kernel's terminal driver to their Readline equivalents. `comment-begin' The string to insert at the beginning of the line when the `insert-comment' command is executed. The default value is `"#"'. `completion-ignore-case' If set to `on', Readline performs filename matching and completion in a case-insensitive fashion. The default value is `off'. `completion-prefix-display-length' The length in characters of the common prefix of a list of possible completions that is displayed without modification. When set to a value greater than zero, common prefixes longer than this value are replaced with an ellipsis when displaying possible completions. `completion-query-items' The number of possible completions that determines when the user is asked whether the list of possibilities should be displayed. If the number of possible completions is greater than this value, Readline will ask the user whether or not he wishes to view them; otherwise, they are simply listed. This variable must be set to an integer value greater than or equal to 0. A negative value means Readline should never ask. The default limit is `100'. `convert-meta' If set to `on', Readline will convert characters with the eighth bit set to an ASCII key sequence by stripping the eighth bit and prefixing an character, converting them to a meta-prefixed key sequence. The default value is `on'. `disable-completion' If set to `On', Readline will inhibit word completion. Completion characters will be inserted into the line as if they had been mapped to `self-insert'. The default is `off'. `editing-mode' The `editing-mode' variable controls which default set of key bindings is used. By default, Readline starts up in Emacs editing mode, where the keystrokes are most similar to Emacs. This variable can be set to either `emacs' or `vi'. `echo-control-characters' When set to `on', on operating systems that indicate they support it, readline echoes a character corresponding to a signal generated from the keyboard. The default is `on'. `enable-keypad' When set to `on', Readline will try to enable the application keypad when it is called. Some systems need this to enable the arrow keys. The default is `off'. `enable-meta-key' When set to `on', Readline will try to enable any meta modifier key the terminal claims to support when it is called. On many terminals, the meta key is used to send eight-bit characters. The default is `on'. `expand-tilde' If set to `on', tilde expansion is performed when Readline attempts word completion. The default is `off'. `history-preserve-point' If set to `on', the history code attempts to place the point (the current cursor position) at the same location on each history line retrieved with `previous-history' or `next-history'. The default is `off'. `history-size' Set the maximum number of history entries saved in the history list. If set to zero, the number of entries in the history list is not limited. `horizontal-scroll-mode' This variable can be set to either `on' or `off'. Setting it to `on' means that the text of the lines being edited will scroll horizontally on a single screen line when they are longer than the width of the screen, instead of wrapping onto a new screen line. By default, this variable is set to `off'. `input-meta' If set to `on', Readline will enable eight-bit input (it will not clear the eighth bit in the characters it reads), regardless of what the terminal claims it can support. The default value is `off'. The name `meta-flag' is a synonym for this variable. `isearch-terminators' The string of characters that should terminate an incremental search without subsequently executing the character as a command (*note Searching::). If this variable has not been given a value, the characters and `C-J' will terminate an incremental search. `keymap' Sets Readline's idea of the current keymap for key binding commands. Acceptable `keymap' names are `emacs', `emacs-standard', `emacs-meta', `emacs-ctlx', `vi', `vi-move', `vi-command', and `vi-insert'. `vi' is equivalent to `vi-command'; `emacs' is equivalent to `emacs-standard'. The default value is `emacs'. The value of the `editing-mode' variable also affects the default keymap. `mark-directories' If set to `on', completed directory names have a slash appended. The default is `on'. `mark-modified-lines' This variable, when set to `on', causes Readline to display an asterisk (`*') at the start of history lines which have been modified. This variable is `off' by default. `mark-symlinked-directories' If set to `on', completed names which are symbolic links to directories have a slash appended (subject to the value of `mark-directories'). The default is `off'. `match-hidden-files' This variable, when set to `on', causes Readline to match files whose names begin with a `.' (hidden files) when performing filename completion, unless the leading `.' is supplied by the user in the filename to be completed. This variable is `on' by default. `output-meta' If set to `on', Readline will display characters with the eighth bit set directly rather than as a meta-prefixed escape sequence. The default is `off'. `page-completions' If set to `on', Readline uses an internal `more'-like pager to display a screenful of possible completions at a time. This variable is `on' by default. `print-completions-horizontally' If set to `on', Readline will display completions with matches sorted horizontally in alphabetical order, rather than down the screen. The default is `off'. `revert-all-at-newline' If set to `on', Readline will undo all changes to history lines before returning when `accept-line' is executed. By default, history lines may be modified and retain individual undo lists across calls to `readline'. The default is `off'. `show-all-if-ambiguous' This alters the default behavior of the completion functions. If set to `on', words which have more than one possible completion cause the matches to be listed immediately instead of ringing the bell. The default value is `off'. `show-all-if-unmodified' This alters the default behavior of the completion functions in a fashion similar to SHOW-ALL-IF-AMBIGUOUS. If set to `on', words which have more than one possible completion without any possible partial completion (the possible completions don't share a common prefix) cause the matches to be listed immediately instead of ringing the bell. The default value is `off'. `skip-completed-text' If set to `on', this alters the default completion behavior when inserting a single match into the line. It's only active when performing completion in the middle of a word. If enabled, readline does not insert characters from the completion that match characters after point in the word being completed, so portions of the word following the cursor are not duplicated. For instance, if this is enabled, attempting completion when the cursor is after the `e' in `Makefile' will result in `Makefile' rather than `Makefilefile', assuming there is a single possible completion. The default value is `off'. `visible-stats' If set to `on', a character denoting a file's type is appended to the filename when listing possible completions. The default is `off'. Key Bindings The syntax for controlling key bindings in the init file is simple. First you need to find the name of the command that you want to change. The following sections contain tables of the command name, the default keybinding, if any, and a short description of what the command does. Once you know the name of the command, simply place on a line in the init file the name of the key you wish to bind the command to, a colon, and then the name of the command. There can be no space between the key name and the colon - that will be interpreted as part of the key name. The name of the key can be expressed in different ways, depending on what you find most comfortable. In addition to command names, readline allows keys to be bound to a string that is inserted when the key is pressed (a MACRO). KEYNAME: FUNCTION-NAME or MACRO KEYNAME is the name of a key spelled out in English. For example: Control-u: universal-argument Meta-Rubout: backward-kill-word Control-o: "> output" In the above example, `C-u' is bound to the function `universal-argument', `M-DEL' is bound to the function `backward-kill-word', and `C-o' is bound to run the macro expressed on the right hand side (that is, to insert the text `> output' into the line). A number of symbolic character names are recognized while processing this key binding syntax: DEL, ESC, ESCAPE, LFD, NEWLINE, RET, RETURN, RUBOUT, SPACE, SPC, and TAB. "KEYSEQ": FUNCTION-NAME or MACRO KEYSEQ differs from KEYNAME above in that strings denoting an entire key sequence can be specified, by placing the key sequence in double quotes. Some GNU Emacs style key escapes can be used, as in the following example, but the special character names are not recognized. "\C-u": universal-argument "\C-x\C-r": re-read-init-file "\e[11~": "Function Key 1" In the above example, `C-u' is again bound to the function `universal-argument' (just as it was in the first example), `C-x C-r' is bound to the function `re-read-init-file', and ` <[> <1> <1> <~>' is bound to insert the text `Function Key 1'. The following GNU Emacs style escape sequences are available when specifying key sequences: `\C-' control prefix `\M-' meta prefix `\e' an escape character `\\' backslash `\"' <">, a double quotation mark `\'' <'>, a single quote or apostrophe In addition to the GNU Emacs style escape sequences, a second set of backslash escapes is available: `\a' alert (bell) `\b' backspace `\d' delete `\f' form feed `\n' newline `\r' carriage return `\t' horizontal tab `\v' vertical tab `\NNN' the eight-bit character whose value is the octal value NNN (one to three digits) `\xHH' the eight-bit character whose value is the hexadecimal value HH (one or two hex digits) When entering the text of a macro, single or double quotes must be used to indicate a macro definition. Unquoted text is assumed to be a function name. In the macro body, the backslash escapes described above are expanded. Backslash will quote any other character in the macro text, including `"' and `''. For example, the following binding will make `C-x \' insert a single `\' into the line: "\C-x\\": "\\"  File: readline.info, Node: Conditional Init Constructs, Next: Sample Init File, Prev: Readline Init File Syntax, Up: Readline Init File 1.3.2 Conditional Init Constructs --------------------------------- Readline implements a facility similar in spirit to the conditional compilation features of the C preprocessor which allows key bindings and variable settings to be performed as the result of tests. There are four parser directives used. `$if' The `$if' construct allows bindings to be made based on the editing mode, the terminal being used, or the application using Readline. The text of the test extends to the end of the line; no characters are required to isolate it. `mode' The `mode=' form of the `$if' directive is used to test whether Readline is in `emacs' or `vi' mode. This may be used in conjunction with the `set keymap' command, for instance, to set bindings in the `emacs-standard' and `emacs-ctlx' keymaps only if Readline is starting out in `emacs' mode. `term' The `term=' form may be used to include terminal-specific key bindings, perhaps to bind the key sequences output by the terminal's function keys. The word on the right side of the `=' is tested against both the full name of the terminal and the portion of the terminal name before the first `-'. This allows `sun' to match both `sun' and `sun-cmd', for instance. `application' The APPLICATION construct is used to include application-specific settings. Each program using the Readline library sets the APPLICATION NAME, and you can test for a particular value. This could be used to bind key sequences to functions useful for a specific program. For instance, the following command adds a key sequence that quotes the current or previous word in Bash: $if Bash # Quote the current or previous word "\C-xq": "\eb\"\ef\"" $endif `$endif' This command, as seen in the previous example, terminates an `$if' command. `$else' Commands in this branch of the `$if' directive are executed if the test fails. `$include' This directive takes a single filename as an argument and reads commands and bindings from that file. For example, the following directive reads from `/etc/inputrc': $include /etc/inputrc  File: readline.info, Node: Sample Init File, Prev: Conditional Init Constructs, Up: Readline Init File 1.3.3 Sample Init File ---------------------- Here is an example of an INPUTRC file. This illustrates key binding, variable assignment, and conditional syntax. # This file controls the behaviour of line input editing for # programs that use the GNU Readline library. Existing # programs include FTP, Bash, and GDB. # # You can re-read the inputrc file with C-x C-r. # Lines beginning with '#' are comments. # # First, include any systemwide bindings and variable # assignments from /etc/Inputrc $include /etc/Inputrc # # Set various bindings for emacs mode. set editing-mode emacs $if mode=emacs Meta-Control-h: backward-kill-word Text after the function name is ignored # # Arrow keys in keypad mode # #"\M-OD": backward-char #"\M-OC": forward-char #"\M-OA": previous-history #"\M-OB": next-history # # Arrow keys in ANSI mode # "\M-[D": backward-char "\M-[C": forward-char "\M-[A": previous-history "\M-[B": next-history # # Arrow keys in 8 bit keypad mode # #"\M-\C-OD": backward-char #"\M-\C-OC": forward-char #"\M-\C-OA": previous-history #"\M-\C-OB": next-history # # Arrow keys in 8 bit ANSI mode # #"\M-\C-[D": backward-char #"\M-\C-[C": forward-char #"\M-\C-[A": previous-history #"\M-\C-[B": next-history C-q: quoted-insert $endif # An old-style binding. This happens to be the default. TAB: complete # Macros that are convenient for shell interaction $if Bash # edit the path "\C-xp": "PATH=${PATH}\e\C-e\C-a\ef\C-f" # prepare to type a quoted word -- # insert open and close double quotes # and move to just after the open quote "\C-x\"": "\"\"\C-b" # insert a backslash (testing backslash escapes # in sequences and macros) "\C-x\\": "\\" # Quote the current or previous word "\C-xq": "\eb\"\ef\"" # Add a binding to refresh the line, which is unbound "\C-xr": redraw-current-line # Edit variable on current line. "\M-\C-v": "\C-a\C-k$\C-y\M-\C-e\C-a\C-y=" $endif # use a visible bell if one is available set bell-style visible # don't strip characters to 7 bits when reading set input-meta on # allow iso-latin1 characters to be inserted rather # than converted to prefix-meta sequences set convert-meta off # display characters with the eighth bit set directly # rather than as meta-prefixed characters set output-meta on # if there are more than 150 possible completions for # a word, ask the user if he wants to see all of them set completion-query-items 150 # For FTP $if Ftp "\C-xg": "get \M-?" "\C-xt": "put \M-?" "\M-.": yank-last-arg $endif  File: readline.info, Node: Bindable Readline Commands, Next: Readline vi Mode, Prev: Readline Init File, Up: Command Line Editing 1.4 Bindable Readline Commands ============================== * Menu: * Commands For Moving:: Moving about the line. * Commands For History:: Getting at previous lines. * Commands For Text:: Commands for changing text. * Commands For Killing:: Commands for killing and yanking. * Numeric Arguments:: Specifying numeric arguments, repeat counts. * Commands For Completion:: Getting Readline to do the typing for you. * Keyboard Macros:: Saving and re-executing typed characters * Miscellaneous Commands:: Other miscellaneous commands. This section describes Readline commands that may be bound to key sequences. Command names without an accompanying key sequence are unbound by default. In the following descriptions, "point" refers to the current cursor position, and "mark" refers to a cursor position saved by the `set-mark' command. The text between the point and mark is referred to as the "region".  File: readline.info, Node: Commands For Moving, Next: Commands For History, Up: Bindable Readline Commands 1.4.1 Commands For Moving ------------------------- `beginning-of-line (C-a)' Move to the start of the current line. `end-of-line (C-e)' Move to the end of the line. `forward-char (C-f)' Move forward a character. `backward-char (C-b)' Move back a character. `forward-word (M-f)' Move forward to the end of the next word. Words are composed of letters and digits. `backward-word (M-b)' Move back to the start of the current or previous word. Words are composed of letters and digits. `clear-screen (C-l)' Clear the screen and redraw the current line, leaving the current line at the top of the screen. `redraw-current-line ()' Refresh the current line. By default, this is unbound.  File: readline.info, Node: Commands For History, Next: Commands For Text, Prev: Commands For Moving, Up: Bindable Readline Commands 1.4.2 Commands For Manipulating The History ------------------------------------------- `accept-line (Newline or Return)' Accept the line regardless of where the cursor is. If this line is non-empty, it may be added to the history list for future recall with `add_history()'. If this line is a modified history line, the history line is restored to its original state. `previous-history (C-p)' Move `back' through the history list, fetching the previous command. `next-history (C-n)' Move `forward' through the history list, fetching the next command. `beginning-of-history (M-<)' Move to the first line in the history. `end-of-history (M->)' Move to the end of the input history, i.e., the line currently being entered. `reverse-search-history (C-r)' Search backward starting at the current line and moving `up' through the history as necessary. This is an incremental search. `forward-search-history (C-s)' Search forward starting at the current line and moving `down' through the the history as necessary. This is an incremental search. `non-incremental-reverse-search-history (M-p)' Search backward starting at the current line and moving `up' through the history as necessary using a non-incremental search for a string supplied by the user. `non-incremental-forward-search-history (M-n)' Search forward starting at the current line and moving `down' through the the history as necessary using a non-incremental search for a string supplied by the user. `history-search-forward ()' Search forward through the history for the string of characters between the start of the current line and the point. This is a non-incremental search. By default, this command is unbound. `history-search-backward ()' Search backward through the history for the string of characters between the start of the current line and the point. This is a non-incremental search. By default, this command is unbound. `yank-nth-arg (M-C-y)' Insert the first argument to the previous command (usually the second word on the previous line) at point. With an argument N, insert the Nth word from the previous command (the words in the previous command begin with word 0). A negative argument inserts the Nth word from the end of the previous command. Once the argument N is computed, the argument is extracted as if the `!N' history expansion had been specified. `yank-last-arg (M-. or M-_)' Insert last argument to the previous command (the last word of the previous history entry). With an argument, behave exactly like `yank-nth-arg'. Successive calls to `yank-last-arg' move back through the history list, inserting the last argument of each line in turn. The history expansion facilities are used to extract the last argument, as if the `!$' history expansion had been specified.  File: readline.info, Node: Commands For Text, Next: Commands For Killing, Prev: Commands For History, Up: Bindable Readline Commands 1.4.3 Commands For Changing Text -------------------------------- `delete-char (C-d)' Delete the character at point. If point is at the beginning of the line, there are no characters in the line, and the last character typed was not bound to `delete-char', then return EOF. `backward-delete-char (Rubout)' Delete the character behind the cursor. A numeric argument means to kill the characters instead of deleting them. `forward-backward-delete-char ()' Delete the character under the cursor, unless the cursor is at the end of the line, in which case the character behind the cursor is deleted. By default, this is not bound to a key. `quoted-insert (C-q or C-v)' Add the next character typed to the line verbatim. This is how to insert key sequences like `C-q', for example. `tab-insert (M-)' Insert a tab character. `self-insert (a, b, A, 1, !, ...)' Insert yourself. `transpose-chars (C-t)' Drag the character before the cursor forward over the character at the cursor, moving the cursor forward as well. If the insertion point is at the end of the line, then this transposes the last two characters of the line. Negative arguments have no effect. `transpose-words (M-t)' Drag the word before point past the word after point, moving point past that word as well. If the insertion point is at the end of the line, this transposes the last two words on the line. `upcase-word (M-u)' Uppercase the current (or following) word. With a negative argument, uppercase the previous word, but do not move the cursor. `downcase-word (M-l)' Lowercase the current (or following) word. With a negative argument, lowercase the previous word, but do not move the cursor. `capitalize-word (M-c)' Capitalize the current (or following) word. With a negative argument, capitalize the previous word, but do not move the cursor. `overwrite-mode ()' Toggle overwrite mode. With an explicit positive numeric argument, switches to overwrite mode. With an explicit non-positive numeric argument, switches to insert mode. This command affects only `emacs' mode; `vi' mode does overwrite differently. Each call to `readline()' starts in insert mode. In overwrite mode, characters bound to `self-insert' replace the text at point rather than pushing the text to the right. Characters bound to `backward-delete-char' replace the character before point with a space. By default, this command is unbound.  File: readline.info, Node: Commands For Killing, Next: Numeric Arguments, Prev: Commands For Text, Up: Bindable Readline Commands 1.4.4 Killing And Yanking ------------------------- `kill-line (C-k)' Kill the text from point to the end of the line. `backward-kill-line (C-x Rubout)' Kill backward to the beginning of the line. `unix-line-discard (C-u)' Kill backward from the cursor to the beginning of the current line. `kill-whole-line ()' Kill all characters on the current line, no matter where point is. By default, this is unbound. `kill-word (M-d)' Kill from point to the end of the current word, or if between words, to the end of the next word. Word boundaries are the same as `forward-word'. `backward-kill-word (M-)' Kill the word behind point. Word boundaries are the same as `backward-word'. `unix-word-rubout (C-w)' Kill the word behind point, using white space as a word boundary. The killed text is saved on the kill-ring. `unix-filename-rubout ()' Kill the word behind point, using white space and the slash character as the word boundaries. The killed text is saved on the kill-ring. `delete-horizontal-space ()' Delete all spaces and tabs around point. By default, this is unbound. `kill-region ()' Kill the text in the current region. By default, this command is unbound. `copy-region-as-kill ()' Copy the text in the region to the kill buffer, so it can be yanked right away. By default, this command is unbound. `copy-backward-word ()' Copy the word before point to the kill buffer. The word boundaries are the same as `backward-word'. By default, this command is unbound. `copy-forward-word ()' Copy the word following point to the kill buffer. The word boundaries are the same as `forward-word'. By default, this command is unbound. `yank (C-y)' Yank the top of the kill ring into the buffer at point. `yank-pop (M-y)' Rotate the kill-ring, and yank the new top. You can only do this if the prior command is `yank' or `yank-pop'.  File: readline.info, Node: Numeric Arguments, Next: Commands For Completion, Prev: Commands For Killing, Up: Bindable Readline Commands 1.4.5 Specifying Numeric Arguments ---------------------------------- `digit-argument (M-0, M-1, ... M--)' Add this digit to the argument already accumulating, or start a new argument. `M--' starts a negative argument. `universal-argument ()' This is another way to specify an argument. If this command is followed by one or more digits, optionally with a leading minus sign, those digits define the argument. If the command is followed by digits, executing `universal-argument' again ends the numeric argument, but is otherwise ignored. As a special case, if this command is immediately followed by a character that is neither a digit or minus sign, the argument count for the next command is multiplied by four. The argument count is initially one, so executing this function the first time makes the argument count four, a second time makes the argument count sixteen, and so on. By default, this is not bound to a key.  File: readline.info, Node: Commands For Completion, Next: Keyboard Macros, Prev: Numeric Arguments, Up: Bindable Readline Commands 1.4.6 Letting Readline Type For You ----------------------------------- `complete ()' Attempt to perform completion on the text before point. The actual completion performed is application-specific. The default is filename completion. `possible-completions (M-?)' List the possible completions of the text before point. `insert-completions (M-*)' Insert all completions of the text before point that would have been generated by `possible-completions'. `menu-complete ()' Similar to `complete', but replaces the word to be completed with a single match from the list of possible completions. Repeated execution of `menu-complete' steps through the list of possible completions, inserting each match in turn. At the end of the list of completions, the bell is rung (subject to the setting of `bell-style') and the original text is restored. An argument of N moves N positions forward in the list of matches; a negative argument may be used to move backward through the list. This command is intended to be bound to , but is unbound by default. `menu-complete-backward ()' Identical to `menu-complete', but moves backward through the list of possible completions, as if `menu-complete' had been given a negative argument. `delete-char-or-list ()' Deletes the character under the cursor if not at the beginning or end of the line (like `delete-char'). If at the end of the line, behaves identically to `possible-completions'. This command is unbound by default.  File: readline.info, Node: Keyboard Macros, Next: Miscellaneous Commands, Prev: Commands For Completion, Up: Bindable Readline Commands 1.4.7 Keyboard Macros --------------------- `start-kbd-macro (C-x ()' Begin saving the characters typed into the current keyboard macro. `end-kbd-macro (C-x ))' Stop saving the characters typed into the current keyboard macro and save the definition. `call-last-kbd-macro (C-x e)' Re-execute the last keyboard macro defined, by making the characters in the macro appear as if typed at the keyboard.  File: readline.info, Node: Miscellaneous Commands, Prev: Keyboard Macros, Up: Bindable Readline Commands 1.4.8 Some Miscellaneous Commands --------------------------------- `re-read-init-file (C-x C-r)' Read in the contents of the INPUTRC file, and incorporate any bindings or variable assignments found there. `abort (C-g)' Abort the current editing command and ring the terminal's bell (subject to the setting of `bell-style'). `do-uppercase-version (M-a, M-b, M-X, ...)' If the metafied character X is lowercase, run the command that is bound to the corresponding uppercase character. `prefix-meta ()' Metafy the next character typed. This is for keyboards without a meta key. Typing ` f' is equivalent to typing `M-f'. `undo (C-_ or C-x C-u)' Incremental undo, separately remembered for each line. `revert-line (M-r)' Undo all changes made to this line. This is like executing the `undo' command enough times to get back to the beginning. `tilde-expand (M-~)' Perform tilde expansion on the current word. `set-mark (C-@)' Set the mark to the point. If a numeric argument is supplied, the mark is set to that position. `exchange-point-and-mark (C-x C-x)' Swap the point with the mark. The current cursor position is set to the saved position, and the old cursor position is saved as the mark. `character-search (C-])' A character is read and point is moved to the next occurrence of that character. A negative count searches for previous occurrences. `character-search-backward (M-C-])' A character is read and point is moved to the previous occurrence of that character. A negative count searches for subsequent occurrences. `skip-csi-sequence ()' Read enough characters to consume a multi-key sequence such as those defined for keys like Home and End. Such sequences begin with a Control Sequence Indicator (CSI), usually ESC-[. If this sequence is bound to "\e[", keys producing such sequences will have no effect unless explicitly bound to a readline command, instead of inserting stray characters into the editing buffer. This is unbound by default, but usually bound to ESC-[. `insert-comment (M-#)' Without a numeric argument, the value of the `comment-begin' variable is inserted at the beginning of the current line. If a numeric argument is supplied, this command acts as a toggle: if the characters at the beginning of the line do not match the value of `comment-begin', the value is inserted, otherwise the characters in `comment-begin' are deleted from the beginning of the line. In either case, the line is accepted as if a newline had been typed. `dump-functions ()' Print all of the functions and their key bindings to the Readline output stream. If a numeric argument is supplied, the output is formatted in such a way that it can be made part of an INPUTRC file. This command is unbound by default. `dump-variables ()' Print all of the settable variables and their values to the Readline output stream. If a numeric argument is supplied, the output is formatted in such a way that it can be made part of an INPUTRC file. This command is unbound by default. `dump-macros ()' Print all of the Readline key sequences bound to macros and the strings they output. If a numeric argument is supplied, the output is formatted in such a way that it can be made part of an INPUTRC file. This command is unbound by default. `emacs-editing-mode (C-e)' When in `vi' command mode, this causes a switch to `emacs' editing mode. `vi-editing-mode (M-C-j)' When in `emacs' editing mode, this causes a switch to `vi' editing mode.  File: readline.info, Node: Readline vi Mode, Prev: Bindable Readline Commands, Up: Command Line Editing 1.5 Readline vi Mode ==================== While the Readline library does not have a full set of `vi' editing functions, it does contain enough to allow simple editing of the line. The Readline `vi' mode behaves as specified in the POSIX 1003.2 standard. In order to switch interactively between `emacs' and `vi' editing modes, use the command `M-C-j' (bound to emacs-editing-mode when in `vi' mode and to vi-editing-mode in `emacs' mode). The Readline default is `emacs' mode. When you enter a line in `vi' mode, you are already placed in `insertion' mode, as if you had typed an `i'. Pressing switches you into `command' mode, where you can edit the text of the line with the standard `vi' movement keys, move to previous history lines with `k' and subsequent lines with `j', and so forth. This document describes the GNU Readline Library, a utility for aiding in the consistency of user interface across discrete programs that need to provide a command line interface. Copyright (C) 1988-2007 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice pare preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Foundation.  File: readline.info, Node: Programming with GNU Readline, Next: GNU Free Documentation License, Prev: Command Line Editing, Up: Top 2 Programming with GNU Readline ******************************* This chapter describes the interface between the GNU Readline Library and other programs. If you are a programmer, and you wish to include the features found in GNU Readline such as completion, line editing, and interactive history manipulation in your own programs, this section is for you. * Menu: * Basic Behavior:: Using the default behavior of Readline. * Custom Functions:: Adding your own functions to Readline. * Readline Variables:: Variables accessible to custom functions. * Readline Convenience Functions:: Functions which Readline supplies to aid in writing your own custom functions. * Readline Signal Handling:: How Readline behaves when it receives signals. * Custom Completers:: Supplanting or supplementing Readline's completion functions.  File: readline.info, Node: Basic Behavior, Next: Custom Functions, Up: Programming with GNU Readline 2.1 Basic Behavior ================== Many programs provide a command line interface, such as `mail', `ftp', and `sh'. For such programs, the default behaviour of Readline is sufficient. This section describes how to use Readline in the simplest way possible, perhaps to replace calls in your code to `gets()' or `fgets()'. The function `readline()' prints a prompt PROMPT and then reads and returns a single line of text from the user. If PROMPT is `NULL' or the empty string, no prompt is displayed. The line `readline' returns is allocated with `malloc()'; the caller should `free()' the line when it has finished with it. The declaration for `readline' in ANSI C is `char *readline (const char *PROMPT);' So, one might say `char *line = readline ("Enter a line: ");' in order to read a line of text from the user. The line returned has the final newline removed, so only the text remains. If `readline' encounters an `EOF' while reading the line, and the line is empty at that point, then `(char *)NULL' is returned. Otherwise, the line is ended just as if a newline had been typed. If you want the user to be able to get at the line later, (with for example), you must call `add_history()' to save the line away in a "history" list of such lines. `add_history (line)'; For full details on the GNU History Library, see the associated manual. It is preferable to avoid saving empty lines on the history list, since users rarely have a burning need to reuse a blank line. Here is a function which usefully replaces the standard `gets()' library function, and has the advantage of no static buffer to overflow: /* A static variable for holding the line. */ static char *line_read = (char *)NULL; /* Read a string, and return a pointer to it. Returns NULL on EOF. */ char * rl_gets () { /* If the buffer has already been allocated, return the memory to the free pool. */ if (line_read) { free (line_read); line_read = (char *)NULL; } /* Get a line from the user. */ line_read = readline (""); /* If the line has any text in it, save it on the history. */ if (line_read && *line_read) add_history (line_read); return (line_read); } This function gives the user the default behaviour of completion: completion on file names. If you do not want Readline to complete on filenames, you can change the binding of the key with `rl_bind_key()'. `int rl_bind_key (int KEY, rl_command_func_t *FUNCTION);' `rl_bind_key()' takes two arguments: KEY is the character that you want to bind, and FUNCTION is the address of the function to call when KEY is pressed. Binding to `rl_insert()' makes insert itself. `rl_bind_key()' returns non-zero if KEY is not a valid ASCII character code (between 0 and 255). Thus, to disable the default behavior, the following suffices: `rl_bind_key ('\t', rl_insert);' This code should be executed once at the start of your program; you might write a function called `initialize_readline()' which performs this and other desired initializations, such as installing custom completers (*note Custom Completers::).  File: readline.info, Node: Custom Functions, Next: Readline Variables, Prev: Basic Behavior, Up: Programming with GNU Readline 2.2 Custom Functions ==================== Readline provides many functions for manipulating the text of the line, but it isn't possible to anticipate the needs of all programs. This section describes the various functions and variables defined within the Readline library which allow a user program to add customized functionality to Readline. Before declaring any functions that customize Readline's behavior, or using any functionality Readline provides in other code, an application writer should include the file `' in any file that uses Readline's features. Since some of the definitions in `readline.h' use the `stdio' library, the file `' should be included before `readline.h'. `readline.h' defines a C preprocessor variable that should be treated as an integer, `RL_READLINE_VERSION', which may be used to conditionally compile application code depending on the installed Readline version. The value is a hexadecimal encoding of the major and minor version numbers of the library, of the form 0xMMMM. MM is the two-digit major version number; MM is the two-digit minor version number. For Readline 4.2, for example, the value of `RL_READLINE_VERSION' would be `0x0402'. * Menu: * Readline Typedefs:: C declarations to make code readable. * Function Writing:: Variables and calling conventions.  File: readline.info, Node: Readline Typedefs, Next: Function Writing, Up: Custom Functions 2.2.1 Readline Typedefs ----------------------- For readabilty, we declare a number of new object types, all pointers to functions. The reason for declaring these new types is to make it easier to write code describing pointers to C functions with appropriately prototyped arguments and return values. For instance, say we want to declare a variable FUNC as a pointer to a function which takes two `int' arguments and returns an `int' (this is the type of all of the Readline bindable functions). Instead of the classic C declaration `int (*func)();' or the ANSI-C style declaration `int (*func)(int, int);' we may write `rl_command_func_t *func;' The full list of function pointer types available is `typedef int rl_command_func_t (int, int);' `typedef char *rl_compentry_func_t (const char *, int);' `typedef char **rl_completion_func_t (const char *, int, int);' `typedef char *rl_quote_func_t (char *, int, char *);' `typedef char *rl_dequote_func_t (char *, int);' `typedef int rl_compignore_func_t (char **);' `typedef void rl_compdisp_func_t (char **, int, int);' `typedef int rl_hook_func_t (void);' `typedef int rl_getc_func_t (FILE *);' `typedef int rl_linebuf_func_t (char *, int);' `typedef int rl_intfunc_t (int);' `#define rl_ivoidfunc_t rl_hook_func_t' `typedef int rl_icpfunc_t (char *);' `typedef int rl_icppfunc_t (char **);' `typedef void rl_voidfunc_t (void);' `typedef void rl_vintfunc_t (int);' `typedef void rl_vcpfunc_t (char *);' `typedef void rl_vcppfunc_t (char **);'  File: readline.info, Node: Function Writing, Prev: Readline Typedefs, Up: Custom Functions 2.2.2 Writing a New Function ---------------------------- In order to write new functions for Readline, you need to know the calling conventions for keyboard-invoked functions, and the names of the variables that describe the current state of the line read so far. The calling sequence for a command `foo' looks like `int foo (int count, int key)' where COUNT is the numeric argument (or 1 if defaulted) and KEY is the key that invoked this function. It is completely up to the function as to what should be done with the numeric argument. Some functions use it as a repeat count, some as a flag, and others to choose alternate behavior (refreshing the current line as opposed to refreshing the screen, for example). Some choose to ignore it. In general, if a function uses the numeric argument as a repeat count, it should be able to do something useful with both negative and positive arguments. At the very least, it should be aware that it can be passed a negative argument. A command function should return 0 if its action completes successfully, and a non-zero value if some error occurs. This is the convention obeyed by all of the builtin Readline bindable command functions.  File: readline.info, Node: Readline Variables, Next: Readline Convenience Functions, Prev: Custom Functions, Up: Programming with GNU Readline 2.3 Readline Variables ====================== These variables are available to function writers. -- Variable: char * rl_line_buffer This is the line gathered so far. You are welcome to modify the contents of the line, but see *note Allowing Undoing::. The function `rl_extend_line_buffer' is available to increase the memory allocated to `rl_line_buffer'. -- Variable: int rl_point The offset of the current cursor position in `rl_line_buffer' (the _point_). -- Variable: int rl_end The number of characters present in `rl_line_buffer'. When `rl_point' is at the end of the line, `rl_point' and `rl_end' are equal. -- Variable: int rl_mark The MARK (saved position) in the current line. If set, the mark and point define a _region_. -- Variable: int rl_done Setting this to a non-zero value causes Readline to return the current line immediately. -- Variable: int rl_num_chars_to_read Setting this to a positive value before calling `readline()' causes Readline to return after accepting that many characters, rather than reading up to a character bound to `accept-line'. -- Variable: int rl_pending_input Setting this to a value makes it the next keystroke read. This is a way to stuff a single character into the input stream. -- Variable: int rl_dispatching Set to a non-zero value if a function is being called from a key binding; zero otherwise. Application functions can test this to discover whether they were called directly or by Readline's dispatching mechanism. -- Variable: int rl_erase_empty_line Setting this to a non-zero value causes Readline to completely erase the current line, including any prompt, any time a newline is typed as the only character on an otherwise-empty line. The cursor is moved to the beginning of the newly-blank line. -- Variable: char * rl_prompt The prompt Readline uses. This is set from the argument to `readline()', and should not be assigned to directly. The `rl_set_prompt()' function (*note Redisplay::) may be used to modify the prompt string after calling `readline()'. -- Variable: char * rl_display_prompt The string displayed as the prompt. This is usually identical to RL_PROMPT, but may be changed temporarily by functions that use the prompt string as a message area, such as incremental search. -- Variable: int rl_already_prompted If an application wishes to display the prompt itself, rather than have Readline do it the first time `readline()' is called, it should set this variable to a non-zero value after displaying the prompt. The prompt must also be passed as the argument to `readline()' so the redisplay functions can update the display properly. The calling application is responsible for managing the value; Readline never sets it. -- Variable: const char * rl_library_version The version number of this revision of the library. -- Variable: int rl_readline_version An integer encoding the current version of the library. The encoding is of the form 0xMMMM, where MM is the two-digit major version number, and MM is the two-digit minor version number. For example, for Readline-4.2, `rl_readline_version' would have the value 0x0402. -- Variable: int rl_gnu_readline_p Always set to 1, denoting that this is GNU readline rather than some emulation. -- Variable: const char * rl_terminal_name The terminal type, used for initialization. If not set by the application, Readline sets this to the value of the `TERM' environment variable the first time it is called. -- Variable: const char * rl_readline_name This variable is set to a unique name by each application using Readline. The value allows conditional parsing of the inputrc file (*note Conditional Init Constructs::). -- Variable: FILE * rl_instream The stdio stream from which Readline reads input. If `NULL', Readline defaults to STDIN. -- Variable: FILE * rl_outstream The stdio stream to which Readline performs output. If `NULL', Readline defaults to STDOUT. -- Variable: int rl_prefer_env_winsize If non-zero, Readline gives values found in the `LINES' and `COLUMNS' environment variables greater precedence than values fetched from the kernel when computing the screen dimensions. -- Variable: rl_command_func_t * rl_last_func The address of the last command function Readline executed. May be used to test whether or not a function is being executed twice in succession, for example. -- Variable: rl_hook_func_t * rl_startup_hook If non-zero, this is the address of a function to call just before `readline' prints the first prompt. -- Variable: rl_hook_func_t * rl_pre_input_hook If non-zero, this is the address of a function to call after the first prompt has been printed and just before `readline' starts reading input characters. -- Variable: rl_hook_func_t * rl_event_hook If non-zero, this is the address of a function to call periodically when Readline is waiting for terminal input. By default, this will be called at most ten times a second if there is no keyboard input. -- Variable: rl_getc_func_t * rl_getc_function If non-zero, Readline will call indirectly through this pointer to get a character from the input stream. By default, it is set to `rl_getc', the default Readline character input function (*note Character Input::). -- Variable: rl_voidfunc_t * rl_redisplay_function If non-zero, Readline will call indirectly through this pointer to update the display with the current contents of the editing buffer. By default, it is set to `rl_redisplay', the default Readline redisplay function (*note Redisplay::). -- Variable: rl_vintfunc_t * rl_prep_term_function If non-zero, Readline will call indirectly through this pointer to initialize the terminal. The function takes a single argument, an `int' flag that says whether or not to use eight-bit characters. By default, this is set to `rl_prep_terminal' (*note Terminal Management::). -- Variable: rl_voidfunc_t * rl_deprep_term_function If non-zero, Readline will call indirectly through this pointer to reset the terminal. This function should undo the effects of `rl_prep_term_function'. By default, this is set to `rl_deprep_terminal' (*note Terminal Management::). -- Variable: Keymap rl_executing_keymap This variable is set to the keymap (*note Keymaps::) in which the currently executing readline function was found. -- Variable: Keymap rl_binding_keymap This variable is set to the keymap (*note Keymaps::) in which the last key binding occurred. -- Variable: char * rl_executing_macro This variable is set to the text of any currently-executing macro. -- Variable: int rl_readline_state A variable with bit values that encapsulate the current Readline state. A bit is set with the `RL_SETSTATE' macro, and unset with the `RL_UNSETSTATE' macro. Use the `RL_ISSTATE' macro to test whether a particular state bit is set. Current state bits include: `RL_STATE_NONE' Readline has not yet been called, nor has it begun to intialize. `RL_STATE_INITIALIZING' Readline is initializing its internal data structures. `RL_STATE_INITIALIZED' Readline has completed its initialization. `RL_STATE_TERMPREPPED' Readline has modified the terminal modes to do its own input and redisplay. `RL_STATE_READCMD' Readline is reading a command from the keyboard. `RL_STATE_METANEXT' Readline is reading more input after reading the meta-prefix character. `RL_STATE_DISPATCHING' Readline is dispatching to a command. `RL_STATE_MOREINPUT' Readline is reading more input while executing an editing command. `RL_STATE_ISEARCH' Readline is performing an incremental history search. `RL_STATE_NSEARCH' Readline is performing a non-incremental history search. `RL_STATE_SEARCH' Readline is searching backward or forward through the history for a string. `RL_STATE_NUMERICARG' Readline is reading a numeric argument. `RL_STATE_MACROINPUT' Readline is currently getting its input from a previously-defined keyboard macro. `RL_STATE_MACRODEF' Readline is currently reading characters defining a keyboard macro. `RL_STATE_OVERWRITE' Readline is in overwrite mode. `RL_STATE_COMPLETING' Readline is performing word completion. `RL_STATE_SIGHANDLER' Readline is currently executing the readline signal handler. `RL_STATE_UNDOING' Readline is performing an undo. `RL_STATE_INPUTPENDING' Readline has input pending due to a call to `rl_execute_next()'. `RL_STATE_TTYCSAVED' Readline has saved the values of the terminal's special characters. `RL_STATE_CALLBACK' Readline is currently using the alternate (callback) interface (*note Alternate Interface::). `RL_STATE_VIMOTION' Readline is reading the argument to a vi-mode "motion" command. `RL_STATE_MULTIKEY' Readline is reading a multiple-keystroke command. `RL_STATE_VICMDONCE' Readline has entered vi command (movement) mode at least one time during the current call to `readline()'. `RL_STATE_DONE' Readline has read a key sequence bound to `accept-line' and is about to return the line to the caller. -- Variable: int rl_explicit_arg Set to a non-zero value if an explicit numeric argument was specified by the user. Only valid in a bindable command function. -- Variable: int rl_numeric_arg Set to the value of any numeric argument explicitly specified by the user before executing the current Readline function. Only valid in a bindable command function. -- Variable: int rl_editing_mode Set to a value denoting Readline's current editing mode. A value of 1 means Readline is currently in emacs mode; 0 means that vi mode is active.  File: readline.info, Node: Readline Convenience Functions, Next: Readline Signal Handling, Prev: Readline Variables, Up: Programming with GNU Readline 2.4 Readline Convenience Functions ================================== * Menu: * Function Naming:: How to give a function you write a name. * Keymaps:: Making keymaps. * Binding Keys:: Changing Keymaps. * Associating Function Names and Bindings:: Translate function names to key sequences. * Allowing Undoing:: How to make your functions undoable. * Redisplay:: Functions to control line display. * Modifying Text:: Functions to modify `rl_line_buffer'. * Character Input:: Functions to read keyboard input. * Terminal Management:: Functions to manage terminal settings. * Utility Functions:: Generally useful functions and hooks. * Miscellaneous Functions:: Functions that don't fall into any category. * Alternate Interface:: Using Readline in a `callback' fashion. * A Readline Example:: An example Readline function.  File: readline.info, Node: Function Naming, Next: Keymaps, Up: Readline Convenience Functions 2.4.1 Naming a Function ----------------------- The user can dynamically change the bindings of keys while using Readline. This is done by representing the function with a descriptive name. The user is able to type the descriptive name when referring to the function. Thus, in an init file, one might find Meta-Rubout: backward-kill-word This binds the keystroke to the function _descriptively_ named `backward-kill-word'. You, as the programmer, should bind the functions you write to descriptive names as well. Readline provides a function for doing that: -- Function: int rl_add_defun (const char *name, rl_command_func_t *function, int key) Add NAME to the list of named functions. Make FUNCTION be the function that gets called. If KEY is not -1, then bind it to FUNCTION using `rl_bind_key()'. Using this function alone is sufficient for most applications. It is the recommended way to add a few functions to the default functions that Readline has built in. If you need to do something other than adding a function to Readline, you may need to use the underlying functions described below.  File: readline.info, Node: Keymaps, Next: Binding Keys, Prev: Function Naming, Up: Readline Convenience Functions 2.4.2 Selecting a Keymap ------------------------ Key bindings take place on a "keymap". The keymap is the association between the keys that the user types and the functions that get run. You can make your own keymaps, copy existing keymaps, and tell Readline which keymap to use. -- Function: Keymap rl_make_bare_keymap (void) Returns a new, empty keymap. The space for the keymap is allocated with `malloc()'; the caller should free it by calling `rl_free_keymap()' when done. -- Function: Keymap rl_copy_keymap (Keymap map) Return a new keymap which is a copy of MAP. -- Function: Keymap rl_make_keymap (void) Return a new keymap with the printing characters bound to rl_insert, the lowercase Meta characters bound to run their equivalents, and the Meta digits bound to produce numeric arguments. -- Function: void rl_discard_keymap (Keymap keymap) Free the storage associated with the data in KEYMAP. The caller should free KEYMAP. -- Function: void rl_free_keymap (Keymap keymap) Free all storage associated with KEYMAP. This calls `rl_discard_keymap' to free subordindate keymaps and macros. Readline has several internal keymaps. These functions allow you to change which keymap is active. -- Function: Keymap rl_get_keymap (void) Returns the currently active keymap. -- Function: void rl_set_keymap (Keymap keymap) Makes KEYMAP the currently active keymap. -- Function: Keymap rl_get_keymap_by_name (const char *name) Return the keymap matching NAME. NAME is one which would be supplied in a `set keymap' inputrc line (*note Readline Init File::). -- Function: char * rl_get_keymap_name (Keymap keymap) Return the name matching KEYMAP. NAME is one which would be supplied in a `set keymap' inputrc line (*note Readline Init File::).  File: readline.info, Node: Binding Keys, Next: Associating Function Names and Bindings, Prev: Keymaps, Up: Readline Convenience Functions 2.4.3 Binding Keys ------------------ Key sequences are associate with functions through the keymap. Readline has several internal keymaps: `emacs_standard_keymap', `emacs_meta_keymap', `emacs_ctlx_keymap', `vi_movement_keymap', and `vi_insertion_keymap'. `emacs_standard_keymap' is the default, and the examples in this manual assume that. Since `readline()' installs a set of default key bindings the first time it is called, there is always the danger that a custom binding installed before the first call to `readline()' will be overridden. An alternate mechanism is to install custom key bindings in an initialization function assigned to the `rl_startup_hook' variable (*note Readline Variables::). These functions manage key bindings. -- Function: int rl_bind_key (int key, rl_command_func_t *function) Binds KEY to FUNCTION in the currently active keymap. Returns non-zero in the case of an invalid KEY. -- Function: int rl_bind_key_in_map (int key, rl_command_func_t *function, Keymap map) Bind KEY to FUNCTION in MAP. Returns non-zero in the case of an invalid KEY. -- Function: int rl_bind_key_if_unbound (int key, rl_command_func_t *function) Binds KEY to FUNCTION if it is not already bound in the currently active keymap. Returns non-zero in the case of an invalid KEY or if KEY is already bound. -- Function: int rl_bind_key_if_unbound_in_map (int key, rl_command_func_t *function, Keymap map) Binds KEY to FUNCTION if it is not already bound in MAP. Returns non-zero in the case of an invalid KEY or if KEY is already bound. -- Function: int rl_unbind_key (int key) Bind KEY to the null function in the currently active keymap. Returns non-zero in case of error. -- Function: int rl_unbind_key_in_map (int key, Keymap map) Bind KEY to the null function in MAP. Returns non-zero in case of error. -- Function: int rl_unbind_function_in_map (rl_command_func_t *function, Keymap map) Unbind all keys that execute FUNCTION in MAP. -- Function: int rl_unbind_command_in_map (const char *command, Keymap map) Unbind all keys that are bound to COMMAND in MAP. -- Function: int rl_bind_keyseq (const char *keyseq, rl_command_func_t *function) Bind the key sequence represented by the string KEYSEQ to the function FUNCTION, beginning in the current keymap. This makes new keymaps as necessary. The return value is non-zero if KEYSEQ is invalid. -- Function: int rl_bind_keyseq_in_map (const char *keyseq, rl_command_func_t *function, Keymap map) Bind the key sequence represented by the string KEYSEQ to the function FUNCTION. This makes new keymaps as necessary. Initial bindings are performed in MAP. The return value is non-zero if KEYSEQ is invalid. -- Function: int rl_set_key (const char *keyseq, rl_command_func_t *function, Keymap map) Equivalent to `rl_bind_keyseq_in_map'. -- Function: int rl_bind_keyseq_if_unbound (const char *keyseq, rl_command_func_t *function) Binds KEYSEQ to FUNCTION if it is not already bound in the currently active keymap. Returns non-zero in the case of an invalid KEYSEQ or if KEYSEQ is already bound. -- Function: int rl_bind_keyseq_if_unbound_in_map (const char *keyseq, rl_command_func_t *function, Keymap map) Binds KEYSEQ to FUNCTION if it is not already bound in MAP. Returns non-zero in the case of an invalid KEYSEQ or if KEYSEQ is already bound. -- Function: int rl_generic_bind (int type, const char *keyseq, char *data, Keymap map) Bind the key sequence represented by the string KEYSEQ to the arbitrary pointer DATA. TYPE says what kind of data is pointed to by DATA; this can be a function (`ISFUNC'), a macro (`ISMACR'), or a keymap (`ISKMAP'). This makes new keymaps as necessary. The initial keymap in which to do bindings is MAP. -- Function: int rl_parse_and_bind (char *line) Parse LINE as if it had been read from the `inputrc' file and perform any key bindings and variable assignments found (*note Readline Init File::). -- Function: int rl_read_init_file (const char *filename) Read keybindings and variable assignments from FILENAME (*note Readline Init File::).  File: readline.info, Node: Associating Function Names and Bindings, Next: Allowing Undoing, Prev: Binding Keys, Up: Readline Convenience Functions 2.4.4 Associating Function Names and Bindings --------------------------------------------- These functions allow you to find out what keys invoke named functions and the functions invoked by a particular key sequence. You may also associate a new function name with an arbitrary function. -- Function: rl_command_func_t * rl_named_function (const char *name) Return the function with name NAME. -- Function: rl_command_func_t * rl_function_of_keyseq (const char *keyseq, Keymap map, int *type) Return the function invoked by KEYSEQ in keymap MAP. If MAP is `NULL', the current keymap is used. If TYPE is not `NULL', the type of the object is returned in the `int' variable it points to (one of `ISFUNC', `ISKMAP', or `ISMACR'). -- Function: char ** rl_invoking_keyseqs (rl_command_func_t *function) Return an array of strings representing the key sequences used to invoke FUNCTION in the current keymap. -- Function: char ** rl_invoking_keyseqs_in_map (rl_command_func_t *function, Keymap map) Return an array of strings representing the key sequences used to invoke FUNCTION in the keymap MAP. -- Function: void rl_function_dumper (int readable) Print the readline function names and the key sequences currently bound to them to `rl_outstream'. If READABLE is non-zero, the list is formatted in such a way that it can be made part of an `inputrc' file and re-read. -- Function: void rl_list_funmap_names (void) Print the names of all bindable Readline functions to `rl_outstream'. -- Function: const char ** rl_funmap_names (void) Return a NULL terminated array of known function names. The array is sorted. The array itself is allocated, but not the strings inside. You should free the array, but not the pointers, using `free' or `rl_free' when you are done. -- Function: int rl_add_funmap_entry (const char *name, rl_command_func_t *function) Add NAME to the list of bindable Readline command names, and make FUNCTION the function to be called when NAME is invoked.  File: readline.info, Node: Allowing Undoing, Next: Redisplay, Prev: Associating Function Names and Bindings, Up: Readline Convenience Functions 2.4.5 Allowing Undoing ---------------------- Supporting the undo command is a painless thing, and makes your functions much more useful. It is certainly easy to try something if you know you can undo it. If your function simply inserts text once, or deletes text once, and uses `rl_insert_text()' or `rl_delete_text()' to do it, then undoing is already done for you automatically. If you do multiple insertions or multiple deletions, or any combination of these operations, you should group them together into one operation. This is done with `rl_begin_undo_group()' and `rl_end_undo_group()'. The types of events that can be undone are: enum undo_code { UNDO_DELETE, UNDO_INSERT, UNDO_BEGIN, UNDO_END }; Notice that `UNDO_DELETE' means to insert some text, and `UNDO_INSERT' means to delete some text. That is, the undo code tells what to undo, not how to undo it. `UNDO_BEGIN' and `UNDO_END' are tags added by `rl_begin_undo_group()' and `rl_end_undo_group()'. -- Function: int rl_begin_undo_group (void) Begins saving undo information in a group construct. The undo information usually comes from calls to `rl_insert_text()' and `rl_delete_text()', but could be the result of calls to `rl_add_undo()'. -- Function: int rl_end_undo_group (void) Closes the current undo group started with `rl_begin_undo_group ()'. There should be one call to `rl_end_undo_group()' for each call to `rl_begin_undo_group()'. -- Function: void rl_add_undo (enum undo_code what, int start, int end, char *text) Remember how to undo an event (according to WHAT). The affected text runs from START to END, and encompasses TEXT. -- Function: void rl_free_undo_list (void) Free the existing undo list. -- Function: int rl_do_undo (void) Undo the first thing on the undo list. Returns `0' if there was nothing to undo, non-zero if something was undone. Finally, if you neither insert nor delete text, but directly modify the existing text (e.g., change its case), call `rl_modifying()' once, just before you modify the text. You must supply the indices of the text range that you are going to modify. -- Function: int rl_modifying (int start, int end) Tell Readline to save the text between START and END as a single undo unit. It is assumed that you will subsequently modify that text.  File: readline.info, Node: Redisplay, Next: Modifying Text, Prev: Allowing Undoing, Up: Readline Convenience Functions 2.4.6 Redisplay --------------- -- Function: void rl_redisplay (void) Change what's displayed on the screen to reflect the current contents of `rl_line_buffer'. -- Function: int rl_forced_update_display (void) Force the line to be updated and redisplayed, whether or not Readline thinks the screen display is correct. -- Function: int rl_on_new_line (void) Tell the update functions that we have moved onto a new (empty) line, usually after ouputting a newline. -- Function: int rl_on_new_line_with_prompt (void) Tell the update functions that we have moved onto a new line, with RL_PROMPT already displayed. This could be used by applications that want to output the prompt string themselves, but still need Readline to know the prompt string length for redisplay. It should be used after setting RL_ALREADY_PROMPTED. -- Function: int rl_reset_line_state (void) Reset the display state to a clean state and redisplay the current line starting on a new line. -- Function: int rl_crlf (void) Move the cursor to the start of the next screen line. -- Function: int rl_show_char (int c) Display character C on `rl_outstream'. If Readline has not been set to display meta characters directly, this will convert meta characters to a meta-prefixed key sequence. This is intended for use by applications which wish to do their own redisplay. -- Function: int rl_message (const char *, ...) The arguments are a format string as would be supplied to `printf', possibly containing conversion specifications such as `%d', and any additional arguments necessary to satisfy the conversion specifications. The resulting string is displayed in the "echo area". The echo area is also used to display numeric arguments and search strings. You should call `rl_save_prompt' to save the prompt information before calling this function. -- Function: int rl_clear_message (void) Clear the message in the echo area. If the prompt was saved with a call to `rl_save_prompt' before the last call to `rl_message', call `rl_restore_prompt' before calling this function. -- Function: void rl_save_prompt (void) Save the local Readline prompt display state in preparation for displaying a new message in the message area with `rl_message()'. -- Function: void rl_restore_prompt (void) Restore the local Readline prompt display state saved by the most recent call to `rl_save_prompt'. if `rl_save_prompt' was called to save the prompt before a call to `rl_message', this function should be called before the corresponding call to `rl_clear_message'. -- Function: int rl_expand_prompt (char *prompt) Expand any special character sequences in PROMPT and set up the local Readline prompt redisplay variables. This function is called by `readline()'. It may also be called to expand the primary prompt if the `rl_on_new_line_with_prompt()' function or `rl_already_prompted' variable is used. It returns the number of visible characters on the last line of the (possibly multi-line) prompt. Applications may indicate that the prompt contains characters that take up no physical screen space when displayed by bracketing a sequence of such characters with the special markers `RL_PROMPT_START_IGNORE' and `RL_PROMPT_END_IGNORE' (declared in `readline.h'. This may be used to embed terminal-specific escape sequences in prompts. -- Function: int rl_set_prompt (const char *prompt) Make Readline use PROMPT for subsequent redisplay. This calls `rl_expand_prompt()' to expand the prompt and sets `rl_prompt' to the result.  File: readline.info, Node: Modifying Text, Next: Character Input, Prev: Redisplay, Up: Readline Convenience Functions 2.4.7 Modifying Text -------------------- -- Function: int rl_insert_text (const char *text) Insert TEXT into the line at the current cursor position. Returns the number of characters inserted. -- Function: int rl_delete_text (int start, int end) Delete the text between START and END in the current line. Returns the number of characters deleted. -- Function: char * rl_copy_text (int start, int end) Return a copy of the text between START and END in the current line. -- Function: int rl_kill_text (int start, int end) Copy the text between START and END in the current line to the kill ring, appending or prepending to the last kill if the last command was a kill command. The text is deleted. If START is less than END, the text is appended, otherwise prepended. If the last command was not a kill, a new kill ring slot is used. -- Function: int rl_push_macro_input (char *macro) Cause MACRO to be inserted into the line, as if it had been invoked by a key bound to a macro. Not especially useful; use `rl_insert_text()' instead.  File: readline.info, Node: Character Input, Next: Terminal Management, Prev: Modifying Text, Up: Readline Convenience Functions 2.4.8 Character Input --------------------- -- Function: int rl_read_key (void) Return the next character available from Readline's current input stream. This handles input inserted into the input stream via RL_PENDING_INPUT (*note Readline Variables::) and `rl_stuff_char()', macros, and characters read from the keyboard. While waiting for input, this function will call any function assigned to the `rl_event_hook' variable. -- Function: int rl_getc (FILE *stream) Return the next character available from STREAM, which is assumed to be the keyboard. -- Function: int rl_stuff_char (int c) Insert C into the Readline input stream. It will be "read" before Readline attempts to read characters from the terminal with `rl_read_key()'. Up to 512 characters may be pushed back. `rl_stuff_char' returns 1 if the character was successfully inserted; 0 otherwise. -- Function: int rl_execute_next (int c) Make C be the next command to be executed when `rl_read_key()' is called. This sets RL_PENDING_INPUT. -- Function: int rl_clear_pending_input (void) Unset RL_PENDING_INPUT, effectively negating the effect of any previous call to `rl_execute_next()'. This works only if the pending input has not already been read with `rl_read_key()'. -- Function: int rl_set_keyboard_input_timeout (int u) While waiting for keyboard input in `rl_read_key()', Readline will wait for U microseconds for input before calling any function assigned to `rl_event_hook'. U must be greater than or equal to zero (a zero-length timeout is equivalent to a poll). The default waiting period is one-tenth of a second. Returns the old timeout value.  File: readline.info, Node: Terminal Management, Next: Utility Functions, Prev: Character Input, Up: Readline Convenience Functions 2.4.9 Terminal Management ------------------------- -- Function: void rl_prep_terminal (int meta_flag) Modify the terminal settings for Readline's use, so `readline()' can read a single character at a time from the keyboard. The META_FLAG argument should be non-zero if Readline should read eight-bit input. -- Function: void rl_deprep_terminal (void) Undo the effects of `rl_prep_terminal()', leaving the terminal in the state in which it was before the most recent call to `rl_prep_terminal()'. -- Function: void rl_tty_set_default_bindings (Keymap kmap) Read the operating system's terminal editing characters (as would be displayed by `stty') to their Readline equivalents. The bindings are performed in KMAP. -- Function: void rl_tty_unset_default_bindings (Keymap kmap) Reset the bindings manipulated by `rl_tty_set_default_bindings' so that the terminal editing characters are bound to `rl_insert'. The bindings are performed in KMAP. -- Function: int rl_reset_terminal (const char *terminal_name) Reinitialize Readline's idea of the terminal settings using TERMINAL_NAME as the terminal type (e.g., `vt100'). If TERMINAL_NAME is `NULL', the value of the `TERM' environment variable is used.  File: readline.info, Node: Utility Functions, Next: Miscellaneous Functions, Prev: Terminal Management, Up: Readline Convenience Functions 2.4.10 Utility Functions ------------------------ -- Function: int rl_save_state (struct readline_state *sp) Save a snapshot of Readline's internal state to SP. The contents of the READLINE_STATE structure are documented in `readline.h'. The caller is responsible for allocating the structure. -- Function: int rl_restore_state (struct readline_state *sp) Restore Readline's internal state to that stored in SP, which must have been saved by a call to `rl_save_state'. The contents of the READLINE_STATE structure are documented in `readline.h'. The caller is responsible for freeing the structure. -- Function: void rl_free (void *mem) Deallocate the memory pointed to by MEM. MEM must have been allocated by `malloc'. -- Function: void rl_replace_line (const char *text, int clear_undo) Replace the contents of `rl_line_buffer' with TEXT. The point and mark are preserved, if possible. If CLEAR_UNDO is non-zero, the undo list associated with the current line is cleared. -- Function: void rl_extend_line_buffer (int len) Ensure that `rl_line_buffer' has enough space to hold LEN characters, possibly reallocating it if necessary. -- Function: int rl_initialize (void) Initialize or re-initialize Readline's internal state. It's not strictly necessary to call this; `readline()' calls it before reading any input. -- Function: int rl_ding (void) Ring the terminal bell, obeying the setting of `bell-style'. -- Function: int rl_alphabetic (int c) Return 1 if C is an alphabetic character. -- Function: void rl_display_match_list (char **matches, int len, int max) A convenience function for displaying a list of strings in columnar format on Readline's output stream. `matches' is the list of strings, in argv format, such as a list of completion matches. `len' is the number of strings in `matches', and `max' is the length of the longest string in `matches'. This function uses the setting of `print-completions-horizontally' to select how the matches are displayed (*note Readline Init File Syntax::). The following are implemented as macros, defined in `chardefs.h'. Applications should refrain from using them. -- Function: int _rl_uppercase_p (int c) Return 1 if C is an uppercase alphabetic character. -- Function: int _rl_lowercase_p (int c) Return 1 if C is a lowercase alphabetic character. -- Function: int _rl_digit_p (int c) Return 1 if C is a numeric character. -- Function: int _rl_to_upper (int c) If C is a lowercase alphabetic character, return the corresponding uppercase character. -- Function: int _rl_to_lower (int c) If C is an uppercase alphabetic character, return the corresponding lowercase character. -- Function: int _rl_digit_value (int c) If C is a number, return the value it represents.  File: readline.info, Node: Miscellaneous Functions, Next: Alternate Interface, Prev: Utility Functions, Up: Readline Convenience Functions 2.4.11 Miscellaneous Functions ------------------------------ -- Function: int rl_macro_bind (const char *keyseq, const char *macro, Keymap map) Bind the key sequence KEYSEQ to invoke the macro MACRO. The binding is performed in MAP. When KEYSEQ is invoked, the MACRO will be inserted into the line. This function is deprecated; use `rl_generic_bind()' instead. -- Function: void rl_macro_dumper (int readable) Print the key sequences bound to macros and their values, using the current keymap, to `rl_outstream'. If READABLE is non-zero, the list is formatted in such a way that it can be made part of an `inputrc' file and re-read. -- Function: int rl_variable_bind (const char *variable, const char *value) Make the Readline variable VARIABLE have VALUE. This behaves as if the readline command `set VARIABLE VALUE' had been executed in an `inputrc' file (*note Readline Init File Syntax::). -- Function: char * rl_variable_value (const char *variable) Return a string representing the value of the Readline variable VARIABLE. For boolean variables, this string is either `on' or `off'. -- Function: void rl_variable_dumper (int readable) Print the readline variable names and their current values to `rl_outstream'. If READABLE is non-zero, the list is formatted in such a way that it can be made part of an `inputrc' file and re-read. -- Function: int rl_set_paren_blink_timeout (int u) Set the time interval (in microseconds) that Readline waits when showing a balancing character when `blink-matching-paren' has been enabled. -- Function: char * rl_get_termcap (const char *cap) Retrieve the string value of the termcap capability CAP. Readline fetches the termcap entry for the current terminal name and uses those capabilities to move around the screen line and perform other terminal-specific operations, like erasing a line. Readline does not use all of a terminal's capabilities, and this function will return values for only those capabilities Readline uses.  File: readline.info, Node: Alternate Interface, Next: A Readline Example, Prev: Miscellaneous Functions, Up: Readline Convenience Functions 2.4.12 Alternate Interface -------------------------- An alternate interface is available to plain `readline()'. Some applications need to interleave keyboard I/O with file, device, or window system I/O, typically by using a main loop to `select()' on various file descriptors. To accomodate this need, readline can also be invoked as a `callback' function from an event loop. There are functions available to make this easy. -- Function: void rl_callback_handler_install (const char *prompt, rl_vcpfunc_t *lhandler) Set up the terminal for readline I/O and display the initial expanded value of PROMPT. Save the value of LHANDLER to use as a function to call when a complete line of input has been entered. The function takes the text of the line as an argument. -- Function: void rl_callback_read_char (void) Whenever an application determines that keyboard input is available, it should call `rl_callback_read_char()', which will read the next character from the current input source. If that character completes the line, `rl_callback_read_char' will invoke the LHANDLER function saved by `rl_callback_handler_install' to process the line. Before calling the LHANDLER function, the terminal settings are reset to the values they had before calling `rl_callback_handler_install'. If the LHANDLER function returns, the terminal settings are modified for Readline's use again. `EOF' is indicated by calling LHANDLER with a `NULL' line. -- Function: void rl_callback_handler_remove (void) Restore the terminal to its initial state and remove the line handler. This may be called from within a callback as well as independently. If the LHANDLER installed by `rl_callback_handler_install' does not exit the program, either this function or the function referred to by the value of `rl_deprep_term_function' should be called before the program exits to reset the terminal settings.  File: readline.info, Node: A Readline Example, Prev: Alternate Interface, Up: Readline Convenience Functions 2.4.13 A Readline Example ------------------------- Here is a function which changes lowercase characters to their uppercase equivalents, and uppercase characters to lowercase. If this function was bound to `M-c', then typing `M-c' would change the case of the character under point. Typing `M-1 0 M-c' would change the case of the following 10 characters, leaving the cursor on the last character changed. /* Invert the case of the COUNT following characters. */ int invert_case_line (count, key) int count, key; { register int start, end, i; start = rl_point; if (rl_point >= rl_end) return (0); if (count < 0) { direction = -1; count = -count; } else direction = 1; /* Find the end of the range to modify. */ end = start + (count * direction); /* Force it to be within range. */ if (end > rl_end) end = rl_end; else if (end < 0) end = 0; if (start == end) return (0); if (start > end) { int temp = start; start = end; end = temp; } /* Tell readline that we are modifying the line, so it will save the undo information. */ rl_modifying (start, end); for (i = start; i != end; i++) { if (_rl_uppercase_p (rl_line_buffer[i])) rl_line_buffer[i] = _rl_to_lower (rl_line_buffer[i]); else if (_rl_lowercase_p (rl_line_buffer[i])) rl_line_buffer[i] = _rl_to_upper (rl_line_buffer[i]); } /* Move point to on top of the last character changed. */ rl_point = (direction == 1) ? end - 1 : start; return (0); }  File: readline.info, Node: Readline Signal Handling, Next: Custom Completers, Prev: Readline Convenience Functions, Up: Programming with GNU Readline 2.5 Readline Signal Handling ============================ Signals are asynchronous events sent to a process by the Unix kernel, sometimes on behalf of another process. They are intended to indicate exceptional events, like a user pressing the interrupt key on his terminal, or a network connection being broken. There is a class of signals that can be sent to the process currently reading input from the keyboard. Since Readline changes the terminal attributes when it is called, it needs to perform special processing when such a signal is received in order to restore the terminal to a sane state, or provide application writers with functions to do so manually. Readline contains an internal signal handler that is installed for a number of signals (`SIGINT', `SIGQUIT', `SIGTERM', `SIGALRM', `SIGTSTP', `SIGTTIN', and `SIGTTOU'). When one of these signals is received, the signal handler will reset the terminal attributes to those that were in effect before `readline()' was called, reset the signal handling to what it was before `readline()' was called, and resend the signal to the calling application. If and when the calling application's signal handler returns, Readline will reinitialize the terminal and continue to accept input. When a `SIGINT' is received, the Readline signal handler performs some additional work, which will cause any partially-entered line to be aborted (see the description of `rl_free_line_state()' below). There is an additional Readline signal handler, for `SIGWINCH', which the kernel sends to a process whenever the terminal's size changes (for example, if a user resizes an `xterm'). The Readline `SIGWINCH' handler updates Readline's internal screen size information, and then calls any `SIGWINCH' signal handler the calling application has installed. Readline calls the application's `SIGWINCH' signal handler without resetting the terminal to its original state. If the application's signal handler does more than update its idea of the terminal size and return (for example, a `longjmp' back to a main processing loop), it _must_ call `rl_cleanup_after_signal()' (described below), to restore the terminal state. Readline provides two variables that allow application writers to control whether or not it will catch certain signals and act on them when they are received. It is important that applications change the values of these variables only when calling `readline()', not in a signal handler, so Readline's internal signal state is not corrupted. -- Variable: int rl_catch_signals If this variable is non-zero, Readline will install signal handlers for `SIGINT', `SIGQUIT', `SIGTERM', `SIGALRM', `SIGTSTP', `SIGTTIN', and `SIGTTOU'. The default value of `rl_catch_signals' is 1. -- Variable: int rl_catch_sigwinch If this variable is non-zero, Readline will install a signal handler for `SIGWINCH'. The default value of `rl_catch_sigwinch' is 1. If an application does not wish to have Readline catch any signals, or to handle signals other than those Readline catches (`SIGHUP', for example), Readline provides convenience functions to do the necessary terminal and internal state cleanup upon receipt of a signal. -- Function: void rl_cleanup_after_signal (void) This function will reset the state of the terminal to what it was before `readline()' was called, and remove the Readline signal handlers for all signals, depending on the values of `rl_catch_signals' and `rl_catch_sigwinch'. -- Function: void rl_free_line_state (void) This will free any partial state associated with the current input line (undo information, any partial history entry, any partially-entered keyboard macro, and any partially-entered numeric argument). This should be called before `rl_cleanup_after_signal()'. The Readline signal handler for `SIGINT' calls this to abort the current input line. -- Function: void rl_reset_after_signal (void) This will reinitialize the terminal and reinstall any Readline signal handlers, depending on the values of `rl_catch_signals' and `rl_catch_sigwinch'. If an application does not wish Readline to catch `SIGWINCH', it may call `rl_resize_terminal()' or `rl_set_screen_size()' to force Readline to update its idea of the terminal size when a `SIGWINCH' is received. -- Function: void rl_echo_signal_char (int sig) If an application wishes to install its own signal handlers, but still have readline display characters that generate signals, calling this function with SIG set to `SIGINT', `SIGQUIT', or `SIGTSTP' will display the character generating that signal. -- Function: void rl_resize_terminal (void) Update Readline's internal screen size by reading values from the kernel. -- Function: void rl_set_screen_size (int rows, int cols) Set Readline's idea of the terminal size to ROWS rows and COLS columns. If either ROWS or COLUMNS is less than or equal to 0, Readline's idea of that terminal dimension is unchanged. If an application does not want to install a `SIGWINCH' handler, but is still interested in the screen dimensions, Readline's idea of the screen size may be queried. -- Function: void rl_get_screen_size (int *rows, int *cols) Return Readline's idea of the terminal's size in the variables pointed to by the arguments. -- Function: void rl_reset_screen_size (void) Cause Readline to reobtain the screen size and recalculate its dimensions. The following functions install and remove Readline's signal handlers. -- Function: int rl_set_signals (void) Install Readline's signal handler for `SIGINT', `SIGQUIT', `SIGTERM', `SIGALRM', `SIGTSTP', `SIGTTIN', `SIGTTOU', and `SIGWINCH', depending on the values of `rl_catch_signals' and `rl_catch_sigwinch'. -- Function: int rl_clear_signals (void) Remove all of the Readline signal handlers installed by `rl_set_signals()'.  File: readline.info, Node: Custom Completers, Prev: Readline Signal Handling, Up: Programming with GNU Readline 2.6 Custom Completers ===================== Typically, a program that reads commands from the user has a way of disambiguating commands and data. If your program is one of these, then it can provide completion for commands, data, or both. The following sections describe how your program and Readline cooperate to provide this service. * Menu: * How Completing Works:: The logic used to do completion. * Completion Functions:: Functions provided by Readline. * Completion Variables:: Variables which control completion. * A Short Completion Example:: An example of writing completer subroutines.  File: readline.info, Node: How Completing Works, Next: Completion Functions, Up: Custom Completers 2.6.1 How Completing Works -------------------------- In order to complete some text, the full list of possible completions must be available. That is, it is not possible to accurately expand a partial word without knowing all of the possible words which make sense in that context. The Readline library provides the user interface to completion, and two of the most common completion functions: filename and username. For completing other types of text, you must write your own completion function. This section describes exactly what such functions must do, and provides an example. There are three major functions used to perform completion: 1. The user-interface function `rl_complete()'. This function is called with the same arguments as other bindable Readline functions: COUNT and INVOKING_KEY. It isolates the word to be completed and calls `rl_completion_matches()' to generate a list of possible completions. It then either lists the possible completions, inserts the possible completions, or actually performs the completion, depending on which behavior is desired. 2. The internal function `rl_completion_matches()' uses an application-supplied "generator" function to generate the list of possible matches, and then returns the array of these matches. The caller should place the address of its generator function in `rl_completion_entry_function'. 3. The generator function is called repeatedly from `rl_completion_matches()', returning a string each time. The arguments to the generator function are TEXT and STATE. TEXT is the partial word to be completed. STATE is zero the first time the function is called, allowing the generator to perform any necessary initialization, and a positive non-zero integer for each subsequent call. The generator function returns `(char *)NULL' to inform `rl_completion_matches()' that there are no more possibilities left. Usually the generator function computes the list of possible completions when STATE is zero, and returns them one at a time on subsequent calls. Each string the generator function returns as a match must be allocated with `malloc()'; Readline frees the strings when it has finished with them. Such a generator function is referred to as an "application-specific completion function". -- Function: int rl_complete (int ignore, int invoking_key) Complete the word at or before point. You have supplied the function that does the initial simple matching selection algorithm (see `rl_completion_matches()'). The default is to do filename completion. -- Variable: rl_compentry_func_t * rl_completion_entry_function This is a pointer to the generator function for `rl_completion_matches()'. If the value of `rl_completion_entry_function' is `NULL' then the default filename generator function, `rl_filename_completion_function()', is used. An "application-specific completion function" is a function whose address is assigned to `rl_completion_entry_function' and whose return values are used to generate possible completions.  File: readline.info, Node: Completion Functions, Next: Completion Variables, Prev: How Completing Works, Up: Custom Completers 2.6.2 Completion Functions -------------------------- Here is the complete list of callable completion functions present in Readline. -- Function: int rl_complete_internal (int what_to_do) Complete the word at or before point. WHAT_TO_DO says what to do with the completion. A value of `?' means list the possible completions. `TAB' means do standard completion. `*' means insert all of the possible completions. `!' means to display all of the possible completions, if there is more than one, as well as performing partial completion. `@' is similar to `!', but possible completions are not listed if the possible completions share a common prefix. -- Function: int rl_complete (int ignore, int invoking_key) Complete the word at or before point. You have supplied the function that does the initial simple matching selection algorithm (see `rl_completion_matches()' and `rl_completion_entry_function'). The default is to do filename completion. This calls `rl_complete_internal()' with an argument depending on INVOKING_KEY. -- Function: int rl_possible_completions (int count, int invoking_key) List the possible completions. See description of `rl_complete ()'. This calls `rl_complete_internal()' with an argument of `?'. -- Function: int rl_insert_completions (int count, int invoking_key) Insert the list of possible completions into the line, deleting the partially-completed word. See description of `rl_complete()'. This calls `rl_complete_internal()' with an argument of `*'. -- Function: int rl_completion_mode (rl_command_func_t *cfunc) Returns the apppriate value to pass to `rl_complete_internal()' depending on whether CFUNC was called twice in succession and the values of the `show-all-if-ambiguous' and `show-all-if-unmodified' variables. Application-specific completion functions may use this function to present the same interface as `rl_complete()'. -- Function: char ** rl_completion_matches (const char *text, rl_compentry_func_t *entry_func) Returns an array of strings which is a list of completions for TEXT. If there are no completions, returns `NULL'. The first entry in the returned array is the substitution for TEXT. The remaining entries are the possible completions. The array is terminated with a `NULL' pointer. ENTRY_FUNC is a function of two args, and returns a `char *'. The first argument is TEXT. The second is a state argument; it is zero on the first call, and non-zero on subsequent calls. ENTRY_FUNC returns a `NULL' pointer to the caller when there are no more matches. -- Function: char * rl_filename_completion_function (const char *text, int state) A generator function for filename completion in the general case. TEXT is a partial filename. The Bash source is a useful reference for writing application-specific completion functions (the Bash completion functions call this and other Readline functions). -- Function: char * rl_username_completion_function (const char *text, int state) A completion generator for usernames. TEXT contains a partial username preceded by a random character (usually `~'). As with all completion generators, STATE is zero on the first call and non-zero for subsequent calls.  File: readline.info, Node: Completion Variables, Next: A Short Completion Example, Prev: Completion Functions, Up: Custom Completers 2.6.3 Completion Variables -------------------------- -- Variable: rl_compentry_func_t * rl_completion_entry_function A pointer to the generator function for `rl_completion_matches()'. `NULL' means to use `rl_filename_completion_function()', the default filename completer. -- Variable: rl_completion_func_t * rl_attempted_completion_function A pointer to an alternative function to create matches. The function is called with TEXT, START, and END. START and END are indices in `rl_line_buffer' defining the boundaries of TEXT, which is a character string. If this function exists and returns `NULL', or if this variable is set to `NULL', then `rl_complete()' will call the value of `rl_completion_entry_function' to generate matches, otherwise the array of strings returned will be used. If this function sets the `rl_attempted_completion_over' variable to a non-zero value, Readline will not perform its default completion even if this function returns no matches. -- Variable: rl_quote_func_t * rl_filename_quoting_function A pointer to a function that will quote a filename in an application-specific fashion. This is called if filename completion is being attempted and one of the characters in `rl_filename_quote_characters' appears in a completed filename. The function is called with TEXT, MATCH_TYPE, and QUOTE_POINTER. The TEXT is the filename to be quoted. The MATCH_TYPE is either `SINGLE_MATCH', if there is only one completion match, or `MULT_MATCH'. Some functions use this to decide whether or not to insert a closing quote character. The QUOTE_POINTER is a pointer to any opening quote character the user typed. Some functions choose to reset this character. -- Variable: rl_dequote_func_t * rl_filename_dequoting_function A pointer to a function that will remove application-specific quoting characters from a filename before completion is attempted, so those characters do not interfere with matching the text against names in the filesystem. It is called with TEXT, the text of the word to be dequoted, and QUOTE_CHAR, which is the quoting character that delimits the filename (usually `'' or `"'). If QUOTE_CHAR is zero, the filename was not in an embedded string. -- Variable: rl_linebuf_func_t * rl_char_is_quoted_p A pointer to a function to call that determines whether or not a specific character in the line buffer is quoted, according to whatever quoting mechanism the program calling Readline uses. The function is called with two arguments: TEXT, the text of the line, and INDEX, the index of the character in the line. It is used to decide whether a character found in `rl_completer_word_break_characters' should be used to break words for the completer. -- Variable: rl_compignore_func_t * rl_ignore_some_completions_function This function, if defined, is called by the completer when real filename completion is done, after all the matching names have been generated. It is passed a `NULL' terminated array of matches. The first element (`matches[0]') is the maximal substring common to all matches. This function can re-arrange the list of matches as required, but each element deleted from the array must be freed. -- Variable: rl_icppfunc_t * rl_directory_completion_hook This function, if defined, is allowed to modify the directory portion of filenames Readline completes. It is called with the address of a string (the current directory name) as an argument, and may modify that string. If the string is replaced with a new string, the old value should be freed. Any modified directory name should have a trailing slash. The modified value will be displayed as part of the completion, replacing the directory portion of the pathname the user typed. It returns an integer that should be non-zero if the function modifies its directory argument. It could be used to expand symbolic links or shell variables in pathnames. At the least, even if no other expansion is performed, this function should remove any quote characters from the directory name, because its result will be passed directly to `opendir()'. -- Variable: rl_dequote_func_t * rl_filename_rewrite_hook If non-zero, this is the address of a function called when reading directory entries from the filesystem for completion and comparing them to the partial word to be completed. The function should perform any necesary application or system-specific conversion on the filename, such as converting between character sets or converting from a filesystem format to a character input format. The function takes two arguments: FNAME, the filename to be converted, and FNLEN, its length in bytes. It must either return its first argument (if no conversion takes place) or the converted filename in newly-allocated memory. The converted form is used to compare against the word to be completed, and, if it matches, is added to the list of matches. Readline will free the allocated string. -- Variable: rl_compdisp_func_t * rl_completion_display_matches_hook If non-zero, then this is the address of a function to call when completing a word would normally display the list of possible matches. This function is called in lieu of Readline displaying the list. It takes three arguments: (`char **'MATCHES, `int' NUM_MATCHES, `int' MAX_LENGTH) where MATCHES is the array of matching strings, NUM_MATCHES is the number of strings in that array, and MAX_LENGTH is the length of the longest string in that array. Readline provides a convenience function, `rl_display_match_list', that takes care of doing the display to Readline's output stream. That function may be called from this hook. -- Variable: const char * rl_basic_word_break_characters The basic list of characters that signal a break between words for the completer routine. The default value of this variable is the characters which break words for completion in Bash: `" \t\n\"\\'`@$><=;|&{("'. -- Variable: const char * rl_basic_quote_characters A list of quote characters which can cause a word break. -- Variable: const char * rl_completer_word_break_characters The list of characters that signal a break between words for `rl_complete_internal()'. The default list is the value of `rl_basic_word_break_characters'. -- Variable: rl_cpvfunc_t * rl_completion_word_break_hook If non-zero, this is the address of a function to call when Readline is deciding where to separate words for word completion. It should return a character string like `rl_completer_word_break_characters' to be used to perform the current completion. The function may choose to set `rl_completer_word_break_characters' itself. If the function returns `NULL', `rl_completer_word_break_characters' is used. -- Variable: const char * rl_completer_quote_characters A list of characters which can be used to quote a substring of the line. Completion occurs on the entire substring, and within the substring `rl_completer_word_break_characters' are treated as any other character, unless they also appear within this list. -- Variable: const char * rl_filename_quote_characters A list of characters that cause a filename to be quoted by the completer when they appear in a completed filename. The default is the null string. -- Variable: const char * rl_special_prefixes The list of characters that are word break characters, but should be left in TEXT when it is passed to the completion function. Programs can use this to help determine what kind of completing to do. For instance, Bash sets this variable to "$@" so that it can complete shell variables and hostnames. -- Variable: int rl_completion_query_items Up to this many items will be displayed in response to a possible-completions call. After that, readline asks the user if she is sure she wants to see them all. The default value is 100. A negative value indicates that Readline should never ask the user. -- Variable: int rl_completion_append_character When a single completion alternative matches at the end of the command line, this character is appended to the inserted completion text. The default is a space character (` '). Setting this to the null character (`\0') prevents anything being appended automatically. This can be changed in application-specific completion functions to provide the "most sensible word separator character" according to an application-specific command line syntax specification. -- Variable: int rl_completion_suppress_append If non-zero, RL_COMPLETION_APPEND_CHARACTER is not appended to matches at the end of the command line, as described above. It is set to 0 before any application-specific completion function is called, and may only be changed within such a function. -- Variable: int rl_completion_quote_character When Readline is completing quoted text, as delimited by one of the characters in RL_COMPLETER_QUOTE_CHARACTERS, it sets this variable to the quoting character found. This is set before any application-specific completion function is called. -- Variable: int rl_completion_suppress_quote If non-zero, Readline does not append a matching quote character when performing completion on a quoted string. It is set to 0 before any application-specific completion function is called, and may only be changed within such a function. -- Variable: int rl_completion_found_quote When Readline is completing quoted text, it sets this variable to a non-zero value if the word being completed contains or is delimited by any quoting characters, including backslashes. This is set before any application-specific completion function is called. -- Variable: int rl_completion_mark_symlink_dirs If non-zero, a slash will be appended to completed filenames that are symbolic links to directory names, subject to the value of the user-settable MARK-DIRECTORIES variable. This variable exists so that application-specific completion functions can override the user's global preference (set via the MARK-SYMLINKED-DIRECTORIES Readline variable) if appropriate. This variable is set to the user's preference before any application-specific completion function is called, so unless that function modifies the value, the user's preferences are honored. -- Variable: int rl_ignore_completion_duplicates If non-zero, then duplicates in the matches are removed. The default is 1. -- Variable: int rl_filename_completion_desired Non-zero means that the results of the matches are to be treated as filenames. This is _always_ zero when completion is attempted, and can only be changed within an application-specific completion function. If it is set to a non-zero value by such a function, directory names have a slash appended and Readline attempts to quote completed filenames if they contain any characters in `rl_filename_quote_characters' and `rl_filename_quoting_desired' is set to a non-zero value. -- Variable: int rl_filename_quoting_desired Non-zero means that the results of the matches are to be quoted using double quotes (or an application-specific quoting mechanism) if the completed filename contains any characters in `rl_filename_quote_chars'. This is _always_ non-zero when completion is attempted, and can only be changed within an application-specific completion function. The quoting is effected via a call to the function pointed to by `rl_filename_quoting_function'. -- Variable: int rl_attempted_completion_over If an application-specific completion function assigned to `rl_attempted_completion_function' sets this variable to a non-zero value, Readline will not perform its default filename completion even if the application's completion function returns no matches. It should be set only by an application's completion function. -- Variable: int rl_sort_completion_matches If an application sets this variable to 0, Readline will not sort the list of completions (which implies that it cannot remove any duplicate completions). The default value is 1, which means that Readline will sort the completions and, depending on the value of `rl_ignore_completion_duplicates', will attempt to remove duplicate matches. -- Variable: int rl_completion_type Set to a character describing the type of completion Readline is currently attempting; see the description of `rl_complete_internal()' (*note Completion Functions::) for the list of characters. This is set to the appropriate value before any application-specific completion function is called, allowing such functions to present the same interface as `rl_complete()'. -- Variable: int rl_completion_invoking_key Set to the final character in the key sequence that invoked one of the completion functions that call `rl_complete_internal()'. This is set to the appropriate value before any application-specific completion function is called. -- Variable: int rl_inhibit_completion If this variable is non-zero, completion is inhibited. The completion character will be inserted as any other bound to `self-insert'.  File: readline.info, Node: A Short Completion Example, Prev: Completion Variables, Up: Custom Completers 2.6.4 A Short Completion Example -------------------------------- Here is a small application demonstrating the use of the GNU Readline library. It is called `fileman', and the source code resides in `examples/fileman.c'. This sample application provides completion of command names, line editing features, and access to the history list. /* fileman.c -- A tiny application which demonstrates how to use the GNU Readline library. This application interactively allows users to manipulate files and their modes. */ #ifdef HAVE_CONFIG_H # include #endif #include #ifdef HAVE_SYS_FILE_H # include #endif #include #ifdef HAVE_UNISTD_H # include #endif #include #include #include #if defined (HAVE_STRING_H) # include #else /* !HAVE_STRING_H */ # include #endif /* !HAVE_STRING_H */ #ifdef HAVE_STDLIB_H # include #endif #include #include #include extern char *xmalloc PARAMS((size_t)); /* The names of functions that actually do the manipulation. */ int com_list PARAMS((char *)); int com_view PARAMS((char *)); int com_rename PARAMS((char *)); int com_stat PARAMS((char *)); int com_pwd PARAMS((char *)); int com_delete PARAMS((char *)); int com_help PARAMS((char *)); int com_cd PARAMS((char *)); int com_quit PARAMS((char *)); /* A structure which contains information on the commands this program can understand. */ typedef struct { char *name; /* User printable name of the function. */ rl_icpfunc_t *func; /* Function to call to do the job. */ char *doc; /* Documentation for this function. */ } COMMAND; COMMAND commands[] = { { "cd", com_cd, "Change to directory DIR" }, { "delete", com_delete, "Delete FILE" }, { "help", com_help, "Display this text" }, { "?", com_help, "Synonym for `help'" }, { "list", com_list, "List files in DIR" }, { "ls", com_list, "Synonym for `list'" }, { "pwd", com_pwd, "Print the current working directory" }, { "quit", com_quit, "Quit using Fileman" }, { "rename", com_rename, "Rename FILE to NEWNAME" }, { "stat", com_stat, "Print out statistics on FILE" }, { "view", com_view, "View the contents of FILE" }, { (char *)NULL, (rl_icpfunc_t *)NULL, (char *)NULL } }; /* Forward declarations. */ char *stripwhite (); COMMAND *find_command (); /* The name of this program, as taken from argv[0]. */ char *progname; /* When non-zero, this global means the user is done using this program. */ int done; char * dupstr (s) char *s; { char *r; r = xmalloc (strlen (s) + 1); strcpy (r, s); return (r); } main (argc, argv) int argc; char **argv; { char *line, *s; progname = argv[0]; initialize_readline (); /* Bind our completer. */ /* Loop reading and executing lines until the user quits. */ for ( ; done == 0; ) { line = readline ("FileMan: "); if (!line) break; /* Remove leading and trailing whitespace from the line. Then, if there is anything left, add it to the history list and execute it. */ s = stripwhite (line); if (*s) { add_history (s); execute_line (s); } free (line); } exit (0); } /* Execute a command line. */ int execute_line (line) char *line; { register int i; COMMAND *command; char *word; /* Isolate the command word. */ i = 0; while (line[i] && whitespace (line[i])) i++; word = line + i; while (line[i] && !whitespace (line[i])) i++; if (line[i]) line[i++] = '\0'; command = find_command (word); if (!command) { fprintf (stderr, "%s: No such command for FileMan.\n", word); return (-1); } /* Get argument to command, if any. */ while (whitespace (line[i])) i++; word = line + i; /* Call the function. */ return ((*(command->func)) (word)); } /* Look up NAME as the name of a command, and return a pointer to that command. Return a NULL pointer if NAME isn't a command name. */ COMMAND * find_command (name) char *name; { register int i; for (i = 0; commands[i].name; i++) if (strcmp (name, commands[i].name) == 0) return (&commands[i]); return ((COMMAND *)NULL); } /* Strip whitespace from the start and end of STRING. Return a pointer into STRING. */ char * stripwhite (string) char *string; { register char *s, *t; for (s = string; whitespace (*s); s++) ; if (*s == 0) return (s); t = s + strlen (s) - 1; while (t > s && whitespace (*t)) t--; *++t = '\0'; return s; } /* **************************************************************** */ /* */ /* Interface to Readline Completion */ /* */ /* **************************************************************** */ char *command_generator PARAMS((const char *, int)); char **fileman_completion PARAMS((const char *, int, int)); /* Tell the GNU Readline library how to complete. We want to try to complete on command names if this is the first word in the line, or on filenames if not. */ initialize_readline () { /* Allow conditional parsing of the ~/.inputrc file. */ rl_readline_name = "FileMan"; /* Tell the completer that we want a crack first. */ rl_attempted_completion_function = fileman_completion; } /* Attempt to complete on the contents of TEXT. START and END bound the region of rl_line_buffer that contains the word to complete. TEXT is the word to complete. We can use the entire contents of rl_line_buffer in case we want to do some simple parsing. Return the array of matches, or NULL if there aren't any. */ char ** fileman_completion (text, start, end) const char *text; int start, end; { char **matches; matches = (char **)NULL; /* If this word is at the start of the line, then it is a command to complete. Otherwise it is the name of a file in the current directory. */ if (start == 0) matches = rl_completion_matches (text, command_generator); return (matches); } /* Generator function for command completion. STATE lets us know whether to start from scratch; without any state (i.e. STATE == 0), then we start at the top of the list. */ char * command_generator (text, state) const char *text; int state; { static int list_index, len; char *name; /* If this is a new word to complete, initialize now. This includes saving the length of TEXT for efficiency, and initializing the index variable to 0. */ if (!state) { list_index = 0; len = strlen (text); } /* Return the next name which partially matches from the command list. */ while (name = commands[list_index].name) { list_index++; if (strncmp (name, text, len) == 0) return (dupstr(name)); } /* If no names matched, then return NULL. */ return ((char *)NULL); } /* **************************************************************** */ /* */ /* FileMan Commands */ /* */ /* **************************************************************** */ /* String to pass to system (). This is for the LIST, VIEW and RENAME commands. */ static char syscom[1024]; /* List the file(s) named in arg. */ com_list (arg) char *arg; { if (!arg) arg = ""; sprintf (syscom, "ls -FClg %s", arg); return (system (syscom)); } com_view (arg) char *arg; { if (!valid_argument ("view", arg)) return 1; #if defined (__MSDOS__) /* more.com doesn't grok slashes in pathnames */ sprintf (syscom, "less %s", arg); #else sprintf (syscom, "more %s", arg); #endif return (system (syscom)); } com_rename (arg) char *arg; { too_dangerous ("rename"); return (1); } com_stat (arg) char *arg; { struct stat finfo; if (!valid_argument ("stat", arg)) return (1); if (stat (arg, &finfo) == -1) { perror (arg); return (1); } printf ("Statistics for `%s':\n", arg); printf ("%s has %d link%s, and is %d byte%s in length.\n", arg, finfo.st_nlink, (finfo.st_nlink == 1) ? "" : "s", finfo.st_size, (finfo.st_size == 1) ? "" : "s"); printf ("Inode Last Change at: %s", ctime (&finfo.st_ctime)); printf (" Last access at: %s", ctime (&finfo.st_atime)); printf (" Last modified at: %s", ctime (&finfo.st_mtime)); return (0); } com_delete (arg) char *arg; { too_dangerous ("delete"); return (1); } /* Print out help for ARG, or for all of the commands if ARG is not present. */ com_help (arg) char *arg; { register int i; int printed = 0; for (i = 0; commands[i].name; i++) { if (!*arg || (strcmp (arg, commands[i].name) == 0)) { printf ("%s\t\t%s.\n", commands[i].name, commands[i].doc); printed++; } } if (!printed) { printf ("No commands match `%s'. Possibilties are:\n", arg); for (i = 0; commands[i].name; i++) { /* Print in six columns. */ if (printed == 6) { printed = 0; printf ("\n"); } printf ("%s\t", commands[i].name); printed++; } if (printed) printf ("\n"); } return (0); } /* Change to the directory ARG. */ com_cd (arg) char *arg; { if (chdir (arg) == -1) { perror (arg); return 1; } com_pwd (""); return (0); } /* Print out the current working directory. */ com_pwd (ignore) char *ignore; { char dir[1024], *s; s = getcwd (dir, sizeof(dir) - 1); if (s == 0) { printf ("Error getting pwd: %s\n", dir); return 1; } printf ("Current directory is %s\n", dir); return 0; } /* The user wishes to quit using this program. Just set DONE non-zero. */ com_quit (arg) char *arg; { done = 1; return (0); } /* Function which tells you that you can't do this. */ too_dangerous (caller) char *caller; { fprintf (stderr, "%s: Too dangerous for me to distribute. Write it yourself.\n", caller); } /* Return non-zero if ARG is a valid argument for CALLER, else print an error message and return zero. */ int valid_argument (caller, arg) char *caller, *arg; { if (!arg || !*arg) { fprintf (stderr, "%s: Argument required.\n", caller); return (0); } return (1); }  File: readline.info, Node: GNU Free Documentation License, Next: Concept Index, Prev: Programming with GNU Readline, Up: Top Appendix A GNU Free Documentation License ***************************************** Version 1.3, 3 November 2008 Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. `http://fsf.org/' Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. 0. PREAMBLE The purpose of this License is to make a manual, textbook, or other functional and useful document "free" in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others. This License is a kind of "copyleft", which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software. We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference. 1. APPLICABILITY AND DEFINITIONS This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein. The "Document", below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as "you". You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law. A "Modified Version" of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language. A "Secondary Section" is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them. The "Invariant Sections" are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none. The "Cover Texts" are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words. A "Transparent" copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not "Transparent" is called "Opaque". Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG. Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only. The "Title Page" means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, "Title Page" means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text. The "publisher" means any person or entity that distributes copies of the Document to the public. A section "Entitled XYZ" means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as "Acknowledgements", "Dedications", "Endorsements", or "History".) To "Preserve the Title" of such a section when you modify the Document means that it remains a section "Entitled XYZ" according to this definition. The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License. 2. VERBATIM COPYING You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3. You may also lend copies, under the same conditions stated above, and you may publicly display copies. 3. COPYING IN QUANTITY If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects. If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages. If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public. It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document. 4. MODIFICATIONS You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version: A. Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission. B. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this requirement. C. State on the Title page the name of the publisher of the Modified Version, as the publisher. D. Preserve all the copyright notices of the Document. E. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices. F. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below. G. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice. H. Include an unaltered copy of this License. I. Preserve the section Entitled "History", Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section Entitled "History" in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence. J. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the "History" section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission. K. For any section Entitled "Acknowledgements" or "Dedications", Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein. L. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles. M. Delete any section Entitled "Endorsements". Such a section may not be included in the Modified Version. N. Do not retitle any existing section to be Entitled "Endorsements" or to conflict in title with any Invariant Section. O. Preserve any Warranty Disclaimers. If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles. You may add a section Entitled "Endorsements", provided it contains nothing but endorsements of your Modified Version by various parties--for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard. You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one. The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version. 5. COMBINING DOCUMENTS You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers. The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work. In the combination, you must combine any sections Entitled "History" in the various original documents, forming one section Entitled "History"; likewise combine any sections Entitled "Acknowledgements", and any sections Entitled "Dedications". You must delete all sections Entitled "Endorsements." 6. COLLECTIONS OF DOCUMENTS You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects. You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document. 7. AGGREGATION WITH INDEPENDENT WORKS A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an "aggregate" if the copyright resulting from the compilation is not used to limit the legal rights of the compilation's users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document. If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document's Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate. 8. TRANSLATION Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail. If a section in the Document is Entitled "Acknowledgements", "Dedications", or "History", the requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual title. 9. TERMINATION You may not copy, modify, sublicense, or distribute the Document except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, or distribute it is void, and will automatically terminate your rights under this License. However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, receipt of a copy of some or all of the same material does not give you any rights to use it. 10. FUTURE REVISIONS OF THIS LICENSE The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See `http://www.gnu.org/copyleft/'. Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License "or any later version" applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. If the Document specifies that a proxy can decide which future versions of this License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Document. 11. RELICENSING "Massive Multiauthor Collaboration Site" (or "MMC Site") means any World Wide Web server that publishes copyrightable works and also provides prominent facilities for anybody to edit those works. A public wiki that anybody can edit is an example of such a server. A "Massive Multiauthor Collaboration" (or "MMC") contained in the site means any set of copyrightable works thus published on the MMC site. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0 license published by Creative Commons Corporation, a not-for-profit corporation with a principal place of business in San Francisco, California, as well as future copyleft versions of that license published by that same organization. "Incorporate" means to publish or republish a Document, in whole or in part, as part of another Document. An MMC is "eligible for relicensing" if it is licensed under this License, and if all works that were first published under this License somewhere other than this MMC, and subsequently incorporated in whole or in part into the MMC, (1) had no cover texts or invariant sections, and (2) were thus incorporated prior to November 1, 2008. The operator of an MMC Site may republish an MMC contained in the site under CC-BY-SA on the same site at any time before August 1, 2009, provided the MMC is eligible for relicensing. ADDENDUM: How to use this License for your documents ==================================================== To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page: Copyright (C) YEAR YOUR NAME. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the "with...Texts." line with this: with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those two alternatives to suit the situation. If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software.  File: readline.info, Node: Concept Index, Next: Function and Variable Index, Prev: GNU Free Documentation License, Up: Top Concept Index ************* [index] * Menu: * application-specific completion functions: Custom Completers. (line 6) * command editing: Readline Bare Essentials. (line 6) * editing command lines: Readline Bare Essentials. (line 6) * initialization file, readline: Readline Init File. (line 6) * interaction, readline: Readline Interaction. (line 6) * kill ring: Readline Killing Commands. (line 19) * killing text: Readline Killing Commands. (line 6) * notation, readline: Readline Bare Essentials. (line 6) * readline, function: Basic Behavior. (line 12) * variables, readline: Readline Init File Syntax. (line 34) * yanking text: Readline Killing Commands. (line 6)  File: readline.info, Node: Function and Variable Index, Prev: Concept Index, Up: Top Function and Variable Index *************************** [index] * Menu: * _rl_digit_p: Utility Functions. (line 61) * _rl_digit_value: Utility Functions. (line 72) * _rl_lowercase_p: Utility Functions. (line 58) * _rl_to_lower: Utility Functions. (line 68) * _rl_to_upper: Utility Functions. (line 64) * _rl_uppercase_p: Utility Functions. (line 55) * abort (C-g): Miscellaneous Commands. (line 10) * accept-line (Newline or Return): Commands For History. (line 6) * backward-char (C-b): Commands For Moving. (line 15) * backward-delete-char (Rubout): Commands For Text. (line 11) * backward-kill-line (C-x Rubout): Commands For Killing. (line 9) * backward-kill-word (M-): Commands For Killing. (line 24) * backward-word (M-b): Commands For Moving. (line 22) * beginning-of-history (M-<): Commands For History. (line 19) * beginning-of-line (C-a): Commands For Moving. (line 6) * bell-style: Readline Init File Syntax. (line 35) * bind-tty-special-chars: Readline Init File Syntax. (line 42) * call-last-kbd-macro (C-x e): Keyboard Macros. (line 13) * capitalize-word (M-c): Commands For Text. (line 49) * character-search (C-]): Miscellaneous Commands. (line 41) * character-search-backward (M-C-]): Miscellaneous Commands. (line 46) * clear-screen (C-l): Commands For Moving. (line 26) * comment-begin: Readline Init File Syntax. (line 47) * complete (): Commands For Completion. (line 6) * completion-prefix-display-length: Readline Init File Syntax. (line 57) * completion-query-items: Readline Init File Syntax. (line 64) * convert-meta: Readline Init File Syntax. (line 74) * copy-backward-word (): Commands For Killing. (line 49) * copy-forward-word (): Commands For Killing. (line 54) * copy-region-as-kill (): Commands For Killing. (line 45) * delete-char (C-d): Commands For Text. (line 6) * delete-char-or-list (): Commands For Completion. (line 35) * delete-horizontal-space (): Commands For Killing. (line 37) * digit-argument (M-0, M-1, ... M--): Numeric Arguments. (line 6) * disable-completion: Readline Init File Syntax. (line 80) * do-uppercase-version (M-a, M-b, M-X, ...): Miscellaneous Commands. (line 14) * downcase-word (M-l): Commands For Text. (line 45) * dump-functions (): Miscellaneous Commands. (line 70) * dump-macros (): Miscellaneous Commands. (line 82) * dump-variables (): Miscellaneous Commands. (line 76) * editing-mode: Readline Init File Syntax. (line 85) * enable-keypad: Readline Init File Syntax. (line 96) * end-kbd-macro (C-x )): Keyboard Macros. (line 9) * end-of-history (M->): Commands For History. (line 22) * end-of-line (C-e): Commands For Moving. (line 9) * exchange-point-and-mark (C-x C-x): Miscellaneous Commands. (line 36) * expand-tilde: Readline Init File Syntax. (line 107) * forward-backward-delete-char (): Commands For Text. (line 15) * forward-char (C-f): Commands For Moving. (line 12) * forward-search-history (C-s): Commands For History. (line 30) * forward-word (M-f): Commands For Moving. (line 18) * history-preserve-point: Readline Init File Syntax. (line 111) * history-search-backward (): Commands For History. (line 50) * history-search-forward (): Commands For History. (line 45) * history-size: Readline Init File Syntax. (line 117) * horizontal-scroll-mode: Readline Init File Syntax. (line 122) * input-meta: Readline Init File Syntax. (line 129) * insert-comment (M-#): Miscellaneous Commands. (line 60) * insert-completions (M-*): Commands For Completion. (line 14) * isearch-terminators: Readline Init File Syntax. (line 136) * keymap: Readline Init File Syntax. (line 143) * kill-line (C-k): Commands For Killing. (line 6) * kill-region (): Commands For Killing. (line 41) * kill-whole-line (): Commands For Killing. (line 15) * kill-word (M-d): Commands For Killing. (line 19) * mark-modified-lines: Readline Init File Syntax. (line 156) * mark-symlinked-directories: Readline Init File Syntax. (line 161) * match-hidden-files: Readline Init File Syntax. (line 166) * menu-complete (): Commands For Completion. (line 18) * menu-complete-backward (): Commands For Completion. (line 30) * meta-flag: Readline Init File Syntax. (line 129) * next-history (C-n): Commands For History. (line 16) * non-incremental-forward-search-history (M-n): Commands For History. (line 40) * non-incremental-reverse-search-history (M-p): Commands For History. (line 35) * output-meta: Readline Init File Syntax. (line 173) * overwrite-mode (): Commands For Text. (line 53) * page-completions: Readline Init File Syntax. (line 178) * possible-completions (M-?): Commands For Completion. (line 11) * prefix-meta (): Miscellaneous Commands. (line 18) * previous-history (C-p): Commands For History. (line 12) * quoted-insert (C-q or C-v): Commands For Text. (line 20) * re-read-init-file (C-x C-r): Miscellaneous Commands. (line 6) * readline: Basic Behavior. (line 12) * redraw-current-line (): Commands For Moving. (line 30) * reverse-search-history (C-r): Commands For History. (line 26) * revert-all-at-newline: Readline Init File Syntax. (line 188) * revert-line (M-r): Miscellaneous Commands. (line 25) * rl_add_defun: Function Naming. (line 20) * rl_add_funmap_entry: Associating Function Names and Bindings. (line 47) * rl_add_undo: Allowing Undoing. (line 41) * rl_alphabetic: Utility Functions. (line 39) * rl_already_prompted: Readline Variables. (line 64) * rl_attempted_completion_function: Completion Variables. (line 12) * rl_attempted_completion_over: Completion Variables. (line 225) * rl_basic_quote_characters: Completion Variables. (line 114) * rl_basic_word_break_characters: Completion Variables. (line 108) * rl_begin_undo_group: Allowing Undoing. (line 29) * rl_bind_key: Binding Keys. (line 22) * rl_bind_key_if_unbound: Binding Keys. (line 32) * rl_bind_key_if_unbound_in_map: Binding Keys. (line 38) * rl_bind_key_in_map: Binding Keys. (line 27) * rl_bind_keyseq: Binding Keys. (line 59) * rl_bind_keyseq_if_unbound: Binding Keys. (line 77) * rl_bind_keyseq_if_unbound_in_map: Binding Keys. (line 83) * rl_bind_keyseq_in_map: Binding Keys. (line 66) * rl_binding_keymap: Readline Variables. (line 159) * rl_callback_handler_install: Alternate Interface. (line 15) * rl_callback_handler_remove: Alternate Interface. (line 33) * rl_callback_read_char: Alternate Interface. (line 21) * rl_catch_signals: Readline Signal Handling. (line 48) * rl_catch_sigwinch: Readline Signal Handling. (line 55) * rl_char_is_quoted_p: Completion Variables. (line 46) * rl_cleanup_after_signal: Readline Signal Handling. (line 66) * rl_clear_message: Redisplay. (line 48) * rl_clear_pending_input: Character Input. (line 30) * rl_clear_signals: Readline Signal Handling. (line 125) * rl_complete <1>: Completion Functions. (line 20) * rl_complete: How Completing Works. (line 49) * rl_complete_internal: Completion Functions. (line 10) * rl_completer_quote_characters: Completion Variables. (line 131) * rl_completer_word_break_characters: Completion Variables. (line 117) * rl_completion_append_character: Completion Variables. (line 155) * rl_completion_display_matches_hook: Completion Variables. (line 95) * rl_completion_entry_function <1>: How Completing Works. (line 55) * rl_completion_entry_function: Completion Variables. (line 7) * rl_completion_found_quote: Completion Variables. (line 183) * rl_completion_invoking_key: Completion Variables. (line 248) * rl_completion_mark_symlink_dirs: Completion Variables. (line 190) * rl_completion_matches: Completion Functions. (line 45) * rl_completion_mode: Completion Functions. (line 37) * rl_completion_query_items: Completion Variables. (line 149) * rl_completion_quote_character: Completion Variables. (line 171) * rl_completion_suppress_append: Completion Variables. (line 165) * rl_completion_suppress_quote: Completion Variables. (line 177) * rl_completion_type: Completion Variables. (line 240) * rl_completion_word_break_hook: Completion Variables. (line 122) * rl_copy_keymap: Keymaps. (line 17) * rl_copy_text: Modifying Text. (line 15) * rl_crlf: Redisplay. (line 30) * rl_delete_text: Modifying Text. (line 11) * rl_deprep_term_function: Readline Variables. (line 149) * rl_deprep_terminal: Terminal Management. (line 13) * rl_ding: Utility Functions. (line 36) * rl_directory_completion_hook: Completion Variables. (line 64) * rl_discard_keymap: Keymaps. (line 26) * rl_dispatching: Readline Variables. (line 41) * rl_display_match_list: Utility Functions. (line 43) * rl_display_prompt: Readline Variables. (line 59) * rl_do_undo: Allowing Undoing. (line 48) * rl_done: Readline Variables. (line 28) * rl_echo_signal_char: Readline Signal Handling. (line 89) * rl_editing_mode: Readline Variables. (line 270) * rl_end: Readline Variables. (line 19) * rl_end_undo_group: Allowing Undoing. (line 35) * rl_erase_empty_line: Readline Variables. (line 47) * rl_event_hook: Readline Variables. (line 124) * rl_execute_next: Character Input. (line 26) * rl_executing_keymap: Readline Variables. (line 155) * rl_executing_macro: Readline Variables. (line 163) * rl_expand_prompt: Redisplay. (line 64) * rl_explicit_arg: Readline Variables. (line 261) * rl_extend_line_buffer: Utility Functions. (line 27) * rl_filename_completion_desired: Completion Variables. (line 205) * rl_filename_completion_function: Completion Functions. (line 59) * rl_filename_dequoting_function: Completion Variables. (line 37) * rl_filename_quote_characters: Completion Variables. (line 137) * rl_filename_quoting_desired: Completion Variables. (line 215) * rl_filename_quoting_function: Completion Variables. (line 24) * rl_filename_rewrite_hook: Completion Variables. (line 80) * rl_forced_update_display: Redisplay. (line 11) * rl_free: Utility Functions. (line 18) * rl_free_keymap: Keymaps. (line 30) * rl_free_line_state: Readline Signal Handling. (line 72) * rl_free_undo_list: Allowing Undoing. (line 45) * rl_function_dumper: Associating Function Names and Bindings. (line 30) * rl_function_of_keyseq: Associating Function Names and Bindings. (line 15) * rl_funmap_names: Associating Function Names and Bindings. (line 40) * rl_generic_bind: Binding Keys. (line 89) * rl_get_keymap: Keymaps. (line 37) * rl_get_keymap_by_name: Keymaps. (line 43) * rl_get_keymap_name: Keymaps. (line 48) * rl_get_screen_size: Readline Signal Handling. (line 108) * rl_get_termcap: Miscellaneous Functions. (line 42) * rl_getc: Character Input. (line 15) * rl_getc_function: Readline Variables. (line 130) * rl_gnu_readline_p: Readline Variables. (line 83) * rl_ignore_completion_duplicates: Completion Variables. (line 201) * rl_ignore_some_completions_function: Completion Variables. (line 56) * rl_inhibit_completion: Completion Variables. (line 254) * rl_initialize: Utility Functions. (line 31) * rl_insert_completions: Completion Functions. (line 32) * rl_insert_text: Modifying Text. (line 7) * rl_instream: Readline Variables. (line 97) * rl_invoking_keyseqs: Associating Function Names and Bindings. (line 21) * rl_invoking_keyseqs_in_map: Associating Function Names and Bindings. (line 26) * rl_kill_text: Modifying Text. (line 19) * rl_last_func: Readline Variables. (line 110) * rl_library_version: Readline Variables. (line 73) * rl_line_buffer: Readline Variables. (line 9) * rl_list_funmap_names: Associating Function Names and Bindings. (line 36) * rl_macro_bind: Miscellaneous Functions. (line 8) * rl_macro_dumper: Miscellaneous Functions. (line 14) * rl_make_bare_keymap: Keymaps. (line 12) * rl_make_keymap: Keymaps. (line 20) * rl_mark: Readline Variables. (line 24) * rl_message: Redisplay. (line 39) * rl_modifying: Allowing Undoing. (line 57) * rl_named_function: Associating Function Names and Bindings. (line 11) * rl_num_chars_to_read: Readline Variables. (line 32) * rl_numeric_arg: Readline Variables. (line 265) * rl_on_new_line: Redisplay. (line 15) * rl_on_new_line_with_prompt: Redisplay. (line 19) * rl_outstream: Readline Variables. (line 101) * rl_parse_and_bind: Binding Keys. (line 96) * rl_pending_input: Readline Variables. (line 37) * rl_point: Readline Variables. (line 15) * rl_possible_completions: Completion Functions. (line 28) * rl_pre_input_hook: Readline Variables. (line 119) * rl_prefer_env_winsize: Readline Variables. (line 105) * rl_prep_term_function: Readline Variables. (line 142) * rl_prep_terminal: Terminal Management. (line 7) * rl_prompt: Readline Variables. (line 53) * rl_push_macro_input: Modifying Text. (line 26) * rl_read_init_file: Binding Keys. (line 101) * rl_read_key: Character Input. (line 7) * rl_readline_name: Readline Variables. (line 92) * rl_readline_state: Readline Variables. (line 166) * rl_readline_version: Readline Variables. (line 76) * rl_redisplay: Redisplay. (line 7) * rl_redisplay_function: Readline Variables. (line 136) * rl_replace_line: Utility Functions. (line 22) * rl_reset_after_signal: Readline Signal Handling. (line 80) * rl_reset_line_state: Redisplay. (line 26) * rl_reset_screen_size: Readline Signal Handling. (line 112) * rl_reset_terminal: Terminal Management. (line 28) * rl_resize_terminal: Readline Signal Handling. (line 95) * rl_restore_prompt: Redisplay. (line 57) * rl_restore_state: Utility Functions. (line 12) * rl_save_prompt: Redisplay. (line 53) * rl_save_state: Utility Functions. (line 7) * rl_set_key: Binding Keys. (line 73) * rl_set_keyboard_input_timeout: Character Input. (line 35) * rl_set_keymap: Keymaps. (line 40) * rl_set_paren_blink_timeout: Miscellaneous Functions. (line 37) * rl_set_prompt: Redisplay. (line 78) * rl_set_screen_size: Readline Signal Handling. (line 99) * rl_set_signals: Readline Signal Handling. (line 119) * rl_show_char: Redisplay. (line 33) * rl_sort_completion_matches: Completion Variables. (line 232) * rl_special_prefixes: Completion Variables. (line 142) * rl_startup_hook: Readline Variables. (line 115) * rl_stuff_char: Character Input. (line 19) * rl_terminal_name: Readline Variables. (line 87) * rl_tty_set_default_bindings: Terminal Management. (line 18) * rl_tty_unset_default_bindings: Terminal Management. (line 23) * rl_unbind_command_in_map: Binding Keys. (line 55) * rl_unbind_function_in_map: Binding Keys. (line 51) * rl_unbind_key: Binding Keys. (line 42) * rl_unbind_key_in_map: Binding Keys. (line 46) * rl_username_completion_function: Completion Functions. (line 66) * rl_variable_bind: Miscellaneous Functions. (line 21) * rl_variable_dumper: Miscellaneous Functions. (line 31) * rl_variable_value: Miscellaneous Functions. (line 26) * self-insert (a, b, A, 1, !, ...): Commands For Text. (line 27) * set-mark (C-@): Miscellaneous Commands. (line 32) * show-all-if-ambiguous: Readline Init File Syntax. (line 194) * show-all-if-unmodified: Readline Init File Syntax. (line 200) * skip-completed-text: Readline Init File Syntax. (line 209) * skip-csi-sequence (): Miscellaneous Commands. (line 51) * start-kbd-macro (C-x (): Keyboard Macros. (line 6) * transpose-chars (C-t): Commands For Text. (line 30) * transpose-words (M-t): Commands For Text. (line 36) * undo (C-_ or C-x C-u): Miscellaneous Commands. (line 22) * universal-argument (): Numeric Arguments. (line 10) * unix-filename-rubout (): Commands For Killing. (line 32) * unix-line-discard (C-u): Commands For Killing. (line 12) * unix-word-rubout (C-w): Commands For Killing. (line 28) * upcase-word (M-u): Commands For Text. (line 41) * visible-stats: Readline Init File Syntax. (line 222) * yank (C-y): Commands For Killing. (line 59) * yank-last-arg (M-. or M-_): Commands For History. (line 64) * yank-nth-arg (M-C-y): Commands For History. (line 55) * yank-pop (M-y): Commands For Killing. (line 62)  Tag Table: Node: Top1328 Node: Command Line Editing1985 Node: Introduction and Notation2637 Node: Readline Interaction4260 Node: Readline Bare Essentials5452 Node: Readline Movement Commands7242 Node: Readline Killing Commands8208 Node: Readline Arguments10129 Node: Searching11174 Node: Readline Init File13326 Node: Readline Init File Syntax14480 Node: Conditional Init Constructs28686 Node: Sample Init File31220 Node: Bindable Readline Commands34338 Node: Commands For Moving35396 Node: Commands For History36258 Node: Commands For Text39383 Node: Commands For Killing42110 Node: Numeric Arguments44253 Node: Commands For Completion45393 Node: Keyboard Macros47131 Node: Miscellaneous Commands47703 Node: Readline vi Mode51560 Node: Programming with GNU Readline53384 Node: Basic Behavior54370 Node: Custom Functions57787 Node: Readline Typedefs59271 Node: Function Writing60910 Node: Readline Variables62217 Node: Readline Convenience Functions72883 Node: Function Naming73873 Node: Keymaps75135 Node: Binding Keys77128 Node: Associating Function Names and Bindings81675 Node: Allowing Undoing83960 Node: Redisplay86510 Node: Modifying Text90410 Node: Character Input91656 Node: Terminal Management93554 Node: Utility Functions94990 Node: Miscellaneous Functions98081 Node: Alternate Interface100378 Node: A Readline Example102537 Node: Readline Signal Handling104440 Node: Custom Completers110628 Node: How Completing Works111348 Node: Completion Functions114662 Node: Completion Variables118234 Node: A Short Completion Example132248 Node: GNU Free Documentation License145027 Node: Concept Index170220 Node: Function and Variable Index171741  End Tag Table 070701000293de000081a40000000000000000000000014c523936000131f1000000b500010002ffffffffffffffff0000002900000000root/usr/local/share/info/rluserman.infoThis is rluserman.info, produced by makeinfo version 4.13 from /usr/src/local/chet/src/bash/readline-src/doc/rluserman.texi. This manual describes the end user interface of the GNU Readline Library (version 6.1, 9 October 2009), a library which aids in the consistency of user interface across discrete programs which provide a command line interface. Copyright (C) 1988-2009 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with the Front-Cover texts being "A GNU Manual", and with the Back-Cover Texts as in (a) below. A copy of the license is included in the section entitled "GNU Free Documentation License". (a) The FSF's Back-Cover Text is: You are free to copy and modify this GNU manual. Buying copies from GNU Press supports the FSF in developing GNU and promoting software freedom." INFO-DIR-SECTION Libraries START-INFO-DIR-ENTRY * RLuserman: (rluserman). The GNU readline library User's Manual. END-INFO-DIR-ENTRY  File: rluserman.info, Node: Top, Next: Command Line Editing, Up: (dir) GNU Readline Library ******************** This document describes the end user interface of the GNU Readline Library, a utility which aids in the consistency of user interface across discrete programs which provide a command line interface. * Menu: * Command Line Editing:: GNU Readline User's Manual. * GNU Free Documentation License:: License for copying this manual.  File: rluserman.info, Node: Command Line Editing, Next: GNU Free Documentation License, Prev: Top, Up: Top 1 Command Line Editing ********************** This chapter describes the basic features of the GNU command line editing interface. * Menu: * Introduction and Notation:: Notation used in this text. * Readline Interaction:: The minimum set of commands for editing a line. * Readline Init File:: Customizing Readline from a user's view. * Bindable Readline Commands:: A description of most of the Readline commands available for binding * Readline vi Mode:: A short description of how to make Readline behave like the vi editor.  File: rluserman.info, Node: Introduction and Notation, Next: Readline Interaction, Up: Command Line Editing 1.1 Introduction to Line Editing ================================ The following paragraphs describe the notation used to represent keystrokes. The text `C-k' is read as `Control-K' and describes the character produced when the key is pressed while the Control key is depressed. The text `M-k' is read as `Meta-K' and describes the character produced when the Meta key (if you have one) is depressed, and the key is pressed. The Meta key is labeled on many keyboards. On keyboards with two keys labeled (usually to either side of the space bar), the on the left side is generally set to work as a Meta key. The key on the right may also be configured to work as a Meta key or may be configured as some other modifier, such as a Compose key for typing accented characters. If you do not have a Meta or key, or another key working as a Meta key, the identical keystroke can be generated by typing _first_, and then typing . Either process is known as "metafying" the key. The text `M-C-k' is read as `Meta-Control-k' and describes the character produced by "metafying" `C-k'. In addition, several keys have their own names. Specifically, , , , , , and all stand for themselves when seen in this text, or in an init file (*note Readline Init File::). If your keyboard lacks a key, typing will produce the desired character. The key may be labeled or on some keyboards.  File: rluserman.info, Node: Readline Interaction, Next: Readline Init File, Prev: Introduction and Notation, Up: Command Line Editing 1.2 Readline Interaction ======================== Often during an interactive session you type in a long line of text, only to notice that the first word on the line is misspelled. The Readline library gives you a set of commands for manipulating the text as you type it in, allowing you to just fix your typo, and not forcing you to retype the majority of the line. Using these editing commands, you move the cursor to the place that needs correction, and delete or insert the text of the corrections. Then, when you are satisfied with the line, you simply press . You do not have to be at the end of the line to press ; the entire line is accepted regardless of the location of the cursor within the line. * Menu: * Readline Bare Essentials:: The least you need to know about Readline. * Readline Movement Commands:: Moving about the input line. * Readline Killing Commands:: How to delete text, and how to get it back! * Readline Arguments:: Giving numeric arguments to commands. * Searching:: Searching through previous lines.  File: rluserman.info, Node: Readline Bare Essentials, Next: Readline Movement Commands, Up: Readline Interaction 1.2.1 Readline Bare Essentials ------------------------------ In order to enter characters into the line, simply type them. The typed character appears where the cursor was, and then the cursor moves one space to the right. If you mistype a character, you can use your erase character to back up and delete the mistyped character. Sometimes you may mistype a character, and not notice the error until you have typed several other characters. In that case, you can type `C-b' to move the cursor to the left, and then correct your mistake. Afterwards, you can move the cursor to the right with `C-f'. When you add text in the middle of a line, you will notice that characters to the right of the cursor are `pushed over' to make room for the text that you have inserted. Likewise, when you delete text behind the cursor, characters to the right of the cursor are `pulled back' to fill in the blank space created by the removal of the text. A list of the bare essentials for editing the text of an input line follows. `C-b' Move back one character. `C-f' Move forward one character. or Delete the character to the left of the cursor. `C-d' Delete the character underneath the cursor. Printing characters Insert the character into the line at the cursor. `C-_' or `C-x C-u' Undo the last editing command. You can undo all the way back to an empty line. (Depending on your configuration, the key be set to delete the character to the left of the cursor and the key set to delete the character underneath the cursor, like `C-d', rather than the character to the left of the cursor.)  File: rluserman.info, Node: Readline Movement Commands, Next: Readline Killing Commands, Prev: Readline Bare Essentials, Up: Readline Interaction 1.2.2 Readline Movement Commands -------------------------------- The above table describes the most basic keystrokes that you need in order to do editing of the input line. For your convenience, many other commands have been added in addition to `C-b', `C-f', `C-d', and . Here are some commands for moving more rapidly about the line. `C-a' Move to the start of the line. `C-e' Move to the end of the line. `M-f' Move forward a word, where a word is composed of letters and digits. `M-b' Move backward a word. `C-l' Clear the screen, reprinting the current line at the top. Notice how `C-f' moves forward a character, while `M-f' moves forward a word. It is a loose convention that control keystrokes operate on characters while meta keystrokes operate on words.  File: rluserman.info, Node: Readline Killing Commands, Next: Readline Arguments, Prev: Readline Movement Commands, Up: Readline Interaction 1.2.3 Readline Killing Commands ------------------------------- "Killing" text means to delete the text from the line, but to save it away for later use, usually by "yanking" (re-inserting) it back into the line. (`Cut' and `paste' are more recent jargon for `kill' and `yank'.) If the description for a command says that it `kills' text, then you can be sure that you can get the text back in a different (or the same) place later. When you use a kill command, the text is saved in a "kill-ring". Any number of consecutive kills save all of the killed text together, so that when you yank it back, you get it all. The kill ring is not line specific; the text that you killed on a previously typed line is available to be yanked back later, when you are typing another line. Here is the list of commands for killing text. `C-k' Kill the text from the current cursor position to the end of the line. `M-d' Kill from the cursor to the end of the current word, or, if between words, to the end of the next word. Word boundaries are the same as those used by `M-f'. `M-' Kill from the cursor the start of the current word, or, if between words, to the start of the previous word. Word boundaries are the same as those used by `M-b'. `C-w' Kill from the cursor to the previous whitespace. This is different than `M-' because the word boundaries differ. Here is how to "yank" the text back into the line. Yanking means to copy the most-recently-killed text from the kill buffer. `C-y' Yank the most recently killed text back into the buffer at the cursor. `M-y' Rotate the kill-ring, and yank the new top. You can only do this if the prior command is `C-y' or `M-y'.  File: rluserman.info, Node: Readline Arguments, Next: Searching, Prev: Readline Killing Commands, Up: Readline Interaction 1.2.4 Readline Arguments ------------------------ You can pass numeric arguments to Readline commands. Sometimes the argument acts as a repeat count, other times it is the sign of the argument that is significant. If you pass a negative argument to a command which normally acts in a forward direction, that command will act in a backward direction. For example, to kill text back to the start of the line, you might type `M-- C-k'. The general way to pass numeric arguments to a command is to type meta digits before the command. If the first `digit' typed is a minus sign (`-'), then the sign of the argument will be negative. Once you have typed one meta digit to get the argument started, you can type the remainder of the digits, and then the command. For example, to give the `C-d' command an argument of 10, you could type `M-1 0 C-d', which will delete the next ten characters on the input line.  File: rluserman.info, Node: Searching, Prev: Readline Arguments, Up: Readline Interaction 1.2.5 Searching for Commands in the History ------------------------------------------- Readline provides commands for searching through the command history for lines containing a specified string. There are two search modes: "incremental" and "non-incremental". Incremental searches begin before the user has finished typing the search string. As each character of the search string is typed, Readline displays the next entry from the history matching the string typed so far. An incremental search requires only as many characters as needed to find the desired history entry. To search backward in the history for a particular string, type `C-r'. Typing `C-s' searches forward through the history. The characters present in the value of the `isearch-terminators' variable are used to terminate an incremental search. If that variable has not been assigned a value, the and `C-J' characters will terminate an incremental search. `C-g' will abort an incremental search and restore the original line. When the search is terminated, the history entry containing the search string becomes the current line. To find other matching entries in the history list, type `C-r' or `C-s' as appropriate. This will search backward or forward in the history for the next entry matching the search string typed so far. Any other key sequence bound to a Readline command will terminate the search and execute that command. For instance, a will terminate the search and accept the line, thereby executing the command from the history list. A movement command will terminate the search, make the last line found the current line, and begin editing. Readline remembers the last incremental search string. If two `C-r's are typed without any intervening characters defining a new search string, any remembered search string is used. Non-incremental searches read the entire search string before starting to search for matching history lines. The search string may be typed by the user or be part of the contents of the current line.  File: rluserman.info, Node: Readline Init File, Next: Bindable Readline Commands, Prev: Readline Interaction, Up: Command Line Editing 1.3 Readline Init File ====================== Although the Readline library comes with a set of Emacs-like keybindings installed by default, it is possible to use a different set of keybindings. Any user can customize programs that use Readline by putting commands in an "inputrc" file, conventionally in his home directory. The name of this file is taken from the value of the environment variable `INPUTRC'. If that variable is unset, the default is `~/.inputrc'. If that file does not exist or cannot be read, the ultimate default is `/etc/inputrc'. When a program which uses the Readline library starts up, the init file is read, and the key bindings are set. In addition, the `C-x C-r' command re-reads this init file, thus incorporating any changes that you might have made to it. * Menu: * Readline Init File Syntax:: Syntax for the commands in the inputrc file. * Conditional Init Constructs:: Conditional key bindings in the inputrc file. * Sample Init File:: An example inputrc file.  File: rluserman.info, Node: Readline Init File Syntax, Next: Conditional Init Constructs, Up: Readline Init File 1.3.1 Readline Init File Syntax ------------------------------- There are only a few basic constructs allowed in the Readline init file. Blank lines are ignored. Lines beginning with a `#' are comments. Lines beginning with a `$' indicate conditional constructs (*note Conditional Init Constructs::). Other lines denote variable settings and key bindings. Variable Settings You can modify the run-time behavior of Readline by altering the values of variables in Readline using the `set' command within the init file. The syntax is simple: set VARIABLE VALUE Here, for example, is how to change from the default Emacs-like key binding to use `vi' line editing commands: set editing-mode vi Variable names and values, where appropriate, are recognized without regard to case. Unrecognized variable names are ignored. Boolean variables (those that can be set to on or off) are set to on if the value is null or empty, ON (case-insensitive), or 1. Any other value results in the variable being set to off. A great deal of run-time behavior is changeable with the following variables. `bell-style' Controls what happens when Readline wants to ring the terminal bell. If set to `none', Readline never rings the bell. If set to `visible', Readline uses a visible bell if one is available. If set to `audible' (the default), Readline attempts to ring the terminal's bell. `bind-tty-special-chars' If set to `on', Readline attempts to bind the control characters treated specially by the kernel's terminal driver to their Readline equivalents. `comment-begin' The string to insert at the beginning of the line when the `insert-comment' command is executed. The default value is `"#"'. `completion-ignore-case' If set to `on', Readline performs filename matching and completion in a case-insensitive fashion. The default value is `off'. `completion-prefix-display-length' The length in characters of the common prefix of a list of possible completions that is displayed without modification. When set to a value greater than zero, common prefixes longer than this value are replaced with an ellipsis when displaying possible completions. `completion-query-items' The number of possible completions that determines when the user is asked whether the list of possibilities should be displayed. If the number of possible completions is greater than this value, Readline will ask the user whether or not he wishes to view them; otherwise, they are simply listed. This variable must be set to an integer value greater than or equal to 0. A negative value means Readline should never ask. The default limit is `100'. `convert-meta' If set to `on', Readline will convert characters with the eighth bit set to an ASCII key sequence by stripping the eighth bit and prefixing an character, converting them to a meta-prefixed key sequence. The default value is `on'. `disable-completion' If set to `On', Readline will inhibit word completion. Completion characters will be inserted into the line as if they had been mapped to `self-insert'. The default is `off'. `editing-mode' The `editing-mode' variable controls which default set of key bindings is used. By default, Readline starts up in Emacs editing mode, where the keystrokes are most similar to Emacs. This variable can be set to either `emacs' or `vi'. `echo-control-characters' When set to `on', on operating systems that indicate they support it, readline echoes a character corresponding to a signal generated from the keyboard. The default is `on'. `enable-keypad' When set to `on', Readline will try to enable the application keypad when it is called. Some systems need this to enable the arrow keys. The default is `off'. `enable-meta-key' When set to `on', Readline will try to enable any meta modifier key the terminal claims to support when it is called. On many terminals, the meta key is used to send eight-bit characters. The default is `on'. `expand-tilde' If set to `on', tilde expansion is performed when Readline attempts word completion. The default is `off'. `history-preserve-point' If set to `on', the history code attempts to place the point (the current cursor position) at the same location on each history line retrieved with `previous-history' or `next-history'. The default is `off'. `history-size' Set the maximum number of history entries saved in the history list. If set to zero, the number of entries in the history list is not limited. `horizontal-scroll-mode' This variable can be set to either `on' or `off'. Setting it to `on' means that the text of the lines being edited will scroll horizontally on a single screen line when they are longer than the width of the screen, instead of wrapping onto a new screen line. By default, this variable is set to `off'. `input-meta' If set to `on', Readline will enable eight-bit input (it will not clear the eighth bit in the characters it reads), regardless of what the terminal claims it can support. The default value is `off'. The name `meta-flag' is a synonym for this variable. `isearch-terminators' The string of characters that should terminate an incremental search without subsequently executing the character as a command (*note Searching::). If this variable has not been given a value, the characters and `C-J' will terminate an incremental search. `keymap' Sets Readline's idea of the current keymap for key binding commands. Acceptable `keymap' names are `emacs', `emacs-standard', `emacs-meta', `emacs-ctlx', `vi', `vi-move', `vi-command', and `vi-insert'. `vi' is equivalent to `vi-command'; `emacs' is equivalent to `emacs-standard'. The default value is `emacs'. The value of the `editing-mode' variable also affects the default keymap. `mark-directories' If set to `on', completed directory names have a slash appended. The default is `on'. `mark-modified-lines' This variable, when set to `on', causes Readline to display an asterisk (`*') at the start of history lines which have been modified. This variable is `off' by default. `mark-symlinked-directories' If set to `on', completed names which are symbolic links to directories have a slash appended (subject to the value of `mark-directories'). The default is `off'. `match-hidden-files' This variable, when set to `on', causes Readline to match files whose names begin with a `.' (hidden files) when performing filename completion, unless the leading `.' is supplied by the user in the filename to be completed. This variable is `on' by default. `output-meta' If set to `on', Readline will display characters with the eighth bit set directly rather than as a meta-prefixed escape sequence. The default is `off'. `page-completions' If set to `on', Readline uses an internal `more'-like pager to display a screenful of possible completions at a time. This variable is `on' by default. `print-completions-horizontally' If set to `on', Readline will display completions with matches sorted horizontally in alphabetical order, rather than down the screen. The default is `off'. `revert-all-at-newline' If set to `on', Readline will undo all changes to history lines before returning when `accept-line' is executed. By default, history lines may be modified and retain individual undo lists across calls to `readline'. The default is `off'. `show-all-if-ambiguous' This alters the default behavior of the completion functions. If set to `on', words which have more than one possible completion cause the matches to be listed immediately instead of ringing the bell. The default value is `off'. `show-all-if-unmodified' This alters the default behavior of the completion functions in a fashion similar to SHOW-ALL-IF-AMBIGUOUS. If set to `on', words which have more than one possible completion without any possible partial completion (the possible completions don't share a common prefix) cause the matches to be listed immediately instead of ringing the bell. The default value is `off'. `skip-completed-text' If set to `on', this alters the default completion behavior when inserting a single match into the line. It's only active when performing completion in the middle of a word. If enabled, readline does not insert characters from the completion that match characters after point in the word being completed, so portions of the word following the cursor are not duplicated. For instance, if this is enabled, attempting completion when the cursor is after the `e' in `Makefile' will result in `Makefile' rather than `Makefilefile', assuming there is a single possible completion. The default value is `off'. `visible-stats' If set to `on', a character denoting a file's type is appended to the filename when listing possible completions. The default is `off'. Key Bindings The syntax for controlling key bindings in the init file is simple. First you need to find the name of the command that you want to change. The following sections contain tables of the command name, the default keybinding, if any, and a short description of what the command does. Once you know the name of the command, simply place on a line in the init file the name of the key you wish to bind the command to, a colon, and then the name of the command. There can be no space between the key name and the colon - that will be interpreted as part of the key name. The name of the key can be expressed in different ways, depending on what you find most comfortable. In addition to command names, readline allows keys to be bound to a string that is inserted when the key is pressed (a MACRO). KEYNAME: FUNCTION-NAME or MACRO KEYNAME is the name of a key spelled out in English. For example: Control-u: universal-argument Meta-Rubout: backward-kill-word Control-o: "> output" In the above example, `C-u' is bound to the function `universal-argument', `M-DEL' is bound to the function `backward-kill-word', and `C-o' is bound to run the macro expressed on the right hand side (that is, to insert the text `> output' into the line). A number of symbolic character names are recognized while processing this key binding syntax: DEL, ESC, ESCAPE, LFD, NEWLINE, RET, RETURN, RUBOUT, SPACE, SPC, and TAB. "KEYSEQ": FUNCTION-NAME or MACRO KEYSEQ differs from KEYNAME above in that strings denoting an entire key sequence can be specified, by placing the key sequence in double quotes. Some GNU Emacs style key escapes can be used, as in the following example, but the special character names are not recognized. "\C-u": universal-argument "\C-x\C-r": re-read-init-file "\e[11~": "Function Key 1" In the above example, `C-u' is again bound to the function `universal-argument' (just as it was in the first example), `C-x C-r' is bound to the function `re-read-init-file', and ` <[> <1> <1> <~>' is bound to insert the text `Function Key 1'. The following GNU Emacs style escape sequences are available when specifying key sequences: `\C-' control prefix `\M-' meta prefix `\e' an escape character `\\' backslash `\"' <">, a double quotation mark `\'' <'>, a single quote or apostrophe In addition to the GNU Emacs style escape sequences, a second set of backslash escapes is available: `\a' alert (bell) `\b' backspace `\d' delete `\f' form feed `\n' newline `\r' carriage return `\t' horizontal tab `\v' vertical tab `\NNN' the eight-bit character whose value is the octal value NNN (one to three digits) `\xHH' the eight-bit character whose value is the hexadecimal value HH (one or two hex digits) When entering the text of a macro, single or double quotes must be used to indicate a macro definition. Unquoted text is assumed to be a function name. In the macro body, the backslash escapes described above are expanded. Backslash will quote any other character in the macro text, including `"' and `''. For example, the following binding will make `C-x \' insert a single `\' into the line: "\C-x\\": "\\"  File: rluserman.info, Node: Conditional Init Constructs, Next: Sample Init File, Prev: Readline Init File Syntax, Up: Readline Init File 1.3.2 Conditional Init Constructs --------------------------------- Readline implements a facility similar in spirit to the conditional compilation features of the C preprocessor which allows key bindings and variable settings to be performed as the result of tests. There are four parser directives used. `$if' The `$if' construct allows bindings to be made based on the editing mode, the terminal being used, or the application using Readline. The text of the test extends to the end of the line; no characters are required to isolate it. `mode' The `mode=' form of the `$if' directive is used to test whether Readline is in `emacs' or `vi' mode. This may be used in conjunction with the `set keymap' command, for instance, to set bindings in the `emacs-standard' and `emacs-ctlx' keymaps only if Readline is starting out in `emacs' mode. `term' The `term=' form may be used to include terminal-specific key bindings, perhaps to bind the key sequences output by the terminal's function keys. The word on the right side of the `=' is tested against both the full name of the terminal and the portion of the terminal name before the first `-'. This allows `sun' to match both `sun' and `sun-cmd', for instance. `application' The APPLICATION construct is used to include application-specific settings. Each program using the Readline library sets the APPLICATION NAME, and you can test for a particular value. This could be used to bind key sequences to functions useful for a specific program. For instance, the following command adds a key sequence that quotes the current or previous word in Bash: $if Bash # Quote the current or previous word "\C-xq": "\eb\"\ef\"" $endif `$endif' This command, as seen in the previous example, terminates an `$if' command. `$else' Commands in this branch of the `$if' directive are executed if the test fails. `$include' This directive takes a single filename as an argument and reads commands and bindings from that file. For example, the following directive reads from `/etc/inputrc': $include /etc/inputrc  File: rluserman.info, Node: Sample Init File, Prev: Conditional Init Constructs, Up: Readline Init File 1.3.3 Sample Init File ---------------------- Here is an example of an INPUTRC file. This illustrates key binding, variable assignment, and conditional syntax. # This file controls the behaviour of line input editing for # programs that use the GNU Readline library. Existing # programs include FTP, Bash, and GDB. # # You can re-read the inputrc file with C-x C-r. # Lines beginning with '#' are comments. # # First, include any systemwide bindings and variable # assignments from /etc/Inputrc $include /etc/Inputrc # # Set various bindings for emacs mode. set editing-mode emacs $if mode=emacs Meta-Control-h: backward-kill-word Text after the function name is ignored # # Arrow keys in keypad mode # #"\M-OD": backward-char #"\M-OC": forward-char #"\M-OA": previous-history #"\M-OB": next-history # # Arrow keys in ANSI mode # "\M-[D": backward-char "\M-[C": forward-char "\M-[A": previous-history "\M-[B": next-history # # Arrow keys in 8 bit keypad mode # #"\M-\C-OD": backward-char #"\M-\C-OC": forward-char #"\M-\C-OA": previous-history #"\M-\C-OB": next-history # # Arrow keys in 8 bit ANSI mode # #"\M-\C-[D": backward-char #"\M-\C-[C": forward-char #"\M-\C-[A": previous-history #"\M-\C-[B": next-history C-q: quoted-insert $endif # An old-style binding. This happens to be the default. TAB: complete # Macros that are convenient for shell interaction $if Bash # edit the path "\C-xp": "PATH=${PATH}\e\C-e\C-a\ef\C-f" # prepare to type a quoted word -- # insert open and close double quotes # and move to just after the open quote "\C-x\"": "\"\"\C-b" # insert a backslash (testing backslash escapes # in sequences and macros) "\C-x\\": "\\" # Quote the current or previous word "\C-xq": "\eb\"\ef\"" # Add a binding to refresh the line, which is unbound "\C-xr": redraw-current-line # Edit variable on current line. "\M-\C-v": "\C-a\C-k$\C-y\M-\C-e\C-a\C-y=" $endif # use a visible bell if one is available set bell-style visible # don't strip characters to 7 bits when reading set input-meta on # allow iso-latin1 characters to be inserted rather # than converted to prefix-meta sequences set convert-meta off # display characters with the eighth bit set directly # rather than as meta-prefixed characters set output-meta on # if there are more than 150 possible completions for # a word, ask the user if he wants to see all of them set completion-query-items 150 # For FTP $if Ftp "\C-xg": "get \M-?" "\C-xt": "put \M-?" "\M-.": yank-last-arg $endif  File: rluserman.info, Node: Bindable Readline Commands, Next: Readline vi Mode, Prev: Readline Init File, Up: Command Line Editing 1.4 Bindable Readline Commands ============================== * Menu: * Commands For Moving:: Moving about the line. * Commands For History:: Getting at previous lines. * Commands For Text:: Commands for changing text. * Commands For Killing:: Commands for killing and yanking. * Numeric Arguments:: Specifying numeric arguments, repeat counts. * Commands For Completion:: Getting Readline to do the typing for you. * Keyboard Macros:: Saving and re-executing typed characters * Miscellaneous Commands:: Other miscellaneous commands. This section describes Readline commands that may be bound to key sequences. Command names without an accompanying key sequence are unbound by default. In the following descriptions, "point" refers to the current cursor position, and "mark" refers to a cursor position saved by the `set-mark' command. The text between the point and mark is referred to as the "region".  File: rluserman.info, Node: Commands For Moving, Next: Commands For History, Up: Bindable Readline Commands 1.4.1 Commands For Moving ------------------------- `beginning-of-line (C-a)' Move to the start of the current line. `end-of-line (C-e)' Move to the end of the line. `forward-char (C-f)' Move forward a character. `backward-char (C-b)' Move back a character. `forward-word (M-f)' Move forward to the end of the next word. Words are composed of letters and digits. `backward-word (M-b)' Move back to the start of the current or previous word. Words are composed of letters and digits. `clear-screen (C-l)' Clear the screen and redraw the current line, leaving the current line at the top of the screen. `redraw-current-line ()' Refresh the current line. By default, this is unbound.  File: rluserman.info, Node: Commands For History, Next: Commands For Text, Prev: Commands For Moving, Up: Bindable Readline Commands 1.4.2 Commands For Manipulating The History ------------------------------------------- `accept-line (Newline or Return)' Accept the line regardless of where the cursor is. If this line is non-empty, it may be added to the history list for future recall with `add_history()'. If this line is a modified history line, the history line is restored to its original state. `previous-history (C-p)' Move `back' through the history list, fetching the previous command. `next-history (C-n)' Move `forward' through the history list, fetching the next command. `beginning-of-history (M-<)' Move to the first line in the history. `end-of-history (M->)' Move to the end of the input history, i.e., the line currently being entered. `reverse-search-history (C-r)' Search backward starting at the current line and moving `up' through the history as necessary. This is an incremental search. `forward-search-history (C-s)' Search forward starting at the current line and moving `down' through the the history as necessary. This is an incremental search. `non-incremental-reverse-search-history (M-p)' Search backward starting at the current line and moving `up' through the history as necessary using a non-incremental search for a string supplied by the user. `non-incremental-forward-search-history (M-n)' Search forward starting at the current line and moving `down' through the the history as necessary using a non-incremental search for a string supplied by the user. `history-search-forward ()' Search forward through the history for the string of characters between the start of the current line and the point. This is a non-incremental search. By default, this command is unbound. `history-search-backward ()' Search backward through the history for the string of characters between the start of the current line and the point. This is a non-incremental search. By default, this command is unbound. `yank-nth-arg (M-C-y)' Insert the first argument to the previous command (usually the second word on the previous line) at point. With an argument N, insert the Nth word from the previous command (the words in the previous command begin with word 0). A negative argument inserts the Nth word from the end of the previous command. Once the argument N is computed, the argument is extracted as if the `!N' history expansion had been specified. `yank-last-arg (M-. or M-_)' Insert last argument to the previous command (the last word of the previous history entry). With an argument, behave exactly like `yank-nth-arg'. Successive calls to `yank-last-arg' move back through the history list, inserting the last argument of each line in turn. The history expansion facilities are used to extract the last argument, as if the `!$' history expansion had been specified.  File: rluserman.info, Node: Commands For Text, Next: Commands For Killing, Prev: Commands For History, Up: Bindable Readline Commands 1.4.3 Commands For Changing Text -------------------------------- `delete-char (C-d)' Delete the character at point. If point is at the beginning of the line, there are no characters in the line, and the last character typed was not bound to `delete-char', then return EOF. `backward-delete-char (Rubout)' Delete the character behind the cursor. A numeric argument means to kill the characters instead of deleting them. `forward-backward-delete-char ()' Delete the character under the cursor, unless the cursor is at the end of the line, in which case the character behind the cursor is deleted. By default, this is not bound to a key. `quoted-insert (C-q or C-v)' Add the next character typed to the line verbatim. This is how to insert key sequences like `C-q', for example. `tab-insert (M-)' Insert a tab character. `self-insert (a, b, A, 1, !, ...)' Insert yourself. `transpose-chars (C-t)' Drag the character before the cursor forward over the character at the cursor, moving the cursor forward as well. If the insertion point is at the end of the line, then this transposes the last two characters of the line. Negative arguments have no effect. `transpose-words (M-t)' Drag the word before point past the word after point, moving point past that word as well. If the insertion point is at the end of the line, this transposes the last two words on the line. `upcase-word (M-u)' Uppercase the current (or following) word. With a negative argument, uppercase the previous word, but do not move the cursor. `downcase-word (M-l)' Lowercase the current (or following) word. With a negative argument, lowercase the previous word, but do not move the cursor. `capitalize-word (M-c)' Capitalize the current (or following) word. With a negative argument, capitalize the previous word, but do not move the cursor. `overwrite-mode ()' Toggle overwrite mode. With an explicit positive numeric argument, switches to overwrite mode. With an explicit non-positive numeric argument, switches to insert mode. This command affects only `emacs' mode; `vi' mode does overwrite differently. Each call to `readline()' starts in insert mode. In overwrite mode, characters bound to `self-insert' replace the text at point rather than pushing the text to the right. Characters bound to `backward-delete-char' replace the character before point with a space. By default, this command is unbound.  File: rluserman.info, Node: Commands For Killing, Next: Numeric Arguments, Prev: Commands For Text, Up: Bindable Readline Commands 1.4.4 Killing And Yanking ------------------------- `kill-line (C-k)' Kill the text from point to the end of the line. `backward-kill-line (C-x Rubout)' Kill backward to the beginning of the line. `unix-line-discard (C-u)' Kill backward from the cursor to the beginning of the current line. `kill-whole-line ()' Kill all characters on the current line, no matter where point is. By default, this is unbound. `kill-word (M-d)' Kill from point to the end of the current word, or if between words, to the end of the next word. Word boundaries are the same as `forward-word'. `backward-kill-word (M-)' Kill the word behind point. Word boundaries are the same as `backward-word'. `unix-word-rubout (C-w)' Kill the word behind point, using white space as a word boundary. The killed text is saved on the kill-ring. `unix-filename-rubout ()' Kill the word behind point, using white space and the slash character as the word boundaries. The killed text is saved on the kill-ring. `delete-horizontal-space ()' Delete all spaces and tabs around point. By default, this is unbound. `kill-region ()' Kill the text in the current region. By default, this command is unbound. `copy-region-as-kill ()' Copy the text in the region to the kill buffer, so it can be yanked right away. By default, this command is unbound. `copy-backward-word ()' Copy the word before point to the kill buffer. The word boundaries are the same as `backward-word'. By default, this command is unbound. `copy-forward-word ()' Copy the word following point to the kill buffer. The word boundaries are the same as `forward-word'. By default, this command is unbound. `yank (C-y)' Yank the top of the kill ring into the buffer at point. `yank-pop (M-y)' Rotate the kill-ring, and yank the new top. You can only do this if the prior command is `yank' or `yank-pop'.  File: rluserman.info, Node: Numeric Arguments, Next: Commands For Completion, Prev: Commands For Killing, Up: Bindable Readline Commands 1.4.5 Specifying Numeric Arguments ---------------------------------- `digit-argument (M-0, M-1, ... M--)' Add this digit to the argument already accumulating, or start a new argument. `M--' starts a negative argument. `universal-argument ()' This is another way to specify an argument. If this command is followed by one or more digits, optionally with a leading minus sign, those digits define the argument. If the command is followed by digits, executing `universal-argument' again ends the numeric argument, but is otherwise ignored. As a special case, if this command is immediately followed by a character that is neither a digit or minus sign, the argument count for the next command is multiplied by four. The argument count is initially one, so executing this function the first time makes the argument count four, a second time makes the argument count sixteen, and so on. By default, this is not bound to a key.  File: rluserman.info, Node: Commands For Completion, Next: Keyboard Macros, Prev: Numeric Arguments, Up: Bindable Readline Commands 1.4.6 Letting Readline Type For You ----------------------------------- `complete ()' Attempt to perform completion on the text before point. The actual completion performed is application-specific. The default is filename completion. `possible-completions (M-?)' List the possible completions of the text before point. `insert-completions (M-*)' Insert all completions of the text before point that would have been generated by `possible-completions'. `menu-complete ()' Similar to `complete', but replaces the word to be completed with a single match from the list of possible completions. Repeated execution of `menu-complete' steps through the list of possible completions, inserting each match in turn. At the end of the list of completions, the bell is rung (subject to the setting of `bell-style') and the original text is restored. An argument of N moves N positions forward in the list of matches; a negative argument may be used to move backward through the list. This command is intended to be bound to , but is unbound by default. `menu-complete-backward ()' Identical to `menu-complete', but moves backward through the list of possible completions, as if `menu-complete' had been given a negative argument. `delete-char-or-list ()' Deletes the character under the cursor if not at the beginning or end of the line (like `delete-char'). If at the end of the line, behaves identically to `possible-completions'. This command is unbound by default.  File: rluserman.info, Node: Keyboard Macros, Next: Miscellaneous Commands, Prev: Commands For Completion, Up: Bindable Readline Commands 1.4.7 Keyboard Macros --------------------- `start-kbd-macro (C-x ()' Begin saving the characters typed into the current keyboard macro. `end-kbd-macro (C-x ))' Stop saving the characters typed into the current keyboard macro and save the definition. `call-last-kbd-macro (C-x e)' Re-execute the last keyboard macro defined, by making the characters in the macro appear as if typed at the keyboard.  File: rluserman.info, Node: Miscellaneous Commands, Prev: Keyboard Macros, Up: Bindable Readline Commands 1.4.8 Some Miscellaneous Commands --------------------------------- `re-read-init-file (C-x C-r)' Read in the contents of the INPUTRC file, and incorporate any bindings or variable assignments found there. `abort (C-g)' Abort the current editing command and ring the terminal's bell (subject to the setting of `bell-style'). `do-uppercase-version (M-a, M-b, M-X, ...)' If the metafied character X is lowercase, run the command that is bound to the corresponding uppercase character. `prefix-meta ()' Metafy the next character typed. This is for keyboards without a meta key. Typing ` f' is equivalent to typing `M-f'. `undo (C-_ or C-x C-u)' Incremental undo, separately remembered for each line. `revert-line (M-r)' Undo all changes made to this line. This is like executing the `undo' command enough times to get back to the beginning. `tilde-expand (M-~)' Perform tilde expansion on the current word. `set-mark (C-@)' Set the mark to the point. If a numeric argument is supplied, the mark is set to that position. `exchange-point-and-mark (C-x C-x)' Swap the point with the mark. The current cursor position is set to the saved position, and the old cursor position is saved as the mark. `character-search (C-])' A character is read and point is moved to the next occurrence of that character. A negative count searches for previous occurrences. `character-search-backward (M-C-])' A character is read and point is moved to the previous occurrence of that character. A negative count searches for subsequent occurrences. `skip-csi-sequence ()' Read enough characters to consume a multi-key sequence such as those defined for keys like Home and End. Such sequences begin with a Control Sequence Indicator (CSI), usually ESC-[. If this sequence is bound to "\e[", keys producing such sequences will have no effect unless explicitly bound to a readline command, instead of inserting stray characters into the editing buffer. This is unbound by default, but usually bound to ESC-[. `insert-comment (M-#)' Without a numeric argument, the value of the `comment-begin' variable is inserted at the beginning of the current line. If a numeric argument is supplied, this command acts as a toggle: if the characters at the beginning of the line do not match the value of `comment-begin', the value is inserted, otherwise the characters in `comment-begin' are deleted from the beginning of the line. In either case, the line is accepted as if a newline had been typed. `dump-functions ()' Print all of the functions and their key bindings to the Readline output stream. If a numeric argument is supplied, the output is formatted in such a way that it can be made part of an INPUTRC file. This command is unbound by default. `dump-variables ()' Print all of the settable variables and their values to the Readline output stream. If a numeric argument is supplied, the output is formatted in such a way that it can be made part of an INPUTRC file. This command is unbound by default. `dump-macros ()' Print all of the Readline key sequences bound to macros and the strings they output. If a numeric argument is supplied, the output is formatted in such a way that it can be made part of an INPUTRC file. This command is unbound by default. `emacs-editing-mode (C-e)' When in `vi' command mode, this causes a switch to `emacs' editing mode. `vi-editing-mode (M-C-j)' When in `emacs' editing mode, this causes a switch to `vi' editing mode.  File: rluserman.info, Node: Readline vi Mode, Prev: Bindable Readline Commands, Up: Command Line Editing 1.5 Readline vi Mode ==================== While the Readline library does not have a full set of `vi' editing functions, it does contain enough to allow simple editing of the line. The Readline `vi' mode behaves as specified in the POSIX 1003.2 standard. In order to switch interactively between `emacs' and `vi' editing modes, use the command `M-C-j' (bound to emacs-editing-mode when in `vi' mode and to vi-editing-mode in `emacs' mode). The Readline default is `emacs' mode. When you enter a line in `vi' mode, you are already placed in `insertion' mode, as if you had typed an `i'. Pressing switches you into `command' mode, where you can edit the text of the line with the standard `vi' movement keys, move to previous history lines with `k' and subsequent lines with `j', and so forth.  File: rluserman.info, Node: GNU Free Documentation License, Prev: Command Line Editing, Up: Top Appendix A GNU Free Documentation License ***************************************** Version 1.3, 3 November 2008 Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. `http://fsf.org/' Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. 0. PREAMBLE The purpose of this License is to make a manual, textbook, or other functional and useful document "free" in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others. This License is a kind of "copyleft", which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software. We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference. 1. APPLICABILITY AND DEFINITIONS This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein. The "Document", below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as "you". You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law. A "Modified Version" of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language. A "Secondary Section" is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them. The "Invariant Sections" are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none. The "Cover Texts" are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words. A "Transparent" copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not "Transparent" is called "Opaque". Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG. Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only. The "Title Page" means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, "Title Page" means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text. The "publisher" means any person or entity that distributes copies of the Document to the public. A section "Entitled XYZ" means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as "Acknowledgements", "Dedications", "Endorsements", or "History".) To "Preserve the Title" of such a section when you modify the Document means that it remains a section "Entitled XYZ" according to this definition. The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License. 2. VERBATIM COPYING You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3. You may also lend copies, under the same conditions stated above, and you may publicly display copies. 3. COPYING IN QUANTITY If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects. If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages. If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public. It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document. 4. MODIFICATIONS You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version: A. Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission. B. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this requirement. C. State on the Title page the name of the publisher of the Modified Version, as the publisher. D. Preserve all the copyright notices of the Document. E. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices. F. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below. G. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice. H. Include an unaltered copy of this License. I. Preserve the section Entitled "History", Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section Entitled "History" in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence. J. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the "History" section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission. K. For any section Entitled "Acknowledgements" or "Dedications", Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein. L. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles. M. Delete any section Entitled "Endorsements". Such a section may not be included in the Modified Version. N. Do not retitle any existing section to be Entitled "Endorsements" or to conflict in title with any Invariant Section. O. Preserve any Warranty Disclaimers. If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles. You may add a section Entitled "Endorsements", provided it contains nothing but endorsements of your Modified Version by various parties--for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard. You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one. The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version. 5. COMBINING DOCUMENTS You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers. The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work. In the combination, you must combine any sections Entitled "History" in the various original documents, forming one section Entitled "History"; likewise combine any sections Entitled "Acknowledgements", and any sections Entitled "Dedications". You must delete all sections Entitled "Endorsements." 6. COLLECTIONS OF DOCUMENTS You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects. You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document. 7. AGGREGATION WITH INDEPENDENT WORKS A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an "aggregate" if the copyright resulting from the compilation is not used to limit the legal rights of the compilation's users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document. If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document's Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate. 8. TRANSLATION Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail. If a section in the Document is Entitled "Acknowledgements", "Dedications", or "History", the requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual title. 9. TERMINATION You may not copy, modify, sublicense, or distribute the Document except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, or distribute it is void, and will automatically terminate your rights under this License. However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, receipt of a copy of some or all of the same material does not give you any rights to use it. 10. FUTURE REVISIONS OF THIS LICENSE The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See `http://www.gnu.org/copyleft/'. Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License "or any later version" applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. If the Document specifies that a proxy can decide which future versions of this License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Document. 11. RELICENSING "Massive Multiauthor Collaboration Site" (or "MMC Site") means any World Wide Web server that publishes copyrightable works and also provides prominent facilities for anybody to edit those works. A public wiki that anybody can edit is an example of such a server. A "Massive Multiauthor Collaboration" (or "MMC") contained in the site means any set of copyrightable works thus published on the MMC site. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0 license published by Creative Commons Corporation, a not-for-profit corporation with a principal place of business in San Francisco, California, as well as future copyleft versions of that license published by that same organization. "Incorporate" means to publish or republish a Document, in whole or in part, as part of another Document. An MMC is "eligible for relicensing" if it is licensed under this License, and if all works that were first published under this License somewhere other than this MMC, and subsequently incorporated in whole or in part into the MMC, (1) had no cover texts or invariant sections, and (2) were thus incorporated prior to November 1, 2008. The operator of an MMC Site may republish an MMC contained in the site under CC-BY-SA on the same site at any time before August 1, 2009, provided the MMC is eligible for relicensing. ADDENDUM: How to use this License for your documents ==================================================== To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page: Copyright (C) YEAR YOUR NAME. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the "with...Texts." line with this: with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those two alternatives to suit the situation. If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software.  Tag Table: Node: Top1371 Node: Command Line Editing1825 Node: Introduction and Notation2479 Node: Readline Interaction4103 Node: Readline Bare Essentials5296 Node: Readline Movement Commands7087 Node: Readline Killing Commands8054 Node: Readline Arguments9976 Node: Searching11022 Node: Readline Init File13175 Node: Readline Init File Syntax14330 Node: Conditional Init Constructs28537 Node: Sample Init File31072 Node: Bindable Readline Commands34191 Node: Commands For Moving35250 Node: Commands For History36113 Node: Commands For Text39239 Node: Commands For Killing41967 Node: Numeric Arguments44111 Node: Commands For Completion45252 Node: Keyboard Macros46991 Node: Miscellaneous Commands47564 Node: Readline vi Mode51422 Node: GNU Free Documentation License52343  End Tag Table 070701000293d6000081a40000000000000000000000014c5239360000ee28000000b500010002ffffffffffffffff0000002700000000root/usr/local/share/info/history.infoThis is history.info, produced by makeinfo version 4.13 from /usr/src/local/chet/src/bash/readline-src/doc/history.texi. This document describes the GNU History library (version 6.1, 9 October 2009), a programming tool that provides a consistent user interface for recalling lines of previously typed input. Copyright (C) 1988-2009 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with the Front-Cover texts being "A GNU Manual", and with the Back-Cover Texts as in (a) below. A copy of the license is included in the section entitled "GNU Free Documentation License". (a) The FSF's Back-Cover Text is: You are free to copy and modify this GNU manual. Buying copies from GNU Press supports the FSF in developing GNU and promoting software freedom." INFO-DIR-SECTION Libraries START-INFO-DIR-ENTRY * History: (history). The GNU history library API. END-INFO-DIR-ENTRY  File: history.info, Node: Top, Next: Using History Interactively, Up: (dir) GNU History Library ******************* This document describes the GNU History library, a programming tool that provides a consistent user interface for recalling lines of previously typed input. * Menu: * Using History Interactively:: GNU History User's Manual. * Programming with GNU History:: GNU History Programmer's Manual. * GNU Free Documentation License:: License for copying this manual. * Concept Index:: Index of concepts described in this manual. * Function and Variable Index:: Index of externally visible functions and variables.  File: history.info, Node: Using History Interactively, Next: Programming with GNU History, Prev: Top, Up: Top 1 Using History Interactively ***************************** This chapter describes how to use the GNU History Library interactively, from a user's standpoint. It should be considered a user's guide. For information on using the GNU History Library in your own programs, *note Programming with GNU History::. * Menu: * History Interaction:: What it feels like using History as a user.  File: history.info, Node: History Interaction, Up: Using History Interactively 1.1 History Expansion ===================== The History library provides a history expansion feature that is similar to the history expansion provided by `csh'. This section describes the syntax used to manipulate the history information. History expansions introduce words from the history list into the input stream, making it easy to repeat commands, insert the arguments to a previous command into the current input line, or fix errors in previous commands quickly. History expansion takes place in two parts. The first is to determine which line from the history list should be used during substitution. The second is to select portions of that line for inclusion into the current one. The line selected from the history is called the "event", and the portions of that line that are acted upon are called "words". Various "modifiers" are available to manipulate the selected words. The line is broken into words in the same fashion that Bash does, so that several words surrounded by quotes are considered one word. History expansions are introduced by the appearance of the history expansion character, which is `!' by default. * Menu: * Event Designators:: How to specify which history line to use. * Word Designators:: Specifying which words are of interest. * Modifiers:: Modifying the results of substitution.  File: history.info, Node: Event Designators, Next: Word Designators, Up: History Interaction 1.1.1 Event Designators ----------------------- An event designator is a reference to a command line entry in the history list. `!' Start a history substitution, except when followed by a space, tab, the end of the line, or `='. `!N' Refer to command line N. `!-N' Refer to the command N lines back. `!!' Refer to the previous command. This is a synonym for `!-1'. `!STRING' Refer to the most recent command starting with STRING. `!?STRING[?]' Refer to the most recent command containing STRING. The trailing `?' may be omitted if the STRING is followed immediately by a newline. `^STRING1^STRING2^' Quick Substitution. Repeat the last command, replacing STRING1 with STRING2. Equivalent to `!!:s/STRING1/STRING2/'. `!#' The entire command line typed so far.  File: history.info, Node: Word Designators, Next: Modifiers, Prev: Event Designators, Up: History Interaction 1.1.2 Word Designators ---------------------- Word designators are used to select desired words from the event. A `:' separates the event specification from the word designator. It may be omitted if the word designator begins with a `^', `$', `*', `-', or `%'. Words are numbered from the beginning of the line, with the first word being denoted by 0 (zero). Words are inserted into the current line separated by single spaces. For example, `!!' designates the preceding command. When you type this, the preceding command is repeated in toto. `!!:$' designates the last argument of the preceding command. This may be shortened to `!$'. `!fi:2' designates the second argument of the most recent command starting with the letters `fi'. Here are the word designators: `0 (zero)' The `0'th word. For many applications, this is the command word. `N' The Nth word. `^' The first argument; that is, word 1. `$' The last argument. `%' The word matched by the most recent `?STRING?' search. `X-Y' A range of words; `-Y' abbreviates `0-Y'. `*' All of the words, except the `0'th. This is a synonym for `1-$'. It is not an error to use `*' if there is just one word in the event; the empty string is returned in that case. `X*' Abbreviates `X-$' `X-' Abbreviates `X-$' like `X*', but omits the last word. If a word designator is supplied without an event specification, the previous command is used as the event.  File: history.info, Node: Modifiers, Prev: Word Designators, Up: History Interaction 1.1.3 Modifiers --------------- After the optional word designator, you can add a sequence of one or more of the following modifiers, each preceded by a `:'. `h' Remove a trailing pathname component, leaving only the head. `t' Remove all leading pathname components, leaving the tail. `r' Remove a trailing suffix of the form `.SUFFIX', leaving the basename. `e' Remove all but the trailing suffix. `p' Print the new command but do not execute it. `s/OLD/NEW/' Substitute NEW for the first occurrence of OLD in the event line. Any delimiter may be used in place of `/'. The delimiter may be quoted in OLD and NEW with a single backslash. If `&' appears in NEW, it is replaced by OLD. A single backslash will quote the `&'. The final delimiter is optional if it is the last character on the input line. `&' Repeat the previous substitution. `g' `a' Cause changes to be applied over the entire event line. Used in conjunction with `s', as in `gs/OLD/NEW/', or with `&'. `G' Apply the following `s' modifier once to each word in the event.  File: history.info, Node: Programming with GNU History, Next: GNU Free Documentation License, Prev: Using History Interactively, Up: Top 2 Programming with GNU History ****************************** This chapter describes how to interface programs that you write with the GNU History Library. It should be considered a technical guide. For information on the interactive use of GNU History, *note Using History Interactively::. * Menu: * Introduction to History:: What is the GNU History library for? * History Storage:: How information is stored. * History Functions:: Functions that you can use. * History Variables:: Variables that control behaviour. * History Programming Example:: Example of using the GNU History Library.  File: history.info, Node: Introduction to History, Next: History Storage, Up: Programming with GNU History 2.1 Introduction to History =========================== Many programs read input from the user a line at a time. The GNU History library is able to keep track of those lines, associate arbitrary data with each line, and utilize information from previous lines in composing new ones. The programmer using the History library has available functions for remembering lines on a history list, associating arbitrary data with a line, removing lines from the list, searching through the list for a line containing an arbitrary text string, and referencing any line in the list directly. In addition, a history "expansion" function is available which provides for a consistent user interface across different programs. The user using programs written with the History library has the benefit of a consistent user interface with a set of well-known commands for manipulating the text of previous lines and using that text in new commands. The basic history manipulation commands are similar to the history substitution provided by `csh'. If the programmer desires, he can use the Readline library, which includes some history manipulation by default, and has the added advantage of command line editing. Before declaring any functions using any functionality the History library provides in other code, an application writer should include the file `' in any file that uses the History library's features. It supplies extern declarations for all of the library's public functions and variables, and declares all of the public data structures.  File: history.info, Node: History Storage, Next: History Functions, Prev: Introduction to History, Up: Programming with GNU History 2.2 History Storage =================== The history list is an array of history entries. A history entry is declared as follows: typedef void *histdata_t; typedef struct _hist_entry { char *line; char *timestamp; histdata_t data; } HIST_ENTRY; The history list itself might therefore be declared as HIST_ENTRY **the_history_list; The state of the History library is encapsulated into a single structure: /* * A structure used to pass around the current state of the history. */ typedef struct _hist_state { HIST_ENTRY **entries; /* Pointer to the entries themselves. */ int offset; /* The location pointer within this array. */ int length; /* Number of elements within this array. */ int size; /* Number of slots allocated to this array. */ int flags; } HISTORY_STATE; If the flags member includes `HS_STIFLED', the history has been stifled.  File: history.info, Node: History Functions, Next: History Variables, Prev: History Storage, Up: Programming with GNU History 2.3 History Functions ===================== This section describes the calling sequence for the various functions exported by the GNU History library. * Menu: * Initializing History and State Management:: Functions to call when you want to use history in a program. * History List Management:: Functions used to manage the list of history entries. * Information About the History List:: Functions returning information about the history list. * Moving Around the History List:: Functions used to change the position in the history list. * Searching the History List:: Functions to search the history list for entries containing a string. * Managing the History File:: Functions that read and write a file containing the history list. * History Expansion:: Functions to perform csh-like history expansion.  File: history.info, Node: Initializing History and State Management, Next: History List Management, Up: History Functions 2.3.1 Initializing History and State Management ----------------------------------------------- This section describes functions used to initialize and manage the state of the History library when you want to use the history functions in your program. -- Function: void using_history (void) Begin a session in which the history functions might be used. This initializes the interactive variables. -- Function: HISTORY_STATE * history_get_history_state (void) Return a structure describing the current state of the input history. -- Function: void history_set_history_state (HISTORY_STATE *state) Set the state of the history list according to STATE.  File: history.info, Node: History List Management, Next: Information About the History List, Prev: Initializing History and State Management, Up: History Functions 2.3.2 History List Management ----------------------------- These functions manage individual entries on the history list, or set parameters managing the list itself. -- Function: void add_history (const char *string) Place STRING at the end of the history list. The associated data field (if any) is set to `NULL'. -- Function: void add_history_time (const char *string) Change the time stamp associated with the most recent history entry to STRING. -- Function: HIST_ENTRY * remove_history (int which) Remove history entry at offset WHICH from the history. The removed element is returned so you can free the line, data, and containing structure. -- Function: histdata_t free_history_entry (HIST_ENTRY *histent) Free the history entry HISTENT and any history library private data associated with it. Returns the application-specific data so the caller can dispose of it. -- Function: HIST_ENTRY * replace_history_entry (int which, const char *line, histdata_t data) Make the history entry at offset WHICH have LINE and DATA. This returns the old entry so the caller can dispose of any application-specific data. In the case of an invalid WHICH, a `NULL' pointer is returned. -- Function: void clear_history (void) Clear the history list by deleting all the entries. -- Function: void stifle_history (int max) Stifle the history list, remembering only the last MAX entries. -- Function: int unstifle_history (void) Stop stifling the history. This returns the previously-set maximum number of history entries (as set by `stifle_history()'). The value is positive if the history was stifled, negative if it wasn't. -- Function: int history_is_stifled (void) Returns non-zero if the history is stifled, zero if it is not.  File: history.info, Node: Information About the History List, Next: Moving Around the History List, Prev: History List Management, Up: History Functions 2.3.3 Information About the History List ---------------------------------------- These functions return information about the entire history list or individual list entries. -- Function: HIST_ENTRY ** history_list (void) Return a `NULL' terminated array of `HIST_ENTRY *' which is the current input history. Element 0 of this list is the beginning of time. If there is no history, return `NULL'. -- Function: int where_history (void) Returns the offset of the current history element. -- Function: HIST_ENTRY * current_history (void) Return the history entry at the current position, as determined by `where_history()'. If there is no entry there, return a `NULL' pointer. -- Function: HIST_ENTRY * history_get (int offset) Return the history entry at position OFFSET, starting from `history_base' (*note History Variables::). If there is no entry there, or if OFFSET is greater than the history length, return a `NULL' pointer. -- Function: time_t history_get_time (HIST_ENTRY *entry) Return the time stamp associated with the history entry ENTRY. -- Function: int history_total_bytes (void) Return the number of bytes that the primary history entries are using. This function returns the sum of the lengths of all the lines in the history.  File: history.info, Node: Moving Around the History List, Next: Searching the History List, Prev: Information About the History List, Up: History Functions 2.3.4 Moving Around the History List ------------------------------------ These functions allow the current index into the history list to be set or changed. -- Function: int history_set_pos (int pos) Set the current history offset to POS, an absolute index into the list. Returns 1 on success, 0 if POS is less than zero or greater than the number of history entries. -- Function: HIST_ENTRY * previous_history (void) Back up the current history offset to the previous history entry, and return a pointer to that entry. If there is no previous entry, return a `NULL' pointer. -- Function: HIST_ENTRY * next_history (void) Move the current history offset forward to the next history entry, and return the a pointer to that entry. If there is no next entry, return a `NULL' pointer.  File: history.info, Node: Searching the History List, Next: Managing the History File, Prev: Moving Around the History List, Up: History Functions 2.3.5 Searching the History List -------------------------------- These functions allow searching of the history list for entries containing a specific string. Searching may be performed both forward and backward from the current history position. The search may be "anchored", meaning that the string must match at the beginning of the history entry. -- Function: int history_search (const char *string, int direction) Search the history for STRING, starting at the current history offset. If DIRECTION is less than 0, then the search is through previous entries, otherwise through subsequent entries. If STRING is found, then the current history index is set to that history entry, and the value returned is the offset in the line of the entry where STRING was found. Otherwise, nothing is changed, and a -1 is returned. -- Function: int history_search_prefix (const char *string, int direction) Search the history for STRING, starting at the current history offset. The search is anchored: matching lines must begin with STRING. If DIRECTION is less than 0, then the search is through previous entries, otherwise through subsequent entries. If STRING is found, then the current history index is set to that entry, and the return value is 0. Otherwise, nothing is changed, and a -1 is returned. -- Function: int history_search_pos (const char *string, int direction, int pos) Search for STRING in the history list, starting at POS, an absolute index into the list. If DIRECTION is negative, the search proceeds backward from POS, otherwise forward. Returns the absolute index of the history element where STRING was found, or -1 otherwise.  File: history.info, Node: Managing the History File, Next: History Expansion, Prev: Searching the History List, Up: History Functions 2.3.6 Managing the History File ------------------------------- The History library can read the history from and write it to a file. This section documents the functions for managing a history file. -- Function: int read_history (const char *filename) Add the contents of FILENAME to the history list, a line at a time. If FILENAME is `NULL', then read from `~/.history'. Returns 0 if successful, or `errno' if not. -- Function: int read_history_range (const char *filename, int from, int to) Read a range of lines from FILENAME, adding them to the history list. Start reading at line FROM and end at TO. If FROM is zero, start at the beginning. If TO is less than FROM, then read until the end of the file. If FILENAME is `NULL', then read from `~/.history'. Returns 0 if successful, or `errno' if not. -- Function: int write_history (const char *filename) Write the current history to FILENAME, overwriting FILENAME if necessary. If FILENAME is `NULL', then write the history list to `~/.history'. Returns 0 on success, or `errno' on a read or write error. -- Function: int append_history (int nelements, const char *filename) Append the last NELEMENTS of the history list to FILENAME. If FILENAME is `NULL', then append to `~/.history'. Returns 0 on success, or `errno' on a read or write error. -- Function: int history_truncate_file (const char *filename, int nlines) Truncate the history file FILENAME, leaving only the last NLINES lines. If FILENAME is `NULL', then `~/.history' is truncated. Returns 0 on success, or `errno' on failure.  File: history.info, Node: History Expansion, Prev: Managing the History File, Up: History Functions 2.3.7 History Expansion ----------------------- These functions implement history expansion. -- Function: int history_expand (char *string, char **output) Expand STRING, placing the result into OUTPUT, a pointer to a string (*note History Interaction::). Returns: `0' If no expansions took place (or, if the only change in the text was the removal of escape characters preceding the history expansion character); `1' if expansions did take place; `-1' if there was an error in expansion; `2' if the returned line should be displayed, but not executed, as with the `:p' modifier (*note Modifiers::). If an error ocurred in expansion, then OUTPUT contains a descriptive error message. -- Function: char * get_history_event (const char *string, int *cindex, int qchar) Returns the text of the history event beginning at STRING + *CINDEX. *CINDEX is modified to point to after the event specifier. At function entry, CINDEX points to the index into STRING where the history event specification begins. QCHAR is a character that is allowed to end the event specification in addition to the "normal" terminating characters. -- Function: char ** history_tokenize (const char *string) Return an array of tokens parsed out of STRING, much as the shell might. The tokens are split on the characters in the HISTORY_WORD_DELIMITERS variable, and shell quoting conventions are obeyed. -- Function: char * history_arg_extract (int first, int last, const char *string) Extract a string segment consisting of the FIRST through LAST arguments present in STRING. Arguments are split using `history_tokenize'.  File: history.info, Node: History Variables, Next: History Programming Example, Prev: History Functions, Up: Programming with GNU History 2.4 History Variables ===================== This section describes the externally-visible variables exported by the GNU History Library. -- Variable: int history_base The logical offset of the first entry in the history list. -- Variable: int history_length The number of entries currently stored in the history list. -- Variable: int history_max_entries The maximum number of history entries. This must be changed using `stifle_history()'. -- Variable: int history_write_timestamps If non-zero, timestamps are written to the history file, so they can be preserved between sessions. The default value is 0, meaning that timestamps are not saved. -- Variable: char history_expansion_char The character that introduces a history event. The default is `!'. Setting this to 0 inhibits history expansion. -- Variable: char history_subst_char The character that invokes word substitution if found at the start of a line. The default is `^'. -- Variable: char history_comment_char During tokenization, if this character is seen as the first character of a word, then it and all subsequent characters up to a newline are ignored, suppressing history expansion for the remainder of the line. This is disabled by default. -- Variable: char * history_word_delimiters The characters that separate tokens for `history_tokenize()'. The default value is `" \t\n()<>;&|"'. -- Variable: char * history_search_delimiter_chars The list of additional characters which can delimit a history search string, in addition to space, TAB, `:' and `?' in the case of a substring search. The default is empty. -- Variable: char * history_no_expand_chars The list of characters which inhibit history expansion if found immediately following HISTORY_EXPANSION_CHAR. The default is space, tab, newline, carriage return, and `='. -- Variable: int history_quotes_inhibit_expansion If non-zero, single-quoted words are not scanned for the history expansion character. The default value is 0. -- Variable: rl_linebuf_func_t * history_inhibit_expansion_function This should be set to the address of a function that takes two arguments: a `char *' (STRING) and an `int' index into that string (I). It should return a non-zero value if the history expansion starting at STRING[I] should not be performed; zero if the expansion should be done. It is intended for use by applications like Bash that use the history expansion character for additional purposes. By default, this variable is set to `NULL'.  File: history.info, Node: History Programming Example, Prev: History Variables, Up: Programming with GNU History 2.5 History Programming Example =============================== The following program demonstrates simple use of the GNU History Library. #include #include main (argc, argv) int argc; char **argv; { char line[1024], *t; int len, done = 0; line[0] = 0; using_history (); while (!done) { printf ("history$ "); fflush (stdout); t = fgets (line, sizeof (line) - 1, stdin); if (t && *t) { len = strlen (t); if (t[len - 1] == '\n') t[len - 1] = '\0'; } if (!t) strcpy (line, "quit"); if (line[0]) { char *expansion; int result; result = history_expand (line, &expansion); if (result) fprintf (stderr, "%s\n", expansion); if (result < 0 || result == 2) { free (expansion); continue; } add_history (expansion); strncpy (line, expansion, sizeof (line) - 1); free (expansion); } if (strcmp (line, "quit") == 0) done = 1; else if (strcmp (line, "save") == 0) write_history ("history_file"); else if (strcmp (line, "read") == 0) read_history ("history_file"); else if (strcmp (line, "list") == 0) { register HIST_ENTRY **the_list; register int i; the_list = history_list (); if (the_list) for (i = 0; the_list[i]; i++) printf ("%d: %s\n", i + history_base, the_list[i]->line); } else if (strncmp (line, "delete", 6) == 0) { int which; if ((sscanf (line + 6, "%d", &which)) == 1) { HIST_ENTRY *entry = remove_history (which); if (!entry) fprintf (stderr, "No such entry %d\n", which); else { free (entry->line); free (entry); } } else { fprintf (stderr, "non-numeric arg given to `delete'\n"); } } } }  File: history.info, Node: GNU Free Documentation License, Next: Concept Index, Prev: Programming with GNU History, Up: Top Appendix A GNU Free Documentation License ***************************************** Version 1.3, 3 November 2008 Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. `http://fsf.org/' Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. 0. PREAMBLE The purpose of this License is to make a manual, textbook, or other functional and useful document "free" in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others. This License is a kind of "copyleft", which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software. We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference. 1. APPLICABILITY AND DEFINITIONS This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein. The "Document", below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as "you". You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law. A "Modified Version" of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language. A "Secondary Section" is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them. The "Invariant Sections" are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none. The "Cover Texts" are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words. A "Transparent" copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not "Transparent" is called "Opaque". Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG. Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only. The "Title Page" means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, "Title Page" means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text. The "publisher" means any person or entity that distributes copies of the Document to the public. A section "Entitled XYZ" means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as "Acknowledgements", "Dedications", "Endorsements", or "History".) To "Preserve the Title" of such a section when you modify the Document means that it remains a section "Entitled XYZ" according to this definition. The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License. 2. VERBATIM COPYING You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3. You may also lend copies, under the same conditions stated above, and you may publicly display copies. 3. COPYING IN QUANTITY If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects. If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages. If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public. It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document. 4. MODIFICATIONS You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version: A. Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission. B. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this requirement. C. State on the Title page the name of the publisher of the Modified Version, as the publisher. D. Preserve all the copyright notices of the Document. E. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices. F. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below. G. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice. H. Include an unaltered copy of this License. I. Preserve the section Entitled "History", Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section Entitled "History" in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence. J. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the "History" section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission. K. For any section Entitled "Acknowledgements" or "Dedications", Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein. L. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles. M. Delete any section Entitled "Endorsements". Such a section may not be included in the Modified Version. N. Do not retitle any existing section to be Entitled "Endorsements" or to conflict in title with any Invariant Section. O. Preserve any Warranty Disclaimers. If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles. You may add a section Entitled "Endorsements", provided it contains nothing but endorsements of your Modified Version by various parties--for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard. You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one. The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version. 5. COMBINING DOCUMENTS You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers. The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work. In the combination, you must combine any sections Entitled "History" in the various original documents, forming one section Entitled "History"; likewise combine any sections Entitled "Acknowledgements", and any sections Entitled "Dedications". You must delete all sections Entitled "Endorsements." 6. COLLECTIONS OF DOCUMENTS You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects. You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document. 7. AGGREGATION WITH INDEPENDENT WORKS A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an "aggregate" if the copyright resulting from the compilation is not used to limit the legal rights of the compilation's users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document. If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document's Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate. 8. TRANSLATION Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail. If a section in the Document is Entitled "Acknowledgements", "Dedications", or "History", the requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual title. 9. TERMINATION You may not copy, modify, sublicense, or distribute the Document except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, or distribute it is void, and will automatically terminate your rights under this License. However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, receipt of a copy of some or all of the same material does not give you any rights to use it. 10. FUTURE REVISIONS OF THIS LICENSE The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See `http://www.gnu.org/copyleft/'. Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License "or any later version" applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. If the Document specifies that a proxy can decide which future versions of this License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Document. 11. RELICENSING "Massive Multiauthor Collaboration Site" (or "MMC Site") means any World Wide Web server that publishes copyrightable works and also provides prominent facilities for anybody to edit those works. A public wiki that anybody can edit is an example of such a server. A "Massive Multiauthor Collaboration" (or "MMC") contained in the site means any set of copyrightable works thus published on the MMC site. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0 license published by Creative Commons Corporation, a not-for-profit corporation with a principal place of business in San Francisco, California, as well as future copyleft versions of that license published by that same organization. "Incorporate" means to publish or republish a Document, in whole or in part, as part of another Document. An MMC is "eligible for relicensing" if it is licensed under this License, and if all works that were first published under this License somewhere other than this MMC, and subsequently incorporated in whole or in part into the MMC, (1) had no cover texts or invariant sections, and (2) were thus incorporated prior to November 1, 2008. The operator of an MMC Site may republish an MMC contained in the site under CC-BY-SA on the same site at any time before August 1, 2009, provided the MMC is eligible for relicensing. ADDENDUM: How to use this License for your documents ==================================================== To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page: Copyright (C) YEAR YOUR NAME. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the "with...Texts." line with this: with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those two alternatives to suit the situation. If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software.  File: history.info, Node: Concept Index, Next: Function and Variable Index, Prev: GNU Free Documentation License, Up: Top Appendix B Concept Index ************************ [index] * Menu: * anchored search: Searching the History List. (line 10) * event designators: Event Designators. (line 6) * history events: Event Designators. (line 7) * history expansion: History Interaction. (line 6) * History Searching: Searching the History List. (line 6)  File: history.info, Node: Function and Variable Index, Prev: Concept Index, Up: Top Appendix C Function and Variable Index ************************************** [index] * Menu: * add_history: History List Management. (line 10) * add_history_time: History List Management. (line 14) * append_history: Managing the History File. (line 29) * clear_history: History List Management. (line 35) * current_history: Information About the History List. (line 18) * free_history_entry: History List Management. (line 23) * get_history_event: History Expansion. (line 31) * history_arg_extract: History Expansion. (line 46) * history_base: History Variables. (line 10) * history_comment_char: History Variables. (line 33) * history_expand: History Expansion. (line 9) * history_expansion_char: History Variables. (line 25) * history_get: Information About the History List. (line 23) * history_get_history_state: Initializing History and State Management. (line 15) * history_get_time: Information About the History List. (line 29) * history_inhibit_expansion_function: History Variables. (line 57) * history_is_stifled: History List Management. (line 47) * history_length: History Variables. (line 13) * history_list: Information About the History List. (line 10) * history_max_entries: History Variables. (line 16) * history_no_expand_chars: History Variables. (line 48) * history_quotes_inhibit_expansion: History Variables. (line 53) * history_search: Searching the History List. (line 13) * history_search_delimiter_chars: History Variables. (line 43) * history_search_pos: Searching the History List. (line 33) * history_search_prefix: Searching the History List. (line 23) * history_set_history_state: Initializing History and State Management. (line 19) * history_set_pos: Moving Around the History List. (line 10) * history_subst_char: History Variables. (line 29) * history_tokenize: History Expansion. (line 39) * history_total_bytes: Information About the History List. (line 32) * history_truncate_file: Managing the History File. (line 35) * history_word_delimiters: History Variables. (line 39) * history_write_timestamps: History Variables. (line 20) * next_history: Moving Around the History List. (line 20) * previous_history: Moving Around the History List. (line 15) * read_history: Managing the History File. (line 10) * read_history_range: Managing the History File. (line 16) * remove_history: History List Management. (line 18) * replace_history_entry: History List Management. (line 29) * stifle_history: History List Management. (line 38) * unstifle_history: History List Management. (line 41) * using_history: Initializing History and State Management. (line 11) * where_history: Information About the History List. (line 15) * write_history: Managing the History File. (line 23)  Tag Table: Node: Top1312 Node: Using History Interactively1957 Node: History Interaction2465 Node: Event Designators3889 Node: Word Designators4824 Node: Modifiers6463 Node: Programming with GNU History7688 Node: Introduction to History8431 Node: History Storage10121 Node: History Functions11256 Node: Initializing History and State Management12245 Node: History List Management13057 Node: Information About the History List15089 Node: Moving Around the History List16586 Node: Searching the History List17587 Node: Managing the History File19519 Node: History Expansion21339 Node: History Variables23247 Node: History Programming Example26053 Node: GNU Free Documentation License28730 Node: Concept Index53921 Node: Function and Variable Index54626  End Tag Table 070701000293f2000041ed0000000000000000000000024c52393900000000000000b500010002ffffffffffffffff0000001e00000000root/usr/local/share/readline0707010002940e000081a40000000000000000000000014c52393700000ce3000000b500010002ffffffffffffffff0000002600000000root/usr/local/share/readline/rlcat.c/* * rlcat - cat(1) using readline * * usage: rlcat */ /* Copyright (C) 1987-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #if defined (HAVE_CONFIG_H) # include #endif #ifdef HAVE_UNISTD_H # include #endif #include #include "posixstat.h" #include #include #include #include #ifdef HAVE_STDLIB_H # include #else extern void exit(); #endif #ifndef errno extern int errno; #endif #if defined (READLINE_LIBRARY) # include "readline.h" # include "history.h" #else # include # include #endif extern int optind; extern char *optarg; static int stdcat(); static char *progname; static int vflag; static void usage() { fprintf (stderr, "%s: usage: %s [-vEVN] [filename]\n", progname, progname); } int main (argc, argv) int argc; char **argv; { char *temp; int opt, Vflag, Nflag; progname = strrchr(argv[0], '/'); if (progname == 0) progname = argv[0]; else progname++; vflag = Vflag = Nflag = 0; while ((opt = getopt(argc, argv, "vEVN")) != EOF) { switch (opt) { case 'v': vflag = 1; break; case 'V': Vflag = 1; break; case 'E': Vflag = 0; break; case 'N': Nflag = 1; break; default: usage (); exit (2); } } argc -= optind; argv += optind; if (isatty(0) == 0 || argc || Nflag) return stdcat(argc, argv); rl_variable_bind ("editing-mode", Vflag ? "vi" : "emacs"); while (temp = readline ("")) { if (*temp) add_history (temp); printf ("%s\n", temp); } return (ferror (stdout)); } static int fcopy(fp) FILE *fp; { int c; char *x; while ((c = getc(fp)) != EOF) { if (vflag && isascii ((unsigned char)c) && isprint((unsigned char)c) == 0) { x = rl_untranslate_keyseq (c); if (fputs (x, stdout) != 0) return 1; } else if (putchar (c) == EOF) return 1; } return (ferror (stdout)); } int stdcat (argc, argv) int argc; char **argv; { int i, fd, r; char *s; FILE *fp; if (argc == 0) return (fcopy(stdin)); for (i = 0, r = 1; i < argc; i++) { if (*argv[i] == '-' && argv[i][1] == 0) fp = stdin; else { fp = fopen (argv[i], "r"); if (fp == 0) { fprintf (stderr, "%s: %s: cannot open: %s\n", progname, argv[i], strerror(errno)); continue; } } r = fcopy (fp); if (fp != stdin) fclose(fp); } return r; } 070701000293fe000081a40000000000000000000000014c52393700000b49000000b500010002ffffffffffffffff0000002a00000000root/usr/local/share/readline/histexamp.c/* histexamp.c - history library example program. */ /* Copyright (C) 1987-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #include #ifdef READLINE_LIBRARY # include "history.h" #else # include #endif #include main (argc, argv) int argc; char **argv; { char line[1024], *t; int len, done; line[0] = 0; done = 0; using_history (); while (!done) { printf ("history$ "); fflush (stdout); t = fgets (line, sizeof (line) - 1, stdin); if (t && *t) { len = strlen (t); if (t[len - 1] == '\n') t[len - 1] = '\0'; } if (!t) strcpy (line, "quit"); if (line[0]) { char *expansion; int result; using_history (); result = history_expand (line, &expansion); if (result) fprintf (stderr, "%s\n", expansion); if (result < 0 || result == 2) { free (expansion); continue; } add_history (expansion); strncpy (line, expansion, sizeof (line) - 1); free (expansion); } if (strcmp (line, "quit") == 0) done = 1; else if (strcmp (line, "save") == 0) write_history ("history_file"); else if (strcmp (line, "read") == 0) read_history ("history_file"); else if (strcmp (line, "list") == 0) { register HIST_ENTRY **the_list; register int i; time_t tt; char timestr[128]; the_list = history_list (); if (the_list) for (i = 0; the_list[i]; i++) { tt = history_get_time (the_list[i]); if (tt) strftime (timestr, sizeof (timestr), "%a %R", localtime(&tt)); else strcpy (timestr, "??"); printf ("%d: %s: %s\n", i + history_base, timestr, the_list[i]->line); } } else if (strncmp (line, "delete", 6) == 0) { int which; if ((sscanf (line + 6, "%d", &which)) == 1) { HIST_ENTRY *entry = remove_history (which); if (!entry) fprintf (stderr, "No such entry %d\n", which); else { free (entry->line); free (entry); } } else { fprintf (stderr, "non-numeric arg given to `delete'\n"); } } } } 070701000293fa000081a40000000000000000000000014c52393700002ca2000000b500010002ffffffffffffffff0000002800000000root/usr/local/share/readline/fileman.c/* fileman.c - file manager example for readline library. */ /* Copyright (C) 1987-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ /* fileman.c -- A tiny application which demonstrates how to use the GNU Readline library. This application interactively allows users to manipulate files and their modes. */ #ifdef HAVE_CONFIG_H # include #endif #include #ifdef HAVE_SYS_FILE_H # include #endif #include #ifdef HAVE_UNISTD_H # include #endif #include #include #include #if defined (HAVE_STRING_H) # include #else /* !HAVE_STRING_H */ # include #endif /* !HAVE_STRING_H */ #ifdef HAVE_STDLIB_H # include #endif #include #ifdef READLINE_LIBRARY # include "readline.h" # include "history.h" #else # include # include #endif extern char *xmalloc PARAMS((size_t)); /* The names of functions that actually do the manipulation. */ int com_list PARAMS((char *)); int com_view PARAMS((char *)); int com_rename PARAMS((char *)); int com_stat PARAMS((char *)); int com_pwd PARAMS((char *)); int com_delete PARAMS((char *)); int com_help PARAMS((char *)); int com_cd PARAMS((char *)); int com_quit PARAMS((char *)); /* A structure which contains information on the commands this program can understand. */ typedef struct { char *name; /* User printable name of the function. */ rl_icpfunc_t *func; /* Function to call to do the job. */ char *doc; /* Documentation for this function. */ } COMMAND; COMMAND commands[] = { { "cd", com_cd, "Change to directory DIR" }, { "delete", com_delete, "Delete FILE" }, { "help", com_help, "Display this text" }, { "?", com_help, "Synonym for `help'" }, { "list", com_list, "List files in DIR" }, { "ls", com_list, "Synonym for `list'" }, { "pwd", com_pwd, "Print the current working directory" }, { "quit", com_quit, "Quit using Fileman" }, { "rename", com_rename, "Rename FILE to NEWNAME" }, { "stat", com_stat, "Print out statistics on FILE" }, { "view", com_view, "View the contents of FILE" }, { (char *)NULL, (rl_icpfunc_t *)NULL, (char *)NULL } }; /* Forward declarations. */ char *stripwhite (); COMMAND *find_command (); /* The name of this program, as taken from argv[0]. */ char *progname; /* When non-zero, this global means the user is done using this program. */ int done; char * dupstr (s) char *s; { char *r; r = xmalloc (strlen (s) + 1); strcpy (r, s); return (r); } main (argc, argv) int argc; char **argv; { char *line, *s; progname = argv[0]; initialize_readline (); /* Bind our completer. */ /* Loop reading and executing lines until the user quits. */ for ( ; done == 0; ) { line = readline ("FileMan: "); if (!line) break; /* Remove leading and trailing whitespace from the line. Then, if there is anything left, add it to the history list and execute it. */ s = stripwhite (line); if (*s) { add_history (s); execute_line (s); } free (line); } exit (0); } /* Execute a command line. */ int execute_line (line) char *line; { register int i; COMMAND *command; char *word; /* Isolate the command word. */ i = 0; while (line[i] && whitespace (line[i])) i++; word = line + i; while (line[i] && !whitespace (line[i])) i++; if (line[i]) line[i++] = '\0'; command = find_command (word); if (!command) { fprintf (stderr, "%s: No such command for FileMan.\n", word); return (-1); } /* Get argument to command, if any. */ while (whitespace (line[i])) i++; word = line + i; /* Call the function. */ return ((*(command->func)) (word)); } /* Look up NAME as the name of a command, and return a pointer to that command. Return a NULL pointer if NAME isn't a command name. */ COMMAND * find_command (name) char *name; { register int i; for (i = 0; commands[i].name; i++) if (strcmp (name, commands[i].name) == 0) return (&commands[i]); return ((COMMAND *)NULL); } /* Strip whitespace from the start and end of STRING. Return a pointer into STRING. */ char * stripwhite (string) char *string; { register char *s, *t; for (s = string; whitespace (*s); s++) ; if (*s == 0) return (s); t = s + strlen (s) - 1; while (t > s && whitespace (*t)) t--; *++t = '\0'; return s; } /* **************************************************************** */ /* */ /* Interface to Readline Completion */ /* */ /* **************************************************************** */ char *command_generator PARAMS((const char *, int)); char **fileman_completion PARAMS((const char *, int, int)); /* Tell the GNU Readline library how to complete. We want to try to complete on command names if this is the first word in the line, or on filenames if not. */ initialize_readline () { /* Allow conditional parsing of the ~/.inputrc file. */ rl_readline_name = "FileMan"; /* Tell the completer that we want a crack first. */ rl_attempted_completion_function = fileman_completion; } /* Attempt to complete on the contents of TEXT. START and END bound the region of rl_line_buffer that contains the word to complete. TEXT is the word to complete. We can use the entire contents of rl_line_buffer in case we want to do some simple parsing. Return the array of matches, or NULL if there aren't any. */ char ** fileman_completion (text, start, end) const char *text; int start, end; { char **matches; matches = (char **)NULL; /* If this word is at the start of the line, then it is a command to complete. Otherwise it is the name of a file in the current directory. */ if (start == 0) matches = rl_completion_matches (text, command_generator); return (matches); } /* Generator function for command completion. STATE lets us know whether to start from scratch; without any state (i.e. STATE == 0), then we start at the top of the list. */ char * command_generator (text, state) const char *text; int state; { static int list_index, len; char *name; /* If this is a new word to complete, initialize now. This includes saving the length of TEXT for efficiency, and initializing the index variable to 0. */ if (!state) { list_index = 0; len = strlen (text); } /* Return the next name which partially matches from the command list. */ while (name = commands[list_index].name) { list_index++; if (strncmp (name, text, len) == 0) return (dupstr(name)); } /* If no names matched, then return NULL. */ return ((char *)NULL); } /* **************************************************************** */ /* */ /* FileMan Commands */ /* */ /* **************************************************************** */ /* String to pass to system (). This is for the LIST, VIEW and RENAME commands. */ static char syscom[1024]; /* List the file(s) named in arg. */ com_list (arg) char *arg; { if (!arg) arg = ""; sprintf (syscom, "ls -FClg %s", arg); return (system (syscom)); } com_view (arg) char *arg; { if (!valid_argument ("view", arg)) return 1; #if defined (__MSDOS__) /* more.com doesn't grok slashes in pathnames */ sprintf (syscom, "less %s", arg); #else sprintf (syscom, "more %s", arg); #endif return (system (syscom)); } com_rename (arg) char *arg; { too_dangerous ("rename"); return (1); } com_stat (arg) char *arg; { struct stat finfo; if (!valid_argument ("stat", arg)) return (1); if (stat (arg, &finfo) == -1) { perror (arg); return (1); } printf ("Statistics for `%s':\n", arg); printf ("%s has %d link%s, and is %d byte%s in length.\n", arg, finfo.st_nlink, (finfo.st_nlink == 1) ? "" : "s", finfo.st_size, (finfo.st_size == 1) ? "" : "s"); printf ("Inode Last Change at: %s", ctime (&finfo.st_ctime)); printf (" Last access at: %s", ctime (&finfo.st_atime)); printf (" Last modified at: %s", ctime (&finfo.st_mtime)); return (0); } com_delete (arg) char *arg; { too_dangerous ("delete"); return (1); } /* Print out help for ARG, or for all of the commands if ARG is not present. */ com_help (arg) char *arg; { register int i; int printed = 0; for (i = 0; commands[i].name; i++) { if (!*arg || (strcmp (arg, commands[i].name) == 0)) { printf ("%s\t\t%s.\n", commands[i].name, commands[i].doc); printed++; } } if (!printed) { printf ("No commands match `%s'. Possibilties are:\n", arg); for (i = 0; commands[i].name; i++) { /* Print in six columns. */ if (printed == 6) { printed = 0; printf ("\n"); } printf ("%s\t", commands[i].name); printed++; } if (printed) printf ("\n"); } return (0); } /* Change to the directory ARG. */ com_cd (arg) char *arg; { if (chdir (arg) == -1) { perror (arg); return 1; } com_pwd (""); return (0); } /* Print out the current working directory. */ com_pwd (ignore) char *ignore; { char dir[1024], *s; s = getcwd (dir, sizeof(dir) - 1); if (s == 0) { printf ("Error getting pwd: %s\n", dir); return 1; } printf ("Current directory is %s\n", dir); return 0; } /* The user wishes to quit using this program. Just set DONE non-zero. */ com_quit (arg) char *arg; { done = 1; return (0); } /* Function which tells you that you can't do this. */ too_dangerous (caller) char *caller; { fprintf (stderr, "%s: Too dangerous for me to distribute. Write it yourself.\n", caller); } /* Return non-zero if ARG is a valid argument for CALLER, else print an error message and return zero. */ int valid_argument (caller, arg) char *caller, *arg; { if (!arg || !*arg) { fprintf (stderr, "%s: Argument required.\n", caller); return (0); } return (1); } 070701000293f6000081a40000000000000000000000014c52393700001666000000b500010002ffffffffffffffff0000002b00000000root/usr/local/share/readline/excallback.c/* From: Jeff Solomon Date: Fri, 9 Apr 1999 10:13:27 -0700 (PDT) To: chet@po.cwru.edu Subject: new readline example Message-ID: <14094.12094.527305.199695@mrclean.Stanford.EDU> Chet, I've been using readline 4.0. Specifically, I've been using the perl version Term::ReadLine::Gnu. It works great. Anyway, I've been playing around the alternate interface and I wanted to contribute a little C program, callback.c, to you that you could use as an example of the alternate interface in the /examples directory of the readline distribution. My example shows how, using the alternate interface, you can interactively change the prompt (which is very nice imo). Also, I point out that you must roll your own terminal setting when using the alternate interface because readline depreps (using your parlance) the terminal while in the user callback. I try to demostrate what I mean with an example. I've included the program below. To compile, I just put the program in the examples directory and made the appropriate changes to the EXECUTABLES and OBJECTS line and added an additional target 'callback'. I compiled on my Sun Solaris2.6 box using Sun's cc. Let me know what you think. Jeff */ /* Copyright (C) 1999 Jeff Solomon */ #if defined (HAVE_CONFIG_H) #include #endif #include #include #ifdef HAVE_UNISTD_H #include #endif #include /* xxx - should make this more general */ #ifdef READLINE_LIBRARY # include "readline.h" #else # include #endif /* This little examples demonstrates the alternate interface to using readline. * In the alternate interface, the user maintains control over program flow and * only calls readline when STDIN is readable. Using the alternate interface, * you can do anything else while still using readline (like talking to a * network or another program) without blocking. * * Specifically, this program highlights two importants features of the * alternate interface. The first is the ability to interactively change the * prompt, which can't be done using the regular interface since rl_prompt is * read-only. * * The second feature really highlights a subtle point when using the alternate * interface. That is, readline will not alter the terminal when inside your * callback handler. So let's so, your callback executes a user command that * takes a non-trivial amount of time to complete (seconds). While your * executing the command, the user continues to type keystrokes and expects them * to be re-echoed on the new prompt when it returns. Unfortunately, the default * terminal configuration doesn't do this. After the prompt returns, the user * must hit one additional keystroke and then will see all of his previous * keystrokes. To illustrate this, compile and run this program. Type "sleep" at * the prompt and then type "bar" before the prompt returns (you have 3 * seconds). Notice how "bar" is re-echoed on the prompt after the prompt * returns? This is what you expect to happen. Now comment out the 4 lines below * the line that says COMMENT LINE BELOW. Recompile and rerun the program and do * the same thing. When the prompt returns, you should not see "bar". Now type * "f", see how "barf" magically appears? This behavior is un-expected and not * desired. */ void process_line(char *line); int change_prompt(void); char *get_prompt(void); int prompt = 1; char prompt_buf[40], line_buf[256]; tcflag_t old_lflag; cc_t old_vtime; struct termios term; int main() { fd_set fds; /* Adjust the terminal slightly before the handler is installed. Disable * canonical mode processing and set the input character time flag to be * non-blocking. */ if( tcgetattr(STDIN_FILENO, &term) < 0 ) { perror("tcgetattr"); exit(1); } old_lflag = term.c_lflag; old_vtime = term.c_cc[VTIME]; term.c_lflag &= ~ICANON; term.c_cc[VTIME] = 1; /* COMMENT LINE BELOW - see above */ if( tcsetattr(STDIN_FILENO, TCSANOW, &term) < 0 ) { perror("tcsetattr"); exit(1); } rl_add_defun("change-prompt", change_prompt, CTRL('t')); rl_callback_handler_install(get_prompt(), process_line); while(1) { FD_ZERO(&fds); FD_SET(fileno(stdin), &fds); if( select(FD_SETSIZE, &fds, NULL, NULL, NULL) < 0) { perror("select"); exit(1); } if( FD_ISSET(fileno(stdin), &fds) ) { rl_callback_read_char(); } } } void process_line(char *line) { if( line == NULL ) { fprintf(stderr, "\n", line); /* reset the old terminal setting before exiting */ term.c_lflag = old_lflag; term.c_cc[VTIME] = old_vtime; if( tcsetattr(STDIN_FILENO, TCSANOW, &term) < 0 ) { perror("tcsetattr"); exit(1); } exit(0); } if( strcmp(line, "sleep") == 0 ) { sleep(3); } else { fprintf(stderr, "|%s|\n", line); } free (line); } int change_prompt(void) { /* toggle the prompt variable */ prompt = !prompt; /* save away the current contents of the line */ strcpy(line_buf, rl_line_buffer); /* install a new handler which will change the prompt and erase the current line */ rl_callback_handler_install(get_prompt(), process_line); /* insert the old text on the new line */ rl_insert_text(line_buf); /* redraw the current line - this is an undocumented function. It invokes the * redraw-current-line command. */ rl_refresh_line(0, 0); } char * get_prompt(void) { /* The prompts can even be different lengths! */ sprintf(prompt_buf, "%s", prompt ? "Hit ctrl-t to toggle prompt> " : "Pretty cool huh?> "); return prompt_buf; } 0707010002941a000081a40000000000000000000000014c52393700000862000000b500010002ffffffffffffffff0000002700000000root/usr/local/share/readline/rltest.c/* **************************************************************** */ /* */ /* Testing Readline */ /* */ /* **************************************************************** */ /* Copyright (C) 1987-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #if defined (HAVE_CONFIG_H) #include #endif #include #include #ifdef HAVE_STDLIB_H # include #else extern void exit(); #endif #ifdef READLINE_LIBRARY # include "readline.h" # include "history.h" #else # include # include #endif extern HIST_ENTRY **history_list (); main () { char *temp, *prompt; int done; temp = (char *)NULL; prompt = "readline$ "; done = 0; while (!done) { temp = readline (prompt); /* Test for EOF. */ if (!temp) exit (1); /* If there is anything on the line, print it and remember it. */ if (*temp) { fprintf (stderr, "%s\r\n", temp); add_history (temp); } /* Check for `command' that we handle. */ if (strcmp (temp, "quit") == 0) done = 1; if (strcmp (temp, "list") == 0) { HIST_ENTRY **list; register int i; list = history_list (); if (list) { for (i = 0; list[i]; i++) fprintf (stderr, "%d: %s\r\n", i, list[i]->line); } } free (temp); } exit (0); } 07070100029416000081a40000000000000000000000014c52393700001983000000b500010002ffffffffffffffff0000002a00000000root/usr/local/share/readline/rlptytest.c/* * * Another test harness for the readline callback interface. * * Author: Bob Rossi */ #if defined (HAVE_CONFIG_H) #include #endif #include #include #include #include #include #include #include #if 0 /* LINUX */ #include #else #include #endif #ifdef READLINE_LIBRARY # include "readline.h" #else # include #endif /** * Master/Slave PTY used to keep readline off of stdin/stdout. */ static int masterfd = -1; static int slavefd; void sigint (s) int s; { tty_reset (STDIN_FILENO); close (masterfd); close (slavefd); printf ("\n"); exit (0); } static int user_input() { int size; const int MAX = 1024; char *buf = (char *)malloc(MAX+1); size = read (STDIN_FILENO, buf, MAX); if (size == -1) return -1; size = write (masterfd, buf, size); if (size == -1) return -1; return 0; } static int readline_input() { const int MAX = 1024; char *buf = (char *)malloc(MAX+1); int size; size = read (masterfd, buf, MAX); if (size == -1) { free( buf ); buf = NULL; return -1; } buf[size] = 0; /* Display output from readline */ if ( size > 0 ) fprintf(stderr, "%s", buf); free( buf ); buf = NULL; return 0; } static void rlctx_send_user_command(char *line) { /* This happens when rl_callback_read_char gets EOF */ if ( line == NULL ) return; if (strcmp (line, "exit") == 0) { tty_reset (STDIN_FILENO); close (masterfd); close (slavefd); printf ("\n"); exit (0); } /* Don't add the enter command */ if ( line && *line != '\0' ) add_history(line); } static void custom_deprep_term_function () { } static int init_readline (int inputfd, int outputfd) { FILE *inputFILE, *outputFILE; inputFILE = fdopen (inputfd, "r"); if (!inputFILE) return -1; outputFILE = fdopen (outputfd, "w"); if (!outputFILE) return -1; rl_instream = inputFILE; rl_outstream = outputFILE; /* Tell readline what the prompt is if it needs to put it back */ rl_callback_handler_install("(rltest): ", rlctx_send_user_command); /* Set the terminal type to dumb so the output of readline can be * understood by tgdb */ if ( rl_reset_terminal("dumb") == -1 ) return -1; /* For some reason, readline can not deprep the terminal. * However, it doesn't matter because no other application is working on * the terminal besides readline */ rl_deprep_term_function = custom_deprep_term_function; using_history(); read_history(".history"); return 0; } static int main_loop(void) { fd_set rset; int max; max = (masterfd > STDIN_FILENO) ? masterfd : STDIN_FILENO; max = (max > slavefd) ? max : slavefd; for (;;) { /* Reset the fd_set, and watch for input from GDB or stdin */ FD_ZERO(&rset); FD_SET(STDIN_FILENO, &rset); FD_SET(slavefd, &rset); FD_SET(masterfd, &rset); /* Wait for input */ if (select(max + 1, &rset, NULL, NULL, NULL) == -1) { if (errno == EINTR) continue; else return -1; } /* Input received through the pty: Handle it * Wrote to masterfd, slave fd has that input, alert readline to read it. */ if (FD_ISSET(slavefd, &rset)) rl_callback_read_char(); /* Input received through the pty. * Readline read from slavefd, and it wrote to the masterfd. */ if (FD_ISSET(masterfd, &rset)) if ( readline_input() == -1 ) return -1; /* Input received: Handle it, write to masterfd (input to readline) */ if (FD_ISSET(STDIN_FILENO, &rset)) if ( user_input() == -1 ) return -1; } return 0; } /* The terminal attributes before calling tty_cbreak */ static struct termios save_termios; static struct winsize size; static enum { RESET, TCBREAK } ttystate = RESET; /* tty_cbreak: Sets terminal to cbreak mode. Also known as noncanonical mode. * 1. Signal handling is still turned on, so the user can still type those. * 2. echo is off * 3. Read in one char at a time. * * fd - The file descriptor of the terminal * * Returns: 0 on sucess, -1 on error */ int tty_cbreak(int fd){ struct termios buf; int ttysavefd = -1; if(tcgetattr(fd, &save_termios) < 0) return -1; buf = save_termios; buf.c_lflag &= ~(ECHO | ICANON); buf.c_iflag &= ~(ICRNL | INLCR); buf.c_cc[VMIN] = 1; buf.c_cc[VTIME] = 0; #if defined (VLNEXT) && defined (_POSIX_VDISABLE) buf.c_cc[VLNEXT] = _POSIX_VDISABLE; #endif #if defined (VDSUSP) && defined (_POSIX_VDISABLE) buf.c_cc[VDSUSP] = _POSIX_VDISABLE; #endif /* enable flow control; only stty start char can restart output */ #if 0 buf.c_iflag |= (IXON|IXOFF); #ifdef IXANY buf.c_iflag &= ~IXANY; #endif #endif /* disable flow control; let ^S and ^Q through to pty */ buf.c_iflag &= ~(IXON|IXOFF); #ifdef IXANY buf.c_iflag &= ~IXANY; #endif if(tcsetattr(fd, TCSAFLUSH, &buf) < 0) return -1; ttystate = TCBREAK; ttysavefd = fd; /* set size */ if(ioctl(fd, TIOCGWINSZ, (char *)&size) < 0) return -1; #ifdef DEBUG err_msg("%d rows and %d cols\n", size.ws_row, size.ws_col); #endif return (0); } int tty_off_xon_xoff (int fd) { struct termios buf; int ttysavefd = -1; if(tcgetattr(fd, &buf) < 0) return -1; buf.c_iflag &= ~(IXON|IXOFF); if(tcsetattr(fd, TCSAFLUSH, &buf) < 0) return -1; return 0; } /* tty_reset: Sets the terminal attributes back to their previous state. * PRE: tty_cbreak must have already been called. * * fd - The file descrioptor of the terminal to reset. * * Returns: 0 on success, -1 on error */ int tty_reset(int fd) { if(ttystate != TCBREAK) return (0); if(tcsetattr(fd, TCSAFLUSH, &save_termios) < 0) return (-1); ttystate = RESET; return 0; } int main() { int val; val = openpty (&masterfd, &slavefd, NULL, NULL, NULL); if (val == -1) return -1; val = tty_off_xon_xoff (masterfd); if (val == -1) return -1; val = init_readline (slavefd, slavefd); if (val == -1) return -1; val = tty_cbreak (STDIN_FILENO); if (val == -1) return -1; signal (SIGINT, sigint); val = main_loop (); tty_reset (STDIN_FILENO); if (val == -1) return -1; return 0; } 07070100029402000081a40000000000000000000000014c52393700000ce4000000b500010002ffffffffffffffff0000002900000000root/usr/local/share/readline/manexamp.c/* manexamp.c -- The examples which appear in the documentation are here. */ /* Copyright (C) 1987-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #include #include /* **************************************************************** */ /* */ /* How to Emulate gets () */ /* */ /* **************************************************************** */ /* A static variable for holding the line. */ static char *line_read = (char *)NULL; /* Read a string, and return a pointer to it. Returns NULL on EOF. */ char * rl_gets () { /* If the buffer has already been allocated, return the memory to the free pool. */ if (line_read) { free (line_read); line_read = (char *)NULL; } /* Get a line from the user. */ line_read = readline (""); /* If the line has any text in it, save it on the history. */ if (line_read && *line_read) add_history (line_read); return (line_read); } /* **************************************************************** */ /* */ /* Writing a Function to be Called by Readline. */ /* */ /* **************************************************************** */ /* Invert the case of the COUNT following characters. */ invert_case_line (count, key) int count, key; { register int start, end; start = rl_point; if (count < 0) { direction = -1; count = -count; } else direction = 1; /* Find the end of the range to modify. */ end = start + (count * direction); /* Force it to be within range. */ if (end > rl_end) end = rl_end; else if (end < 0) end = -1; if (start > end) { int temp = start; start = end; end = temp; } if (start == end) return; /* Tell readline that we are modifying the line, so save the undo information. */ rl_modifying (start, end); for (; start != end; start += direction) { if (_rl_uppercase_p (rl_line_buffer[start])) rl_line_buffer[start] = _rl_to_lower (rl_line_buffer[start]); else if (_rl_lowercase_p (rl_line_buffer[start])) rl_line_buffer[start] = _rl_to_upper (rl_line_buffer[start]); } /* Move point to on top of the last character changed. */ rl_point = end - direction; } 0707010002940a000081a40000000000000000000000014c52393700000c6b000000b500010002ffffffffffffffff0000002300000000root/usr/local/share/readline/rl.c/* * rl - command-line interface to read a line from the standard input * (or another fd) using readline. * * usage: rl [-p prompt] [-u unit] [-d default] [-n nchars] */ /* Copyright (C) 1987-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #if defined (HAVE_CONFIG_H) # include #endif #include #include #ifdef HAVE_STDLIB_H # include #else extern void exit(); #endif #if defined (READLINE_LIBRARY) # include "posixstat.h" # include "readline.h" # include "history.h" #else # include # include # include #endif extern int optind; extern char *optarg; #if !defined (strchr) && !defined (__STDC__) extern char *strrchr(); #endif static char *progname; static char *deftext; static int set_deftext () { if (deftext) { rl_insert_text (deftext); deftext = (char *)NULL; rl_startup_hook = (rl_hook_func_t *)NULL; } return 0; } static void usage() { fprintf (stderr, "%s: usage: %s [-p prompt] [-u unit] [-d default] [-n nchars]\n", progname, progname); } int main (argc, argv) int argc; char **argv; { char *temp, *prompt; struct stat sb; int opt, fd, nch; FILE *ifp; progname = strrchr(argv[0], '/'); if (progname == 0) progname = argv[0]; else progname++; /* defaults */ prompt = "readline$ "; fd = nch = 0; deftext = (char *)0; while ((opt = getopt(argc, argv, "p:u:d:n:")) != EOF) { switch (opt) { case 'p': prompt = optarg; break; case 'u': fd = atoi(optarg); if (fd < 0) { fprintf (stderr, "%s: bad file descriptor `%s'\n", progname, optarg); exit (2); } break; case 'd': deftext = optarg; break; case 'n': nch = atoi(optarg); if (nch < 0) { fprintf (stderr, "%s: bad value for -n: `%s'\n", progname, optarg); exit (2); } break; default: usage (); exit (2); } } if (fd != 0) { if (fstat (fd, &sb) < 0) { fprintf (stderr, "%s: %d: bad file descriptor\n", progname, fd); exit (1); } ifp = fdopen (fd, "r"); rl_instream = ifp; } if (deftext && *deftext) rl_startup_hook = set_deftext; if (nch > 0) rl_num_chars_to_read = nch; temp = readline (prompt); /* Test for EOF. */ if (temp == 0) exit (1); printf ("%s\n", temp); exit (0); } 0707010002941e000081a40000000000000000000000014c52393700000507000000b500010002ffffffffffffffff0000002a00000000root/usr/local/share/readline/rlversion.c/* * rlversion -- print out readline's version number */ /* Copyright (C) 1987-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #if defined (HAVE_CONFIG_H) # include #endif #include #include #include "posixstat.h" #ifdef HAVE_STDLIB_H # include #else extern void exit(); #endif #ifdef READLINE_LIBRARY # include "readline.h" #else # include #endif main() { printf ("%s\n", rl_library_version ? rl_library_version : "unknown"); exit (0); } 07070100029412000081a40000000000000000000000014c52393700000cdf000000b500010002ffffffffffffffff0000002800000000root/usr/local/share/readline/rlevent.c/* * rl - command-line interface to read a line from the standard input * (or another fd) using readline. * * usage: rl [-p prompt] [-u unit] [-d default] [-n nchars] */ /* Copyright (C) 1987-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #if defined (HAVE_CONFIG_H) # include #endif #include #include #ifdef HAVE_STDLIB_H # include #else extern void exit(); #endif #if defined (READLINE_LIBRARY) # include "posixstat.h" # include "readline.h" # include "history.h" #else # include # include # include #endif extern int optind; extern char *optarg; #if !defined (strchr) && !defined (__STDC__) extern char *strrchr(); #endif static char *progname; static char *deftext; static int event_hook () { fprintf (stderr, "ding!\n"); sleep (1); return 0; } static int set_deftext () { if (deftext) { rl_insert_text (deftext); deftext = (char *)NULL; rl_startup_hook = (rl_hook_func_t *)NULL; } return 0; } static void usage() { fprintf (stderr, "%s: usage: %s [-p prompt] [-u unit] [-d default] [-n nchars]\n", progname, progname); } int main (argc, argv) int argc; char **argv; { char *temp, *prompt; struct stat sb; int opt, fd, nch; FILE *ifp; progname = strrchr(argv[0], '/'); if (progname == 0) progname = argv[0]; else progname++; /* defaults */ prompt = "readline$ "; fd = nch = 0; deftext = (char *)0; while ((opt = getopt(argc, argv, "p:u:d:n:")) != EOF) { switch (opt) { case 'p': prompt = optarg; break; case 'u': fd = atoi(optarg); if (fd < 0) { fprintf (stderr, "%s: bad file descriptor `%s'\n", progname, optarg); exit (2); } break; case 'd': deftext = optarg; break; case 'n': nch = atoi(optarg); if (nch < 0) { fprintf (stderr, "%s: bad value for -n: `%s'\n", progname, optarg); exit (2); } break; default: usage (); exit (2); } } if (fd != 0) { if (fstat (fd, &sb) < 0) { fprintf (stderr, "%s: %d: bad file descriptor\n", progname, fd); exit (1); } ifp = fdopen (fd, "r"); rl_instream = ifp; } if (deftext && *deftext) rl_startup_hook = set_deftext; if (nch > 0) rl_num_chars_to_read = nch; rl_event_hook = event_hook; temp = readline (prompt); /* Test for EOF. */ if (temp == 0) exit (1); printf ("%s\n", temp); exit (0); } 07070100029406000081a40000000000000000000000014c52393700002b8b000000b500010002ffffffffffffffff0000002900000000root/usr/local/share/readline/rl-fgets.c/* Date: Tue, 16 Mar 2004 19:38:40 -0800 From: Harold Levy Subject: fgets(stdin) --> readline() redirector To: chet@po.cwru.edu Hi Chet, Here is something you may find useful enough to include in the readline distribution. It is a shared library that redirects calls to fgets(stdin) to readline() via LD_PRELOAD, and it supports a custom prompt and list of command names. Many people have asked me for this file, so I thought I'd pass it your way in hope of just including it with readline to begin with. Best Regards, -Harold */ /****************************************************************************** ******************************************************************************* FILE NAME: fgets.c TARGET: libfgets.so AUTHOR: Harold Levy VERSION: 1.0 hlevy@synopsys.com ABSTRACT: Customize fgets() behavior via LD_PRELOAD in the following ways: -- If fgets(stdin) is called, redirect to GNU readline() to obtain command-line editing, file-name completion, history, etc. -- A list of commands for command-name completion can be configured by setting the environment-variable FGETS_COMMAND_FILE to a file containing the list of commands to be used. -- Command-line editing with readline() works best when the prompt string is known; you can set this with the FGETS_PROMPT environment variable. -- There special strings that libfgets will interpret as internal commands: _fgets_reset_ reset the command list _fgets_dump_ dump status _fgets_debug_ toggle debug messages HOW TO BUILD: Here are examples of how to build libfgets.so on various platforms; you will have to add -I and -L flags to configure access to the readline header and library files. (32-bit builds with gcc) AIX: gcc -fPIC fgets.c -shared -o libfgets.so -lc -ldl -lreadline -ltermcap HP-UX: gcc -fPIC fgets.c -shared -o libfgets.so -lc -ldld -lreadline Linux: gcc -fPIC fgets.c -shared -o libfgets.so -lc -ldl -lreadline SunOS: gcc -fPIC fgets.c -shared -o libfgets.so -lc -ldl -lgen -lreadline (64-bit builds without gcc) SunOS: SUNWspro/bin/cc -D_LARGEFILE64_SOURCE=1 -xtarget=ultra -xarch=v9 \ -KPIC fgets.c -Bdynamic -lc -ldl -lgen -ltermcap -lreadline HOW TO USE: Different operating systems have different levels of support for the LD_PRELOAD concept. The generic method for 32-bit platforms is to put libtermcap.so, libfgets.so, and libreadline.so (with absolute paths) in the LD_PRELOAD environment variable, and to put their parent directories in the LD_LIBRARY_PATH environment variable. Unfortunately there is no generic method for 64-bit platforms; e.g. for 64-bit SunOS, you would have to build both 32-bit and 64-bit libfgets and libreadline libraries, and use the LD_FLAGS_32 and LD_FLAGS_64 environment variables with preload and library_path configurations (a mix of 32-bit and 64-bit calls are made under 64-bit SunOS). EXAMPLE WRAPPER: Here is an example shell script wrapper around the program "foo" that uses fgets() for command-line input: #!/bin/csh #### replace this with the libtermcap.so directory: set dir1 = "/usr/lib" #### replace this with the libfgets.so directory: set dir2 = "/usr/fgets" #### replace this with the libreadline.so directory: set dir3 = "/usr/local/lib" set lib1 = "${dir1}/libtermcap.so" set lib2 = "${dir2}/libfgets.so" set lib3 = "${dir3}/libreadline.so" if ( "${?LD_PRELOAD}" ) then setenv LD_PRELOAD "${lib1}:${lib2}:${lib3}:${LD_PRELOAD}" else setenv LD_PRELOAD "${lib1}:${lib2}:${lib3}" endif if ( "${?LD_LIBRARY_PATH}" ) then setenv LD_LIBRARY_PATH "${dir1}:${dir2}:${dir3}:${LD_LIBRARY_PATH}" else setenv LD_LIBRARY_PATH "${dir1}:${dir2}:${dir3}" endif setenv FGETS_COMMAND_FILE "${dir2}/foo.commands" setenv FGETS_PROMPT "foo> " exec "foo" $* Copyright (C)2003-2004 Harold Levy. This code links to the GNU readline library, and as such is bound by the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 or (at your option) any later version. The GNU General Public License is often shipped with GNU software, and is generally kept in a file called COPYING or LICENSE. If you do not have a copy of the license, write to the Free Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ******************************************************************************* ******************************************************************************/ #include #include #include #include #include #include #include /* for dynamically connecting to the native fgets() */ #if defined(RTLD_NEXT) #define REAL_LIBC RTLD_NEXT #else #define REAL_LIBC ((void *) -1L) #endif typedef char * ( * fgets_t ) ( char * s, int n, FILE * stream ) ; /* private data */ /* -- writeable data is stored in the shared library's data segment -- every process that uses the shared library gets a private memory copy of its entire data segment -- static data in the shared library is not copied to the application -- only read-only (i.e. 'const') data is stored in the shared library's text segment */ static char ** my_fgets_names = NULL ; static int my_fgets_number_of_names = 0 ; static int my_fgets_debug_flag = 0 ; /* invoked with _fgets_reset_ */ static void my_fgets_reset ( void ) { if ( my_fgets_names && (my_fgets_number_of_names > 0) ) { int i ; if ( my_fgets_debug_flag ) { printf ( "libfgets: removing command list\n" ) ; } for ( i = 0 ; i < my_fgets_number_of_names ; i ++ ) { if ( my_fgets_names[i] ) free ( my_fgets_names[i] ) ; } free ( my_fgets_names ) ; } my_fgets_names = NULL ; my_fgets_number_of_names = 0 ; } /* invoked with _fgets_dump_ */ static void my_fgets_dump ( void ) { char * s ; printf ( "\n" ) ; s = getenv ( "FGETS_PROMPT" ) ; printf ( "FGETS_PROMPT = %s\n", s ? s : "" ) ; s = getenv ( "FGETS_COMMAND_FILE" ) ; printf ( "FGETS_COMMAND_FILE = %s\n", s ? s : "" ) ; printf ( "debug flag = %d\n", my_fgets_debug_flag ) ; printf ( "#commands = %d\n", my_fgets_number_of_names ) ; if ( my_fgets_debug_flag ) { if ( my_fgets_names && (my_fgets_number_of_names > 0) ) { int i ; for ( i = 0 ; i < my_fgets_number_of_names ; i ++ ) { printf ( "%s\n", my_fgets_names[i] ) ; } } } printf ( "\n" ) ; } /* invoked with _fgets_debug_ */ static void my_fgets_debug_toggle ( void ) { my_fgets_debug_flag = my_fgets_debug_flag ? 0 : 1 ; if ( my_fgets_debug_flag ) { printf ( "libfgets: debug flag = %d\n", my_fgets_debug_flag ) ; } } /* read the command list if needed, return the i-th name */ static char * my_fgets_lookup ( int index ) { if ( (! my_fgets_names) || (! my_fgets_number_of_names) ) { char * fname ; FILE * fp ; fgets_t _fgets ; int i ; char buf1[256], buf2[256] ; fname = getenv ( "FGETS_COMMAND_FILE" ) ; if ( ! fname ) { if ( my_fgets_debug_flag ) { printf ( "libfgets: empty or unset FGETS_COMMAND_FILE\n" ) ; } return NULL ; } fp = fopen ( fname, "r" ) ; if ( ! fp ) { if ( my_fgets_debug_flag ) { printf ( "libfgets: cannot open '%s' for reading\n", fname ) ; } return NULL ; } _fgets = (fgets_t) dlsym ( REAL_LIBC, "fgets" ) ; if ( ! _fgets ) { fprintf ( stderr, "libfgets: failed to dynamically link to native fgets()\n" ) ; return NULL ; } for ( i = 0 ; _fgets(buf1,255,fp) ; i ++ ) ; if ( ! i ) { fclose(fp) ; return NULL ; } my_fgets_names = (char**) calloc ( i, sizeof(char*) ) ; rewind ( fp ) ; i = 0 ; while ( _fgets(buf1,255,fp) ) { buf1[255] = 0 ; if ( 1 == sscanf(buf1,"%s",buf2) ) { my_fgets_names[i] = strdup(buf2) ; i ++ ; } } fclose ( fp ) ; my_fgets_number_of_names = i ; if ( my_fgets_debug_flag ) { printf ( "libfgets: successfully read %d commands\n", i ) ; } } if ( index < my_fgets_number_of_names ) { return my_fgets_names[index] ; } else { return NULL ; } } /* generate a list of partial name matches for readline() */ static char * my_fgets_generator ( const char * text, int state ) { static int list_index, len ; char * name ; if ( ! state ) { list_index = 0 ; len = strlen ( text ) ; } while ( ( name = my_fgets_lookup(list_index) ) ) { list_index ++ ; if ( ! strncmp ( name, text, len ) ) { return ( strdup ( name ) ) ; } } return ( NULL ) ; } /* partial name completion callback for readline() */ static char ** my_fgets_completion ( const char * text, int start, int end ) { char ** matches ; matches = NULL ; if ( ! start ) { matches = rl_completion_matches ( text, my_fgets_generator ) ; } return ( matches ) ; } /* fgets() intercept */ char * fgets ( char * s, int n, FILE * stream ) { if ( ! s ) return NULL ; if ( stream == stdin ) { char * prompt ; char * my_fgets_line ; rl_already_prompted = 1 ; rl_attempted_completion_function = my_fgets_completion ; rl_catch_signals = 1 ; rl_catch_sigwinch = 1 ; rl_set_signals () ; prompt = getenv ( "FGETS_PROMPT" ) ; for ( my_fgets_line = 0 ; ! my_fgets_line ; my_fgets_line=readline(prompt) ) ; if ( ! strncmp(my_fgets_line, "_fgets_reset_", 13) ) { my_fgets_reset () ; free ( my_fgets_line ) ; strcpy ( s, "\n" ) ; return ( s ) ; } if ( ! strncmp(my_fgets_line, "_fgets_dump_", 12) ) { my_fgets_dump () ; free ( my_fgets_line ) ; strcpy ( s, "\n" ) ; return ( s ) ; } if ( ! strncmp(my_fgets_line, "_fgets_debug_", 13) ) { my_fgets_debug_toggle () ; free ( my_fgets_line ) ; strcpy ( s, "\n" ) ; return ( s ) ; } (void) strncpy ( s, my_fgets_line, n-1 ) ; (void) strcat ( s, "\n" ) ; if ( *my_fgets_line ) add_history ( my_fgets_line ) ; free ( my_fgets_line ) ; return ( s ) ; } else { static fgets_t _fgets ; _fgets = (fgets_t) dlsym ( REAL_LIBC, "fgets" ) ; if ( ! _fgets ) { fprintf ( stderr, "libfgets: failed to dynamically link to native fgets()\n" ) ; strcpy ( s, "\n" ) ; return ( s ) ; } return ( _fgets ( s, n, stream ) ) ; } } 07070100029380000041ed0000000000000000000000034c52393900000000000000b500010002ffffffffffffffff0000001700000000root/usr/local/include07070100029381000041ed0000000000000000000000024c52393900000000000000b500010002ffffffffffffffff0000002000000000root/usr/local/include/readline07070100029384000081a40000000000000000000000014c52393600000d45000000b500010002ffffffffffffffff0000002a00000000root/usr/local/include/readline/keymaps.h/* keymaps.h -- Manipulation of readline keymaps. */ /* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #ifndef _KEYMAPS_H_ #define _KEYMAPS_H_ #ifdef __cplusplus extern "C" { #endif #if defined (READLINE_LIBRARY) # include "rlstdc.h" # include "chardefs.h" # include "rltypedefs.h" #else # include # include # include #endif /* A keymap contains one entry for each key in the ASCII set. Each entry consists of a type and a pointer. FUNCTION is the address of a function to run, or the address of a keymap to indirect through. TYPE says which kind of thing FUNCTION is. */ typedef struct _keymap_entry { char type; rl_command_func_t *function; } KEYMAP_ENTRY; /* This must be large enough to hold bindings for all of the characters in a desired character set (e.g, 128 for ASCII, 256 for ISO Latin-x, and so on) plus one for subsequence matching. */ #define KEYMAP_SIZE 257 #define ANYOTHERKEY KEYMAP_SIZE-1 /* I wanted to make the above structure contain a union of: union { rl_command_func_t *function; struct _keymap_entry *keymap; } value; but this made it impossible for me to create a static array. Maybe I need C lessons. */ typedef KEYMAP_ENTRY KEYMAP_ENTRY_ARRAY[KEYMAP_SIZE]; typedef KEYMAP_ENTRY *Keymap; /* The values that TYPE can have in a keymap entry. */ #define ISFUNC 0 #define ISKMAP 1 #define ISMACR 2 extern KEYMAP_ENTRY_ARRAY emacs_standard_keymap, emacs_meta_keymap, emacs_ctlx_keymap; extern KEYMAP_ENTRY_ARRAY vi_insertion_keymap, vi_movement_keymap; /* Return a new, empty keymap. Free it with free() when you are done. */ extern Keymap rl_make_bare_keymap PARAMS((void)); /* Return a new keymap which is a copy of MAP. */ extern Keymap rl_copy_keymap PARAMS((Keymap)); /* Return a new keymap with the printing characters bound to rl_insert, the lowercase Meta characters bound to run their equivalents, and the Meta digits bound to produce numeric arguments. */ extern Keymap rl_make_keymap PARAMS((void)); /* Free the storage associated with a keymap. */ extern void rl_discard_keymap PARAMS((Keymap)); /* These functions actually appear in bind.c */ /* Return the keymap corresponding to a given name. Names look like `emacs' or `emacs-meta' or `vi-insert'. */ extern Keymap rl_get_keymap_by_name PARAMS((const char *)); /* Return the current keymap. */ extern Keymap rl_get_keymap PARAMS((void)); /* Set the current keymap to MAP. */ extern void rl_set_keymap PARAMS((Keymap)); #ifdef __cplusplus } #endif #endif /* _KEYMAPS_H_ */ 070701000293ad000081a40000000000000000000000014c5239360000088d000000b500010002ffffffffffffffff0000002900000000root/usr/local/include/readline/rlconf.h/* rlconf.h -- readline configuration definitions */ /* Copyright (C) 1992-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #if !defined (_RLCONF_H_) #define _RLCONF_H_ /* Define this if you want the vi-mode editing available. */ #define VI_MODE /* Define this to get an indication of file type when listing completions. */ #define VISIBLE_STATS /* This definition is needed by readline.c, rltty.c, and signals.c. */ /* If on, then readline handles signals in a way that doesn't screw. */ #define HANDLE_SIGNALS /* Ugly but working hack for binding prefix meta. */ #define PREFIX_META_HACK /* The next-to-last-ditch effort file name for a user-specific init file. */ #define DEFAULT_INPUTRC "~/.inputrc" /* The ultimate last-ditch filenname for an init file -- system-wide. */ #define SYS_INPUTRC "/etc/inputrc" /* If defined, expand tabs to spaces. */ #define DISPLAY_TABS /* If defined, use the terminal escape sequence to move the cursor forward over a character when updating the line rather than rewriting it. */ /* #define HACK_TERMCAP_MOTION */ /* The string inserted by the `insert comment' command. */ #define RL_COMMENT_BEGIN_DEFAULT "#" /* Define this if you want code that allows readline to be used in an X `callback' style. */ #define READLINE_CALLBACKS /* Define this if you want the cursor to indicate insert or overwrite mode. */ /* #define CURSOR_MODE */ #endif /* _RLCONF_H_ */ 070701000293b6000081a40000000000000000000000014c52393600000be6000000b500010002ffffffffffffffff0000002800000000root/usr/local/include/readline/tilde.h/* tilde.h: Externally available variables and function in libtilde.a. */ /* Copyright (C) 1992-2009 Free Software Foundation, Inc. This file contains the Readline Library (Readline), a set of routines for providing Emacs style line input to programs that ask for it. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #if !defined (_TILDE_H_) # define _TILDE_H_ #ifdef __cplusplus extern "C" { #endif /* A function can be defined using prototypes and compile on both ANSI C and traditional C compilers with something like this: extern char *func PARAMS((char *, char *, int)); */ #if !defined (PARAMS) # if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus) # define PARAMS(protos) protos # else # define PARAMS(protos) () # endif #endif typedef char *tilde_hook_func_t PARAMS((char *)); /* If non-null, this contains the address of a function that the application wants called before trying the standard tilde expansions. The function is called with the text sans tilde, and returns a malloc()'ed string which is the expansion, or a NULL pointer if the expansion fails. */ extern tilde_hook_func_t *tilde_expansion_preexpansion_hook; /* If non-null, this contains the address of a function to call if the standard meaning for expanding a tilde fails. The function is called with the text (sans tilde, as in "foo"), and returns a malloc()'ed string which is the expansion, or a NULL pointer if there is no expansion. */ extern tilde_hook_func_t *tilde_expansion_failure_hook; /* When non-null, this is a NULL terminated array of strings which are duplicates for a tilde prefix. Bash uses this to expand `=~' and `:~'. */ extern char **tilde_additional_prefixes; /* When non-null, this is a NULL terminated array of strings which match the end of a username, instead of just "/". Bash sets this to `:' and `=~'. */ extern char **tilde_additional_suffixes; /* Return a new string which is the result of tilde expanding STRING. */ extern char *tilde_expand PARAMS((const char *)); /* Do the work of tilde expansion on FILENAME. FILENAME starts with a tilde. If there is no expansion, call tilde_expansion_failure_hook. */ extern char *tilde_expand_word PARAMS((const char *)); /* Find the portion of the string beginning with ~ that should be expanded. */ extern char *tilde_find_word PARAMS((const char *, int, int *)); #ifdef __cplusplus } #endif #endif /* _TILDE_H_ */ 070701000293ae000081a40000000000000000000000014c5239360000060a000000b500010002ffffffffffffffff0000002900000000root/usr/local/include/readline/rlstdc.h/* stdc.h -- macros to make source compile on both ANSI C and K&R C compilers. */ /* Copyright (C) 1993-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #if !defined (_RL_STDC_H_) #define _RL_STDC_H_ /* Adapted from BSD /usr/include/sys/cdefs.h. */ /* A function can be defined using prototypes and compile on both ANSI C and traditional C compilers with something like this: extern char *func PARAMS((char *, char *, int)); */ #if !defined (PARAMS) # if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus) # define PARAMS(protos) protos # else # define PARAMS(protos) () # endif #endif #ifndef __attribute__ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) # define __attribute__(x) # endif #endif #endif /* !_RL_STDC_H_ */ 07070100029387000081a40000000000000000000000014c52393600008c86000000b500010002ffffffffffffffff0000002b00000000root/usr/local/include/readline/readline.h/* Readline.h -- the names of functions callable from within readline. */ /* Copyright (C) 1987-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #if !defined (_READLINE_H_) #define _READLINE_H_ #ifdef __cplusplus extern "C" { #endif #if defined (READLINE_LIBRARY) # include "rlstdc.h" # include "rltypedefs.h" # include "keymaps.h" # include "tilde.h" #else # include # include # include # include #endif /* Hex-encoded Readline version number. */ #define RL_READLINE_VERSION 0x0600 /* Readline 6.0 */ #define RL_VERSION_MAJOR 6 #define RL_VERSION_MINOR 0 /* Readline data structures. */ /* Maintaining the state of undo. We remember individual deletes and inserts on a chain of things to do. */ /* The actions that undo knows how to undo. Notice that UNDO_DELETE means to insert some text, and UNDO_INSERT means to delete some text. I.e., the code tells undo what to undo, not how to undo it. */ enum undo_code { UNDO_DELETE, UNDO_INSERT, UNDO_BEGIN, UNDO_END }; /* What an element of THE_UNDO_LIST looks like. */ typedef struct undo_list { struct undo_list *next; int start, end; /* Where the change took place. */ char *text; /* The text to insert, if undoing a delete. */ enum undo_code what; /* Delete, Insert, Begin, End. */ } UNDO_LIST; /* The current undo list for RL_LINE_BUFFER. */ extern UNDO_LIST *rl_undo_list; /* The data structure for mapping textual names to code addresses. */ typedef struct _funmap { const char *name; rl_command_func_t *function; } FUNMAP; extern FUNMAP **funmap; /* **************************************************************** */ /* */ /* Functions available to bind to key sequences */ /* */ /* **************************************************************** */ /* Bindable commands for numeric arguments. */ extern int rl_digit_argument PARAMS((int, int)); extern int rl_universal_argument PARAMS((int, int)); /* Bindable commands for moving the cursor. */ extern int rl_forward_byte PARAMS((int, int)); extern int rl_forward_char PARAMS((int, int)); extern int rl_forward PARAMS((int, int)); extern int rl_backward_byte PARAMS((int, int)); extern int rl_backward_char PARAMS((int, int)); extern int rl_backward PARAMS((int, int)); extern int rl_beg_of_line PARAMS((int, int)); extern int rl_end_of_line PARAMS((int, int)); extern int rl_forward_word PARAMS((int, int)); extern int rl_backward_word PARAMS((int, int)); extern int rl_refresh_line PARAMS((int, int)); extern int rl_clear_screen PARAMS((int, int)); extern int rl_skip_csi_sequence PARAMS((int, int)); extern int rl_arrow_keys PARAMS((int, int)); /* Bindable commands for inserting and deleting text. */ extern int rl_insert PARAMS((int, int)); extern int rl_quoted_insert PARAMS((int, int)); extern int rl_tab_insert PARAMS((int, int)); extern int rl_newline PARAMS((int, int)); extern int rl_do_lowercase_version PARAMS((int, int)); extern int rl_rubout PARAMS((int, int)); extern int rl_delete PARAMS((int, int)); extern int rl_rubout_or_delete PARAMS((int, int)); extern int rl_delete_horizontal_space PARAMS((int, int)); extern int rl_delete_or_show_completions PARAMS((int, int)); extern int rl_insert_comment PARAMS((int, int)); /* Bindable commands for changing case. */ extern int rl_upcase_word PARAMS((int, int)); extern int rl_downcase_word PARAMS((int, int)); extern int rl_capitalize_word PARAMS((int, int)); /* Bindable commands for transposing characters and words. */ extern int rl_transpose_words PARAMS((int, int)); extern int rl_transpose_chars PARAMS((int, int)); /* Bindable commands for searching within a line. */ extern int rl_char_search PARAMS((int, int)); extern int rl_backward_char_search PARAMS((int, int)); /* Bindable commands for readline's interface to the command history. */ extern int rl_beginning_of_history PARAMS((int, int)); extern int rl_end_of_history PARAMS((int, int)); extern int rl_get_next_history PARAMS((int, int)); extern int rl_get_previous_history PARAMS((int, int)); /* Bindable commands for managing the mark and region. */ extern int rl_set_mark PARAMS((int, int)); extern int rl_exchange_point_and_mark PARAMS((int, int)); /* Bindable commands to set the editing mode (emacs or vi). */ extern int rl_vi_editing_mode PARAMS((int, int)); extern int rl_emacs_editing_mode PARAMS((int, int)); /* Bindable commands to change the insert mode (insert or overwrite) */ extern int rl_overwrite_mode PARAMS((int, int)); /* Bindable commands for managing key bindings. */ extern int rl_re_read_init_file PARAMS((int, int)); extern int rl_dump_functions PARAMS((int, int)); extern int rl_dump_macros PARAMS((int, int)); extern int rl_dump_variables PARAMS((int, int)); /* Bindable commands for word completion. */ extern int rl_complete PARAMS((int, int)); extern int rl_possible_completions PARAMS((int, int)); extern int rl_insert_completions PARAMS((int, int)); extern int rl_old_menu_complete PARAMS((int, int)); extern int rl_menu_complete PARAMS((int, int)); extern int rl_backward_menu_complete PARAMS((int, int)); /* Bindable commands for killing and yanking text, and managing the kill ring. */ extern int rl_kill_word PARAMS((int, int)); extern int rl_backward_kill_word PARAMS((int, int)); extern int rl_kill_line PARAMS((int, int)); extern int rl_backward_kill_line PARAMS((int, int)); extern int rl_kill_full_line PARAMS((int, int)); extern int rl_unix_word_rubout PARAMS((int, int)); extern int rl_unix_filename_rubout PARAMS((int, int)); extern int rl_unix_line_discard PARAMS((int, int)); extern int rl_copy_region_to_kill PARAMS((int, int)); extern int rl_kill_region PARAMS((int, int)); extern int rl_copy_forward_word PARAMS((int, int)); extern int rl_copy_backward_word PARAMS((int, int)); extern int rl_yank PARAMS((int, int)); extern int rl_yank_pop PARAMS((int, int)); extern int rl_yank_nth_arg PARAMS((int, int)); extern int rl_yank_last_arg PARAMS((int, int)); /* Not available unless __CYGWIN__ is defined. */ #ifdef __CYGWIN__ extern int rl_paste_from_clipboard PARAMS((int, int)); #endif /* Bindable commands for incremental searching. */ extern int rl_reverse_search_history PARAMS((int, int)); extern int rl_forward_search_history PARAMS((int, int)); /* Bindable keyboard macro commands. */ extern int rl_start_kbd_macro PARAMS((int, int)); extern int rl_end_kbd_macro PARAMS((int, int)); extern int rl_call_last_kbd_macro PARAMS((int, int)); /* Bindable undo commands. */ extern int rl_revert_line PARAMS((int, int)); extern int rl_undo_command PARAMS((int, int)); /* Bindable tilde expansion commands. */ extern int rl_tilde_expand PARAMS((int, int)); /* Bindable terminal control commands. */ extern int rl_restart_output PARAMS((int, int)); extern int rl_stop_output PARAMS((int, int)); /* Miscellaneous bindable commands. */ extern int rl_abort PARAMS((int, int)); extern int rl_tty_status PARAMS((int, int)); /* Bindable commands for incremental and non-incremental history searching. */ extern int rl_history_search_forward PARAMS((int, int)); extern int rl_history_search_backward PARAMS((int, int)); extern int rl_noninc_forward_search PARAMS((int, int)); extern int rl_noninc_reverse_search PARAMS((int, int)); extern int rl_noninc_forward_search_again PARAMS((int, int)); extern int rl_noninc_reverse_search_again PARAMS((int, int)); /* Bindable command used when inserting a matching close character. */ extern int rl_insert_close PARAMS((int, int)); /* Not available unless READLINE_CALLBACKS is defined. */ extern void rl_callback_handler_install PARAMS((const char *, rl_vcpfunc_t *)); extern void rl_callback_read_char PARAMS((void)); extern void rl_callback_handler_remove PARAMS((void)); /* Things for vi mode. Not available unless readline is compiled -DVI_MODE. */ /* VI-mode bindable commands. */ extern int rl_vi_redo PARAMS((int, int)); extern int rl_vi_undo PARAMS((int, int)); extern int rl_vi_yank_arg PARAMS((int, int)); extern int rl_vi_fetch_history PARAMS((int, int)); extern int rl_vi_search_again PARAMS((int, int)); extern int rl_vi_search PARAMS((int, int)); extern int rl_vi_complete PARAMS((int, int)); extern int rl_vi_tilde_expand PARAMS((int, int)); extern int rl_vi_prev_word PARAMS((int, int)); extern int rl_vi_next_word PARAMS((int, int)); extern int rl_vi_end_word PARAMS((int, int)); extern int rl_vi_insert_beg PARAMS((int, int)); extern int rl_vi_append_mode PARAMS((int, int)); extern int rl_vi_append_eol PARAMS((int, int)); extern int rl_vi_eof_maybe PARAMS((int, int)); extern int rl_vi_insertion_mode PARAMS((int, int)); extern int rl_vi_insert_mode PARAMS((int, int)); extern int rl_vi_movement_mode PARAMS((int, int)); extern int rl_vi_arg_digit PARAMS((int, int)); extern int rl_vi_change_case PARAMS((int, int)); extern int rl_vi_put PARAMS((int, int)); extern int rl_vi_column PARAMS((int, int)); extern int rl_vi_delete_to PARAMS((int, int)); extern int rl_vi_change_to PARAMS((int, int)); extern int rl_vi_yank_to PARAMS((int, int)); extern int rl_vi_rubout PARAMS((int, int)); extern int rl_vi_delete PARAMS((int, int)); extern int rl_vi_back_to_indent PARAMS((int, int)); extern int rl_vi_first_print PARAMS((int, int)); extern int rl_vi_char_search PARAMS((int, int)); extern int rl_vi_match PARAMS((int, int)); extern int rl_vi_change_char PARAMS((int, int)); extern int rl_vi_subst PARAMS((int, int)); extern int rl_vi_overstrike PARAMS((int, int)); extern int rl_vi_overstrike_delete PARAMS((int, int)); extern int rl_vi_replace PARAMS((int, int)); extern int rl_vi_set_mark PARAMS((int, int)); extern int rl_vi_goto_mark PARAMS((int, int)); /* VI-mode utility functions. */ extern int rl_vi_check PARAMS((void)); extern int rl_vi_domove PARAMS((int, int *)); extern int rl_vi_bracktype PARAMS((int)); extern void rl_vi_start_inserting PARAMS((int, int, int)); /* VI-mode pseudo-bindable commands, used as utility functions. */ extern int rl_vi_fWord PARAMS((int, int)); extern int rl_vi_bWord PARAMS((int, int)); extern int rl_vi_eWord PARAMS((int, int)); extern int rl_vi_fword PARAMS((int, int)); extern int rl_vi_bword PARAMS((int, int)); extern int rl_vi_eword PARAMS((int, int)); /* **************************************************************** */ /* */ /* Well Published Functions */ /* */ /* **************************************************************** */ /* Readline functions. */ /* Read a line of input. Prompt with PROMPT. A NULL PROMPT means none. */ extern char *readline PARAMS((const char *)); extern int rl_set_prompt PARAMS((const char *)); extern int rl_expand_prompt PARAMS((char *)); extern int rl_initialize PARAMS((void)); /* Undocumented; unused by readline */ extern int rl_discard_argument PARAMS((void)); /* Utility functions to bind keys to readline commands. */ extern int rl_add_defun PARAMS((const char *, rl_command_func_t *, int)); extern int rl_bind_key PARAMS((int, rl_command_func_t *)); extern int rl_bind_key_in_map PARAMS((int, rl_command_func_t *, Keymap)); extern int rl_unbind_key PARAMS((int)); extern int rl_unbind_key_in_map PARAMS((int, Keymap)); extern int rl_bind_key_if_unbound PARAMS((int, rl_command_func_t *)); extern int rl_bind_key_if_unbound_in_map PARAMS((int, rl_command_func_t *, Keymap)); extern int rl_unbind_function_in_map PARAMS((rl_command_func_t *, Keymap)); extern int rl_unbind_command_in_map PARAMS((const char *, Keymap)); extern int rl_bind_keyseq PARAMS((const char *, rl_command_func_t *)); extern int rl_bind_keyseq_in_map PARAMS((const char *, rl_command_func_t *, Keymap)); extern int rl_bind_keyseq_if_unbound PARAMS((const char *, rl_command_func_t *)); extern int rl_bind_keyseq_if_unbound_in_map PARAMS((const char *, rl_command_func_t *, Keymap)); extern int rl_generic_bind PARAMS((int, const char *, char *, Keymap)); extern char *rl_variable_value PARAMS((const char *)); extern int rl_variable_bind PARAMS((const char *, const char *)); /* Backwards compatibility, use rl_bind_keyseq_in_map instead. */ extern int rl_set_key PARAMS((const char *, rl_command_func_t *, Keymap)); /* Backwards compatibility, use rl_generic_bind instead. */ extern int rl_macro_bind PARAMS((const char *, const char *, Keymap)); /* Undocumented in the texinfo manual; not really useful to programs. */ extern int rl_translate_keyseq PARAMS((const char *, char *, int *)); extern char *rl_untranslate_keyseq PARAMS((int)); extern rl_command_func_t *rl_named_function PARAMS((const char *)); extern rl_command_func_t *rl_function_of_keyseq PARAMS((const char *, Keymap, int *)); extern void rl_list_funmap_names PARAMS((void)); extern char **rl_invoking_keyseqs_in_map PARAMS((rl_command_func_t *, Keymap)); extern char **rl_invoking_keyseqs PARAMS((rl_command_func_t *)); extern void rl_function_dumper PARAMS((int)); extern void rl_macro_dumper PARAMS((int)); extern void rl_variable_dumper PARAMS((int)); extern int rl_read_init_file PARAMS((const char *)); extern int rl_parse_and_bind PARAMS((char *)); /* Functions for manipulating keymaps. */ extern Keymap rl_make_bare_keymap PARAMS((void)); extern Keymap rl_copy_keymap PARAMS((Keymap)); extern Keymap rl_make_keymap PARAMS((void)); extern void rl_discard_keymap PARAMS((Keymap)); extern Keymap rl_get_keymap_by_name PARAMS((const char *)); extern char *rl_get_keymap_name PARAMS((Keymap)); extern void rl_set_keymap PARAMS((Keymap)); extern Keymap rl_get_keymap PARAMS((void)); /* Undocumented; used internally only. */ extern void rl_set_keymap_from_edit_mode PARAMS((void)); extern char *rl_get_keymap_name_from_edit_mode PARAMS((void)); /* Functions for manipulating the funmap, which maps command names to functions. */ extern int rl_add_funmap_entry PARAMS((const char *, rl_command_func_t *)); extern const char **rl_funmap_names PARAMS((void)); /* Undocumented, only used internally -- there is only one funmap, and this function may be called only once. */ extern void rl_initialize_funmap PARAMS((void)); /* Utility functions for managing keyboard macros. */ extern void rl_push_macro_input PARAMS((char *)); /* Functions for undoing, from undo.c */ extern void rl_add_undo PARAMS((enum undo_code, int, int, char *)); extern void rl_free_undo_list PARAMS((void)); extern int rl_do_undo PARAMS((void)); extern int rl_begin_undo_group PARAMS((void)); extern int rl_end_undo_group PARAMS((void)); extern int rl_modifying PARAMS((int, int)); /* Functions for redisplay. */ extern void rl_redisplay PARAMS((void)); extern int rl_on_new_line PARAMS((void)); extern int rl_on_new_line_with_prompt PARAMS((void)); extern int rl_forced_update_display PARAMS((void)); extern int rl_clear_message PARAMS((void)); extern int rl_reset_line_state PARAMS((void)); extern int rl_crlf PARAMS((void)); #if defined (USE_VARARGS) && defined (PREFER_STDARG) extern int rl_message (const char *, ...) __attribute__((__format__ (printf, 1, 2))); #else extern int rl_message (); #endif extern int rl_show_char PARAMS((int)); /* Undocumented in texinfo manual. */ extern int rl_character_len PARAMS((int, int)); /* Save and restore internal prompt redisplay information. */ extern void rl_save_prompt PARAMS((void)); extern void rl_restore_prompt PARAMS((void)); /* Modifying text. */ extern void rl_replace_line PARAMS((const char *, int)); extern int rl_insert_text PARAMS((const char *)); extern int rl_delete_text PARAMS((int, int)); extern int rl_kill_text PARAMS((int, int)); extern char *rl_copy_text PARAMS((int, int)); /* Terminal and tty mode management. */ extern void rl_prep_terminal PARAMS((int)); extern void rl_deprep_terminal PARAMS((void)); extern void rl_tty_set_default_bindings PARAMS((Keymap)); extern void rl_tty_unset_default_bindings PARAMS((Keymap)); extern int rl_reset_terminal PARAMS((const char *)); extern void rl_resize_terminal PARAMS((void)); extern void rl_set_screen_size PARAMS((int, int)); extern void rl_get_screen_size PARAMS((int *, int *)); extern void rl_reset_screen_size PARAMS((void)); extern char *rl_get_termcap PARAMS((const char *)); /* Functions for character input. */ extern int rl_stuff_char PARAMS((int)); extern int rl_execute_next PARAMS((int)); extern int rl_clear_pending_input PARAMS((void)); extern int rl_read_key PARAMS((void)); extern int rl_getc PARAMS((FILE *)); extern int rl_set_keyboard_input_timeout PARAMS((int)); /* `Public' utility functions . */ extern void rl_extend_line_buffer PARAMS((int)); extern int rl_ding PARAMS((void)); extern int rl_alphabetic PARAMS((int)); extern void rl_free PARAMS((void *)); /* Readline signal handling, from signals.c */ extern int rl_set_signals PARAMS((void)); extern int rl_clear_signals PARAMS((void)); extern void rl_cleanup_after_signal PARAMS((void)); extern void rl_reset_after_signal PARAMS((void)); extern void rl_free_line_state PARAMS((void)); extern void rl_echo_signal_char PARAMS((int)); extern int rl_set_paren_blink_timeout PARAMS((int)); /* Undocumented. */ extern int rl_maybe_save_line PARAMS((void)); extern int rl_maybe_unsave_line PARAMS((void)); extern int rl_maybe_replace_line PARAMS((void)); /* Completion functions. */ extern int rl_complete_internal PARAMS((int)); extern void rl_display_match_list PARAMS((char **, int, int)); extern char **rl_completion_matches PARAMS((const char *, rl_compentry_func_t *)); extern char *rl_username_completion_function PARAMS((const char *, int)); extern char *rl_filename_completion_function PARAMS((const char *, int)); extern int rl_completion_mode PARAMS((rl_command_func_t *)); #if 0 /* Backwards compatibility (compat.c). These will go away sometime. */ extern void free_undo_list PARAMS((void)); extern int maybe_save_line PARAMS((void)); extern int maybe_unsave_line PARAMS((void)); extern int maybe_replace_line PARAMS((void)); extern int ding PARAMS((void)); extern int alphabetic PARAMS((int)); extern int crlf PARAMS((void)); extern char **completion_matches PARAMS((char *, rl_compentry_func_t *)); extern char *username_completion_function PARAMS((const char *, int)); extern char *filename_completion_function PARAMS((const char *, int)); #endif /* **************************************************************** */ /* */ /* Well Published Variables */ /* */ /* **************************************************************** */ /* The version of this incarnation of the readline library. */ extern const char *rl_library_version; /* e.g., "4.2" */ extern int rl_readline_version; /* e.g., 0x0402 */ /* True if this is real GNU readline. */ extern int rl_gnu_readline_p; /* Flags word encapsulating the current readline state. */ extern int rl_readline_state; /* Says which editing mode readline is currently using. 1 means emacs mode; 0 means vi mode. */ extern int rl_editing_mode; /* Insert or overwrite mode for emacs mode. 1 means insert mode; 0 means overwrite mode. Reset to insert mode on each input line. */ extern int rl_insert_mode; /* The name of the calling program. You should initialize this to whatever was in argv[0]. It is used when parsing conditionals. */ extern const char *rl_readline_name; /* The prompt readline uses. This is set from the argument to readline (), and should not be assigned to directly. */ extern char *rl_prompt; /* The prompt string that is actually displayed by rl_redisplay. Public so applications can more easily supply their own redisplay functions. */ extern char *rl_display_prompt; /* The line buffer that is in use. */ extern char *rl_line_buffer; /* The location of point, and end. */ extern int rl_point; extern int rl_end; /* The mark, or saved cursor position. */ extern int rl_mark; /* Flag to indicate that readline has finished with the current input line and should return it. */ extern int rl_done; /* If set to a character value, that will be the next keystroke read. */ extern int rl_pending_input; /* Non-zero if we called this function from _rl_dispatch(). It's present so functions can find out whether they were called from a key binding or directly from an application. */ extern int rl_dispatching; /* Non-zero if the user typed a numeric argument before executing the current function. */ extern int rl_explicit_arg; /* The current value of the numeric argument specified by the user. */ extern int rl_numeric_arg; /* The address of the last command function Readline executed. */ extern rl_command_func_t *rl_last_func; /* The name of the terminal to use. */ extern const char *rl_terminal_name; /* The input and output streams. */ extern FILE *rl_instream; extern FILE *rl_outstream; /* If non-zero, Readline gives values of LINES and COLUMNS from the environment greater precedence than values fetched from the kernel when computing the screen dimensions. */ extern int rl_prefer_env_winsize; /* If non-zero, then this is the address of a function to call just before readline_internal () prints the first prompt. */ extern rl_hook_func_t *rl_startup_hook; /* If non-zero, this is the address of a function to call just before readline_internal_setup () returns and readline_internal starts reading input characters. */ extern rl_hook_func_t *rl_pre_input_hook; /* The address of a function to call periodically while Readline is awaiting character input, or NULL, for no event handling. */ extern rl_hook_func_t *rl_event_hook; /* The address of the function to call to fetch a character from the current Readline input stream */ extern rl_getc_func_t *rl_getc_function; extern rl_voidfunc_t *rl_redisplay_function; extern rl_vintfunc_t *rl_prep_term_function; extern rl_voidfunc_t *rl_deprep_term_function; /* Dispatch variables. */ extern Keymap rl_executing_keymap; extern Keymap rl_binding_keymap; /* Display variables. */ /* If non-zero, readline will erase the entire line, including any prompt, if the only thing typed on an otherwise-blank line is something bound to rl_newline. */ extern int rl_erase_empty_line; /* If non-zero, the application has already printed the prompt (rl_prompt) before calling readline, so readline should not output it the first time redisplay is done. */ extern int rl_already_prompted; /* A non-zero value means to read only this many characters rather than up to a character bound to accept-line. */ extern int rl_num_chars_to_read; /* The text of a currently-executing keyboard macro. */ extern char *rl_executing_macro; /* Variables to control readline signal handling. */ /* If non-zero, readline will install its own signal handlers for SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU. */ extern int rl_catch_signals; /* If non-zero, readline will install a signal handler for SIGWINCH that also attempts to call any calling application's SIGWINCH signal handler. Note that the terminal is not cleaned up before the application's signal handler is called; use rl_cleanup_after_signal() to do that. */ extern int rl_catch_sigwinch; /* Completion variables. */ /* Pointer to the generator function for completion_matches (). NULL means to use rl_filename_completion_function (), the default filename completer. */ extern rl_compentry_func_t *rl_completion_entry_function; /* Optional generator for menu completion. Default is rl_completion_entry_function (rl_filename_completion_function). */ extern rl_compentry_func_t *rl_menu_completion_entry_function; /* If rl_ignore_some_completions_function is non-NULL it is the address of a function to call after all of the possible matches have been generated, but before the actual completion is done to the input line. The function is called with one argument; a NULL terminated array of (char *). If your function removes any of the elements, they must be free()'ed. */ extern rl_compignore_func_t *rl_ignore_some_completions_function; /* Pointer to alternative function to create matches. Function is called with TEXT, START, and END. START and END are indices in RL_LINE_BUFFER saying what the boundaries of TEXT are. If this function exists and returns NULL then call the value of rl_completion_entry_function to try to match, otherwise use the array of strings returned. */ extern rl_completion_func_t *rl_attempted_completion_function; /* The basic list of characters that signal a break between words for the completer routine. The initial contents of this variable is what breaks words in the shell, i.e. "n\"\\'`@$>". */ extern const char *rl_basic_word_break_characters; /* The list of characters that signal a break between words for rl_complete_internal. The default list is the contents of rl_basic_word_break_characters. */ extern /*const*/ char *rl_completer_word_break_characters; /* Hook function to allow an application to set the completion word break characters before readline breaks up the line. Allows position-dependent word break characters. */ extern rl_cpvfunc_t *rl_completion_word_break_hook; /* List of characters which can be used to quote a substring of the line. Completion occurs on the entire substring, and within the substring rl_completer_word_break_characters are treated as any other character, unless they also appear within this list. */ extern const char *rl_completer_quote_characters; /* List of quote characters which cause a word break. */ extern const char *rl_basic_quote_characters; /* List of characters that need to be quoted in filenames by the completer. */ extern const char *rl_filename_quote_characters; /* List of characters that are word break characters, but should be left in TEXT when it is passed to the completion function. The shell uses this to help determine what kind of completing to do. */ extern const char *rl_special_prefixes; /* If non-zero, then this is the address of a function to call when completing on a directory name. The function is called with the address of a string (the current directory name) as an arg. It changes what is displayed when the possible completions are printed or inserted. */ extern rl_icppfunc_t *rl_directory_completion_hook; /* If non-zero, this is the address of a function to call when completing a directory name. This function takes the address of the directory name to be modified as an argument. Unlike rl_directory_completion_hook, it only modifies the directory name used in opendir(2), not what is displayed when the possible completions are printed or inserted. It is called before rl_directory_completion_hook. I'm not happy with how this works yet, so it's undocumented. */ extern rl_icppfunc_t *rl_directory_rewrite_hook; /* If non-zero, this is the address of a function to call when reading directory entries from the filesystem for completion and comparing them to the partial word to be completed. The function should either return its first argument (if no conversion takes place) or newly-allocated memory. This can, for instance, convert filenames between character sets for comparison against what's typed at the keyboard. The returned value is what is added to the list of matches. The second argument is the length of the filename to be converted. */ extern rl_dequote_func_t *rl_filename_rewrite_hook; /* Backwards compatibility with previous versions of readline. */ #define rl_symbolic_link_hook rl_directory_completion_hook /* If non-zero, then this is the address of a function to call when completing a word would normally display the list of possible matches. This function is called instead of actually doing the display. It takes three arguments: (char **matches, int num_matches, int max_length) where MATCHES is the array of strings that matched, NUM_MATCHES is the number of strings in that array, and MAX_LENGTH is the length of the longest string in that array. */ extern rl_compdisp_func_t *rl_completion_display_matches_hook; /* Non-zero means that the results of the matches are to be treated as filenames. This is ALWAYS zero on entry, and can only be changed within a completion entry finder function. */ extern int rl_filename_completion_desired; /* Non-zero means that the results of the matches are to be quoted using double quotes (or an application-specific quoting mechanism) if the filename contains any characters in rl_word_break_chars. This is ALWAYS non-zero on entry, and can only be changed within a completion entry finder function. */ extern int rl_filename_quoting_desired; /* Set to a function to quote a filename in an application-specific fashion. Called with the text to quote, the type of match found (single or multiple) and a pointer to the quoting character to be used, which the function can reset if desired. */ extern rl_quote_func_t *rl_filename_quoting_function; /* Function to call to remove quoting characters from a filename. Called before completion is attempted, so the embedded quotes do not interfere with matching names in the file system. */ extern rl_dequote_func_t *rl_filename_dequoting_function; /* Function to call to decide whether or not a word break character is quoted. If a character is quoted, it does not break words for the completer. */ extern rl_linebuf_func_t *rl_char_is_quoted_p; /* Non-zero means to suppress normal filename completion after the user-specified completion function has been called. */ extern int rl_attempted_completion_over; /* Set to a character describing the type of completion being attempted by rl_complete_internal; available for use by application completion functions. */ extern int rl_completion_type; /* Set to the last key used to invoke one of the completion functions */ extern int rl_completion_invoking_key; /* Up to this many items will be displayed in response to a possible-completions call. After that, we ask the user if she is sure she wants to see them all. The default value is 100. */ extern int rl_completion_query_items; /* Character appended to completed words when at the end of the line. The default is a space. Nothing is added if this is '\0'. */ extern int rl_completion_append_character; /* If set to non-zero by an application completion function, rl_completion_append_character will not be appended. */ extern int rl_completion_suppress_append; /* Set to any quote character readline thinks it finds before any application completion function is called. */ extern int rl_completion_quote_character; /* Set to a non-zero value if readline found quoting anywhere in the word to be completed; set before any application completion function is called. */ extern int rl_completion_found_quote; /* If non-zero, the completion functions don't append any closing quote. This is set to 0 by rl_complete_internal and may be changed by an application-specific completion function. */ extern int rl_completion_suppress_quote; /* If non-zero, readline will sort the completion matches. On by default. */ extern int rl_sort_completion_matches; /* If non-zero, a slash will be appended to completed filenames that are symbolic links to directory names, subject to the value of the mark-directories variable (which is user-settable). This exists so that application completion functions can override the user's preference (set via the mark-symlinked-directories variable) if appropriate. It's set to the value of _rl_complete_mark_symlink_dirs in rl_complete_internal before any application-specific completion function is called, so without that function doing anything, the user's preferences are honored. */ extern int rl_completion_mark_symlink_dirs; /* If non-zero, then disallow duplicates in the matches. */ extern int rl_ignore_completion_duplicates; /* If this is non-zero, completion is (temporarily) inhibited, and the completion character will be inserted as any other. */ extern int rl_inhibit_completion; /* Input error; can be returned by (*rl_getc_function) if readline is reading a top-level command (RL_ISSTATE (RL_STATE_READCMD)). */ #define READERR (-2) /* Definitions available for use by readline clients. */ #define RL_PROMPT_START_IGNORE '\001' #define RL_PROMPT_END_IGNORE '\002' /* Possible values for do_replace argument to rl_filename_quoting_function, called by rl_complete_internal. */ #define NO_MATCH 0 #define SINGLE_MATCH 1 #define MULT_MATCH 2 /* Possible state values for rl_readline_state */ #define RL_STATE_NONE 0x000000 /* no state; before first call */ #define RL_STATE_INITIALIZING 0x000001 /* initializing */ #define RL_STATE_INITIALIZED 0x000002 /* initialization done */ #define RL_STATE_TERMPREPPED 0x000004 /* terminal is prepped */ #define RL_STATE_READCMD 0x000008 /* reading a command key */ #define RL_STATE_METANEXT 0x000010 /* reading input after ESC */ #define RL_STATE_DISPATCHING 0x000020 /* dispatching to a command */ #define RL_STATE_MOREINPUT 0x000040 /* reading more input in a command function */ #define RL_STATE_ISEARCH 0x000080 /* doing incremental search */ #define RL_STATE_NSEARCH 0x000100 /* doing non-inc search */ #define RL_STATE_SEARCH 0x000200 /* doing a history search */ #define RL_STATE_NUMERICARG 0x000400 /* reading numeric argument */ #define RL_STATE_MACROINPUT 0x000800 /* getting input from a macro */ #define RL_STATE_MACRODEF 0x001000 /* defining keyboard macro */ #define RL_STATE_OVERWRITE 0x002000 /* overwrite mode */ #define RL_STATE_COMPLETING 0x004000 /* doing completion */ #define RL_STATE_SIGHANDLER 0x008000 /* in readline sighandler */ #define RL_STATE_UNDOING 0x010000 /* doing an undo */ #define RL_STATE_INPUTPENDING 0x020000 /* rl_execute_next called */ #define RL_STATE_TTYCSAVED 0x040000 /* tty special chars saved */ #define RL_STATE_CALLBACK 0x080000 /* using the callback interface */ #define RL_STATE_VIMOTION 0x100000 /* reading vi motion arg */ #define RL_STATE_MULTIKEY 0x200000 /* reading multiple-key command */ #define RL_STATE_VICMDONCE 0x400000 /* entered vi command mode at least once */ #define RL_STATE_REDISPLAYING 0x800000 /* updating terminal display */ #define RL_STATE_DONE 0x1000000 /* done; accepted line */ #define RL_SETSTATE(x) (rl_readline_state |= (x)) #define RL_UNSETSTATE(x) (rl_readline_state &= ~(x)) #define RL_ISSTATE(x) (rl_readline_state & (x)) struct readline_state { /* line state */ int point; int end; int mark; char *buffer; int buflen; UNDO_LIST *ul; char *prompt; /* global state */ int rlstate; int done; Keymap kmap; /* input state */ rl_command_func_t *lastfunc; int insmode; int edmode; int kseqlen; FILE *inf; FILE *outf; int pendingin; char *macro; /* signal state */ int catchsigs; int catchsigwinch; /* search state */ /* completion state */ /* options state */ /* reserved for future expansion, so the struct size doesn't change */ char reserved[64]; }; extern int rl_save_state PARAMS((struct readline_state *)); extern int rl_restore_state PARAMS((struct readline_state *)); #ifdef __cplusplus } #endif #endif /* _READLINE_H_ */ 07070100029382000081a40000000000000000000000014c523936000011c7000000b500010002ffffffffffffffff0000002b00000000root/usr/local/include/readline/chardefs.h/* chardefs.h -- Character definitions for readline. */ /* Copyright (C) 1994-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #ifndef _CHARDEFS_H_ #define _CHARDEFS_H_ #include #if defined (HAVE_CONFIG_H) # if defined (HAVE_STRING_H) # if ! defined (STDC_HEADERS) && defined (HAVE_MEMORY_H) # include # endif # include # endif /* HAVE_STRING_H */ # if defined (HAVE_STRINGS_H) # include # endif /* HAVE_STRINGS_H */ #else # include #endif /* !HAVE_CONFIG_H */ #ifndef whitespace #define whitespace(c) (((c) == ' ') || ((c) == '\t')) #endif #ifdef CTRL # undef CTRL #endif #ifdef UNCTRL # undef UNCTRL #endif /* Some character stuff. */ #define control_character_threshold 0x020 /* Smaller than this is control. */ #define control_character_mask 0x1f /* 0x20 - 1 */ #define meta_character_threshold 0x07f /* Larger than this is Meta. */ #define control_character_bit 0x40 /* 0x000000, must be off. */ #define meta_character_bit 0x080 /* x0000000, must be on. */ #define largest_char 255 /* Largest character value. */ #define CTRL_CHAR(c) ((c) < control_character_threshold && (((c) & 0x80) == 0)) #define META_CHAR(c) ((c) > meta_character_threshold && (c) <= largest_char) #define CTRL(c) ((c) & control_character_mask) #define META(c) ((c) | meta_character_bit) #define UNMETA(c) ((c) & (~meta_character_bit)) #define UNCTRL(c) _rl_to_upper(((c)|control_character_bit)) #if defined STDC_HEADERS || (!defined (isascii) && !defined (HAVE_ISASCII)) # define IN_CTYPE_DOMAIN(c) 1 #else # define IN_CTYPE_DOMAIN(c) isascii(c) #endif #if !defined (isxdigit) && !defined (HAVE_ISXDIGIT) # define isxdigit(c) (isdigit((c)) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F')) #endif #if defined (CTYPE_NON_ASCII) # define NON_NEGATIVE(c) 1 #else # define NON_NEGATIVE(c) ((unsigned char)(c) == (c)) #endif /* Some systems define these; we want our definitions. */ #undef ISPRINT /* Beware: these only work with single-byte ASCII characters. */ #define ISALNUM(c) (IN_CTYPE_DOMAIN (c) && isalnum (c)) #define ISALPHA(c) (IN_CTYPE_DOMAIN (c) && isalpha (c)) #define ISDIGIT(c) (IN_CTYPE_DOMAIN (c) && isdigit (c)) #define ISLOWER(c) (IN_CTYPE_DOMAIN (c) && islower (c)) #define ISPRINT(c) (IN_CTYPE_DOMAIN (c) && isprint (c)) #define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c)) #define ISXDIGIT(c) (IN_CTYPE_DOMAIN (c) && isxdigit (c)) #define _rl_lowercase_p(c) (NON_NEGATIVE(c) && ISLOWER(c)) #define _rl_uppercase_p(c) (NON_NEGATIVE(c) && ISUPPER(c)) #define _rl_digit_p(c) ((c) >= '0' && (c) <= '9') #define _rl_pure_alphabetic(c) (NON_NEGATIVE(c) && ISALPHA(c)) #define ALPHABETIC(c) (NON_NEGATIVE(c) && ISALNUM(c)) #ifndef _rl_to_upper # define _rl_to_upper(c) (_rl_lowercase_p(c) ? toupper((unsigned char)c) : (c)) # define _rl_to_lower(c) (_rl_uppercase_p(c) ? tolower((unsigned char)c) : (c)) #endif #ifndef _rl_digit_value # define _rl_digit_value(x) ((x) - '0') #endif #ifndef _rl_isident # define _rl_isident(c) (ISALNUM(c) || (c) == '_') #endif #ifndef ISOCTAL # define ISOCTAL(c) ((c) >= '0' && (c) <= '7') #endif #define OCTVALUE(c) ((c) - '0') #define HEXVALUE(c) \ (((c) >= 'a' && (c) <= 'f') \ ? (c)-'a'+10 \ : (c) >= 'A' && (c) <= 'F' ? (c)-'A'+10 : (c)-'0') #ifndef NEWLINE #define NEWLINE '\n' #endif #ifndef RETURN #define RETURN CTRL('M') #endif #ifndef RUBOUT #define RUBOUT 0x7f #endif #ifndef TAB #define TAB '\t' #endif #ifdef ABORT_CHAR #undef ABORT_CHAR #endif #define ABORT_CHAR CTRL('G') #ifdef PAGE #undef PAGE #endif #define PAGE CTRL('L') #ifdef SPACE #undef SPACE #endif #define SPACE ' ' /* XXX - was 0x20 */ #ifdef ESC #undef ESC #endif #define ESC CTRL('[') #endif /* _CHARDEFS_H_ */ 07070100029383000081a40000000000000000000000014c5239360000275e000000b500010002ffffffffffffffff0000002a00000000root/usr/local/include/readline/history.h/* history.h -- the names of functions that you can call in history. */ /* Copyright (C) 1989-2009 Free Software Foundation, Inc. This file contains the GNU History Library (History), a set of routines for managing the text of previously typed lines. History is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. History is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with History. If not, see . */ #ifndef _HISTORY_H_ #define _HISTORY_H_ #ifdef __cplusplus extern "C" { #endif #include /* XXX - for history timestamp code */ #if defined READLINE_LIBRARY # include "rlstdc.h" # include "rltypedefs.h" #else # include # include #endif #ifdef __STDC__ typedef void *histdata_t; #else typedef char *histdata_t; #endif /* The structure used to store a history entry. */ typedef struct _hist_entry { char *line; char *timestamp; /* char * rather than time_t for read/write */ histdata_t data; } HIST_ENTRY; /* Size of the history-library-managed space in history entry HS. */ #define HISTENT_BYTES(hs) (strlen ((hs)->line) + strlen ((hs)->timestamp)) /* A structure used to pass the current state of the history stuff around. */ typedef struct _hist_state { HIST_ENTRY **entries; /* Pointer to the entries themselves. */ int offset; /* The location pointer within this array. */ int length; /* Number of elements within this array. */ int size; /* Number of slots allocated to this array. */ int flags; } HISTORY_STATE; /* Flag values for the `flags' member of HISTORY_STATE. */ #define HS_STIFLED 0x01 /* Initialization and state management. */ /* Begin a session in which the history functions might be used. This just initializes the interactive variables. */ extern void using_history PARAMS((void)); /* Return the current HISTORY_STATE of the history. */ extern HISTORY_STATE *history_get_history_state PARAMS((void)); /* Set the state of the current history array to STATE. */ extern void history_set_history_state PARAMS((HISTORY_STATE *)); /* Manage the history list. */ /* Place STRING at the end of the history list. The associated data field (if any) is set to NULL. */ extern void add_history PARAMS((const char *)); /* Change the timestamp associated with the most recent history entry to STRING. */ extern void add_history_time PARAMS((const char *)); /* A reasonably useless function, only here for completeness. WHICH is the magic number that tells us which element to delete. The elements are numbered from 0. */ extern HIST_ENTRY *remove_history PARAMS((int)); /* Free the history entry H and return any application-specific data associated with it. */ extern histdata_t free_history_entry PARAMS((HIST_ENTRY *)); /* Make the history entry at WHICH have LINE and DATA. This returns the old entry so you can dispose of the data. In the case of an invalid WHICH, a NULL pointer is returned. */ extern HIST_ENTRY *replace_history_entry PARAMS((int, const char *, histdata_t)); /* Clear the history list and start over. */ extern void clear_history PARAMS((void)); /* Stifle the history list, remembering only MAX number of entries. */ extern void stifle_history PARAMS((int)); /* Stop stifling the history. This returns the previous amount the history was stifled by. The value is positive if the history was stifled, negative if it wasn't. */ extern int unstifle_history PARAMS((void)); /* Return 1 if the history is stifled, 0 if it is not. */ extern int history_is_stifled PARAMS((void)); /* Information about the history list. */ /* Return a NULL terminated array of HIST_ENTRY which is the current input history. Element 0 of this list is the beginning of time. If there is no history, return NULL. */ extern HIST_ENTRY **history_list PARAMS((void)); /* Returns the number which says what history element we are now looking at. */ extern int where_history PARAMS((void)); /* Return the history entry at the current position, as determined by history_offset. If there is no entry there, return a NULL pointer. */ extern HIST_ENTRY *current_history PARAMS((void)); /* Return the history entry which is logically at OFFSET in the history array. OFFSET is relative to history_base. */ extern HIST_ENTRY *history_get PARAMS((int)); /* Return the timestamp associated with the HIST_ENTRY * passed as an argument */ extern time_t history_get_time PARAMS((HIST_ENTRY *)); /* Return the number of bytes that the primary history entries are using. This just adds up the lengths of the_history->lines. */ extern int history_total_bytes PARAMS((void)); /* Moving around the history list. */ /* Set the position in the history list to POS. */ extern int history_set_pos PARAMS((int)); /* Back up history_offset to the previous history entry, and return a pointer to that entry. If there is no previous entry, return a NULL pointer. */ extern HIST_ENTRY *previous_history PARAMS((void)); /* Move history_offset forward to the next item in the input_history, and return the a pointer to that entry. If there is no next entry, return a NULL pointer. */ extern HIST_ENTRY *next_history PARAMS((void)); /* Searching the history list. */ /* Search the history for STRING, starting at history_offset. If DIRECTION < 0, then the search is through previous entries, else through subsequent. If the string is found, then current_history () is the history entry, and the value of this function is the offset in the line of that history entry that the string was found in. Otherwise, nothing is changed, and a -1 is returned. */ extern int history_search PARAMS((const char *, int)); /* Search the history for STRING, starting at history_offset. The search is anchored: matching lines must begin with string. DIRECTION is as in history_search(). */ extern int history_search_prefix PARAMS((const char *, int)); /* Search for STRING in the history list, starting at POS, an absolute index into the list. DIR, if negative, says to search backwards from POS, else forwards. Returns the absolute index of the history element where STRING was found, or -1 otherwise. */ extern int history_search_pos PARAMS((const char *, int, int)); /* Managing the history file. */ /* Add the contents of FILENAME to the history list, a line at a time. If FILENAME is NULL, then read from ~/.history. Returns 0 if successful, or errno if not. */ extern int read_history PARAMS((const char *)); /* Read a range of lines from FILENAME, adding them to the history list. Start reading at the FROM'th line and end at the TO'th. If FROM is zero, start at the beginning. If TO is less than FROM, read until the end of the file. If FILENAME is NULL, then read from ~/.history. Returns 0 if successful, or errno if not. */ extern int read_history_range PARAMS((const char *, int, int)); /* Write the current history to FILENAME. If FILENAME is NULL, then write the history list to ~/.history. Values returned are as in read_history (). */ extern int write_history PARAMS((const char *)); /* Append NELEMENT entries to FILENAME. The entries appended are from the end of the list minus NELEMENTs up to the end of the list. */ extern int append_history PARAMS((int, const char *)); /* Truncate the history file, leaving only the last NLINES lines. */ extern int history_truncate_file PARAMS((const char *, int)); /* History expansion. */ /* Expand the string STRING, placing the result into OUTPUT, a pointer to a string. Returns: 0) If no expansions took place (or, if the only change in the text was the de-slashifying of the history expansion character) 1) If expansions did take place -1) If there was an error in expansion. 2) If the returned line should just be printed. If an error ocurred in expansion, then OUTPUT contains a descriptive error message. */ extern int history_expand PARAMS((char *, char **)); /* Extract a string segment consisting of the FIRST through LAST arguments present in STRING. Arguments are broken up as in the shell. */ extern char *history_arg_extract PARAMS((int, int, const char *)); /* Return the text of the history event beginning at the current offset into STRING. Pass STRING with *INDEX equal to the history_expansion_char that begins this specification. DELIMITING_QUOTE is a character that is allowed to end the string specification for what to search for in addition to the normal characters `:', ` ', `\t', `\n', and sometimes `?'. */ extern char *get_history_event PARAMS((const char *, int *, int)); /* Return an array of tokens, much as the shell might. The tokens are parsed out of STRING. */ extern char **history_tokenize PARAMS((const char *)); /* Exported history variables. */ extern int history_base; extern int history_length; extern int history_max_entries; extern char history_expansion_char; extern char history_subst_char; extern char *history_word_delimiters; extern char history_comment_char; extern char *history_no_expand_chars; extern char *history_search_delimiter_chars; extern int history_quotes_inhibit_expansion; extern int history_write_timestamps; /* Backwards compatibility */ extern int max_input_history; /* If set, this function is called to decide whether or not a particular history expansion should be treated as a special case for the calling application and not expanded. */ extern rl_linebuf_func_t *history_inhibit_expansion_function; #ifdef __cplusplus } #endif #endif /* !_HISTORY_H_ */ 070701000293b2000081a40000000000000000000000014c52393600000b1d000000b500010002ffffffffffffffff0000002d00000000root/usr/local/include/readline/rltypedefs.h/* rltypedefs.h -- Type declarations for readline functions. */ /* Copyright (C) 2000-2009 Free Software Foundation, Inc. This file is part of the GNU Readline Library (Readline), a library for reading lines of text with interactive input and history editing. Readline is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Readline is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Readline. If not, see . */ #ifndef _RL_TYPEDEFS_H_ #define _RL_TYPEDEFS_H_ #ifdef __cplusplus extern "C" { #endif /* Old-style */ #if !defined (_FUNCTION_DEF) # define _FUNCTION_DEF typedef int Function (); typedef void VFunction (); typedef char *CPFunction (); typedef char **CPPFunction (); #endif /* _FUNCTION_DEF */ /* New style. */ #if !defined (_RL_FUNCTION_TYPEDEF) # define _RL_FUNCTION_TYPEDEF /* Bindable functions */ typedef int rl_command_func_t PARAMS((int, int)); /* Typedefs for the completion system */ typedef char *rl_compentry_func_t PARAMS((const char *, int)); typedef char **rl_completion_func_t PARAMS((const char *, int, int)); typedef char *rl_quote_func_t PARAMS((char *, int, char *)); typedef char *rl_dequote_func_t PARAMS((char *, int)); typedef int rl_compignore_func_t PARAMS((char **)); typedef void rl_compdisp_func_t PARAMS((char **, int, int)); /* Type for input and pre-read hook functions like rl_event_hook */ typedef int rl_hook_func_t PARAMS((void)); /* Input function type */ typedef int rl_getc_func_t PARAMS((FILE *)); /* Generic function that takes a character buffer (which could be the readline line buffer) and an index into it (which could be rl_point) and returns an int. */ typedef int rl_linebuf_func_t PARAMS((char *, int)); /* `Generic' function pointer typedefs */ typedef int rl_intfunc_t PARAMS((int)); #define rl_ivoidfunc_t rl_hook_func_t typedef int rl_icpfunc_t PARAMS((char *)); typedef int rl_icppfunc_t PARAMS((char **)); typedef void rl_voidfunc_t PARAMS((void)); typedef void rl_vintfunc_t PARAMS((int)); typedef void rl_vcpfunc_t PARAMS((char *)); typedef void rl_vcppfunc_t PARAMS((char **)); typedef char *rl_cpvfunc_t PARAMS((void)); typedef char *rl_cpifunc_t PARAMS((int)); typedef char *rl_cpcpfunc_t PARAMS((char *)); typedef char *rl_cpcppfunc_t PARAMS((char **)); #endif /* _RL_FUNCTION_TYPEDEF */ #ifdef __cplusplus } #endif #endif /* _RL_TYPEDEFS_H_ */ 070701000293ba000041ed0000000000000000000000024c52393900000000000000b500010002ffffffffffffffff0000001300000000root/usr/local/lib070701000293c2000081a40000000000000000000000014c5239370001814c000000b500010002ffffffffffffffff0000002300000000root/usr/local/lib/libhistory.so.6ELF4|4 (~~~~ht  "#'(*+-/0123578:;=>@ABCFGHJKLMNPQTVWYZ\]^`bdefghikmnpqrs !$%&),.469<?DEIORSUX[_acjlo }$)0|?F&U`yf*xh H r:{HrZy%P524 OWX^cj0s`U"T p@ D q+qDL _'<ns`zrr< D ` `#)lH}~N> cavw`$](d0P d 0l>"<kL8 Y`%3nu}Pp)0^<`"xto>) p<_x|Y#}<~\#|@plDX= )0z?F0)5Y~ `p{58Peo>~ @a<strncmphistory_set_history_statexfreememsethistory_lengthmbrlenremove_history_rl_adjust_pointget_history_event_xmknod.XAKgoyLngjUMU_2.subst_rhs_lenhistory_total_bytes_DYNAMICatolhistory_quotes_inhibit_expansionsh_get_env_value_rl_find_next_mbcharsh_get_home_dirnext_historyhistory_list.XAKgoyLngjUME92.the_historymbrtowc_edata_endgetuidsh_unset_nodelay_modehistory_arg_extractsnprintfsprintf__ctypefstat64rl_byte_orientedsh_single_quotefprintfhistory_word_delimitershistory_gethistory_no_expand_charsprevious_historysh_set_lines_and_columnshistory_write_timestampsunstifle_historyread_rl_is_mbchar_matched__iobcurrent_historyhistory_expansion_charfcntlclosexreallochistory_expandadd_history.XAKgoyLngjUMU_2.search_stringadd_history_timefree_history_entry.XAKgoyLngjUMU_2.subst_lhs_lenerrnohistory_comment_charread_history_range_rl_get_char_lenexitalloc_history_entryreplace_history_entryhistory_get_timehistory_search_delimiter_chars.XAKgoyLngjUMU_2.search_matchgetpwuidwriteappend_history_PROCEDURE_LINKAGE_TABLE_history_set_poshistory_basereplace_history_datastrlenstrrchrhistory_get_history_stateclear_historyxmallochistory_tokenizegetenvstrncpy_rl_compare_charsmax_input_historysetenv.XAKgoyLngjUMU_2.subst_lhshistory_search_prefixhistory_search_poshistory_inhibit_expansion_function.XAKgoyLngjUMU_2.error_pointerhistory_max_entries.XAKgoyLngjUME92.history_stifledcopy_history_entryhistory_offset_rl_find_prev_mbcharwrite_history.XAKgoyLngjUME92.history_sizehistory_subst_charopen64_rl_char_valuestrchrhistory_is_stifled_etext.XAKgoyLngjUMU_2.subst_rhswhere_historywcwidthstrcpyusing_historyhistory_truncate_filehistory_search_GLOBAL_OFFSET_TABLE_read_historylibhistory.so.6, X`ha d_I :4^HUL.TX hBt4xq|XC 7kW[e#%Z(8H(,@D~\Kn$(5086<9@>DP$\`d<lhpS- bL!P ; f$,O0*4083<R@EDLlPHTq\dVlQptDx/|m"=1 h$h,h4h8h @h(Hh0Lh8pPh@`ThHP`hP@lhX0ph` thh|hphxhhhhhhhhph` hP,h@0h04h <h@hDhHhLhPhTh\h `h(dh0lh8pth@`|hHPhP@hX0h` hhhphxhhhU]ZUejjEU@BU@BU@BU@B E@ @tEPEPEEE]ÐU]ZUdڋE@BE@BE@BE@ BE@t @]ÐU]ZUgdڋ@B]ÐU]uZU$dEEE@U@toU@j@PU@j@PUЉUE@E@tU@uEEE]uÐU ]ZUGcڋ@EE]ÐU ]ZUcڋU;PE|@u EUPEE]ÐU ]ZUbڋ@EE]ÐU]ZUWbڋ@;Bt@u EHBEEEE]ÐU]ZUaڋ@t-@HBHBEEEEE]ÐU]ZUWaڋ@;Bu E-@@BHBEEEE]ÐU]ZU`ڋ(U+PUU;P}E|@u EU@EEEE]U]ZUW`jj ^EEt0jEPUj@P9ЋEPRJEEEEUPE@EU PEEE]ÐU]ZU_ڋEt E@u ECE@EEP0@;t EEj@PEEEE]ÐUT]ZU'_jjnE<jjEPRj?EP^jEPj@PЍEPRE0@UBEEE]ÐU]uZU^ڋ @D@;B@u@@t@j@PEU;P}4MPu@TE@EU;P|̋(@(@B@uB@2@jPЋP@m@RH;uC@2B@PBPЋP@@BPEP|EHBHBUT]uÐU ]ZU\ڋEugHBDEE@tEj@PjEP\j@P@ЋEPRQЋEP]ÐU]ZU[ڋEu EWE@tEj@P[E@tEj@P?E@EjEP(EEE]ÐU]ZUG[ڋEu EE~Ej@PEE@t5Ej@P'j@P ЋE@PRE E@EEEEUPEU@BEEE]ÐU]ZUZڋE|U;P| Ejj kEU@EjE PXj@P<ЋE PRMЋEPEUPEj@Pj@PЋE@PR ЋEPU@M EEE]ÐU]ZUYڋE|*U;P}@t@uE|4U@EEtE@;E u EUPEEU;P}SU@EEu"E@;E uEEEu EUPE@EU;P|Eu#E|U@EEUP]ÐU]uZUDXڋE|*U;P}@t@u EtU@EEEU;P}4MPu@TE@EU;P|̋@HBEEE]uÐU]uZUdWڋE}E@;EE@+EEE;E})U@jP~E@EE;E|׋(UPE@+EEE;E}:MPu@E@EEEE@EE;E|ƋU@UP @DUPXUP]uÐU ]ZU'Vڋ @t @D@ED@؉EE]ÐU ]ZUUڋ @EE]ÐU ]ZUwUEU;P}BU@jPU@E@EU;P|@@]UL]ZUTڋE @EEEP\@;tEE@EEEEEP\@;ucE@E(@RDEE UPjEPEEt E@E EEԉEEE@-uEE@EEE@0EE@9EEE@0|REE@9CMMEE@ʍDЉEE@EEE@0|EE@9~E UPE}(@B+EEjEPEEt E@EEEԉEEE@?uE@EE@EEEEE@EE(d~eh@uWjjEPb EPEPEP^ UUEPR[EԋEԃ~EԋUDEEu]E tzE tqE:thx@t%EtxEPBPu5EE@;Et&EE@ tEtEE@?u$E@EEE@EEE+EEEj@PE؋EtUUEPREPp UUBEtEE@?uE@EE UPE@E@tJjEPj@Pj@PЋ@PRE.@BjEPGEEt E EԋEԉEjEPEЃEE},@BjEPEEt E'E@BEtr@tj@P{U؉P@tj@PMUEPBPr/ЋPjEPE@E[@t@HB-@BjEPE E]ÐU]E @EEE@tdEE@'tUEt%EE@\uEE@tE@EE@EEE@tEE@'uE UP]ÐU ]ZUGNEEEEt{E@toE@'uEE0E@ tE@ t E@ u EEE@EEEE@EEt E@ujEPEEE'UBE@EEEE E@E@'uT'UBE@E\UBE@E'UBE@E'UBE@EE@EE@ tE@ t E@ uD'UBE@EE@UBE@EE@E'UBE@EE@UBE@EE@EEtE@'UBE@EUBEEE]ÐU]ZULڋE+E E|EEEEnEEZEEFEE2EEMw=UDUEEjPsEUU EPREPI UU:BUU BUUEPBPGEEE]#;OcwU<]ZUȸJEE @EjjEPj EPEPEPf EEEE@EE@;Ed~eh@uWUUEPRE̋Ẽ~E̋UDE'EE@\uEE@;EuE@E&EE@\uEE@;EuE@EE@EEE@tEE@;E;E;E EE+Ej@PEEEEE;E}TEE@\uEE@;EuE@EEEUU@BE@EEE̋E@EE;E|UUBEt EUPEEEE@tE@EE UPEEE]ÐU]ZU츗Hڋ@BEjEPEEEEU;P@E@&uaUP;U|%U@PEEPEPEUU􋃼@PR!UPUz@E@\u@E@&uE@EE;E| EEEEPEP E@EUU@BE@EE@EU;PUUBj@PUPUP]ÐUtplZUFjjEP EjEPEԋE EEE@t$EE@PRqu KFEE@E\@EEEEjEPEPW EEE@#uEEEEEd~Sh@uEjEPEP EEE@EEtE'tE"uEE6Et+EE@'tEE@"u EE@EEPEPEPx E܋E܃u>jjjEPE PEPЋEPjEPEG EEEPEPEP- EċU;u>jjjEPEPEPЋEPjEPUE Eăt0jEPj@PЋEPRE.jEPj@PeЋEPRvEEE؋EătjEPEEEEEEEEEEE@:>EE@EE˃gt E˃auEE@EEE@E&E˃GuEE@EEE@EgUEjjjPBPEP3ЋEPjEPjEPEqEq\ExPE@EDj/EPIEЋEЃtGE@EjEP j@PЋEPREjEP]ẺEj/EPEЋEЃt UЈBj.EPEЋEЃt UЈBj.EPEЋEЃt@jEPPj@P4ЋEPREEjEPẺE&E˃sujEPV;}{d~Yh@uKUEPBPEPk UUEPBPe~ E EE@EEE@E EEjPjEPEPEP?E̋Ẽt5@tj@PỦP@@tt@@tbj@Pj@PЋ@PRЋPj@PЋP@@@tj@PjPjEPEPEPЋPj&@Pt EE@uMjjjEPEPEPbЋEPjEP$jEPEjEPyE@;E~MjjjEPEPEPЋEPjEPjEPE4EEEEUP;U;EE;E~zEE@tREE@ tEE@ u4E@EEE@tEE@ tۋEE@ t̋EEEPEPE@uLEEP@@;aMM@PBPQA 5@+BU‰EEj@PEEPEPEP MM@PBPQ }}@xMMpUPE+P1PxP: UUBjEPEEEEt.@UDEjEPEE@E)EtEEjEPEE@EUP;UE~ EEujjjEPEPEP!ЋEPjEPjEPE_E˃p}+e}&ehJiH\a UD܋UEEEE@:EHEEtyEqujEPEJExujEP E-jEPj@PeЋEPRvEjEPEEjEPAEE;E|EPEPEԋEPEP jEPEUPEUԉPEEEtplmeeeU|ZUa:ڋE u El \@u=jEPRj@P6ЋEPRGЋE PE EjEPEĸUĈBEEEjEPEEP@;unEjPE̋\@EUEBEÜBU̸:BU̸sBŰEPBPEEBjjEP EEEEԉEEE@d~@h@u2UUEPREE~EUDE;EE@E䋃0@EEP0@;ulEt8EE@t%EE@PBP;u1.EE@tE@EEE@uEEP\@;utEt,Et EPBPu  D@t"EPEPBЃt&Eԃt$EE@\uE"u E@E@tEE@"uE@EEԃul@t^EE@'uOE~EE@$u E EEEЋE@EEPEPEP ?@t/EE@\u E't\@U;uE@EE@EEE@[EEP\@;tMjEPjEPPj@P4ЋEPREЋE PEEEEEEԋEԉEE;EEE@EEtVEEȋUH;|Eȃ@EȋEPEPEċUUEBE@EUUB:dh@EEjjEP EE}ZUEDjjEP EPEPuE@EEE@EE@EE|jEPvnjEPEEEEE;E|.E;E|EEȋE;E}EPEPEċEE+UEPR}\@U;u E0@U;uEEȋUH;|Eȃ@EȋEPEPgEċEEUU@BE@EUUBE@EEȋUH;|Eȃ@EȋEPEP EċUUEBE@EUUB,E@EԋEȋUH;|Eȃ@EȋEPEPEċUUEBE@EUUBEԃ@ E~EE@$u E EEEЋEEE@EEPEPEP E+EEjEPEUUEPREPi UUBjEPmEEEEE;E|.E;E|EEȋE;E}EPEPEċEE+UEPR#jEPOEȋUH;|Eȃ@EȋEPEP?EċEEUU@BE@EUUBXEt@EE@t)EE@PBPKuE+Ej@PEEEEPEPOjEP1EEEEE;E|.E;E|EEȋE;E}EPEPREċEE+UEPRjEPIEEQEȋUH;|Eȃ@EȋEPEPEċEEUU@BE@EUUBEE@EEtLEtEPBPu)@trEPEPBЃtWEȋUH;|Eȃ@EȋEPEPFEċEEUU@BE@EUUB_jEPEPEPEPEPmEE};E UPjEPE;EtjEPEMEE@EE@thjEP"EEEEE;E|.E;E|EEȋE;E}EPEPCEċEE+UEPRjEP:EE؋E܉ELE"}'Y'}"E';\-E@EE;EJE UĉPE;EtjEPE؃t EEEE|ÐU$]ZUว-ڋE@EEEEEEEE@:uE@EE@EEE@%EU@B@t;j@PJj@P.Ћ@PR9E3jPj@PЋPREEEEE@*umEU@BE Pj$j EEtEE2jPj@PzЋPREEEEE@$u%EU@BE Pj$j$ EbEE@-u EEE@^uEE@EEE@0EE@9rEtjEEE@0|REE@9CMMEE@ʍDЉEE@EEE@0|EE@9~ EEE@^tEE@*u6EE@^u E E$EEE@EEE@-t EEE@EEE@0|zEE@9kEEE@0|REE@9CMMEE@ʍDЉEE@EEE@0|EE@9~(EE@$uE@EE$EEUPE;E}E$tE}E PEPEPG EEt EE EEEE]ÐU$]ZUง)jEPEEuEEUEtE@EUEuE } EE HE E} EEHEE $uEHE E$uEHEE @E E;E} E ;EE|E |E;E ~ EEEEE;E }-UEjP貿UDEE@EE;E |ӋEj@PzEUBEEEE;E }pMMUEPQ^UEjP:U‰EE@;E }#UU BE@EUUBE@EE;E |EE;E}#UEjPTE@EE;E|jEP7EEE]ÐU]ZUW'ڋE EEEE@t#EE@PRuE@EEE'EE@t% EE@PRʾu93EE@EEE@U;u^E$tVEtcEE@uEE@&t=E(uEE@>t&EE@UU/BUU(PBPEEE]ÐU ]ZUjjEPJ EE]ÐU0Z4aDž<EEEjEPTEhjEP E܋E܃|DPEPصux@@;|u;xu@@;@s88@EEtjEPjEPiEEuE@+E EU;PX@tvUE@teUE@@tPMM܋UE@PQUEj@PU‰E܋UUܸ BE@E܋MM܋UE@PQêUEj@P蜪U‰E܋UUܸ BE@E܋E@EU;PEPEPEPb } 8@EjEP質jEPEtjEP菪EEE]ÐU ]ZUjEPE P EE]ÐU ]ZUwڋj@PEP: EE]U(]ZUܸ'ڋ@EE EEt E@u Ex@tU;P|Eu EHEtU;P| @HEԪEjEP覨EEtE|EuU;PuEUE@EjEPREE;E~ Et EHE E@E뇐EupEu-EPE@;u2EPEPEP uUPE9Et EHE E@E EtxE+EEE|bEu2EPEE@;u3UUEPREP菨 uUPEEEHEE}~E+E@EEE;E}bEu2EPEE@;u3UUEPREP uUPEE/E@EE;E|Et EHEE@EE]ÐU ]ZUGjE PEP EE]ÐU ]ZUjE PEP EE]ÐU]ZUEjEPE PEPujEPEϧEjEPѧEEE]U]ZU7jEPLjP*EEE'UBE@EEEEE@EEtoEUBE@EE'u6\UBE@E'UBE@E'UBE@EE@EEtE@EEu'UBE@EUBEEE]ÐU ]ZU jj EhEPREPt pjEPRo jEPqjj գEhE PREP+ xjEPR& jEP(]ÐU ]ZUW jEPEE]ÐU]ZU E軥jPåEEt E@EEEE]ÐU]ZU jjEPz EE} EVEE EEEE#Et&EЋU#ЉUEPjEP E EE]U@]ĉuZUȸ EjjEP谢 E }E EE E+EPE PEP臢 U ‰E؋E ;E}EHEEEEjP裡EEuUUjjEPEPREP4EEtEu"E@E؋EHEjjEP IEuIEEE؋Et#jEPuEHE EHEE8Euu؋EEjPɠjjEPRVEPqEEEtEu EEEЃjEP.EEE؋uu؋EEjP5jjEPRVEPݢEEu@EtEu EEẼujEP袢tE؉EE]ċuÐU<]ZUȸgjjEP jEPlEԋE }EE;E } EԉEEE؉E܋E܉EE;E MM؋U+UjjEPRQEP辡EЋEЃtEЃu EjjEPt E؉E7EЃuAEtjEPytE؉EE؉EEEЉE؋E;E `EEE]ÐU]ZU'jEP<ЋE PREP EEu#E tjjE P覞 EJEu$E tjjE P{ EEu E EEE]U]ZUgڋUU EPR7EE~>UUEPREE~ E;EuEE PEE@;t EPEE;E}8E EU EEU;t EE@EE;E|EE]ÐU]ZU츇EEjEP莜EE } EE;E } EE;E }uMMU+UEPRQ! EEtEu#E@EEtjjEP诜 Eu E@E EEEE;E |E+E EE]ÐU ]E+E ;E} EMEE;E}4E EUEE@;t EE@EE;E|EE]ÐU0]ZUԸڋh@tEE @EjEPE؋E؋U H;|EE @EcjjEPk MM U+U jjEPRQEPiEEtEtEuEE @EEEE]ÐU ]ZU'jjEPEPE PEPEE]ÐU ]ZUڋEPE PEP> EE]U]ZUڋEPRA P荜 jj葜]ÐU]ZUGjEPEEujPhEEE]ÐU]ZUڋEtE PEPEjE P蝚EEEEujPEEE]ÐU]ZUgڋEtjEP]X%luevent not foundbad word specifiersubstitution failedunrecognized history modifierno previous substitutionunknown expansion error:$*%^() <>;&|$"'`\`"$ = ;&()|<>HOME..history%dLINESCOLUMNS%s: out of virtual memory xmallocxrealloc.>N^}n~}}}}~8~P~.>N^nX~\~~`~d~h~l~t~x~~~~.>N^n~~~~~.~>~ h oYp`oo~!^~~h `pP} } ~  4 XX)} /X84 C} RXcp^00"22} } } }  ~ 8~ 4*P68X P~ #@Q>WTX~ [\~ b`~ id~ ph~ wl~ ~t~ x~ @[o[rp^c/`8< C} RX_F `~ ~ ~  hJ/X8L C} RXl/X8P C} RX+3~ 8~ =~ /X84 C} RXBKsiv9/X8T C} RXP|O~ ~ ~  /X84 C} RX}| &`y**<h[o x}H r:{HrZyP54 X&0s<`U"PYaiqT p@ D qqL '<*/`zrEKr[< rxD ` `$#l~}~> a!w27K`$(da0rP d0l>k8 `%3"P<p)KR0^<cj`"{xto> pxJ|Y}<4H\i#||@plDX= z0)5 ~  p1 5? G N 8\ Per o> ~ @a<libhistory.so.6history.chist_inittime.L247Bbss.bssDdata.dataDrodata.rodataDpicdata.picdatahistexpand.chistory_find_wordhist_string_extract_single_quotedquote_breakshist_error.L476.L481.L486.L491.L496.L501get_subst_patternpostproc_subst_rhshistory_expand_internal.L726get_history_word_specifierhistory_tokenize_word.L2011.L2012.L2028.L2029.L2340.L2354.L2437.L2472history_substringhistory_tokenize_internalfreewordshistfile.c_xmknodhistory_filename.L41.L49.L62history_do_writehistsearch.chistory_search_internalshell.c.L64.L66.L71mbutil.c_rl_find_next_mbchar_internal_rl_find_prev_mbchar_internalxmalloc.cmemory_error_and_abort.L19.L37.L60_END__START_strncmphistory_set_history_statexfreememsethistory_lengthmbrlenremove_history_rl_adjust_pointget_history_event.XAKgoyLngjUMU_2.subst_rhs_lenhistory_total_bytes_DYNAMICatolhistory_quotes_inhibit_expansionsh_get_env_value_rl_find_next_mbcharsh_get_home_dirnext_historyhistory_list.XAKgoyLngjUME92.the_historymbrtowc_edata_endgetuidsh_unset_nodelay_modehistory_arg_extractsnprintfsprintf__ctypefstat64rl_byte_orientedsh_single_quotefprintfhistory_word_delimitershistory_gethistory_no_expand_charsprevious_historysh_set_lines_and_columnshistory_write_timestampsunstifle_historyread_rl_is_mbchar_matched__iobcurrent_historyhistory_expansion_charfcntlclosexreallochistory_expandadd_history.XAKgoyLngjUMU_2.search_stringfree_history_entry.XAKgoyLngjUMU_2.subst_lhs_lenerrnohistory_comment_charread_history_range_rl_get_char_lenexitalloc_history_entryreplace_history_entryhistory_get_timehistory_search_delimiter_chars.XAKgoyLngjUMU_2.search_matchgetpwuidappend_history_PROCEDURE_LINKAGE_TABLE_history_set_poshistory_basereplace_history_datastrlenstrrchrhistory_get_history_stateclear_historyxmallochistory_tokenizegetenvadd_history_timestrncpy_rl_compare_charsmax_input_historysetenv.XAKgoyLngjUMU_2.subst_lhshistory_search_prefixhistory_search_poshistory_inhibit_expansion_function.XAKgoyLngjUMU_2.error_pointerhistory_max_entries.XAKgoyLngjUME92.history_stifledcopy_history_entryhistory_offset_rl_find_prev_mbcharwrite_history.XAKgoyLngjUME92.history_sizehistory_subst_charopen64_rl_char_valuestrchrhistory_is_stifled_etext.XAKgoyLngjUMU_2.subst_rhswhere_historywcwidthstrcpyusing_historyhistory_truncate_filehistory_search_GLOBAL_OFFSET_TABLE_read_history@(#)stdio.h 1.84 04/09/28 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMI@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMI@(#)unistd.h 1.76 06/03/10 SMI@(#)types.h 1.86 07/09/20 SMI@(#)machtypes.h 1.11 04/09/28 SMI@(#)machtypes.h 1.2 04/09/28 SMI@(#)int_types.h 1.10 04/09/28 SMI@(#)select.h 1.19 04/01/28 SMI@(#)time_impl.h 1.11 05/05/19 SMI@(#)time.h 2.77 09/06/02 SMI@(#)time.h 1.45 08/01/09 SMI@(#)time_iso.h 1.4 04/09/07 SMI@(#)unistd.h 1.43 06/03/10 SMI@(#)string.h 1.27 07/01/14 SMI@(#)string_iso.h 1.5 04/06/18 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03@(#)stdio.h 1.84 04/09/28 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMI@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMI@(#)types.h 1.86 07/09/20 SMI@(#)machtypes.h 1.11 04/09/28 SMI@(#)machtypes.h 1.2 04/09/28 SMI@(#)int_types.h 1.10 04/09/28 SMI@(#)select.h 1.19 04/01/28 SMI@(#)time_impl.h 1.11 05/05/19 SMI@(#)time.h 2.77 09/06/02 SMI@(#)time.h 1.45 08/01/09 SMI@(#)time_iso.h 1.4 04/09/07 SMI@(#)unistd.h 1.76 06/03/10 SMI@(#)unistd.h 1.43 06/03/10 SMI@(#)wchar.h 1.37 03/12/04 SMI@(#)wchar_iso.h 1.8 04/09/28 SMI@(#)wchar_impl.h 1.3 99/07/26 SMI@(#)ctype.h 1.35 04/09/28 SMI@(#)ctype_iso.h 1.3 04/09/28 SMI@(#)ctype_c99.h 1.2 04/09/28 SMI@(#)stddef.h 1.18 04/09/28 SMI@(#)stddef_iso.h 1.2 03/03/06 SMI@(#)wchar_c99.h 1.3 04/03/29 SMI@(#)wctype.h 1.19 03/12/04 SMI@(#)wctype_iso.h 1.2 03/12/04 SMI@(#)wctype_c99.h 1.1 03/12/04 SMI@(#)limits.h 1.59 04/08/24 SMI@(#)limits_iso.h 1.2 03/12/04 SMI@(#)int_limits.h 1.9 04/09/28 SMI@(#)string.h 1.27 07/01/14 SMI@(#)string_iso.h 1.5 04/06/18 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03@(#)stdio.h 1.84 04/09/28 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMI@(#)types.h 1.86 07/09/20 SMI@(#)machtypes.h 1.11 04/09/28 SMI@(#)machtypes.h 1.2 04/09/28 SMI@(#)int_types.h 1.10 04/09/28 SMI@(#)select.h 1.19 04/01/28 SMI@(#)time_impl.h 1.11 05/05/19 SMI@(#)time.h 2.77 09/06/02 SMI@(#)time.h 1.45 08/01/09 SMI@(#)time_iso.h 1.4 04/09/07 SMI@(#)file.h 1.70 07/03/05 SMI@(#)t_lock.h 1.45 98/02/01 SMI@(#)machlock.h 1.25 04/07/19 SMI@(#)param.h 1.82 06/01/30 SMI@(#)unistd.h 1.43 06/03/10 SMI@(#)mutex.h 1.21 07/04/04 SMI@(#)rwlock.h 1.9 98/02/18 SMI@(#)semaphore.h 1.5 98/02/01 SMI@(#)condvar.h 1.14 04/10/21 SMI@(#)stat.h 1.11 04/09/28 SMI@(#)stat_impl.h 1.4 03/12/04 SMI@(#)fcntl.h 1.17 06/03/10 SMI@(#)fcntl.h 1.52 07/03/05 SMI@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMI@(#)unistd.h 1.76 06/03/10 SMI@(#)ctype.h 1.35 04/09/28 SMI@(#)ctype_iso.h 1.3 04/09/28 SMI@(#)ctype_c99.h 1.2 04/09/28 SMI@(#)errno.h 1.17 03/01/03 SMI@(#)errno.h 1.20 00/01/12 SMI@(#)string.h 1.27 07/01/14 SMI@(#)string_iso.h 1.5 04/06/18 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03@(#)stdio.h 1.84 04/09/28 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMI@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMI@(#)unistd.h 1.76 06/03/10 SMI@(#)types.h 1.86 07/09/20 SMI@(#)machtypes.h 1.11 04/09/28 SMI@(#)machtypes.h 1.2 04/09/28 SMI@(#)int_types.h 1.10 04/09/28 SMI@(#)select.h 1.19 04/01/28 SMI@(#)time_impl.h 1.11 05/05/19 SMI@(#)time.h 2.77 09/06/02 SMI@(#)time.h 1.45 08/01/09 SMI@(#)time_iso.h 1.4 04/09/07 SMI@(#)unistd.h 1.43 06/03/10 SMI@(#)string.h 1.27 07/01/14 SMI@(#)string_iso.h 1.5 04/06/18 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03@(#)types.h 1.86 07/09/20 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)machtypes.h 1.11 04/09/28 SMI@(#)machtypes.h 1.2 04/09/28 SMI@(#)int_types.h 1.10 04/09/28 SMI@(#)select.h 1.19 04/01/28 SMI@(#)time_impl.h 1.11 05/05/19 SMI@(#)time.h 2.77 09/06/02 SMI@(#)time.h 1.45 08/01/09 SMI@(#)time_iso.h 1.4 04/09/07 SMI@(#)unistd.h 1.76 06/03/10 SMI@(#)unistd.h 1.43 06/03/10 SMI@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMI@(#)string.h 1.27 07/01/14 SMI@(#)string_iso.h 1.5 04/06/18 SMI@(#)limits.h 1.59 04/08/24 SMI@(#)limits_iso.h 1.2 03/12/04 SMI@(#)int_limits.h 1.9 04/09/28 SMI@(#)fcntl.h 1.17 06/03/10 SMI@(#)fcntl.h 1.52 07/03/05 SMI@(#)pwd.h 1.22 04/09/28 SMI@(#)stdio.h 1.84 04/09/28 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03@(#)types.h 1.86 07/09/20 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)machtypes.h 1.11 04/09/28 SMI@(#)machtypes.h 1.2 04/09/28 SMI@(#)int_types.h 1.10 04/09/28 SMI@(#)select.h 1.19 04/01/28 SMI@(#)time_impl.h 1.11 05/05/19 SMI@(#)time.h 2.77 09/06/02 SMI@(#)time.h 1.45 08/01/09 SMI@(#)time_iso.h 1.4 04/09/07 SMI@(#)fcntl.h 1.17 06/03/10 SMI@(#)fcntl.h 1.52 07/03/05 SMI@(#)setjmp.h 1.38 04/09/28 SMI@(#)setjmp_iso.h 1.2 04/09/28 SMI@(#)unistd.h 1.76 06/03/10 SMI@(#)unistd.h 1.43 06/03/10 SMI@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMI@(#)stdio.h 1.84 04/09/28 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMI@(#)ctype.h 1.35 04/09/28 SMI@(#)ctype_iso.h 1.3 04/09/28 SMI@(#)ctype_c99.h 1.2 04/09/28 SMI@(#)string.h 1.27 07/01/14 SMI@(#)string_iso.h 1.5 04/06/18 SMI@(#)stdarg.h 1.47 04/09/28 SMI@(#)stdarg_iso.h 1.4 04/11/19 SMI@(#)va_impl.h 1.1 04/11/19 SMI@(#)stdarg_c99.h 1.2 04/09/28 SMI@(#)wchar.h 1.37 03/12/04 SMI@(#)wchar_iso.h 1.8 04/09/28 SMI@(#)wchar_impl.h 1.3 99/07/26 SMI@(#)stddef.h 1.18 04/09/28 SMI@(#)stddef_iso.h 1.2 03/03/06 SMI@(#)wchar_c99.h 1.3 04/03/29 SMI@(#)wctype.h 1.19 03/12/04 SMI@(#)wctype_iso.h 1.2 03/12/04 SMI@(#)wctype_c99.h 1.1 03/12/04 SMI@(#)limits.h 1.59 04/08/24 SMI@(#)limits_iso.h 1.2 03/12/04 SMI@(#)int_limits.h 1.9 04/09/28 SMI@(#)strings.h 1.3 96/03/12 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03@(#)stdio.h 1.84 04/09/28 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMI@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03../history.c /var/tmp/readline-6.1/shlib /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I.. -I.. -DRL_LIBRARY_VERSION='"6.1"' -g -K pic -o history.o ../history.c -W0,-xp.XAKgoyLngjUME92.Xa;g;p;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLngjUME92.;backend;raw;cd;DBG_GEN 5.2.7char2void?Ghistdata_t_hist_entry line:#timestamp:#dataL#]the_history?4inthistory_baseU8 history_get_history_stateZPU-state[_hist_stateentries#offset#length#size# flags#-HISTORY_STATE history_set_history_statem}U statek using_historyzU history_total_bytesUWiresult where_historyU history_set_posKU pos history_listPU current_historyU ]HIST_ENTRY previous_historyU  next_history U  history_getU  offsetlocal_indexalloc_history_entryא(U  :string :ts temp  history_get_time0Ume histts:tmlongetime_thist_inittimeW U:tmtsret:2@e?add_history ` \"Ubgstringtemp   " H! H!i2badd_history_time>`""Ustring<hs ?2free_history_entryM##UL histKxLNcopy_history_entry\#Z$U w histZret ]ts:^replace_history_entryu`$V%U whichq lineq Ldataqtemp vold_value v2replace_history_data`%&Uwhichold newentry ilastLremove_history&~'U  whichreturn_value istifle_history'(Uq maxijunstifle_history($)Uhistory_is_stifled0)e)Uclear_historyp)*U ihistory_sizeFXhistory_stifledC\unsignedxreallocG^ G1 xmallocGy 1 history_offsetO2 1 size_tstrlen   2 strcpy: : max_input_historyKhistory_max_entriesJhistory_lengthR|long longlockf64 S 2 truncate64  S S off64_ttell64  ssize_t? pwrite64    1 S ?pread64 L   1 S lseek64 q  ftruncate64 S 2 truncate64  S S off_ttell64  ? pwrite64    1 S pread64 G   1 S lseek64 l  lockf64 S ftruncate64 S mtimem  mkstemp64 :mkstemp64 :free G2 atoleB%unsigned charB__FILE4_cnt#_ptrS#_baseS#_flagB# _fileB# __orientation1 # __ionolock1 #  __seekable1 #  __extendedfd1 #  __xf_nocheck1 #  __filler1 #  Xftello64 U4Xfseeko64US S fsetpos64US fgetpos64UXFILEtmpfile6422freopen641212;fopen64e6@Xftello64 efseeko64US 2snprintf:1  S fsetpos64 Ufgetpos64+U2+25freopen64f0:2f2pfopen64kutmpfile64"K../histexpand.c /var/tmp/readline-6.1/shlib /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I.. -I.. -DRL_LIBRARY_VERSION='"6.1"' -g -K pic -o histexpand.o ../histexpand.c -W0,-xp.XAKgoyLngjUMU_2.Xa;g;p;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLngjUMU_2.;backend;raw;cd;DBG_GEN 5.2.7charhistory_expansion_char;M<history_subst_char;Q=history_comment_char;W>;history_no_expand_chars[Dinthistory_quotes_inhibit_expansion_Hhistory_word_delimitersb@get_history_event*/Ustringcaller_index delimiting_quoteic;entryMwhichsignlocal_indexsubstring_okaysearch_functemp,a-9,@-9,@-9,,Y,,Y,,vps ;void histdata_t _hist_entry < line# timestamp# data# HIST_ENTRY< ;R rW\_hist_search_func_trlong __mbstate_t __filler# mbstate_thist_string_extract_single_quoted:00U\string7sindex7 flags7i;quote_breaksI02UsGpJrJretKlenLhist_errort24Usqstartq currentqerrtypeqtempuemsgvllwelenw ;get_subst_pattern 4J6Ustriptr delimiteris_rhslenptrsiijkspsu4f54=54=54545vpostproc_subst_rhsP67UNnewijnew_sizehistory_expand_internal8XDU string start  end_index_ptr  ret_string current_line instarting_indexsubstitute_globallysubst_bywordswant_quotesprint_onlyeventtempresulttstrtc;word_specresult_lenpsa898888fake_s #fake_i$89899999quoted_search_delimiter199'9g9'9g9ch:l:;TC;AC;ACx;8C;B;B=Bnew_eventdelimiterfailedsil_tempwswe@tB9@XB9@XB@XB#AXB#AXBlen&[CCcCCcCCx_B; history_expandD2QU$hstring output jirlpasscccmodifiedeindexonly_printingdquoteflagstringresult_lenresultmb$pstempIE IE IE IEHFHFHFTF"FTF"FTFv IP1IP1IPtchar4IJIJIJk@c@CJJVJJVJJVJJVJJVJJslOJPKPKPL|MLwML&ML&MquotepslenpLMLMLMslz|MNMhNMhNMTNMTNMTNslOPOPOPOqPOqPOqPOcPOcPOcPOcPOcPsl;5get_history_word_specifier@Q_UUspecfrom caller_indexifirstlastexpecting_word_specresulthistory_arg_extractM`UWUfirstJlastJ stringJiNlenNresultOsizePoffsetPlist Q ;history_tokenize_wordW5[Ustringind idelimiterXtYDXtYDXtYpeek ;history_substring@[[UGLstringstart endlenresult ;Ghistory_tokenize_internal["^U (-stringwind indpresult istartresult_indexsize ;(history_tokenize,0^l^U pustring* ;pfreewords5p^^U words2start2 i6history_find_wordC^_Uhline@ind@ words DsDiEwindEsearch_matchudsearch_stringr`subst_rhs_len?hsubst_lhs_len>lsubst_rhs=psubst_lhs<terror_pointer;:xunsignedxreallocP#xmallock#sh_single_quote ;strrchr ;strchr ;strncpy# ; ;strncmpI# ;I #size_tstrlenSzN ;zstrcpymemset#  rl_linebuf_func_thistory_inhibit_expansion_functionf ;,history_search_prefixd1 ;dhistory_searchihistory_getMcurrent_historyM_rl_adjust_point_rl_get_char_len)_rl_find_prev_mbchar[ ` tm$ tm_sec# tm_min# tm_hour# tm_mday# tm_mon# tm_year# tm_wday# tm_yday# tm_isdst# j__wcsftime_xpg5S?[Sewchar_t? ?OJ__wcstok_xpg5JJTY wint_t__putwchar_xpg5unsigned char __FILE _cnt# _ptr# _base# _flag# _file# __orientation## __ionolock##  __seekable##  __extendedfd##  __xf_nocheck##  __filler##  __putwc_xpg5__getwchar_xpg5__getwc_xpg5__ungetwc_xpg55 5__fputws_xpg5j:?__fputwc_xpg5__fgetws_xpg5JJ__fgetwc_xpg5long longlockf64 ;truncate64@ off64_t tell64@h ssize_t vpwrite64hh{#pread64hh#lseek64@@ftruncate64# ;#truncate64P( off_t tell64Pv vpwrite64hh{#pread64hh#lseek64PPlockf64 ftruncate64C mkstemp64` mkstemp64} free ftello64@  fseeko64 ?  fsetpos64!? fgetpos64+!?! FILE+!tmpfile646! ;N! ;X!freopen646!!S!]!6! ;! ;!fopen646!!!!ftello64P!!fseeko64"? "fsetpos640"? "fgetpos64R"?! ;R" ;\"freopen646!"W"a"6! ;" ;"fopen646!"""tmpfile646!I%../histfile.c /var/tmp/readline-6.1/shlib /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I.. -I.. -DRL_LIBRARY_VERSION='"6.1"' -g -K pic -o histfile.o ../histfile.c -W0,-xp.XAKgoyLngjUMk\$2.Xa;g;p;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLngjUMk$2.;backend;raw;cd;DBG_GEN 5.2.7mknod_`U_path_mode _devintcharunsigned longmode_tdev_thistory_write_timestampsgL history_filenames `2aUqq{filenameq return_valqt homeu home_lenvv read_history@a|aUfilename read_history_rangeaPeU[`filenamefrom to line_startq line_endq pq inputq bufferq bufendq last_tsq file current_line chars_read finfo file_size overflow_errno[long e ~ eunsigned long long~ino_tnlink_teuid_tegid_t e elong longoff_tetime_ttimespec-tv_sec#tv_nsece#timestruc_teblksize_tblkcnt_t o e e  estatst_dev#st_pad1m#st_ino#st_mode#st_nlink#st_uid# st_gid#$st_rdev#(st_pad2#,st_size#4st_atim-#<st_mtim-#Dst_ctim-#Lst_blksize?#Tst_blocksO#Xst_fstype^#`st_pad4o#punsignedsize_thistory_truncate_file5PehUfname2lines2 bufferq6filenameq6bpq6bp1q6file7chars_read7rv7finfo8file_size9history_do_writeh*lU  filenamenelements overwriteioutputqfilemodervikthe_history jbuffer_sizebufferq void$ , histdata_t_hist_entry  lineq#timestampq#data1 #B  append_history0lnlU nelements filename  write_history!pllU& + filename& xmalloc, K K sh_get_env_valueqy P y strlen ~  strcpyq q history_list  add_history_time   add_history+  lockf64P P truncate64} U off64_ttell64}  ssize_t$  pwrite64    $ pread64    lseek64} < } ftruncate64` $ ` write   e  truncate64  tell64 read    $  pwrite64 +   pread64 U   lseek64z lockf64 ftruncate64 close mkstemp64 qmkstemp64qmalloc, 0freeD, DNattropen64ISopenat64creat64open64attropen64C Copenat64tHtcreat64yopen64_xmknodlstat640 0stat64Y5 fstat64y yfstatat64~  e  e~ino64_t e eblkcnt64_t   e e  estat64?st_dev#st_pad1#st_ino#st_mode#st_nlink#st_uid# st_gid#$st_rdev#(st_pad2#,st_size} #4st_atim-#<st_mtim-#Dst_ctim-#Lst_blksize?#Tst_blocks#Xst_fstype#`st_pad4 #pfstatat64p?plstat64u?stat64?fstat64?unsigned char__FILE _cnt#_ptr#_base#_flag# _file# __orientation# __ionolock#  __seekable#  __extendedfd#  __xf_nocheck#  __filler#  ftello64} fseeko64!!fsetpos64M&fgetpos64tMFILEttmpfile64freopen64fopen64ftello64'fseeko64MMfsetpos64yRfgetpos64Mfreopen64fopen64 tmpfile64fstat64.7fstatopen64Copen ../histsearch.c /var/tmp/readline-6.1/shlib /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I.. -I.. -DRL_LIBRARY_VERSION='"6.1"' -g -K pic -o histsearch.o ../histsearch.c -W0,-xp.XAKgoyLngjUM0A3.Xa;g;p;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLngjUM0A3.;backend;raw;cd;DBG_GEN 5.2.7v%char;history_search_delimiter_charsC/Phistory_search_internalAloUstring>direction> anchored>iBreverseBlineCCline_indexDstring_lenEthe_history/Fmomomo|nwonwonwolimitint ;void histdata_t _hist_entry * lineC# timestampC# data#* history_searchooUstringdirection ; history_search_prefixopUstringdirection ; history_search_pos ppUkpstringdir posretold ;k ;u ;unsignedstrncmpz ; size_tstrlenhistory_set_poswhere_historyhistory_list/long longlockf64m; ;mtruncate64r; ;off64_ttell64 ssize_t pwrite64;pread644;lseek64Yftruncate64}; ;}truncate64; ;off_ttell64 pwrite64;pread64/;lseek64Tlockf64y;ftruncate64;mkstemp64Cmkstemp64Cunsigned char __FILE _cnt# _ptr# _base# _flag# _file# __orientation# __ionolock#  __seekable#  __extendedfd#  __xf_nocheck#  __filler#  ftello64fseeko64 ; ; fsetpos64A  ;fgetpos64h A FILEh tmpfile64s  ; ; freopen64s    s ; ; fopen64s    ftello64  fseeko64A ; ;A fsetpos64m F fgetpos64 A ; ; freopen64s    s ; ; fopen64s    tmpfile64s  ../shell.c /var/tmp/readline-6.1/shlib /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I.. -I.. -DRL_LIBRARY_VERSION='"6.1"' -g -K pic -o shell.o ../shell.c -W0,-xp.XAKgoyLngjUMEC3.Xa;g;p;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLngjUMEC3.;backend;raw;cd;DBG_GEN 5.2.7(sh_single_quote_pqUstring]c`resultarasacharintsh_set_lines_and_columns~qrU#lines|cols| bsh_get_env_valuerrU`evarname`sh_get_home_dirr*sUhome_direntrylong uid_t gid_t passwd$ pw_name# pw_passwd# pw_uid# pw_gid# pw_age# pw_comment# pw_gecos# pw_dir# pw_shell# sh_unset_nodelay_mode0ssUfdflagsbflagsunsignedvoid xmalloc$  getpwuid@ unsigned char@ __FILE2 _cnt# _ptrQ# _baseQ# _flag@# _file@# __orientation# __ionolock#  __seekable#  __extendedfd#  __xf_nocheck#  __filler#  Vlong long 7off64_t ftello64Dn 2V fseeko64 n 7 7 fsetpos64 n 7 fgetpos64 n  VFILEtmpfile64 freopen64J   JT fopen64~ O YV 7off_t ftello64 ~ fseeko64 n 7 7 fsetpos64 n  fgetpos64 n  sprintfJ  $JT freopen64 O Y  fopen64  tmpfile64 attropen64      openat64:   :unsigned long creat64u ? Du open64 z  attropen64    openat64    creat647  D7 open64a <  fcntl   size_t strlen    setenv  mkstemp64  mkstemp64# # getenvG ( free[  lockf64   7 truncate64 7 tell64D  ssize_t pwrite64   7 pread64 9  7 lseek64D^  D  ftruncate64  7 truncate64 7 tell64  pwrite64   7 pread64 (  7 lseek64M    lockf64r   7getuidftruncate64  7.../mbutil.c /var/tmp/readline-6.1/shlib /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I.. -I.. -DRL_LIBRARY_VERSION='"6.1"' -g -K pic -o mbutil.o ../mbutil.c -W0,-xp.XAKgoyLngjUMUD3.Xa;g;p;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLngjUMUD3.;backend;raw;cd;DBG_GEN 5.2.75*intrl_byte_oriented/>T_rl_find_next_mbchar_internalOssvU/3;stringL/seedL /countL/find_non_zeroLtmpLPlenLPpsQpoint/RwcSchar3unsigned@size_tlong /r Y __mbstate_t __fillera#rmbstate_twchar_t_rl_find_prev_mbchar_internalvwU/;string/seed /find_non_zeropsprev/non_zero_prev/point/length/tmpLwc _rl_get_char_lenwxU/ ;src ps tmpL _rl_compare_charsx^yU/;buf1/pos1  ps1;buf2/pos2 ps2i/w1/w2/_rl_adjust_point`yVzU/f;string /point   ps tmpLlength/pos/_rl_is_mbchar_matched6`zzU/;string1/seed1 /end1;mbchar1/length1i/7_rl_char_valueFz{U;bufC/indC tmpLGwcHpsIl/J_rl_find_next_mbchara{|U/;string^/seed^ /count^/flags^_rl_find_prev_mbcharq|P|U/i;stringn/seedn /flagsnYwcwidth/iY3rmbrtowcLL3mbrlenLLY tm$ tm_sec/# tm_min/# tm_hour/# tm_mday/# tm_mon/# tm_year/# tm_wday/# tm_yday/# tm_isdst/# __wcsftime_xpg5LL__wcstok_xpg5 Ywint_t__putwchar_xpg5 C  unsigned charC __FILE5 _cnt/# _ptrT # _baseT # _flagC # _fileC # __orientation@# __ionolock@#  __seekable@#  __extendedfd@#  __xf_nocheck@#  __filler@#  Y __putwc_xpg5 _  5 __getwchar_xpg5 __getwc_xpg5  5 __ungetwc_xpg5   5 Y Y __fputws_xpg5/   __fputwc_xpg5   5 Y __fgetws_xpg5J / __fgetwc_xpg5 k 5 3k strlenL p void memset   /@Y long long off64_tftello64   fseeko64/"   / " fsetpos64/N  '  fgetpos64/u  N Y FILEu tmpfile64 3 3 freopen64     3 3 fopen64    Y  off_tftello64 4  fseeko64/Z   / Z fsetpos64/  _ fgetpos64/  N 3 3 freopen64     3 3 fopen64   tmpfile64 mkstemp64/G;mkstemp64/d;lockf64/// 3truncate64/ tell64 //ssize_t pwrite64@  pread64B@ lseek64 g/ /ftruncate64// 3truncate64/ tell64 / pwrite64@ pread641@ lseek64 V/ /lockf64/{// ftruncate64// 33attropen64//3openat64/ //3 unsigned longcreat64/H3Hopen64/rM/3r3|attropen64/w/3openat64///3creat64/ 3 open64//b ../xmalloc.c /var/tmp/readline-6.1/shlib /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I.. -I.. -DRL_LIBRARY_VERSION='"6.1"' -g -K pic -o xmalloc.o ../xmalloc.c -W0,-xp.XAKgoyLngjUM072.Xa;g;p;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLngjUM072.;backend;raw;cd;DBG_GEN 5.2.7g/memory_error_and_abort/P||Umufname-charmxmalloc:||Ubytes8temp;voidunsignedsize_txreallocG}~}U?pointerDbytesD tempH xfreeV}}UlstringTint mkstemp64l u mkstemp64l u realloc   malloc  free  exit lunsigned char __FILE_cntl#_ptr #_base #_flag# _file# __orientation# __ionolock#  __seekable#  __extendedfd#  __xf_nocheck#  __filler#  %long longoff64_t ftello64= % fseeko64lh =  lh fsetpos64l = m fgetpos64l = %FILEtmpfile64mm freopen64   mm# fopen64M  (%off_t ftello64Rz M fseeko64l =  l fsetpos64l =  fgetpos64l = m fprintfl = mm# freopen64T  ( mTm^ fopen64 Y ctmpfile64 ../usr/include/sys/usr/include/isohistory.chistory.htypes.hstdio_iso.hstdio.hstdlib.hstdio_impl.hPq         !0 ? N ] k x   ]   % 0 < C Pq}  1y  1@       0Qd p y       9 I O `       !  ! 5!P!^! k! ! !! ! !  """ ;" T" `""" " " " " #!#)# 4# P# l# u# # # ### # # 7$ @$ L$ R$ `$$$ $ $ $ $ $ 6% H% N% `%%% % % % % % %% & "& *& ,& 7& =& E& N&wc& s& & & &&& ' ' &' E' Z'm' s' ''' ' '' '  (( 6( T( p( ( (( ( ((( (  )) 0)Q)]) p))) ) )})*  ../usr/include/usr/include/isohistexpand.chistory.hwchar_impl.hwchar_iso.hstdio_iso.hrltypedefs.htime_iso.hstdio_impl.hstdio.hstdlib.h*1*:* R* `*g* n* u** * * * ** +  +3+X+ v+ ++ + + + , , ,9,Y,i,}, , , , ;- @-ga-j- |- - - - - - - - - . D.p... . . . . // 0/  $> 6> V> > >> >> ?7? @?I?W? y? ? ? ?? ? ? ? @ @@ 9@M@ @ @ @#A =A OA cA AA A A A A BB &B -B 0B 8B >B OB TBXBStB1|B B BB B B B B B~8CAC~TC[C cCkC C C C C C CC C  D D )D 2D ;D AD DDD DD D E E +E 8E IE ^E rE E E E E EEEF"F8F @F MF TFaFF F F F F G DG LGuG |G GG GG G H1H 8H PH mHH HHH H H  I1I >I FI MI I III I I I J J 0J 4JyCJ VJ J JJ J J J KOK TK[K K KK K LLML ZL nL zL L L L M (MwM |MM M M TN bN lNN NN!O pO xOO O O O O O OO O O cP qP P P PPXPP P Q QQ'Q @QaQ jQ qQ~Q QQ Q QQ Q HRWR aR tR RR R RS S #S *S 8S bS S S SS S T ,T ;T HTOT mT T T TT T T TU  U 7U WU `UU U U UU U U U U V  V V V CV PVeV V V V V V V V W W %Wy4W CW WW fW tW zW WW W W W W XDX QX jX X X X X X X:Y CY PY _Y fY tYY Y Y Y Y YPZ WZ \ZsZ zZ ZZ Z [  [g'[-[ @[a[ j[ |[ [ [ [ [[ [ [\y\ \ \ \ \\ \ 0] 7] w]] ] ] ] ] ^`^#^ 0^Q^ d^ p^^ ^ ^ ^ ^_ _ (_ 0_ >_ T_ `_ l_ {_ _ _ _ _ _  ../usr/include/sys/usr/include/isohistfile.cstat_impl.htypes.hstat.hstdio.htime_impl.hstdio_iso.hhistory.hstdio_impl.h__`  `A`` ` ` ` ` ` `` ` `  a$a*a @aaata aaaa a a b b bFb Ub Xbmb ub b bb bb b b b b b cc*c2c 8cAc Hclc xc cc c cxc  d d/d eEe Pezee e e ee e e e ef !f(f 0f9f]f kf fff f f ff f f g g@g g g g|g g )h 0h 4h :hyIh rh hhh h h hi!i 2i 9i Yi oi ii i i ii j @jyYjjj rj ~j j j jj  k (k Gk \k xk k kvkk k kl l "l 0lQlfl plll w ../usr/include/isohistsearch.chistory.hstdio_iso.hstdio.hstdlib.hstdio_impl.hlll lm m @m Lm bm omwm mm m m mm m n n Cn On \nwn |nn n n n n n nyno  o o Qo ]o ho ooywo o o ooo opp  pApIp Wp lp zp p p p p , ../usr/include/usr/include/sys/usr/include/isoshell.cpwd.htypes.hstdio_impl.hstdio_iso.hppp p  q 0q @q Hq Zq lq ~qxq q q q qqr r ,r :r Ir `r ur r rrr rrr  s s s "s 0sQsls xs ssss s ss . ../usr/include/sys/usr/include/isombutil.ctypes.hwchar_impl.hwchar_iso.htime_iso.hstdio_impl.hstdio_iso.hst t t #t *t 2t @t \tdt kt wt t t t t tt t t t tu  u u  u ,u3ud?u Ku }u u u v}bvhv vvv v v v v v v  w 0w @wGwWw`w hw lwtw w wwwbw!w wwx  xx %x 0x 8x@x Px \x dx px xx xxx y y 5y @y~OyVy `yyy y y y y y y y y yz z  z (z 4z =zoEzNz `ziztz z z z z~zz z{{ ${ 5{ @{ P{ `{ { { { { {{||1|H|[ ../usr/include/isoxmalloc.cstdio_iso.hstdio_impl.hstdio.hP|q|/| | ||<| | | | }!}W} _} p} v} }}} }  DD%$> II:  :  I8 4I : ;  4I?  : ;  .?  : ; @ ' ID  .?  : ; @ ' D  I: ;  .?  : ; @ ' D .?  : ; @ ' ID .?  : ; @ ID . : ; @ ' ID I !I/ .?  : ;@ ' D I: ; 4I : ;  &I.?  : ;@ ' ID .?  : ;@ ID .?  : ;@ D .?  : ;@ ' ID .? < ' ID I.? < ' D  I8 .? < ' ID  DD%$> 4I?  : ;  I.?  : ; @ ' ID I: ;  4I : ;    &I I:  :  I8 ' ID III !I/ . : ;@ D I: ; 4I : ; . : ;@ ' ID . : ;@ ID D D .?  : ;@ ' ID . : ;@ ' D .? < ' ID .? < ' ID  I8 .? < ' D  DD%. : ; @ ' ID I: ;  $> &III: 4I?  : ;  . : ; @ ID  4I : ;  .?  : ; @ ' ID  I  !I/  :  I8 .?  : ;@ ' ID I: ; 4I : ; . : ;@ ID  .? < ' ID I.? < ' ID .? < ' D  I8 .<  DD%$> I4I?  : ;  . : ; @ ' ID I: ;  4I : ;    &I I:  :  I8 .?  : ; @ ' ID .? < ' ID I.? < ' ID  I8  DD%.?  : ; @ ' ID I: ;  4I : ;  $> I.?  : ; @ ' D &I I:  :  I8 .? < ' ID  I I8 .? < ' ID .? < ' D .? < ' ID  DD%$> 4I?  : ;  . : ; @ ID I: ;  4I : ;  II: I  !I/  :  I8 .?  : ; @ ' ID .?  : ;@ ' ID I: ; 4I : ; &I.? < ' ID I I8 .? < ' ID .? < ' ID  DD%. : ; @ D I: ;  $> I.?  : ; @ ' ID 4I : ;  I: .?  : ; @ ' D  .? < ' ID  I .? < ' D   :  I8  I8 &I.? < ' ID qhistory_basehistory_get_history_statehistory_set_history_stateusing_historyhistory_total_bytesWwhere_historyzhistory_set_poshistory_listcurrent_historyprevious_history5next_historyWhistory_getalloc_history_entryhistory_get_timeadd_historyladd_history_timefree_history_entrycopy_history_entrywreplace_history_entryreplace_history_dataremove_history stifle_historyq unstifle_history history_is_stifled clear_historyy history_offset max_input_history history_max_entries5 history_length3"Chistory_expansion_charihistory_subst_charhistory_comment_charhistory_no_expand_charshistory_quotes_inhibit_expansionhistory_word_delimiters9get_history_event history_expandhistory_arg_extract2history_tokenizehistory_inhibit_expansion_function4Mhistory_write_timestampsread_historyread_history_rangehistory_truncate_file append_history write_historyuJ Hhistory_search_delimiter_chars4history_searchhistory_search_prefixhistory_search_posU ,sh_single_quotesh_set_lines_and_columns#sh_get_env_valuejsh_get_home_dirsh_unset_nodelay_modeb26rl_byte_oriented_rl_get_char_len_rl_compare_chars_rl_adjust_pointf_rl_is_mbchar_matched_rl_char_value_rl_find_next_mbchar_rl_find_prev_mbchar1tzxmallocxrealloc?xfree zhist_inittime."hist_string_extract_single_quoted\quote_breakshist_errorget_subst_patternpostproc_subst_rhsNhistory_expand_internal5get_history_word_specifierhistory_tokenize_wordhistory_substringQhistory_tokenize_internalzfreewordshistory_find_wordB4M6mknodhistory_filenamehistory_do_write*J vhistory_search_internalRb2V_rl_find_next_mbchar_internal_rl_find_prev_mbchar_internal)t2memory_error_and_abortLhistdata_t]_hist_entry-_hist_stateHISTORY_STATEHIST_ENTRYmtime_t size_t off64_t ssize_t off_tX__FILEFILE"histdata_t_hist_entry<HIST_ENTRYr_hist_search_func_t__mbstate_tmbstate_tSsize_trl_linebuf_func_tjtmwint_t__FILE@off64_thssize_tPoff_t+!FILE4Mmode_tdev_tino_tnlink_tuid_tgid_toff_ttime_ttimespec-timestruc_t?blksize_tOblkcnt_tstatsize_t1 histdata_tB _hist_entry} off64_t ssize_tino64_tblkcnt64_tstat64__FILEtFILEnJ histdata_t_hist_entrysize_toff64_tssize_toff_t__FILEh FILEnU uid_tgid_tpasswdV__FILEDoff64_tFILEoff_t size_t ssize_tb2Lsize_tr__mbstate_tmbstate_ttm wint_tY __FILE off64_tu FILE off_tssize_tCtsize_t%__FILEoff64_tFILERoff_tCthe_history history_size history_stifled"hsearch_matchsearch_stringsubst_rhs_lensubst_lhs_lensubst_rhssubst_lhserror_pointer.hash.dynsym.dynstr.rel.got.rel.data.rel.plt.text.rodata.rodata1.dynamic.picdata.bss.symtab.strtab.comment.debug_loc.debug_info.debug_line.debug_abbrev.debug_pubnames.debug_funcnames.debug_typenames.debug_varnames.shstrtab hh@"  B  B`` * Bpp.@3PPld9}}A}}1~~J$44$SXX\XX8aX oi x qzX{:30c{ ?n<{tMv^&{ {070701000293c6000081a40000000000000000000000014c523937000cd900000000b500010002ffffffffffffffff0000002100000000root/usr/local/lib/libreadline.a! / 1280456741 0 0 0 22576 ` 5XtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtXtLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLHHHHHHHHHH                    ::::::::::::::::::ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽ$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4H4<<<<<<<<<<<<<<pppppppppppppppp ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! N iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD iD Ɣ Ɣ Ɣ Ɣ Ɣ Ɣ Ɣ Ɣ Ɣ Ɣ ߴ ߴ ߴ < < < < < < < < < < < < < < < < < < ,t ,t ,t ,t M M M M M oL oL oL oL oL oL oL oL L L L L L L L Lrl_set_promptrl_promptrl_visible_prompt_lengthreadlinerl_pending_inputrl_initialize_rl_meta_flagreadline_internal_setuprl_instream_rl_in_streamrl_outstream_rl_out_streamrl_startup_hook_rl_echoing_prl_already_promptedrl_editing_moderl_pre_input_hookreadline_internal_teardown.XAKgoyLkgjUMU81.the_line_rl_revert_all_at_newline_rl_internal_char_cleanup_rl_keymaprl_num_chars_to_readrl_endrl_donerl_erase_empty_linerl_last_funcrl_pointreadline_internal_char.XBKgoyLkgjUMU81.readline_internal_char.lastc.XBKgoyLkgjUMU81.readline_internal_char.eof_found_rl_last_command_was_kill_rl_top_levelrl_readline_staterl_key_sequence_length_rl_eof_char_rl_dispatch_rl_init_line_staterl_markrl_line_buffer_rl_set_the_line_rl_keyseq_cxt_alloc_rl_kscxt_rl_keyseq_cxt_dispose_rl_keyseq_chain_dispose_rl_dispatch_callback_rl_dispatch_subseq_rl_dispatching_keymap_rl_convert_meta_chars_to_asciirl_executing_keymaprl_dispatchingrl_numeric_argrl_arg_sign.XAKgoyLkgjUMU81.rl_initialized_rl_parsing_conditionalized_outrl_line_buffer_lenrl_terminal_name_rl_horizontal_scroll_mode_rl_bind_stty_charsrl_save_staterl_insert_moderl_restore_staterl_library_versionrl_readline_versionrl_gnu_readline_prl_explicit_arg_rl_mark_modified_lines_rl_bell_preference_rl_output_meta_chars_rl_echo_control_chars_rl_comment_begin_rl_vi_initialize_line.XAKgoyLkgjUMU_1.vi_mark_chars_rl_vi_reset_last_rl_vi_last_command.XAKgoyLkgjUMU_1._rl_vi_last_repeat.XAKgoyLkgjUMU_1._rl_vi_last_arg_sign.XAKgoyLkgjUMU_1._rl_vi_last_motion_rl_vi_set_lastrl_vi_start_insertingrl_vi_insertion_mode_rl_vi_textmod_command.XAKgoyLkgjUMU_1.vi_textmod.XAKgoyLkgjUMU_1.vi_insert_bufferrl_vi_redo.XAKgoyLkgjUMU_1.vi_redoingrl_vi_undorl_vi_yank_argrl_vi_fetch_historyrl_vi_search_againrl_vi_searchrl_vi_completerl_vi_end_wordrl_vi_tilde_expandrl_vi_prev_wordrl_vi_next_wordrl_vi_bWordrl_vi_bwordrl_vi_fWordrl_vi_fwordrl_vi_eWordrl_vi_ewordrl_vi_insert_begrl_vi_insert_moderl_vi_append_moderl_vi_append_eolrl_vi_eof_maybe.XAKgoyLkgjUMU_1._rl_vi_last_key_before_insert.XAKgoyLkgjUMU_1.vi_insert_buffer_size_rl_vi_done_inserting.XAKgoyLkgjUMU_1._rl_vi_doing_insert.XAKgoyLkgjUMU_1.vi_continued_commandrl_vi_movement_moderl_vi_arg_digitrl_vi_deleterl_vi_checkrl_vi_change_caserl_vi_putrl_vi_columnrl_vi_domove.XAKgoyLkgjUMU_1.vi_motionrl_vi_delete_torl_vi_change_torl_vi_yank_torl_vi_ruboutrl_vi_back_to_indentrl_vi_first_print.XAKgoyLkgjUMU_1._rl_vi_last_search_mbchar.XAKgoyLkgjUMU_1._rl_vi_last_search_mblen.XAKgoyLkgjUMU_1._rl_cs_dirrl_vi_char_search.XAKgoyLkgjUMU_1._rl_cs_orig_dir.XBKgoyLkgjUMU_1.rl_vi_char_search.target.XBKgoyLkgjUMU_1.rl_vi_char_search.tlenrl_vi_matchrl_vi_bracktype.XAKgoyLkgjUMU_1._rl_vi_last_replacementrl_vi_change_charrl_vi_substrl_vi_overstrike.XAKgoyLkgjUMU_1.vi_replace_countrl_vi_overstrike_deleterl_vi_replace.XAKgoyLkgjUMU_1.vi_replace_maprl_vi_set_markrl_vi_goto_markrl_add_funmap_entry.XAKgoyLkgjUMU$1.funmap_entry.XAKgoyLkgjUMU$1.funmap_sizefunmaprl_initialize_funmap.XAKgoyLkgjUMU$1.funmap_initialized.XAKgoyLkgjUMU$1.default_funmapfunmap_program_specific_entry_startrl_funmap_namesrl_make_bare_keymaprl_copy_keymaprl_make_keymaprl_discard_keymaprl_free_keymapemacs_standard_keymapemacs_ctlx_keymapemacs_meta_keymapvi_movement_keymapvi_insertion_keymap_rl_enable_paren_matchingrl_insert_closerl_set_paren_blink_timeout.XAKgoyLkgjUMUB2._paren_blink_usecrl_blink_matching_paren.XAKgoyLkgjUMUC2.noninc_history_pos_rl_nscxt.XAKgoyLkgjUMUC2.noninc_search_stringrl_noninc_forward_searchrl_noninc_reverse_searchrl_noninc_forward_search_againrl_noninc_reverse_search_again_rl_nsearch_callback.XAKgoyLkgjUMUC2.rl_history_search_pos.XAKgoyLkgjUMUC2.history_search_string.XAKgoyLkgjUMUC2.prev_line_found.XAKgoyLkgjUMUC2.rl_history_search_len.XAKgoyLkgjUMUC2.history_string_sizerl_history_search_forwardrl_history_search_backward.XAKgoyLkgjUMUD2._rl_tty_chars.XAKgoyLkgjUMUD2._rl_last_tty_charsrl_prep_terminal.XAKgoyLkgjUMUD2.terminal_prepped.XAKgoyLkgjUMUD2.otiorl_tty_unset_default_bindingsrl_deprep_terminalrl_restart_outputrl_stop_outputrltty_set_default_bindingsrl_tty_set_default_bindings_rl_disable_tty_signals.XAKgoyLkgjUMUD2.tty_sigs_disabled.XAKgoyLkgjUMUD2.sigstty.XAKgoyLkgjUMUD2.nosigstty_rl_restore_tty_signalsrl_prep_term_functionrl_deprep_term_functionrl_completerl_completion_invoking_keyrl_inhibit_completion.XAKgoyLkgjUMUE2.completion_changed_bufferrl_complete_internal_rl_complete_show_all_rl_complete_show_unmodifiedrl_possible_completionsrl_insert_completionsrl_completion_mode_rl_reset_completion_staterl_completion_found_quoterl_completion_quote_characterrl_filename_completion_desiredrl_filename_quoting_desiredrl_completion_typerl_completion_suppress_quoterl_completion_suppress_appendrl_completion_append_character_rl_complete_mark_symlink_dirsrl_completion_mark_symlink_dirsrl_visible_stats_rl_complete_mark_directoriesrl_directory_completion_hookrl_completer_quote_characters_rl_find_completion_wordrl_completion_word_break_hookrl_completer_word_break_charactersrl_char_is_quoted_prl_basic_quote_charactersrl_special_prefixesrl_attempted_completion_functionrl_attempted_completion_overrl_completion_matchesrl_sort_completion_matches_rl_completion_case_foldrl_filename_dequoting_functionrl_ignore_completion_duplicatesrl_ignore_some_completions_functionrl_display_match_list_rl_completion_prefix_display_length_rl_print_completions_horizontally_rl_page_completionsrl_completion_display_matches_hookrl_completion_query_items.XAKgoyLkgjUMUE2.completion_y_or_nrl_filename_quote_charactersrl_filename_quoting_function_rl_skip_completed_text_rl_free_match_listrl_completion_entry_functionrl_filename_completion_functionrl_username_completion_function.XBKgoyLkgjUMUE2.rl_username_completion_function.username.XBKgoyLkgjUMUE2.rl_username_completion_function.first_char.XBKgoyLkgjUMUE2.rl_username_completion_function.first_char_loc.XBKgoyLkgjUMUE2.rl_username_completion_function.namelen.XBKgoyLkgjUMUE2.rl_username_completion_function.entry.XBKgoyLkgjUMUE2.rl_filename_completion_function.directory.XBKgoyLkgjUMUE2.rl_filename_completion_function.dirname.XBKgoyLkgjUMUE2.rl_filename_completion_function.filename.XBKgoyLkgjUMUE2.rl_filename_completion_function.users_dirnamerl_directory_rewrite_hook.XBKgoyLkgjUMUE2.rl_filename_completion_function.filename_lenrl_filename_rewrite_hook_rl_match_hidden_filesrl_complete_with_tilde_expansionrl_old_menu_complete.XBKgoyLkgjUMUE2.rl_old_menu_complete.orig_text.XBKgoyLkgjUMUE2.rl_old_menu_complete.matches.XBKgoyLkgjUMUE2.rl_old_menu_complete.match_list_size.XBKgoyLkgjUMUE2.rl_old_menu_complete.match_list_indexrl_menu_completion_entry_function.XBKgoyLkgjUMUE2.rl_old_menu_complete.orig_end.XBKgoyLkgjUMUE2.rl_old_menu_complete.delimiter.XBKgoyLkgjUMUE2.rl_old_menu_complete.quote_char.XBKgoyLkgjUMUE2.rl_old_menu_complete.orig_startrl_menu_completerl_backward_menu_complete.XBKgoyLkgjUMUE2.rl_menu_complete.full_completion.XBKgoyLkgjUMUE2.rl_menu_complete.orig_text.XBKgoyLkgjUMUE2.rl_menu_complete.matches.XBKgoyLkgjUMUE2.rl_menu_complete.match_list_size.XBKgoyLkgjUMUE2.rl_menu_complete.match_list_index.XBKgoyLkgjUMUE2.rl_menu_complete.orig_end.XBKgoyLkgjUMUE2.rl_menu_complete.delimiter.XBKgoyLkgjUMUE2.rl_menu_complete.quote_char.XBKgoyLkgjUMUE2.rl_menu_complete.orig_start.XBKgoyLkgjUMUE2.rl_menu_complete.nontrivial_lcdrl_basic_word_break_charactersrl_add_defunrl_bind_keyrl_binding_keymaprl_bind_key_in_maprl_bind_key_if_unbound_in_maprl_bind_keyseq_if_unbound_in_maprl_bind_key_if_unboundrl_unbind_keyrl_unbind_key_in_maprl_unbind_function_in_maprl_unbind_command_in_maprl_named_functionrl_bind_keyseqrl_generic_bindrl_bind_keyseq_in_maprl_set_keyrl_function_of_keyseqrl_bind_keyseq_if_unboundrl_macro_bindrl_translate_keyseqrl_untranslate_keyseq.XBKgoyLkgjUMUF2.rl_untranslate_keyseq.kseqrl_re_read_init_filerl_read_init_filerl_set_keymap_from_edit_mode.XAKgoyLkgjUMUF2.last_readline_init_file.XAKgoyLkgjUMUF2.current_readline_init_file.XAKgoyLkgjUMUF2.current_readline_init_include_level.XAKgoyLkgjUMUF2.currently_reading_init_file.XAKgoyLkgjUMUF2.current_readline_init_linenorl_parse_and_bind.XAKgoyLkgjUMUF2.if_stack_depth.XAKgoyLkgjUMUF2.if_stack_size.XAKgoyLkgjUMUF2.if_stackrl_readline_name.XAKgoyLkgjUMUF2.parser_directivesrl_variable_bind_rl_possible_control_prefixes_rl_possible_meta_prefixes.XAKgoyLkgjUMUF2.boolean_varlist.XAKgoyLkgjUMUF2._rl_prefer_visible_bell.XAKgoyLkgjUMUF2.string_varlistrl_variable_valuerl_get_keymap_by_namerl_set_keymap.XAKgoyLkgjUMUF2.name_key_alist.XAKgoyLkgjUMUF2.keymap_namesrl_get_keymap_namerl_get_keymaprl_get_keymap_name_from_edit_moderl_list_funmap_namesrl_invoking_keyseqs_in_maprl_invoking_keyseqsrl_function_dumperrl_dump_functionsrl_macro_dumperrl_dump_macros.XBKgoyLkgjUMUF2._rl_get_string_variable_value.numbufrl_variable_dumperrl_dump_variables_rl_scxt_alloc_rl_scxt_disposerl_reverse_search_historyrl_forward_search_history_rl_isearch_terminators.XAKgoyLkgjUMUG2.default_isearch_terminators_rl_iscxt.XAKgoyLkgjUMUG2.last_isearch_string.XAKgoyLkgjUMUG2.last_isearch_string_len_rl_search_getchar_rl_isearch_dispatch_rl_isearch_callback_rl_strip_promptrl_expand_prompt.XAKgoyLkgjUMUH2.local_prompt.XAKgoyLkgjUMUH2.local_prompt_prefix.XAKgoyLkgjUMUH2.local_prompt_len.XAKgoyLkgjUMUH2.prompt_invis_chars_first_line.XAKgoyLkgjUMUH2.prompt_last_invisible.XAKgoyLkgjUMUH2.prompt_physical_chars.XAKgoyLkgjUMUH2.prompt_visible_length.XAKgoyLkgjUMUH2.prompt_prefix_length.XAKgoyLkgjUMUH2.line_state_invisible.XAKgoyLkgjUMUH2.line_size.XAKgoyLkgjUMUH2.line_state_visible.XAKgoyLkgjUMUH2.line_structures_initializedrl_redisplayrl_display_promptrl_on_new_line.XAKgoyLkgjUMUH2.cpos_buffer_position.XAKgoyLkgjUMUH2.prompt_multibyte_chars.XAKgoyLkgjUMUH2.modmarkrl_display_fixed.XAKgoyLkgjUMUH2.forced_display.XAKgoyLkgjUMUH2.wrap_offset.XAKgoyLkgjUMUH2.prompt_last_screen_line_rl_last_c_pos.XAKgoyLkgjUMUH2.cpos_adjusted_rl_vis_botlin.XAKgoyLkgjUMUH2.visible_wrap_offset.XAKgoyLkgjUMUH2.visible_first_line_len_rl_clear_to_eol_rl_move_vert_rl_move_cursor_relative_rl_last_v_pos.XAKgoyLkgjUMUH2.last_lmarginrl_on_new_line_with_promptrl_forced_update_displayrl_redisplay_functionrl_show_charrl_character_lenrl_message.XAKgoyLkgjUMUH2.msg_buf.XAKgoyLkgjUMUH2.saved_local_promptrl_save_prompt.XAKgoyLkgjUMUH2.msg_saved_promptrl_clear_messagerl_restore_promptrl_reset_line_state.XAKgoyLkgjUMUH2.saved_local_prefix.XAKgoyLkgjUMUH2.saved_prefix_length.XAKgoyLkgjUMUH2.saved_local_length.XAKgoyLkgjUMUH2.saved_last_invisible.XAKgoyLkgjUMUH2.saved_visible_length.XAKgoyLkgjUMUH2.saved_invis_chars_first_line.XAKgoyLkgjUMUH2.saved_physical_chars_rl_make_prompt_for_search_rl_erase_at_end_of_line_rl_clear_screen_rl_update_final_rl_redisplay_after_sigwinch_rl_clean_up_for_exit_rl_erase_entire_line_rl_current_display_line.XAKgoyLkgjUMUH2.line_state_array_rl_suppress_redisplay_rl_want_redisplay_rl_signal_handler_rl_caught_signal_rl_interrupt_immediatelyrl_free_line_staterl_echo_signal_charrl_cleanup_after_signalrl_reset_after_signal.XAKgoyLkgjUMUI2.old_winchrl_set_signalsrl_catch_signals.XBKgoyLkgjUMUI2.rl_set_signals.sigmask_set.XBKgoyLkgjUMUI2.rl_set_signals.bset.XAKgoyLkgjUMUI2.signals_set_flag.XBKgoyLkgjUMUI2.rl_set_signals.oset.XAKgoyLkgjUMUI2.old_int.XAKgoyLkgjUMUI2.old_term.XAKgoyLkgjUMUI2.old_quit.XAKgoyLkgjUMUI2.old_alrm.XAKgoyLkgjUMUI2.old_tstp.XAKgoyLkgjUMUI2.old_ttou.XAKgoyLkgjUMUI2.old_ttinrl_catch_sigwinch.XAKgoyLkgjUMUI2.sigwinch_set_flagrl_clear_signals_rl_block_sigint.XAKgoyLkgjUMUI2.sigint_blocked.XAKgoyLkgjUMUI2.sigint_set.XAKgoyLkgjUMUI2.sigint_oset_rl_release_sigint_rl_block_sigwinch.XAKgoyLkgjUMUI2.sigwinch_blocked.XAKgoyLkgjUMUI2.sigwinch_set.XAKgoyLkgjUMUI2.sigwinch_oset_rl_release_sigwinch_rl_echoctl_rl_intr_char_rl_quit_char_rl_susp_charrl_alphabetic_rl_allow_pathname_alphabetic_chars.XAKgoyLkgjUMUJ2.pathname_alphabetic_chars_rl_walphabetic_rl_abort_internalrl_abort_rl_null_functionrl_tty_statusrl_copy_textrl_extend_line_bufferrl_tilde_expand_rl_ttymsg_rl_errmsg_rl_strindex_rl_qsort_string_compare_rl_digit_p_rl_digit_value_rl_lowercase_p_rl_pure_alphabetic_rl_to_lower_rl_to_upper_rl_uppercase_prl_free_rl_savestring_rl_trace.XAKgoyLkgjUMUJ2._rl_tracefp_rl_tropen_rl_trcloserl_set_retained_kills.XAKgoyLlgjUMUK2.rl_kill_ring.XAKgoyLlgjUMUK2.rl_kill_ring_length.XAKgoyLlgjUMUK2.rl_max_kills.XAKgoyLlgjUMUK2.rl_kill_indexrl_kill_textrl_kill_wordrl_backward_kill_wordrl_kill_linerl_backward_kill_linerl_kill_full_linerl_unix_word_ruboutrl_unix_filename_ruboutrl_unix_line_discardrl_copy_region_to_killrl_kill_regionrl_copy_forward_wordrl_copy_backward_wordrl_yankrl_yank_poprl_yank_nth_argrl_yank_last_arg.XBKgoyLlgjUMUK2.rl_yank_last_arg.history_skip.XBKgoyLlgjUMUK2.rl_yank_last_arg.explicit_arg_p.XBKgoyLlgjUMUK2.rl_yank_last_arg.count_passed.XBKgoyLlgjUMUK2.rl_yank_last_arg.direction.XBKgoyLlgjUMUK2.rl_yank_last_arg.undo_neededrl_add_undorl_undo_listrl_free_undo_list_rl_copy_undo_entry_rl_copy_undo_listrl_do_undo_rl_doing_an_undo_rl_fix_last_undo_of_typerl_begin_undo_group_rl_undo_group_levelrl_end_undo_grouprl_modifyingrl_revert_linerl_undo_command_rl_with_macro_input_rl_push_executing_macrorl_executing_macro.XAKgoyLlgjUMUM2.executing_macro_index_rl_next_macro_key_rl_pop_executing_macro.XAKgoyLlgjUMUM2.macro_list_rl_add_macro_char.XAKgoyLlgjUMUM2.current_macro_index.XAKgoyLlgjUMUM2.current_macro_size.XAKgoyLlgjUMUM2.current_macro_rl_kill_kbd_macrorl_start_kbd_macrorl_end_kbd_macrorl_call_last_kbd_macrorl_push_macro_input_rl_any_typein.XAKgoyLlgjUMUN2.push_index.XAKgoyLlgjUMUN2.pop_index.XAKgoyLlgjUMUN2.ibuffer_len.XAKgoyLlgjUMUN2.ibuffer_rl_unget_char_rl_pushed_input_available.XAKgoyLlgjUMUN2._keyboard_input_timeoutrl_stuff_charrl_getc_functionrl_set_keyboard_input_timeout_rl_input_available_rl_input_queued_rl_insert_typeinrl_execute_nextrl_clear_pending_inputrl_read_keyrl_event_hookrl_getc_rl_read_mbchar_rl_read_mbstring.XAKgoyLlgjUMUO2.in_handlerrl_callback_handler_installrl_linefuncrl_callback_read_char.XBKgoyLlgjUMUO2.rl_callback_read_char.olevel_rl_callback_func_rl_callback_data_rl_callback_data_disposerl_callback_handler_remove_rl_callback_data_alloc_rl_get_screen_sizerl_prefer_env_winsize_rl_screenwidth_rl_screenheight.XAKgoyLlgjUMUP2.term_string_buffer_rl_term_autowrap_rl_screenchars_rl_set_screen_size_rl_init_terminal_iorl_set_screen_sizerl_get_screen_sizerl_reset_screen_sizerl_resize_terminal.XAKgoyLlgjUMUP2.tc_strings.XAKgoyLlgjUMUP2.tcap_initialized_rl_term_clreol_rl_term_cr_rl_term_clrpag.XAKgoyLlgjUMUP2.term_buffer_rl_term_IC_rl_term_ic_rl_term_ei_rl_term_im.XAKgoyLlgjUMUP2._rl_visible_bell_rl_term_DC_rl_term_dc_rl_term_up.XAKgoyLlgjUMUP2._rl_term_kr.XAKgoyLlgjUMUP2._rl_term_kl.XAKgoyLlgjUMUP2._rl_term_kd.XAKgoyLlgjUMUP2._rl_term_ku.XAKgoyLlgjUMUP2._rl_term_kD.XAKgoyLlgjUMUP2._rl_term_kI.XAKgoyLlgjUMUP2._rl_term_kH.XAKgoyLlgjUMUP2._rl_term_kh.XAKgoyLlgjUMUP2._rl_term_at7.XAKgoyLlgjUMUP2._rl_term_ke.XAKgoyLlgjUMUP2._rl_term_ks.XAKgoyLlgjUMUP2._rl_term_mo.XAKgoyLlgjUMUP2._rl_term_mm.XAKgoyLlgjUMUP2._rl_term_vs.XAKgoyLlgjUMUP2._rl_term_ve_rl_term_forward_char.XAKgoyLlgjUMUP2.term_has_meta_rl_terminal_can_insertPC_rl_term_backspaceBCUP_rl_term_pcrl_get_termcaprl_reset_terminal_rl_output_character_function_rl_output_some_chars_rl_backspacerl_crlfrl_ding_rl_enable_meta_key_rl_control_keypad_rl_set_cursor_rl_enable_meta_rl_term_ip_rl_term_goto_rl_enable_keypadrl_insert_textrl_delete_text_rl_fix_point_rl_replace_textrl_replace_linerl_forward_byterl_backward_byterl_forward_charrl_backward_charrl_forwardrl_backwardrl_beg_of_linerl_end_of_linerl_forward_wordrl_backward_wordrl_refresh_linerl_clear_screenrl_skip_csi_sequencerl_arrow_keys_rl_insert_char.XBKgoyLlgjUMUQ2._rl_insert_char.stored_count.XAKgoyLlgjUMUQ2.ps.XAKgoyLlgjUMUQ2.pending_bytes_length.XAKgoyLlgjUMUQ2.pending_bytes_rl_overwrite_charrl_deleterl_insertrl_quoted_insertrl_tab_insertrl_newlinerl_do_lowercase_version_rl_overwrite_ruboutrl_rubout_rl_rubout_charrl_rubout_or_deleterl_delete_horizontal_spacerl_delete_or_show_completionsrl_insert_commentrl_upcase_wordrl_downcase_wordrl_capitalize_wordrl_transpose_wordsrl_transpose_chars_rl_char_search_internalrl_char_searchrl_backward_char_search_rl_set_mark_at_posrl_set_markrl_exchange_point_and_mark_rl_init_eightbit_rl_arg_overflow_rl_argcxt_rl_arg_init_rl_arg_getchar_rl_arg_dispatchrl_universal_argument_rl_reset_argumentrl_digit_argument_rl_arg_callbackrl_discard_argument_rl_start_using_history_rl_saved_line_for_history_rl_free_history_entryrl_maybe_replace_linerl_maybe_unsave_linerl_maybe_save_line_rl_free_saved_history_line_rl_history_preserve_point_rl_history_saved_pointrl_replace_from_history_rl_revert_all_linesrl_beginning_of_historyrl_get_previous_historyrl_end_of_historyrl_get_next_historyrl_vi_editing_mode_rl_set_insert_moderl_emacs_editing_moderl_overwrite_modefree_undo_listmaybe_replace_linemaybe_save_linemaybe_unsave_linedingcrlfalphabeticcompletion_matchesusername_completion_functionfilename_completion_functionxmallocxreallocxfreehistory_get_history_state.XAKgoyLlgjUMUV2.the_historyhistory_offsethistory_length.XAKgoyLlgjUMUV2.history_size.XAKgoyLlgjUMUV2.history_stifledhistory_set_history_stateusing_historyhistory_total_byteswhere_historyhistory_set_poshistory_listcurrent_historyprevious_historynext_historyhistory_gethistory_basealloc_history_entryhistory_get_timeadd_historyhistory_max_entriesfree_history_entryadd_history_timecopy_history_entryreplace_history_entryreplace_history_dataremove_historystifle_historymax_input_historyunstifle_historyhistory_is_stifledclear_historyget_history_eventhistory_expansion_char.XAKgoyLlgjUMkW2.search_string.XAKgoyLlgjUMkW2.search_match.XAKgoyLlgjUMkW2.subst_rhs_len.XAKgoyLlgjUMkW2.subst_lhs_len.XAKgoyLlgjUMkW2.subst_rhs.XAKgoyLlgjUMkW2.subst_lhs.XAKgoyLlgjUMkW2.error_pointerhistory_expandhistory_subst_charhistory_comment_charhistory_word_delimitershistory_no_expand_charshistory_inhibit_expansion_functionhistory_quotes_inhibit_expansionhistory_arg_extracthistory_tokenizeread_historyread_history_rangehistory_truncate_filehistory_write_timestampsappend_historywrite_historyhistory_searchhistory_search_prefixhistory_search_poshistory_search_delimiter_charssh_single_quotesh_set_lines_and_columnssh_get_env_valuesh_get_home_dirsh_unset_nodelay_mode_rl_adjust_point_rl_get_char_len_rl_compare_chars_rl_is_mbchar_matched_rl_char_valuerl_byte_oriented_rl_find_next_mbchar_rl_find_prev_mbchartilde_additional_prefixestilde_additional_suffixestilde_expandtilde_expand_wordtilde_expansion_preexpansion_hooktilde_expansion_failure_hook.XAKgoyLlgjUMkb2.default_prefixes.XAKgoyLlgjUMkb2.default_suffixesreadline.o/ 1280456740 0 0 100644 41116 ` ELF4(.strtab.text.bss.data.rodata.rodata1.comment.debug_loc.debug_info.debug_line.debug_abbrev.debug_pubnames.debug_funcnames.debug_typenames.debug_varnames.symtabreadline.cmknodreadline_internalreadline_internal_charloop_rl_subseq_getchar_rl_subseq_resultreadline_initialize_everythingreadline_default_bindingsbind_arrow_keysreset_default_bindingsbind_arrow_keys_internalBbss.bssDdata.dataDrodata.rodata_xmknodrl_set_promptrl_promptfreestrlenxmallocstrcpyrl_display_promptrl_expand_promptrl_visible_prompt_lengthreadlinerl_pending_inputrl_clear_pending_inputrl_initializerl_prep_term_function_rl_meta_flagrl_set_signalsrl_deprep_term_functionrl_clear_signalsreadline_internal_setuprl_instream_rl_in_streamrl_outstream_rl_out_streamrl_startup_hook_rl_echoing_prl_redisplay_functionrl_redisplayrl_already_prompted_rl_strip_promptfprintffflushrl_on_new_line_with_promptrl_on_new_linerl_editing_moderl_vi_insert_moderl_pre_input_hook_rl_caught_signal_rl_signal_handlerreadline_internal_teardowncurrent_historyrl_undo_list.XAKgoyLkgjUMU81.the_linerl_revert_linewhere_historyreplace_history_entry_rl_free_history_entry_rl_revert_all_at_newline_rl_revert_all_linesrl_free_undo_list_rl_set_insert_mode_rl_internal_char_cleanup_rl_keymapvi_movement_keymaprl_vi_checkrl_num_chars_to_readrl_end_rl_want_redisplayrl_newlinerl_donerl_erase_empty_linerl_last_funcrl_point_rl_erase_entire_linereadline_internal_char.XBKgoyLkgjUMU81.readline_internal_char.lastc.XBKgoyLkgjUMU81.readline_internal_char.eof_found_rl_last_command_was_kill_rl_top_levelsigsetjmprl_readline_state_rl_reset_argumentrl_key_sequence_lengthrl_read_key_rl_eof_char_rl_dispatch_rl_init_line_staterl_markrl_line_buffer_rl_set_the_line_rl_keyseq_cxt_alloc_rl_kscxt_rl_keyseq_cxt_dispose_rl_keyseq_chain_dispose_rl_dispatch_callback_rl_abort_internal_rl_dispatch_subseq_rl_dispatching_keymap_rl_convert_meta_chars_to_ascii_rl_add_macro_charrl_dingrl_do_lowercase_version__ctypetolowerrl_executing_keymaprl_dispatchingrl_numeric_argrl_arg_signrl_digit_argument_rl_unget_charvi_insertion_keymap_rl_input_queued_rl_with_macro_input_rl_vi_textmod_command_rl_vi_set_lastrl_insert.XAKgoyLkgjUMU81.rl_initialized_rl_start_using_historyrl_reset_line_state_rl_parsing_conditionalized_out_rl_vi_initialize_line__iobrl_line_buffer_lenrl_terminal_namesh_get_env_value_rl_init_terminal_iorl_initialize_funmap_rl_init_eightbitrl_read_init_file_rl_horizontal_scroll_mode_rl_term_autowrap_rl_screenwidth_rl_screenchars_rl_screenheightrl_set_keymap_from_edit_mode_rl_enable_meta_rl_enable_meta_keyrl_completer_word_break_charactersrl_basic_word_break_characters_rl_bind_stty_charsrl_tty_set_default_bindingsrl_tty_unset_default_bindingsrl_get_previous_historyrl_bind_keyseq_if_unboundrl_get_next_historyrl_forward_charrl_backward_charrl_beg_of_linerl_end_of_lineemacs_standard_keymaprl_bind_keyseq_in_maprl_save_staterl_insert_moderl_executing_macrorl_catch_signalsrl_catch_sigwinchrl_restore_staterl_library_versionrl_readline_versionrl_gnu_readline_prl_explicit_arg_rl_mark_modified_lines_rl_bell_preference_rl_output_meta_chars_rl_echo_control_chars_rl_comment_begin.rel.text.rel.data.rel.debug_info.rel.debug_line.rel.debug_pubnames.rel.debug_funcnames.rel.debug_typenames.rel.debug_varnamesUjjEPE PEPjEEÐU tjPEt0jEPj@PЋEPRE EEt E EEjPEEÐUuEZjEPtjPЃEtEEEÐUtСuk=u_tRuHjPEEPhP jPjEP)ttСu jijtСtjPÐUtjPEEjPj@PСPREjjjPR EjEPEPPjEPttjjEt E2jPj@PСPREEEEÐUu=ut*;|j jut/t%=uuuÐUEjhEEt,%t E,uEEu% EEutE E;u ;EuEu.u$ EbEUPRtjPuE;u EEÐUEuEtEEEÐUEjEPEEÐUBÐUÐUjj EE@E@E@E@EPE@*EEEÐUjEPÐUt-E@jEPuÐUEu @E࿣Eu EEEÐU E@u`Ej@P~EE}EUE@PB PEP EEPEP E@EEt+MUE@jjPBPAPEPEtjPEu%EEFEt E@t UPEtjEPEEEÐUE jE PEP EEÐU$]܋EE=t{E uX%t jjE E E%EE PEPEEv%tjEPEUE DEEE=uQE;Eu(EtEjPEEEE PEPEE  ]M EPRDЃߣu UE D=tUE DtjPwE tjEPE EtjEPE%EiUE DuCEu;E =u1jju UE DPhEW@UE D%% t E EEEEEtEPEPEUPEU PEP EuE@ t EEEUP EEEqjEPyEE}EEEuE t EEEPPEP EjjEPEPE PEPEEUE DtQUE jDPj@PȋUE DPQEjEPEkUE Ѓw$suA=u5E=t+jEPtPPEP EEE]$ UEEEEEEEuYE=uOE;Eu&EtEjPEEEE PEPEEulE=ubUEЉEUEDEMUEʋUEMLEPEPEMUEʋUEMLEPhEjEt0E t"jEPE E9Et(Et jEPE EEEEÐUu7@%ujjEEÐUu u ujhujhjPtjjt%tH+utu UtjPÐUt jPjPÐUEEhhhhhhhhhh hh$hh(hh,hh0hh4hh8hh<EÐUjhjhuhjh@ jhÐUEuEEPEPEPEP EPEPEPEPEP EP$EP(EP,EP0EP4EP8EP# #  tell64 X# ZZssize_tg f# pwrite64X## X# k#   g pread64X## X# #   lseek64 # Z  Z ftruncate64Z$ Z  a$ truncate64Z@$ $  tell64;!Z$ Zg Z$ pwrite64X#$ X# _$   pread64X#$ X# #   lseek64;!$ Z ;! Z lockf64Z% Z Z  ftruncate64Z'% Z  a'%a1% attropen64Zd% ,% 6% Z$ad% openat64Z% Z i% Z$a% creat64Z% % sa% open64Z% % Z$a%a% attropen64Z&& % % Z$a&& openat64ZW& Z +& Z$aW& creat64Z& \& sa& open64Z& & Z$Za& _xmknodZ& & & s sa& &unsigned long long&ino_tsnlink_tuid_tgid_tX'time_t timespec' tv_secX'# tv_nsec#e'timestruc_tblksize_t blkcnt_ta' ' stat ) st_dev# st_pad1&# st_ino'# st_mode# st_nlink!'# st_uid/'# st_gid;'#$ st_rdev#( st_pad2G'#, st_size;!#4 st_atim'#< st_mtim'#D st_ctim'#L st_blksize'#T st_blocks'#X st_fstype'#` st_pad4'#p' lstat64Z.) & )a.) stat64ZW) 3) ) fstat64Zw) Z )aw) fstatat64Z) Z |) ) Za) )&ino64_t) blkcnt64_ta * * stat64=+ st_dev# st_pad1)# st_ino)# st_mode# st_nlink!'# st_uid/'# st_gid;'#$ st_rdev#( st_pad2)#, st_size #4 st_atim'#< st_mtim'#D st_ctim'#L st_blksize'#T st_blocks)#X st_fstype)#` st_pad4 *#p* fstatat64Zn+ Z ) =+ Zan+ lstat64Z+ s+ =+a+ stat64Z+ + =+%fstat64Z Z =+ /var/tmp/readline-6.1/usr/include/sys/usr/include/isoreadline.cstat_impl.htypes.hkeymaps.hrltypedefs.hstdio_impl.hstdio_iso.hrlprivate.hhistory.hreadline.hsetjmp.htime_iso.hwchar_iso.hstat.htime_impl.h# 6P           /4< F MRX fp z         ! (2 >H O i v       ) 7A FP Ua         Q V fp z          0B Ip         ) / FK S d s           #1 FP X e s|}            $ A T]e             & . C Y }             $ 1 = G          8 F T ` h v            . A i q y            ( h        M ek      &3 @ L Y l x        &0 = B O Z glv         9C W glqv          - 6> F X j |           & 3 BQ] q               $ 0 < H T ` l x              ' 2 = H S ^ i t         DD%. : ; @ ' ID I: ;  $> &III: 4I?  : ;  ' ID  I  :  I8 I8 ' ID 4I?  : ; .?  : ;@ ' ID I: ; 4I : ; .?  : ;@ ' D .?  : ;@ ' D . : ;@ ID . : ;@ ' ID .?  : ;@ ' ID . : ;@ ' D . : ;@ ' D  : ( I !I/ 4I : ;  .? < ' D  .? < ' ID !I ".? < ' D #.? < ' ID $%.? < ' ID +rl_library_versionrl_readline_versionrl_gnu_readline_p_rl_keymaprl_editing_moderl_insert_mode_rl_last_command_was_killrl_numeric_arg$rl_explicit_argCrl_arg_sign^rl_readline_staterl_last_funcrl_instreamrl_outstream_rl_echoing_prl_promptrl_visible_prompt_lengthCrl_already_promptedfrl_key_sequence_lengthrl_startup_hookrl_pre_input_hook_rl_eof_char rl_pending_input3rl_terminal_nameS_rl_horizontal_scroll_mode}_rl_mark_modified_lines_rl_bell_preferencerl_erase_empty_linerl_line_bufferrl_line_buffer_len_rl_kscxt_rl_parsing_conditionalized_out,_rl_convert_meta_chars_to_ascii\_rl_output_meta_chars_rl_bind_stty_chars_rl_revert_all_at_newline_rl_echo_control_chars_rl_meta_flag rl_set_promptZ readline readline_internal_setup readline_internal_teardown _rl_internal_char_cleanup readline_internal_char) _rl_init_line_stateO _rl_set_the_liner _rl_keyseq_cxt_alloc _rl_keyseq_cxt_dispose _rl_keyseq_chain_dispose _rl_dispatch_callback _rl_dispatch2_rl_dispatch_subseqrl_initializerl_save_stateDrl_restore_state~_rl_dispatching_keymapo_rl_top_level_rl_out_stream_rl_in_stream_rl_comment_beginrl_num_chars_to_readrl_executing_keymaprl_dispatchingrl_done+rl_markBrl_endXrl_point+ mknod readline_internal_charloop readline_internal7 _rl_subseq_getchar_rl_subseq_resultreadline_initialize_everything readline_default_bindingsKreset_default_bindingssbind_arrow_keys_internalbind_arrow_keys+mode_tdev_t#rl_command_func_t@_keymap_entryyKeymap__FILEFILErl_hook_func_t*__rl_keyseq_context_rl_keyseq_cxtt histdata_t _hist_entry HIST_ENTRYyundo_code!undo_listUNDO_LISTreadline_state^sigjmp_bufsize_ttm wint_t off64_t;!off_tX#ssize_t'ino_t!'nlink_t/'uid_t;'gid_tX'time_te'timespec'timestruc_t'blksize_t'blkcnt_t'stat)ino64_t)blkcnt64_t*stat64F+8 lastcM eof_foundthe_linerl_initialized(@)4]2L0R\/s0     0 3}<Md r `  ,:P] q$(p?/?Lfu,0*=I^ex48`B<\jt@DH (p;L^'P1 H@?a9wP #T,;XJ\Vhw   . `N e k d~ h      l  + ; L i y    p   5 O c s       t   ! 2 xE |Y k {     7CI _!k"z#$%&()*+ ,&+0-=.G.N/g1l2q3v4{556789:4;4<  9=>"7)?7@?AIAPBZBbCwBBCEFG!"G#HIGJKG"#0 8LBMGFQNZOwG}!"G#?QRSTUT7VWX 7VY(X2Z7W>[HUR\h^r_{`ab7Vc(deccfcc ccX9UNgU^gUqc{cX^QhBBC(``PX] XG0ZDujU[kGGkG"n* GnQnYnanlotnccccfccccr7sBBCpccnnn o* t9 st u c v e e h w c vA xV yj z h { | c c } ~ c c | (  Z B$ B, CM o  c c p r ?   h e e* t/ cB cj m t c c n rT t^ s r ! " # ?%Q*RAN~T}^sw{txyzh bhhtt'1c9cCcKcPV[ccchinXwccZ?O1133123 4k-"5k:FKSZ`mr{QQ Q&7QBQGLQY^ckpu} "Q6ERTR^Rejt[UjkFcXQ)Z5A?MeY1e3q(}[UjkG F#.c9XDQOZZe?pe{13(0x Q?` }?Z~{cZ136?&b9e5Ag%(OyYk&n(Xu~L ,) - i 'm  0  D  P $ ]( I ^b _    C iG f lj  m  o  p O S  q  hLsP*? Cg k  [_tGa42T{|'X>jTUl[%,:GNZbjrz'0$,4<FNV^fnxD(0:BLTaPht|] &.8BJT\dnx&.;BNV^kir~lmo #p*6>FNXgnzq &.6>FPX`hpxhs $,4>FPX`hpx    & . 8 B J R Z b j r z                    * 7 > J T \ d l t |                   *" . 6 > F N V ` j r |                  $ , 4 > H R \ f n v                   & . 8 @ H P X ` h p x               &.6>FNV^fnv~&.6>FNV^fnv~4l   d#d##"#H+D$`4,?,+KXW hre}juMp XqYsJs  4  4 Dp     .  C X vi_mode.o/ 1280456740 0 0 100644 63492 ` ELF4(.strtab.text.bss.data.rodata.rodata1.comment.debug_loc.debug_info.debug_line.debug_abbrev.debug_pubnames.debug_funcnames.debug_typenames.debug_varnames.symtabvi_mode.c_rl_vi_stuff_insert_rl_vi_backup_rl_vi_append_forward_rl_vi_save_insert_rl_vi_change_mbchar_caserl_digit_loop1_rl_vi_arg_dispatch_rl_vi_callback_char_search_rl_vi_change_char_rl_vi_callback_getchar_rl_vi_callback_change_char_rl_vi_set_mark_rl_vi_callback_set_mark_rl_vi_goto_mark_rl_vi_callback_goto_markBbss.bssDdata.dataDrodata.rodata_rl_vi_initialize_line.XAKgoyLkgjUMU_1.vi_mark_charsrl_readline_state_rl_vi_reset_last_rl_vi_last_command.XAKgoyLkgjUMU_1._rl_vi_last_repeat.XAKgoyLkgjUMU_1._rl_vi_last_arg_sign.XAKgoyLkgjUMU_1._rl_vi_last_motion_rl_vi_set_lastrl_vi_start_insertingrl_vi_insertion_mode_rl_vi_textmod_command.XAKgoyLkgjUMU_1.vi_textmodstrchrrl_begin_undo_group.XAKgoyLkgjUMU_1.vi_insert_bufferrl_insert_textrl_end_undo_grouprl_vi_redorl_explicit_argrl_numeric_argrl_arg_sign.XAKgoyLkgjUMU_1.vi_redoingrl_pointrl_beg_of_linerl_end_of_line_rl_keymap_rl_dispatchrl_vi_undorl_undo_commandrl_vi_yank_argrl_yank_nth_argrl_vi_fetch_historywhere_historyhistory_baserl_beginning_of_historyrl_get_previous_historyrl_vi_search_againrl_noninc_reverse_search_againrl_noninc_forward_search_againrl_vi_search_rl_free_saved_history_linerl_noninc_forward_searchrl_noninc_reverse_searchrl_dingrl_vi_completerl_endrl_line_bufferrl_vi_end_wordrl_complete_internalrl_completerl_vi_tilde_expandrl_tilde_expandrl_vi_prev_wordrl_vi_next_word__ctyperl_vi_bWordrl_vi_bwordrl_vi_fWordrl_vi_fwordrl_vi_eWordrl_vi_ewordrl_vi_insert_begrl_vi_insert_moderl_byte_orientedrl_forward_charrl_vi_append_moderl_vi_append_eolrl_vi_eof_mayberl_newlinevi_insertion_keymap.XAKgoyLkgjUMU_1._rl_vi_last_key_before_insert.XAKgoyLkgjUMU_1.vi_insert_buffer_sizexreallocstrncpy_rl_vi_done_inserting.XAKgoyLkgjUMU_1._rl_vi_doing_insertrl_undo_list.XAKgoyLkgjUMU_1.vi_continued_command_rl_undo_group_levelrl_vi_movement_moderl_backward_charvi_movement_keymaprl_free_undo_listrl_vi_arg_digitrl_digit_argumentmemset_rl_adjust_pointmbrtowciswuppertowloweriswlowertowupperwcrtombrl_vi_deleterl_vi_checkrl_vi_change_casetolowertoupper_rl_insert_charrl_vi_put_rl_find_next_mbcharrl_yank_rl_find_prev_mbcharrl_vi_columnrl_vi_domoverl_markrl_read_key.XAKgoyLkgjUMU_1.vi_motionrl_universal_argumentrl_clear_messagerl_stuff_char_rl_arg_overflow_rl_arg_getcharrl_vi_delete_torl_kill_textrl_vi_change_torl_delete_textrl_vi_yank_torl_do_undorl_vi_ruboutrl_vi_back_to_indentrl_vi_first_print.XAKgoyLkgjUMU_1._rl_vi_last_search_mbchar_rl_read_mbchar.XAKgoyLkgjUMU_1._rl_vi_last_search_mblen_rl_callback_func_rl_want_redisplay.XAKgoyLkgjUMU_1._rl_cs_dir_rl_char_search_internalrl_vi_char_search.XAKgoyLkgjUMU_1._rl_cs_orig_dir_rl_callback_data_alloc_rl_callback_data.XBKgoyLkgjUMU_1.rl_vi_char_search.target.XBKgoyLkgjUMU_1.rl_vi_char_search.tlenrl_vi_matchrl_vi_bracktype_rl_read_mbstring.XAKgoyLkgjUMU_1._rl_vi_last_replacementrl_vi_change_charrl_vi_substrl_vi_overstrike_rl_overwrite_char.XAKgoyLkgjUMU_1.vi_replace_countrl_vi_overstrike_deleterl_vi_replace.XAKgoyLkgjUMU_1.vi_replace_maprl_make_bare_keymaprl_ruboutrl_vi_set_markrl_vi_goto_mark.rel.text.rel.rodata.rel.debug_info.rel.debug_line.rel.debug_pubnames.rel.debug_funcnames.rel.debug_typenames.rel.debug_varnamesUEEE;E}EE@EE;E|%ÐUiÐUEE EÐUEPE PEP EPjÐUEt"EPPE EEEEÐUEEEHEEEEt+jPEEEHEEEEuÐUuEiu=t3@t%jEP>~ IuFt<@t.jIjjEP~iauFt<@t.jja jEP~jAuFt<@t.jAjjEPK~PPEEEEÐUE PEPEEÐUtEjHPjj$EEÐUt@+EEEjjE PEPjEPEEÐU(E PEP#E PEPE NtntEEÐU8E PEP1E PEPE /t؃?tEEÐU;}g@ tS@ t?@ t @ t jEj@E *ujj*>E =ujj?(E \ujj E PjE *tE \uPjE P EEÐUE PjPjE P EEÐUE}UڋE PREbuEGE ;E u'E tE PEPE PEPEEÐUE}UڋE PREjH;|EIE ;E u'E tE PEPE PEPEEÐUE}EGE ;E u'E tE PEPE PEPEEÐUEEEHEEEE-H;@ ta@ tM;}@@@ t!@ t ;|@ t@ uM;}@@@ t@ u ;|EEEHEEEEtH;EEÐUEEEHEEEE@ tG@ t3@ t@ u H~e@ t@ u=H~(@ tס@ táH|e@ tQ@ t=H|(@ t@ uá@EEEHEEEEtzEEÐUEEEHEEEEH;@ t@ t @;}h@ t@ u@@;}(@ tԡ@ t;;}h@ t@ u@@;}(@ tԡ@ t;}h@ tT@ t@@;}(@ t@ uHEEEHEEEEtH;EEUEEEHEEEEdH;P@u@_@u@_uW;}J@@u@_u ;|@@_@ @ t;}r@@uI@_t5@ t!@ t ;|@ t@ uM;}@@@ t@ u ;|EEEHEEEEtH;EEÐUEEEHEEEE@ tG@ t3@ t@ u H@u@_u E EEE@u@_uEt:@u'@_tEt H~e@ t@ u=H~(@ tס@ tá@u@_H|y@u@_uGH|2@u͡@_tH@@_@ @ toH|Z@u<@_t(@ t@ u@EEEHEEEEtqEEÐUEEEHEEEEH;@ t@ t @;}h@ t@ u@@;}(@ tԡ@ t;@u@_@;}|@u@_uJ@;}2@uʡ@_t@;@@_@ @ tr@;}Z@u<@_t(@ t@ uHEEEHEEEEtH;GEEÐUE PjE PjEEÐU;}Pt t@-EEPjE;u ÐUjE PPjE P EEÐUE PjE PjEEÐUj jEEÐUE EEÐUPjE P EEÐU Et E@t|BE@EE@EE+E@EE;|=E ؋U D ȉ PPUEHPRP UBÐUt/j@Pwt:itatIt AujPCu~ÐU~E Pj%@u @EEÐUE 0u*u uE PjEE PEPEEÐUPjjEP EPPP ~EHEEEEHEEEE;~  +jjEPRQEPE؋E؃tE؃u@EE؃uEjEPtjEPE?jEPtjEPEjjEttE܍EPEPEP EE| UDjj;E} @jEP jjEEEHEEEEt;EEÐU;| EE~!ujEPErEEEHEEEEK;:@С@;@@С@;u@@t"@jPE@EEE@С@;@@С@;u@@t"@jPE@EEEEPjbEtLEEPj;E} @EPjEPjEEEHEEEEt;EEÐUE ;E uE u/@;!jjjjPPEEEHEEEEt)E PjEEEHEEEEu׋E PjEEÐU~)ujPP HÐUtK;u>~'ujPP HEEÐUE;~E Pj EHEEÐU@E࿣E}E @EE UPEtEPP E0E9EE0 K%E@E࿣E}E @EE UPYE;EuDEdtEytEcu,EPjEEEEEE@U BBPEPEB;~ ;uEE;Eu'EtEjPEEEEWuM;}@;~3@ t@ t HEc2;!E;Eu'EtEjPEEEEW;~h@ t@ u@H;~(@ tԡ@ t;u@P|CH;}3@ t@ t @;}EEEEÐUEEE|DUЃu3UD=u EE%EE0|QE9ItUMЍDУ E0EjEPEEÐU t EAEjEPEEĐ%EEÐU E ;E u!E tjj$tjPEEPE PtEVEPhu";E|;} @PPEEUE ;E u!E tjj$tjPEEPE PtElEPh u";E|;} @E;Eu'EtEjPEEEEWu;E}Etbt@tPPt#@tjPsPPE ;E uE t E EEu PPE P EEÐU E ;E uE t jj$EEPE PtEjEPhu";E|;} @PPEEEÐUE}UڋE PREuEEE~(~uE PEPA~(ujPP +E} EPPEEÐUE}UڋE PREuE~0u&jjjEPPPEEEE;|EEPP~;uE PjEEÐUE Pj;}h@ t@ u@@;}(@ tԡ@ tEEÐUE PjEEÐU jhEEEEE E<UjjPhPBPEEÐU E ;tE ,u*E ;u E ؉EEbhP8 E f} FtۃTt fttttr%t5jEPPEfjhEE ECEjjPPPEPEEÐUEE@jPEE"~zup@jPEEuHEE PjE;u%@jPEEty@jPEEuSH;}CE Pj@jPEEuH;|EEEEEEEEt t EHE)jEPP EE;EuEHEE|FE@jPEE؋U;u EHEE;EuE@EEEDEt t E@EjjjjEPPEE;}DE@jPEE؋U;u EHEE;EuE@EEEXEEEÐUTEE{EoEcEWEKE?E]}[}(t)tې[tѐ{}]tă{t}t븋EÐUE tE uEEEEHEEEE;EE Pj;E} @~ujEPE PjEEEHEEEEt;sE PjEEÐU@E࿣E} E6~!uE PEPEP EEEEÐUjEPoEEE} E.UEPEPBP EEÐUtEEEEQ%t)jEPEEjEPEEE} EEPEPEPc EEÐUu)E Su Ec EljEPjcEPEEÐUuE~E PEPEEEU EE;E}Wu FEt H;EuE PjE@EE;E|utEEUE E=}#U LE@EE=|ݡPlPT@uD=uPDEEÐU@E࿣E|Ea|Ez~E"EaEEEEÐUaEEÐU%tE EEÐU@E࿣E`uEgE|Ea|Ez~E@EaEEuEEEEÐU1EEÐU%tE EEiD, l|h^0bBFT` l|hwW^0bBFT` l|h^0%bBFT` hl^$0ftFT;,%wbeWBE|`_*\AaIiCcDdPpYyRrSsXx~@(#)types.h 1.86 07/09/20 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)machtypes.h 1.11 04/09/28 SMI@(#)machtypes.h 1.2 04/09/28 SMI@(#)int_types.h 1.10 04/09/28 SMI@(#)select.h 1.19 04/01/28 SMI@(#)time_impl.h 1.11 05/05/19 SMI@(#)time.h 2.77 09/06/02 SMI@(#)time.h 1.45 08/01/09 SMI@(#)time_iso.h 1.4 04/09/07 SMI@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMI@(#)unistd.h 1.76 06/03/10 SMI@(#)unistd.h 1.43 06/03/10 SMI@(#)stdio.h 1.84 04/09/28 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMI@(#)string.h 1.27 07/01/14 SMI@(#)string_iso.h 1.5 04/06/18 SMI@(#)stdarg.h 1.47 04/09/28 SMI@(#)stdarg_iso.h 1.4 04/11/19 SMI@(#)va_impl.h 1.1 04/11/19 SMI@(#)stdarg_c99.h 1.2 04/09/28 SMI@(#)wchar.h 1.37 03/12/04 SMI@(#)wchar_iso.h 1.8 04/09/28 SMI@(#)wchar_impl.h 1.3 99/07/26 SMI@(#)ctype.h 1.35 04/09/28 SMI@(#)ctype_iso.h 1.3 04/09/28 SMI@(#)ctype_c99.h 1.2 04/09/28 SMI@(#)stddef.h 1.18 04/09/28 SMI@(#)stddef_iso.h 1.2 03/03/06 SMI@(#)wchar_c99.h 1.3 04/03/29 SMI@(#)wctype.h 1.19 03/12/04 SMI@(#)wctype_iso.h 1.2 03/12/04 SMI@(#)wctype_c99.h 1.1 03/12/04 SMI@(#)limits.h 1.59 04/08/24 SMI@(#)limits_iso.h 1.2 03/12/04 SMI@(#)int_limits.h 1.9 04/09/28 SMI@(#)strings.h 1.3 96/03/12 SMI@(#)setjmp.h 1.38 04/09/28 SMI@(#)setjmp_iso.h 1.2 04/09/28 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03.vi_mode.c /var/tmp/readline-6.1 /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I. -DRL_LIBRARY_VERSION='"6.1"' -g vi_mode.c -W0,-xp.XAKgoyLkgjUMU_1.Xa;g;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLkgjUMU_1.;backend;raw;cd;DBG_GEN 5.2.7int_rl_vi_last_command Bchar4<Avi_motionFH_rl_vi_last_repeat X_rl_vi_last_arg_sign Y4vi_textmodh_rl_vi_initialize_lineJUi n _rl_vi_reset_last}U_rl_vi_set_lastU key repeat signrl_vi_start_insertingU key repeat sign _rl_vi_textmod_commandU , c _rl_vi_stuff_insertxUe count rl_vi_redoU  count c r  rl_vi_undo>U  count key rl_vi_yank_arg|U D count key rl_vi_fetch_historyU  count c wanted  rl_vi_search_again.9U  count, key, rl_vi_search@U > count> key> rl_vi_completeXU  ignoreV keyV rl_vi_tilde_expandsU  ignoreq keyq rl_vi_prev_word}lU # count{ key{ rl_vi_next_wordU n count key rl_vi_end_wordxU  count key rl_vi_fWordU  count ignore rl_vi_bWord U L count ignore rl_vi_eWord U  count ignore rl_vi_fworduU  count ignore rl_vi_bwordNU f count ignore Blast_is_ident  rl_vi_ewordCNU  countA ignoreA rl_vi_insert_beg\~U  countZ keyZ _rl_vi_append_forwardeUM keycpoint f rl_vi_append_modey$U  countw keyw rl_vi_append_eol^U  count key rl_vi_eof_maybezU / count c rl_vi_insertion_modeU  count key rl_vi_insert_modeU  count key _rl_vi_save_insertUA uplen start end undo_list next #start #end #text # what #A 4undo_code UNDO_DELETEUNDO_INSERTUNDO_BEGINUNDO_ENDA UNDO_LIST _rl_vi_done_insertingdU rl_vi_movement_modeU p count key rl_vi_arg_digit%U  count c _rl_vi_change_mbchar_case$U o countwco mb mlen p m ps wchar_tlong4 z unsigned size_t  z __mbstate_t __filler # mbstate_t rl_vi_change_case6U f count4 ignore4 c 7p 7 rl_vi_puteU  countc keyc _rl_vi_backuprUrl_vi_check{g U  rl_vi_column U 4 count key rl_vi_domove$U  key nextkey c save old_end $$$$$$$$$$t  _rl_vi_arg_dispatch%U U ckey rl_digit_loop1$&U c %r % rl_vi_delete_to:&U  count8 key8 c ;start_pos ; rl_vi_change_toW(U  countU keyU c Xstart_pos X rl_vi_yank_to)U  count key c start_pos  rl_vi_rubout*U d count key opoint  rl_vi_delete+U  count key end  rl_vi_back_to_indent%,U  count key rl_vi_first_printL,U ] count key _rl_vi_callback_char_search,U  datac __rl_callback_generic_arg count #i1 #i2 #_rl_callback_generic_arg rl_vi_char_searchO.U  count key c target !tlen " rl_vi_matcho\1U & ignorem keym count pbrack ppos ptmp ppre p/H1/0/0/0/0/000&0g0&0g0b 0H10H10H10<10<10<10'10'1b  rl_vi_bracktype1U ^ c_rl_vi_change_char3U  count c mbp _rl_vi_callback_getchar3U * mb mlen c _rl_vi_callback_change_char3U  datac mb4z  rl_vi_change_char$4U  count" key" c %mb&4)z  rl_vi_substB4U p count@ key@ rl_vi_overstrikeMP5U  countK keyK rl_vi_overstrike_delete`5U 3 count^ key^ i as a rl_vi_replace6U  count} key} i _rl_vi_set_markE7U ch _rl_vi_callback_set_markw7U  data rl_vi_set_mark7U X count key _rl_vi_goto_mark8U ch _rl_vi_callback_goto_mark 8U  data rl_vi_goto_mark8U % count key _rl_cs_orig_dir _rl_cs_dir  hoz vi_mark_chars^kvi_redoing e_rl_vi_last_key_before_insert c_rl_vi_last_replacement a_rl_vi_last_search_mblen ]4.z _rl_vi_last_search_mbchar\_rl_vi_last_motion Zvi_insert_buffer_size Vvi_insert_buffer Uvi_continued_command Tvi_replace_count O   rl_command_func_t_keymap_entryctype4#function*#/cKeymapvi_replace_maphL_rl_vi_doing_insert Evoidxrealloc _rl_char_search_internal     _rl_overwrite_char H  _rl_insert_char p  _rl_dispatch  c _rl_free_saved_history_line  _rl_arg_getchar  _rl_arg_overflow _rl_callback_data_alloc  where_history rl_complete_internal W  rl_ding  rl_read_key rl_stuff_char  rl_kill_text   rl_delete_text   4rl_insert_text   rl_clear_message  rl_end_undo_group  rl_begin_undo_group  rl_do_undo !rl_free_undo_listrl_noninc_reverse_search_again    rl_noninc_forward_search_again !  rl_noninc_reverse_search 2!  rl_noninc_forward_search c!  rl_tilde_expand !  rl_undo_command !  rl_yank_nth_arg !  rl_yank !  rl_complete "  rl_get_previous_history O"  rl_beginning_of_history "  rl_rubout "  rl_newline "  rl_end_of_line "  rl_beg_of_line #  rl_backward_char ;#  rl_forward_char c#  rl_universal_argument #  rl_digit_argument #   rl_make_bare_keymaph_rl_read_mbstring $   _rl_read_mbchar /$   _rl_adjust_point b$  /$_rl_find_next_mbchar $    _rl_find_prev_mbchar $   z wint_ttowupper$$$towlower$%$iswlower ,%z iswupper H%z 4 wcrtomb w%H%z M%z 4|%mbrtowc %w%% M%z %tm$ S&tm_sec #tm_min #tm_hour #tm_mday # tm_mon #tm_year #tm_wday #tm_yday #tm_isdst # %S&__wcsftime_xpg5 &w% %X&o o &&__wcstok_xpg5&&&&&__putwchar_xpg5$&$unsigned char&__FILE '_cnt #_ptr'#_base'#_flag&# _file&# "__orientation # "__ionolock #  "__seekable #  "__extendedfd #  "__xf_nocheck #  "__filler #  '__putwc_xpg5$ ($' __getwchar_xpg5$__getwc_xpg5$F('__ungetwc_xpg5$m($'z m('__fputws_xpg5 (r(w(__fputwc_xpg5$($''__fgetws_xpg5&(& (__fgetwc_xpg5$)'toupper 4) tolower O) 4O)strchr x)T) 4x)strncpy ) }) memset)  'long long)off64_tftello64)*)fseeko64 -*w() )-*fsetpos64 Y*w(2*)fgetpos64 *w(Y*'FILE * tmpfile64*4*4*freopen64*****4*4*fopen64*+**')off_tftello64+?++fseeko64 e+w() )e+fsetpos64 +w(j+fgetpos64 +w(Y*4+4+freopen64*+++*4+4+fopen64*",++ tmpfile64*lockf64 Z,  )4Z,truncate64 ,_,)tell64),  ssize_t,pwrite64,,,, )pread64,-,, )lseek64)8- ) ftruncate64 \- )4\-truncate64 -a-)tell64+- -pwrite64,-,- )pread64,.,, )lseek64+'. + lockf64 L.  )ftruncate64 p. )mkstemp64 . #mkstemp64  H /var/tmp/readline-6.1/usr/include/sys/usr/include/isovi_mode.creadline.htypes.hwchar_impl.hwchar_iso.hrlprivate.hkeymaps.hrltypedefs.htime_iso.hstdio_impl.hstdio_iso.h  * 9H S] g q {        &+ F V q v        * 8 B Ln z           &9 FP d p w           x- 4 FHM ] `e u x} r    " 0 8 H P ` n ~           ; P ` g v~         # ,G \ l s   .c n y   c n     e p r      Q \     % Z e   k    O    S ^   :pip  Y      GU    cB I V     1B x  pBI Vd r y         6D R Y fu         ! * 4 ? c |      0 : ? I N X b v           6F c j        ( ; P\ dl t          ^% 6C P W m     P^ `h p u      f / P k y        3 P [ b v            ! ! ,! D! L! W! a! p! u! ! ! ! ! ! ! ! ! ! "  " "  " ,"8"@"H" l" " "" " " "" "`# k###  $ ?$L$ \$$ $$ $ $ $$ % )% 8%C% S% ]% |% % % %% % % %% % % % % & & & & &&A& P& Z& j& r& & & && & & & &'  ' *' :' B' W' \' h'' '' ' ' ( ( +( C( S( \(a( u( ( ( (( ( )  ) ) *) /) 8)e) p) u) ) ) ) ) ) ) ) ) ) ) )) * ,* B* `* m* w* * * * * * * * * **  + ++ 6+ >+ P+ g+ u+ |+ + + + + ,  , 6, G, V, v,~, ,, ,,, , --(- ,-@- D-X- \-p- t-p--- - - - -- - . . . %.J.V. ]. e. . . . . . . .{/ I/ W/ // / / // / / / / /0 0 0 &0 @0 L0 X0 `0 l0q0 0j00 0 0 0 0 1 1 1  1 ,111 <1nH1P1 W1 f1 h1 t1 1 1 1 1 1 1x1 2 2 $2 )2 Y2 a2 o2 y2 2 2 22u22 2 3 3 #3 +3 83 @3 L3b3 y33 3 3 3 3 3 3 3 4 4 4 4 (474 J4 U4 `4y4 4 4 4 4 4 4 4 5 5 5 5'5 75 D5K5 V5 e5 o5 t5 x5 5 5 5 5 5s55 5 5 5 5 5 6 6 6 )6 ;6 L6]6 n6 |6 66 66 6 6 6 6 6 7 7  7 )7 97 @7 V7 `7 j7 r7 7 7 7 7 77 7 7 7 7 8  8 8 ,8 18 <8E8 T8 Y8 d8 s8 z8 88 8 8 88 8 8 88  DD%$> 4I?  : ;  &II4I : ;  .?  : ; @ ' D .?  : ; @ ' D I: ;  .?  : ; @ ' ID  . : ; @ ' D  .?  : ;@ ' ID  I: ; 4I : ;  . : ;@ ' D  :  I8  : ( I: .?  : ;@ ' D . : ;@ ID I !I/ . : ;@ ' D .?  : ;@ ' ID . : ;@ ' ID ' ID I.? < ' ID  .? < ' ID !.? < ' D " I8 #.? < ' ID J._rl_vi_last_command_rl_vi_initialize_line_rl_vi_reset_lastA_rl_vi_set_lastrl_vi_start_inserting_rl_vi_textmod_commanderl_vi_redorl_vi_undorl_vi_yank_argDrl_vi_fetch_historyrl_vi_search_againrl_vi_search>rl_vi_completerl_vi_tilde_expandrl_vi_prev_word#rl_vi_next_wordnrl_vi_end_wordrl_vi_fWordrl_vi_bWordLrl_vi_eWordrl_vi_fwordrl_vi_bwordfrl_vi_ewordrl_vi_insert_begM rl_vi_append_mode rl_vi_append_eol rl_vi_eof_maybe/ rl_vi_insertion_mode rl_vi_insert_mode _rl_vi_done_inserting! rl_vi_movement_modep rl_vi_arg_digit rl_vi_change_casefrl_vi_putrl_vi_checkrl_vi_column4rl_vi_domoverl_vi_delete_torl_vi_change_torl_vi_yank_torl_vi_ruboutdrl_vi_deleterl_vi_back_to_indentrl_vi_first_printrl_vi_char_searchrl_vi_match&rl_vi_bracktyperl_vi_change_char)rl_vi_substprl_vi_overstrikerl_vi_overstrike_delete3rl_vi_replacerl_vi_set_markrl_vi_goto_mark.,_rl_vi_stuff_insert_rl_vi_append_forward _rl_vi_save_insert _rl_vi_change_mbchar_case_rl_vi_backup_rl_vi_arg_dispatchUrl_digit_loop1]_rl_vi_callback_char_search^_rl_vi_change_char_rl_vi_callback_getchar*_rl_vi_callback_change_char_rl_vi_set_mark_rl_vi_callback_set_markX_rl_vi_goto_mark_rl_vi_callback_goto_mark. undo_codeA undo_list UNDO_LIST size_t __mbstate_t mbstate_t__rl_callback_generic_arg_rl_callback_generic_argrl_command_func_t/_keymap_entryhKeymap$wint_t%tm'__FILE)off64_t*FILE+off_t,ssize_t.Kvi_motionc_rl_vi_last_repeat_rl_vi_last_arg_signvi_textmod}targettlen%_rl_cs_orig_dirD_rl_cs_dirovi_mark_charsvi_redoing_rl_vi_last_key_before_insert_rl_vi_last_replacement_rl_vi_last_search_mblen._rl_vi_last_search_mbcharV_rl_vi_last_motionwvi_insert_buffer_sizevi_insert_buffervi_continued_commandvi_replace_countuvi_replace_map_rl_vi_doing_insert XEe0%_.$BP,x^2q3t3c6uP7'78' !" # $ % & '()J@h_qP-h'+%@BWszlp#,;JUb m}@<jI-L@\Yuh4'7pGO[g^s  0PP.&40.`-t\x|p]+<OaUq* g0   $ 9 A V p 9c ,p x        &  &" 1 (? J )W +l 0,~      $ = ,O p     P.  `1  C 4U 4Oa 5Pr   P5 5    7A 8A"#:$D$U&_'i(s)&'(*,./'0I1O2r35'6(78&119&11#:99M&W1a19&11;9<&=8/?G5XAiA5CDEFEHIIKVLaKnMyN9PQ9Q9Q9Q9R99'S=SUSgT7+V7+X 9N/YDZY[WP9NY\]N;YP^e_P9Q9Q99P99Q9Q9"9(P/Q59CQI9W9]Pd9j9oQu9Q99PP9 9 Q 9( Q. 9< QB 9P QV 9d 9j 9o 9y Q 9 Q 9 9 9 9 Q 9 Q 9 9 9 9 9 Q 9 Q 9) 9/ 94 9> QD 9R QX 9f 9l 9 9 P 9 Q 9 Q 9 9 9 9# P* Q0 9> QD 9R 9X 9] 9c Pj Qp 9~ Q 9 9 9 P 9 P Q 9 Q 9 9 9 9 P Q 9 Q 9& 9, P3 Q9 9G QM 9[ 9a 9f 9l Ps Qy 9 Q 9 9 9 P 9 P 9 Q 9+ Y8 Q> 9P QV 9a Yn Qt 9 9 P 9 9 Q 9 Y Q 9 9 P Q 9 YQ 9Q!93Q99G9MPT9Z9_Qe9pY}Q9Q9Q99PQ9Q99P99Q 9Q 9.94PVP\99Q9Q9Q9Q99 9Q9 Y-Q39ZQ`9kYxQ~9Q9YQ9999Q9Q9 999 Q&94Q:9H9VQ\9gYtQz9999Q9YQ9999Q9YQ 9!9'9,9:Q@9KY\Qb9tQz9Q9999Q9YQ9Q9Q99959vP|9Q9Q9999PQ9Q9999P Q9Q$9298PCQI9TYaQg9y999PQ9YQ9999PQ9YQ999 9&P1Q79BYSQY9kQq9Q9999PQ9YQ9Q9Q9 99/P59]:ka9PYb999c9P97+=;Kdkgh<i7+j 19jSj_jdjj1pkx1~Q1l1n3nopoii ii!o1i;3@qJ3OqZpw9st<m$u$$65:w?xK9QQWy9PQ9P9zQ9{|/}B~Ucm9099923c9P79=PZYdb9PQ9Q9Q9YQ9Q9%Q+96YCQI9XeQk9Q9Q9Q9YQ9Q9Q9YQ9(5Q;9Wci9q0|9993c9PY"9)P89>QDL9rsYb9Q999 9 9 P Y* b6 9< QB J 9Q 9W 9{ P ; 9 9  $ $  $ $!!/E!6S!6Y!5b!$l!$v!$!$!6!6!$!$!!$!$"P"":")<")A"PI"PQ"PW"P]"Qn"Qt"P"<"="P"Q"P"9"P"P"9""9"Y##9%#P,#92#9#Q?#9M#QS#9a#9g#9x#9~##Y##9##Q#9#Q#9$9$9 $9$$Q$9,$Q2$9@$9F$M$9S$9]$9g$Pm$9w$Q}$9$Q$9$9$9$$9$9$$9$$< %<%%6%%6T%5_%6u%6%6%5%%%%&$&$5&YF&Q&8]&)c&k&9{&&N&&/&9&&P&&&&9&'Y'!'8-')3';'9K'X'Nm'r'/'9''P'''Y''9'9'8'1(1(0((9$(,(16(1F(1L(2T(3](0b(h(9n((Y(n(7(6(+(Y))9)+)N=)B)/O)9Y)_)Pf)l)q)0v)|)9))3))9))9)N)9*Y*b#*s/*Y9*bE*9K*QQ*Y*9a*9i*9n*9y*9*9***P*N*Y*b+9 +Q+!+90+P7+PC+9I+Q+9[+9a+Pn+s+:+9+P+Q+9+Q+9+9+9+9+P+Q+9,Q ,9=,Y,^,l,,,,,,,,,-- -.-8-F-P-^-h--8-$----- --- ....!.*.0.6.@.^.9f.Ql.9x..Y.b.Q.9..9.c.9.Q.9./Q/9'/:/P@/9P/cX/Q^/9j/}/P/9/9/N/9/Y/b/Q0'0Q60m0N0Y0b0Q00P0Q0-1NL19%20I29O2PZ29h2p29z29292Y2b222292P2s233$3$$3,3$43$O3YY3bo3333484)4$>4F4L4 Q4u448445n5n500585@5f5p5Ny59555595s55n5355n5666-636M6S6^6d6ro6u6g}66g6h6h66666<6$6$66$6$7N.7957#X7b77$7777$7$77$7$889-8NK8#U8Nj8#o89888$8880&_'(."5%9V*Z+ -DHu4y>@^BbG J SOWUW9X=R\Z^^b][*.37<@x_|`  e di  e  f J ,N  a    m ; r?  v    vzGK #im/3w{(,~ 7;X\aejnsw|<@v z K O;?GK#'nr@Z#8iRs)j1pn"(5%<HPX`m*t+-%4,8@HRZdlt| !>(4A@HT\dlyBG #J*6@HPZbjt|O 'U.:BJWW^jrzXR".6>HPX`m\tZ $,6@M^T`hpz] (2:BLT\fp}[   ! _( 4 < D L T \ f n v      `             - d4 @ H P ] ed p x   f   ,     a       ( 0 : B J R Z b j r  m               r   ( 0 : B J R _ vf r z                    & . 6 > F N V ^ f n v                "*2:BJRZdnx"*2:GNZbjr $,4<DLT\dlt~ &08BJR_ frz&.6>KR^fnv~",4<DLT\dlv~ "*7>JRZbjt|&.6>FSZfnv~  (2:DLV^hpz&.6>FNXbjr|",6>FNV^fnv~ $08@HPX`hpx  "*2:BJW^jrz &08@JW^jrz&08@HRZdly $,4>KR^fnv~  (08B4   8FF F"F\+TGQ4M?M.KM|LWpe NuWХ "* p!4 0@ @ P ( `  t     funmap.o/ 1280456740 0 0 100644 22092 ` ELFR4(.strtab.text.bss.data.rodata.rodata1.comment.debug_loc.debug_info.debug_line.debug_abbrev.debug_pubnames.debug_typenames.debug_varnames.symtabfunmap.cBbss.bssDdata.dataDrodata.rodatarl_add_funmap_entry.XAKgoyLkgjUMU$1.funmap_entry.XAKgoyLkgjUMU$1.funmap_sizefunmapxreallocxmallocrl_initialize_funmap.XAKgoyLkgjUMU$1.funmap_initialized.XAKgoyLkgjUMU$1.default_funmapfunmap_program_specific_entry_startrl_funmap_names_rl_qsort_string_compareqsortrl_abortrl_newlinerl_arrow_keysrl_backward_byterl_backward_charrl_ruboutrl_backward_kill_linerl_backward_kill_wordrl_backward_wordrl_beginning_of_historyrl_beg_of_linerl_call_last_kbd_macrorl_capitalize_wordrl_char_searchrl_backward_char_searchrl_clear_screenrl_completerl_copy_backward_wordrl_copy_forward_wordrl_copy_region_to_killrl_deleterl_delete_or_show_completionsrl_delete_horizontal_spacerl_digit_argumentrl_do_lowercase_versionrl_downcase_wordrl_dump_functionsrl_dump_macrosrl_dump_variablesrl_emacs_editing_moderl_end_kbd_macrorl_end_of_historyrl_end_of_linerl_exchange_point_and_markrl_rubout_or_deleterl_forward_byterl_forward_charrl_forward_search_historyrl_forward_wordrl_history_search_backwardrl_history_search_forwardrl_insert_commentrl_insert_completionsrl_kill_full_linerl_kill_linerl_kill_regionrl_kill_wordrl_menu_completerl_backward_menu_completerl_get_next_historyrl_noninc_forward_searchrl_noninc_reverse_searchrl_noninc_forward_search_againrl_noninc_reverse_search_againrl_old_menu_completerl_overwrite_moderl_possible_completionsrl_get_previous_historyrl_quoted_insertrl_re_read_init_filerl_refresh_linerl_reverse_search_historyrl_revert_linerl_insertrl_set_markrl_skip_csi_sequencerl_start_kbd_macrorl_tab_insertrl_tilde_expandrl_transpose_charsrl_transpose_wordsrl_tty_statusrl_undo_commandrl_universal_argumentrl_unix_filename_ruboutrl_unix_line_discardrl_unix_word_ruboutrl_upcase_wordrl_yankrl_yank_last_argrl_yank_nth_argrl_yank_poprl_vi_append_eolrl_vi_append_moderl_vi_arg_digitrl_vi_back_to_indentrl_vi_bWordrl_vi_bwordrl_vi_change_caserl_vi_change_charrl_vi_change_torl_vi_char_searchrl_vi_columnrl_vi_completerl_vi_deleterl_vi_delete_torl_vi_eWordrl_vi_editing_moderl_vi_end_wordrl_vi_eof_mayberl_vi_ewordrl_vi_fWordrl_vi_fetch_historyrl_vi_first_printrl_vi_fwordrl_vi_goto_markrl_vi_insert_begrl_vi_insertion_moderl_vi_matchrl_vi_movement_moderl_vi_next_wordrl_vi_overstrikerl_vi_overstrike_deleterl_vi_prev_wordrl_vi_putrl_vi_redorl_vi_replacerl_vi_ruboutrl_vi_searchrl_vi_search_againrl_vi_set_markrl_vi_substrl_vi_tilde_expandrl_vi_yank_argrl_vi_yank_to.rel.text.rel.rodata.rel.debug_info.rel.debug_line.rel.debug_pubnames.rel.debug_typenames.rel.debug_varnamesU;|-@PPjjȋ UPU P@EEÐUt^EEt4UEPPE@EEuEÐUEEEEUtjE;E~#EEEPEPEUMU@UEDE@EUujjhjEPEPEEE(8H`t(4H\p|  0@Ld  0<HTd| <P`x$0@P`lt(8LXdt(<LXhx(8DP`labortaccept-linearrow-key-prefixbackward-bytebackward-charbackward-delete-charbackward-kill-linebackward-kill-wordbackward-wordbeginning-of-historybeginning-of-linecall-last-kbd-macrocapitalize-wordcharacter-searchcharacter-search-backwardclear-screencompletecopy-backward-wordcopy-forward-wordcopy-region-as-killdelete-chardelete-char-or-listdelete-horizontal-spacedigit-argumentdo-lowercase-versiondowncase-worddump-functionsdump-macrosdump-variablesemacs-editing-modeend-kbd-macroend-of-historyend-of-lineexchange-point-and-markforward-backward-delete-charforward-byteforward-charforward-search-historyforward-wordhistory-search-backwardhistory-search-forwardinsert-commentinsert-completionskill-whole-linekill-linekill-regionkill-wordmenu-completemenu-complete-backwardnext-historynon-incremental-forward-search-historynon-incremental-reverse-search-historynon-incremental-forward-search-history-againnon-incremental-reverse-search-history-againold-menu-completeoverwrite-modepossible-completionsprevious-historyquoted-insertre-read-init-fileredraw-current-linereverse-search-historyrevert-lineself-insertset-markskip-csi-sequencestart-kbd-macrotab-inserttilde-expandtranspose-charstranspose-wordstty-statusundouniversal-argumentunix-filename-ruboutunix-line-discardunix-word-ruboutupcase-wordyankyank-last-argyank-nth-argyank-popvi-append-eolvi-append-modevi-arg-digitvi-back-to-indentvi-bWordvi-bwordvi-change-casevi-change-charvi-change-tovi-char-searchvi-columnvi-completevi-deletevi-delete-tovi-eWordvi-editing-modevi-end-wordvi-eof-maybevi-ewordvi-fWordvi-fetch-historyvi-first-printvi-fwordvi-goto-markvi-insert-begvi-insertion-modevi-matchvi-movement-modevi-next-wordvi-overstrikevi-overstrike-deletevi-prev-wordvi-putvi-redovi-replacevi-ruboutvi-searchvi-search-againvi-set-markvi-substvi-tilde-expandvi-yank-argvi-yank-to@(#)stdio.h 1.84 04/09/28 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMI@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMI@(#)ctype.h 1.35 04/09/28 SMI@(#)ctype_iso.h 1.3 04/09/28 SMI@(#)ctype_c99.h 1.2 04/09/28 SMI@(#)string.h 1.27 07/01/14 SMI@(#)string_iso.h 1.5 04/06/18 SMI@(#)strings.h 1.3 96/03/12 SMI@(#)types.h 1.86 07/09/20 SMI@(#)machtypes.h 1.11 04/09/28 SMI@(#)machtypes.h 1.2 04/09/28 SMI@(#)int_types.h 1.10 04/09/28 SMI@(#)select.h 1.19 04/01/28 SMI@(#)time_impl.h 1.11 05/05/19 SMI@(#)time.h 2.77 09/06/02 SMI@(#)time.h 1.45 08/01/09 SMI@(#)time_iso.h 1.4 04/09/07 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03funmap.c /var/tmp/readline-6.1 /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I. -DRL_LIBRARY_VERSION='"6.1"' -g funmap.c -W0,-xp.XAKgoyLkgjUMU\$1.Xa;g;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLkgjUMU$1.;backend;raw;cd;DBG_GEN 5.2.7char int8"rl_command_func_t8_funmap name# functionP#UFUNMAPlong   default_funmap; } default_funmap;rl_add_funmap_entryUHMnamePfunction  Hrl_initialize_funmap2U irl_funmap_namesU result result_size result_index    funmap_initializedfunmap_program_specific_entry_start9 funmap_entry5 funmap_size4 _rl_qsort_string_comparevoidunsignedxrealloc!xmalloc<rl_vi_eword`rl_vi_bwordrl_vi_fwordrl_vi_eWordrl_vi_bWordrl_vi_fWordrl_vi_goto_mark<rl_vi_set_markcrl_vi_replacerl_vi_overstrike_deleterl_vi_overstrikerl_vi_substrl_vi_change_char0rl_vi_matchTrl_vi_char_search~rl_vi_first_printrl_vi_back_to_indentrl_vi_deleterl_vi_ruboutrl_vi_yank_toErl_vi_change_tomrl_vi_delete_torl_vi_columnrl_vi_putrl_vi_change_caserl_vi_arg_digit.rl_vi_movement_modeZrl_vi_insertion_moderl_vi_eof_mayberl_vi_append_eolrl_vi_append_mode rl_vi_insert_beg+ rl_vi_end_wordR rl_vi_next_wordz rl_vi_prev_word rl_vi_tilde_expand rl_vi_complete rl_vi_search rl_vi_search_againD rl_vi_fetch_historyp rl_vi_yank_arg rl_vi_redo rl_noninc_reverse_search_again rl_noninc_forward_search_again( rl_noninc_reverse_searchY rl_noninc_forward_search rl_history_search_backward rl_history_search_forward rl_tty_status rl_abort6 rl_tilde_expand^ rl_undo_command rl_revert_line rl_call_last_kbd_macro rl_end_kbd_macro rl_start_kbd_macro0 rl_forward_search_historyb rl_reverse_search_history rl_yank_last_arg rl_yank_nth_arg rl_yank_pop rl_yank)rl_copy_backward_wordWrl_copy_forward_wordrl_kill_regionrl_copy_region_to_killrl_unix_line_discardrl_unix_filename_rubout7rl_unix_word_ruboutcrl_kill_full_linerl_backward_kill_linerl_kill_linerl_backward_kill_wordrl_kill_word3rl_backward_menu_completeerl_menu_completerl_old_menu_completerl_insert_completionsrl_possible_completionsrl_complete=rl_dump_variablesgrl_dump_macrosrl_dump_functionsrl_re_read_init_filerl_overwrite_moderl_emacs_editing_mode=rl_vi_editing_modehrl_exchange_point_and_markrl_set_markrl_get_previous_historyrl_get_next_historyrl_end_of_historyErl_beginning_of_historyurl_backward_char_searchrl_char_searchrl_transpose_charsrl_transpose_words"rl_capitalize_wordMrl_downcase_wordvrl_upcase_wordrl_insert_commentrl_delete_or_show_completionsrl_delete_horizontal_space0rl_rubout_or_delete\rl_delete~rl_ruboutrl_do_lowercase_versionrl_newlinerl_tab_insertrl_quoted_insertBrl_insertdrl_arrow_keysrl_skip_csi_sequencerl_clear_screenrl_refresh_linerl_backward_word0rl_forward_wordXrl_end_of_linerl_beg_of_linerl_backward_charrl_backward_byterl_forward_char rl_forward_byteHrl_universal_argumentvrl_digit_argumentUfunmap3mkstemp64mkstemp64$ qsortM$unsigned charM__FILE? _cnt# _ptr^# _base^# _flagM# _fileM# __orientation# __ionolock#  __seekable#  __extendedfd#  __xf_nocheck#  __filler#  clong longDoff64_tftello64Q{?cfseeko64{DDfsetpos64{Dfgetpos64{cFILEtmpfile64  &freopen64W!+ W afopen64\fcDoff_tftello64fseeko64{DDfsetpos64 {fgetpos64,{ , 6freopen64g1; g qfopen64lvtmpfile64 /var/tmp/readline-6.1/usr/include/usr/include/isofunmap.creadline.hrltypedefs.hstdio_impl.hstdio.hstdio_iso.h # C_ s        ( 0 FK o z   w    DD%$> &II' ID II:  :  I8 I !I 4I : ;  I !I/ .?  : ; @ ' ID I: ;  .?  : ; @ ' D 4I?  : ;  .? < ' ID .? < ' D  I8 .? < ' ID rl_add_funmap_entryRrl_initialize_funmaprl_funmap_namesDfunmap_program_specific_entry_startfunmape8rl_command_func_tU_funmapFUNMAPc__FILEQoff64_tFILEoff_tldefault_funmapdefault_funmap#funmap_initializedwfunmap_entryfunmap_size      &-6>rSw@ .8Ndu 4KUs#5D_s,9HUf+C[l)<JZp(=IUgy   * > P \ l }           + 8 K Z f y  $17?HSXafuz ,Gc    ! "  $#( ,$0 4%8 <&@ D'H L(P T)X \*` d+h l,p t-x |. / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B  $C( ,D0 4E8 <F@ DGH LHP TIX \J` dKh lLp tMx |N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b  $c( ,d0 4e8 <f@ DgH LhP TiX \j` dkh llp tmx |n o p q r s t u v w x y z { | } ~      $( ,0 48 <@ DH LP TX \` dh lp tx |              lp@s"*2<DQXdlt|   4  @ @ ? @ "0w+4n?nK:W;Ae=u=i>p>  @H XI (Qx  Q  R  R  R keymaps.o/ 1280456740 0 0 100644 30140 ` ELFr4(.strtab.text.bss.data.rodata.comment.debug_loc.debug_info.debug_line.debug_abbrev.debug_pubnames.debug_typenames.symtabkeymaps.cBbss.bssDdata.dataDrodata.rodatarl_make_bare_keymapxmallocrl_copy_keymaprl_make_keymaprl_insertrl_ruboutrl_discard_keymapfreerl_free_keymapemacs_standard_keymaprl_set_markrl_beg_of_linerl_backward_charrl_deleterl_end_of_linerl_forward_charrl_abortrl_completerl_newlinerl_kill_linerl_clear_screenrl_get_next_historyrl_get_previous_historyrl_quoted_insertrl_reverse_search_historyrl_forward_search_historyrl_transpose_charsrl_unix_line_discardrl_unix_word_ruboutemacs_ctlx_keymaprl_yankemacs_meta_keymaprl_char_searchrl_undo_commandrl_backward_kill_wordrl_tab_insertrl_vi_editing_moderl_revert_linerl_yank_nth_argrl_backward_char_searchrl_insert_commentrl_tilde_expandrl_insert_completionsrl_digit_argumentrl_yank_last_argrl_beginning_of_historyrl_possible_completionsrl_end_of_historyrl_do_lowercase_versionrl_delete_horizontal_spacerl_backward_wordrl_capitalize_wordrl_kill_wordrl_forward_wordrl_downcase_wordrl_noninc_forward_searchrl_noninc_reverse_searchrl_transpose_wordsrl_upcase_wordrl_yank_poprl_re_read_init_filerl_exchange_point_and_markrl_start_kbd_macrorl_end_kbd_macrorl_call_last_kbd_macrorl_backward_kill_linevi_movement_keymaprl_vi_eof_mayberl_emacs_editing_moderl_vi_undorl_vi_matchrl_vi_tilde_expandrl_vi_completerl_vi_char_searchrl_vi_redorl_vi_searchrl_vi_arg_digitrl_vi_append_eolrl_vi_prev_wordrl_vi_change_torl_vi_delete_torl_vi_end_wordrl_vi_fetch_historyrl_vi_insert_begrl_vi_search_againrl_vi_putrl_vi_replacerl_vi_substrl_vi_next_wordrl_vi_ruboutrl_vi_yank_torl_vi_first_printrl_vi_yank_argrl_vi_goto_markrl_vi_append_moderl_vi_insert_moderl_vi_set_markrl_vi_change_charrl_vi_deleterl_vi_columnrl_vi_change_casevi_insertion_keymaprl_menu_completerl_backward_menu_completerl_vi_movement_mode.rel.text.rel.data.rel.debug_info.rel.debug_line.rel.debug_pubnames.rel.debug_typenamesU jhEEE=}-MUʋUEDE@EE=|ӋEEEÐU]EEE=}8UE]MЈًUE]MDDE@EE=|ȋEEE]ÐU EE E}UE LE@EE|EPLEEPDEE=}!UE LE@EE=|ߋEEEUEuEE=}rI\UEjDPUEjDP.UEjDPUEЃw$E@EE=|èUjEPjEP@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMI@(#)stdio.h 1.84 04/09/28 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMI@(#)ctype.h 1.35 04/09/28 SMI@(#)ctype_iso.h 1.3 04/09/28 SMI@(#)ctype_c99.h 1.2 04/09/28 SMI@(#)string.h 1.27 07/01/14 SMI@(#)string_iso.h 1.5 04/06/18 SMI@(#)strings.h 1.3 96/03/12 SMI@(#)types.h 1.86 07/09/20 SMI@(#)machtypes.h 1.11 04/09/28 SMI@(#)machtypes.h 1.2 04/09/28 SMI@(#)int_types.h 1.10 04/09/28 SMI@(#)select.h 1.19 04/01/28 SMI@(#)time_impl.h 1.11 05/05/19 SMI@(#)time.h 2.77 09/06/02 SMI@(#)time.h 1.45 08/01/09 SMI@(#)time_iso.h 1.4 04/09/07 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03keymaps.c /var/tmp/readline-6.1 /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I. -DRL_LIBRARY_VERSION='"6.1"' -g keymaps.c -W0,-xp.XAKgoyLkgjUMUA2.Xa;g;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLkgjUMUA2.;backend;raw;cd;DBG_GEN 5.2.7charint/rl_command_func_t/_keymap_entrytype #functionG#long L KEYMAP_ENTRY_ARRAY emacs_standard_keymap  emacs_meta_keymap; emacs_ctlx_keymapS vi_movement_keymap! vi_insertion_keymap9 rl_make_bare_keymap:aUi;keymap<LKeymap rl_copy_keymapUU&mapSiVtempW rl_make_keymapgUvihnewmapirl_discard_keymapUmapirl_free_keymapQUmapunsignedvoidxmalloc#rl_vi_goto_markKrl_vi_set_markrrl_vi_replacerl_vi_substrl_vi_change_charrl_vi_match rl_vi_char_search4rl_vi_first_print^rl_vi_deleterl_vi_ruboutrl_vi_yank_torl_vi_change_torl_vi_delete_torl_vi_columnCrl_vi_puterl_vi_change_caserl_vi_arg_digitrl_vi_movement_moderl_vi_insert_mode rl_vi_eof_maybe5rl_vi_append_eol^rl_vi_append_moderl_vi_insert_begrl_vi_end_wordrl_vi_next_wordrl_vi_prev_word(rl_vi_tilde_expandSrl_vi_completezrl_vi_searchrl_vi_search_againrl_vi_fetch_historyrl_vi_yank_arg rl_vi_undo@ rl_vi_redoc rl_noninc_reverse_search rl_noninc_forward_search rl_abort rl_tilde_expand rl_undo_command6 rl_revert_line] rl_call_last_kbd_macro rl_end_kbd_macro rl_start_kbd_macro rl_forward_search_history rl_reverse_search_historyD rl_yank_last_argm rl_yank_nth_arg rl_yank_pop rl_yank rl_unix_line_discard rl_unix_word_rubout2 rl_backward_kill_line` rl_kill_line rl_backward_kill_word rl_kill_word rl_backward_menu_complete rl_menu_complete3 rl_insert_completionsa rl_possible_completions rl_complete rl_re_read_init_file rl_emacs_editing_moderl_vi_editing_mode;rl_exchange_point_and_marknrl_set_markrl_get_previous_historyrl_get_next_historyrl_end_of_historyrl_beginning_of_historyHrl_backward_char_searchxrl_char_searchrl_transpose_charsrl_transpose_wordsrl_capitalize_word rl_downcase_wordIrl_upcase_wordprl_insert_commentrl_delete_horizontal_spacerl_deleterl_ruboutrl_do_lowercase_versionArl_newlinedrl_tab_insertrl_quoted_insertrl_insertrl_clear_screenrl_backward_word&rl_forward_wordNrl_end_of_lineurl_beg_of_linerl_backward_charrl_forward_charrl_digit_argumentunsigned char__FILE _cnt#_ptr(#_base(#_flag# _file# __orientation# __ionolock#  __seekable#  __extendedfd#  __xf_nocheck#  __filler#  -long longoff64_tftello64E -fseeko64pEpfsetpos64Eufgetpos64E-FILEtmpfile64  freopen64! ! +fopen64U&0-off_tftello64ZUfseeko64Efsetpos64Efgetpos64E  freopen641 1 ;fopen64e6@tmpfile64 mkstemp64xmkstemp64xfreez /var/tmp/readline-6.1/usr/include/usr/include/isokeymaps.ckeymaps.hrltypedefs.hemacs_keymap.cvi_keymap.cstdio_impl.hstdio.hstdio_iso.h= ) 7 E}V\ y   }    ( 7 CT d u{       t~3A O  DD%$> ' ID II: I :  I8 I  !I/ 4I?  : ;  4I?  : ; .?  : ; @ ' ID 4I : ;  I: ;  .?  : ; @ ' D .?  : ; @ D .? < ' ID  I8 &I.? < ' ID .? < ' D emacs_standard_keymapemacs_meta_keymapemacs_ctlx_keymapvi_movement_keymap?vi_insertion_keymapcrl_make_bare_keymaprl_copy_keymap&rl_make_keymapvrl_discard_keymaprl_free_keymap/rl_command_func_tL_keymap_entryKEYMAP_ENTRY_ARRAYKeymap-__FILEoff64_tFILEZoff_t    aph "0!1GSbs}0J]r'?Qaw 3@Paz,BUe{/>Rcv);HUg {z!-<\!:H $,4< DL!T"\#d$l"t%&'()*+',-./01 $,4<DLT\dlt| $,4<DLT\dlt| $,4<DLT\dlt| $,4<DLT\dlt| $,4<DLT\dlt| $,4<DLT\dlt| $,4<DLT\dlt|D L2T3\4t456!7 $ 8< 9\ :t ;| < ; ; ; ; ; ; ; ; ; ; = > ? > @ @$ @, @4 @< @D @L @T @\ @d @l @t @| @ @ @ @ @ @ @ @ @ @ @ @ @ A < B$ C, D< El F| G H 5 I J K 9 2L L1MTN\O@$@,@4@<@D@L@T@\@d@l@t@|@@@@@@@@@@@@@@<P Q<SDTT \l"t#|$"%&'()*+',.U48<DVLWlXt%|Y&Z[\\\\\\\\\YX[$],^4_<`DaLYTbdcdefgY5hijX klm$n,^4_<`DaLY\dol%t&|pdeqgYUhrjs t, 4 < D SL T \ d l !t "|   " v  w  ( ) * + ' ,  .  x! !!!U$!,!4!$,4<FP]dpz $.6@JY`lt  4 PQ  ((2"2+666B\M~NO\\6Ql$R}R 4I?  : ;  4I : ;  .?  : ; @ ' D I: ;  .?  : ; @ ' ID   I:  :  I8 I  !I/ . : ; @ ' ID I.? < ' ID I' ID &I I8 .? < ' ID {e rl_blink_matching_parenV_rl_enable_paren_matchingrl_set_paren_blink_timeoutrl_insert_close%e efind_matching_opene time_tsuseconds_ttimeval8fd_setXfd_setgrl_command_func_t_keymap_entryoff64_tssize_toff_t%__FILE FILE$e 6_paren_blink_usec 2      "W2EO)j .  %,49@MRYafmuzO Y!_"!"#$$% 2Ruy=AFJOS|".6>FSZfnx $.8@HPX`hpx    4 RBDL"L+/ 6/ e BNJD\l )}6( `5 lP? O L _ ! s !  !  $!search.o/ 1280456740 0 0 100644 22348 ` ELFS4(.strtab.text.bss.data.rodata.rodata1.comment.debug_loc.debug_info.debug_line.debug_abbrev.debug_pubnames.debug_funcnames.debug_typenames.debug_varnames.symtabsearch.cmake_history_line_currentnoninc_search_from_posnoninc_dosearch_rl_nsearch_init_rl_nsearch_cleanup_rl_nsearch_abort_rl_nsearch_dispatch_rl_nsearch_dosearchnoninc_searchrl_history_search_internalrl_history_search_reinitBbss.bssDdata.dataDrodata.rodatarl_end_rl_replace_text_rl_fix_pointrl_editing_moderl_free_undo_list_rl_saved_line_for_history_rl_free_history_entrywhere_historyhistory_set_posrl_readline_statehistory_search_prefixhistory_search.XAKgoyLkgjUMUC2.noninc_history_posrl_dingrl_maybe_unsave_linerl_clear_messagerl_pointcurrent_historyrl_mark_rl_scxt_allocrl_maybe_save_linerl_undo_listrl_line_buffer_rl_make_prompt_for_searchrl_messagefree_rl_nscxt_rl_scxt_disposerl_restore_promptrl_unix_word_ruboutrl_unix_line_discard_rl_rubout_char__ctyperl_byte_orientedrl_insert_text_rl_insert_charrl_redisplay_function.XAKgoyLkgjUMUC2.noninc_search_stringstrlenxmallocstrcpy_rl_search_getcharrl_noninc_forward_searchrl_noninc_reverse_searchrl_noninc_forward_search_againrl_noninc_reverse_search_again_rl_nsearch_callback.XAKgoyLkgjUMUC2.rl_history_search_pos.XAKgoyLkgjUMUC2.history_search_string.XAKgoyLkgjUMUC2.prev_line_foundstrcmp.XAKgoyLkgjUMUC2.rl_history_search_len.XAKgoyLkgjUMUC2.history_string_sizexreallocstrncpy_rl_free_saved_history_linerl_history_search_forwardrl_last_funcrl_history_search_backwardrl_get_next_historyrl_get_previous_history.rel.text.rel.debug_info.rel.debug_line.rel.debug_pubnames.rel.debug_funcnames.rel.debug_typenames.rel.debug_varnamesUUPjBP jjutjPÐU E }EEjE Pu Ez E@^uUEPBPEEPEPE%EtEjEPEEEÐUEtE@t }EU E PREP EEu#EoEEjPEtjEPjEPEEÐUjjEE}EPEPEUP@EU@,B<BE t E E E:jEPEjEPh jEP EEEEÐUjEP%E EEÐUE@$E@(%ÐUE Pj!E Pj EujEPkEE PjjEP8E~ uEjHPE PjlE }0 }} t뫐tB똃 +덐} pYEEÐUE@(u1u#%E~^E@,tjPjPj@PСPRE@@PPqEEÐUE PEPME%t EEjEPEEu6EPEPkEE} EUEu뱐jEPEE|EPEPEEEEEEÐUE ?u E?EEPjEEÐUE /u E/EEPjEEÐUuE$jPEEEEÐUuE$jPEEEEÐUjEPEEPEPEEt EFjEPEE|EPEPEEEEEEÐUEEU E PRP EEuEEjPEjEPt4PE@@;uE@PPuE@EHEE@Eu*E,jEPEEÐUtx;|&PP^BPPBP BÐU EuE=t=tuE PEPEFE|EEE؉EE~ E EEPEPxEEÐU EuE=t=tguE PEPEFE|EEE؉EE~ E EEPEPEE%s@(#)types.h 1.86 07/09/20 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)machtypes.h 1.11 04/09/28 SMI@(#)machtypes.h 1.2 04/09/28 SMI@(#)int_types.h 1.10 04/09/28 SMI@(#)select.h 1.19 04/01/28 SMI@(#)time_impl.h 1.11 05/05/19 SMI@(#)time.h 2.77 09/06/02 SMI@(#)time.h 1.45 08/01/09 SMI@(#)time_iso.h 1.4 04/09/07 SMI@(#)stdio.h 1.84 04/09/28 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMI@(#)unistd.h 1.76 06/03/10 SMI@(#)unistd.h 1.43 06/03/10 SMI@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMI@(#)string.h 1.27 07/01/14 SMI@(#)string_iso.h 1.5 04/06/18 SMI@(#)stdarg.h 1.47 04/09/28 SMI@(#)stdarg_iso.h 1.4 04/11/19 SMI@(#)va_impl.h 1.1 04/11/19 SMI@(#)stdarg_c99.h 1.2 04/09/28 SMI@(#)wchar.h 1.37 03/12/04 SMI@(#)wchar_iso.h 1.8 04/09/28 SMI@(#)wchar_impl.h 1.3 99/07/26 SMI@(#)ctype.h 1.35 04/09/28 SMI@(#)ctype_iso.h 1.3 04/09/28 SMI@(#)ctype_c99.h 1.2 04/09/28 SMI@(#)stddef.h 1.18 04/09/28 SMI@(#)stddef_iso.h 1.2 03/03/06 SMI@(#)wchar_c99.h 1.3 04/03/29 SMI@(#)wctype.h 1.19 03/12/04 SMI@(#)wctype_iso.h 1.2 03/12/04 SMI@(#)wctype_c99.h 1.1 03/12/04 SMI@(#)limits.h 1.59 04/08/24 SMI@(#)limits_iso.h 1.2 03/12/04 SMI@(#)int_limits.h 1.9 04/09/28 SMI@(#)strings.h 1.3 96/03/12 SMI@(#)setjmp.h 1.38 04/09/28 SMI@(#)setjmp_iso.h 1.2 04/09/28 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03Qsearch.c /var/tmp/readline-6.1 /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I. -DRL_LIBRARY_VERSION='"6.1"' -g search.c -W0,-xp.XAKgoyLkgjUMUC2.Xa;g;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLkgjUMUC2.;backend;raw;cd;DBG_GEN 5.2.7intcharundo_listtnextt#start#end#text# whaty#!undo_codeUNDO_DELETEUNDO_INSERTUNDO_BEGINUNDO_END!UNDO_LISTlong  __rl_search_contexthtype#sflags#search_string#search_string_index# search_string_size#lines#allocated_line#hlen#hindex# save_point#$save_mark#(save_line#,last_found_line#0prev_line_found#4save_undo_list#8history_pos#<direction#@lastc#Dmb#Hsline#Xsline_len#\sline_index#`search_terminators#d_rl_search_cxt _rl_nscxt7 noninc_search_string> prev_line_foundA make_history_line_currentZ[UrentryXvoidrzhistdata_t_hist_entry line#timestamp#data#HIST_ENTRYnoninc_search_from_postUistringqposq dirq retu oldunoninc_dosearchUstringdir oldpos pos entry_rl_nsearch_initU[dirpchar cxt p_rl_nsearch_cleanupAUcxtr _rl_nsearch_abortUcxt_rl_nsearch_dispatchU cxtc _rl_nsearch_dosearch4U]cxt2noninc_search`Udir]pchar] cxtacbrbrl_noninc_forward_searchU1countkey rl_noninc_reverse_searchUcountkey rl_noninc_forward_search_againgUcountkey rrl_noninc_reverse_search_againU] countkey r_rl_nsearch_callbackFU cxtcrrl_history_search_internal UU countdir tempretoldposrl_history_search_reinit: Url_history_search_forward U countignore rl_history_search_backward/ U0 count-ignore- history_string_sizeF history_search_stringE rl_history_search_posD rl_history_search_lenC noninc_history_pos?_rl_free_history_entry  unsignedxreallocz; z xmalloczV  _rl_rubout_char~ _rl_insert_char  _rl_replace_text  _rl_fix_point _rl_free_saved_history_line_rl_search_getcharK  _rl_scxt_disposep  _rl_scxt_alloc _rl_make_prompt_for_search  history_search_prefix   history_search.history_set_posQcurrent_historywhere_historyrl_maybe_unsave_linerl_maybe_save_linerl_dingrl_insert_textrl_restore_promptrl_message8rl_clear_messagerl_free_undo_listrl_unix_line_discardrl_unix_word_ruboutrl_get_previous_historyrl_get_next_history size_t0tm$tm_sec#tm_min#tm_hour#tm_mday# tm_mon#tm_year#tm_wday#tm_yday#tm_isdst# :__wcsftime_xpg5##5wchar_t__wcstok_xpg5Y$)wint_t__putwchar_xpg5YYunsigned char__FILE{_cnt#_ptr#_base#_flag# _file# __orientation # __ionolock #  __seekable #  __extendedfd #  __xf_nocheck #  __filler #  __putwc_xpg5YY{__getwchar_xpg5Y__getwc_xpg5Y{__ungetwc_xpg5YY{__fputws_xpg5: __fputwc_xpg5Y`Y{__fgetws_xpg5`__fgetwc_xpg5Y{strncpy strlen#strcpy- -7strcmp`2<mkstemp64}mkstemp64freezlong longlockf64truncate64 off64_ttell64 5ssize_trCpwrite645x5H rpread6455x lseek64  ftruncate64truncate64off_ttell64CrCpwrite645x5H pread6455x lseek64lockf64ftruncate64ftello64 1fseeko64WWfsetpos64\fgetpos64FILE tmpfile64freopen64fopen64< ftello64]<fseeko64fsetpos64fgetpos64freopen64  fopen64@tmpfile64 /var/tmp/readline-6.1/usr/include/sys/usr/include/isosearch.crlprivate.hreadline.hhistory.htypes.htime_iso.hwchar_iso.hstdio_impl.hstdio_iso.h & 05? O Y fn |             &D I Xu }               &5 = L U a fp~          - < SX ] h s x           (> Tb d[(       . <G a         + 3 < D H L ]    &0 5 @ S b v           A V[ bn          " o. 6 ; @  J T ` n x             3 8 F N \ t y       $ ) 3 H   DD%$> I :  I8  : ( I: I  !I/ 4I?  : ;  4I : ;  . : ; @ ' D I: ;  . : ; @ ' ID . : ;@ ' ID . : ;@ ID I: ; 4I : ; .?  : ;@ ' ID . : ;@ ' D .? < ' ID I&I.? < ' D .? < ' ID .? < ' D  I8 U_rl_nscxtrl_noninc_forward_search1rl_noninc_reverse_searchrl_noninc_forward_search_againrl_noninc_reverse_search_again] _rl_nsearch_callback rl_history_search_forward rl_history_search_backwardU3make_history_line_currentnoninc_search_from_posinoninc_dosearch_rl_nsearch_init[_rl_nsearch_cleanup_rl_nsearch_abort_rl_nsearch_dispatch _rl_nsearch_dosearch]noninc_search rl_history_search_internalU rl_history_search_reinitUyundo_code!undo_listUNDO_LIST__rl_search_context_rl_search_cxthistdata_t_hist_entryHIST_ENTRY#size_t:tmYwint_t__FILE off64_t5ssize_toff_tFILEUnoninc_search_stringprev_line_found0 history_string_sizeR history_search_stringv rl_history_search_pos rl_history_search_len noninc_history_pos[`   AP91SF[iP>      0GUew1>Mhsx,RYah{55 GpG'Nov @   1E '!1"6#B#H$Q#}%&''()''% &;*E+Z*~,-.+*%*&/!&.0-+1b2h3w4.567''8 98')'T,Y-d.o0t:y'';<.= ++>5?H@[AB0. C+: '*'C*HCTCZ7d4jDvE4FC":C'G'C1+CCwC+CGW2pM}NM%M&/&OOO P O7 ,< +A QF .K P 0o Qt .y ~ 0 % M . Q O . R Q Q R R N S N N N . 4 T! N' .4 U] Wb Vi Wn Xz Q Y W V W X* Q< Z8C/OQU}sw : >p tHPITJ K x L|   s  w  V  X N Rr N M Q * &-9AIQYaiqy '/7?GOW_gt{#+3@GS[cks{  )1;EMZ amw !)19AIQYaivH}IJK !)6L=IQYaiq~ #+5=EOW_gt {V !)6X=IQ[cks{4   "+Q4?UKY2W:e<u=">?p@] Fg Kp w L  hS  pS  xS S rltty.o/ 1280456740 0 0 100644 19092 ` ELFF4(.strtab.text.bss.data.rodata.rodata1.comment.debug_loc.debug_info.debug_line.debug_abbrev.debug_pubnames.debug_funcnames.debug_typenames.debug_varnames.symtabrltty.cset_winsizesave_tty_chars_get_tty_settingsget_tty_settings_set_tty_settingsset_tty_settingsprepare_terminal_settings_rl_bind_tty_special_charsset_special_charBbss.bssDdata.dataDrodata.rodataioctl.XAKgoyLkgjUMUD2._rl_tty_chars.XAKgoyLkgjUMUD2._rl_last_tty_chars_rl_intr_char_rl_quit_char_rl_susp_chartcgetattrerrno_rl_errmsgtcsetattr_rl_echoing_p_rl_echoctl_rl_eof_charrl_prep_terminal.XAKgoyLkgjUMUD2.terminal_prepped_rl_block_sigintrl_instreamfileno_rl_release_sigint.XAKgoyLkgjUMUD2.otio_rl_bind_stty_charsrl_editing_modevi_insertion_keymaprl_tty_unset_default_bindings_rl_keymaprl_readline_state_rl_enable_keypad_rl_control_keypadrl_outstreamfflushrl_deprep_terminalrl_restart_outputrl_stop_outputrl_ruboutrl_unix_line_discardrl_quoted_insertrl_unix_word_ruboutrltty_set_default_bindingsrl_tty_set_default_bindingsrl_insert_rl_disable_tty_signals.XAKgoyLkgjUMUD2.tty_sigs_disabled.XAKgoyLkgjUMUD2.sigstty.XAKgoyLkgjUMUD2.nosigstty_rl_restore_tty_signalsrl_prep_term_functionrl_deprep_term_function.rel.text.rel.data.rel.debug_info.rel.debug_line.rel.debug_pubnames.rel.debug_funcnames.rel.debug_typenames.rel.debug_varnamesUEPhhTEP uEPhgTEP ÐU u}5=|E@E@E@E@E@E@E@E@EEEE@EEEE@EE EE@ E@ E@ E@ E@u}ÐUE PEPEE}t E?АE @ % t$jhE P E P EEÐUjEPE PEPU} EEEÐUE PhTEP }8t E,E PhTEP |EEÐUE PEP}} EEEUEE%E0P E0P E t E E0@00tEtE0PϋE0PE0PE0PE0P E0P U0BU0BE0@ % tE0P E0P E%EU0BU0BÐU(t jPEEPEP}3tt 0u EأEܣEE EEEEE t.ujhjPjh t]u*uuuuuuuuuh1()uuuuuuuuuءP(EP5 55555 555EP`,EPEP }Ct jjjPÐUuzjPEt jjjPhEP`}ÐUjPEjhntEP EEÐUjPEjhotEP EEÐUE E@EEtUEЃuUEMLÐUjjhjE PEPjjhjE PEPjjhjE PEPojjhjE PEPTÐU(jPE؍EPEP u'uuuuuuuuu܋EP.(ÐUjEPÐU%ut'EЃuE Lt'EЃuE L t' EЃu E Lt'EЃuE LÐUt EjPhP } E  %jPhP3}#jPhPEEEÐUu E UC _rl_restore_tty_signals U0 rnosigsttysigsttyotioN _rl_tty_chars t_eof# t_eol# t_eol2# t_erase# t_werase# t_kill# t_reprint# t_intr# t_quit# t_susp# t_dsusp# t_start# t_stop# t_lnext# t_flush# t_status#t _RL_TTY_CHARS _rl_last_tty_chars B _rl_tty_chars B terminal_prepped@ _rl_errmsg  _rl_control_keypad; _rl_release_sigint_rl_block_sigintrl_unix_line_discard rl_unix_word_rubout rl_rubout rl_quoted_insert rl_insert/ / tcsetattr` 4 tcgetattr %long longlockf64   truncate64    off64_ttell64  ssize_tvoid  pwrite64 T  $ x  pread64   T x lseek64   ftruncate64   truncate64    off_ttell64  pwrite64 T $x pread64 ~ T x lseek64  lockf64 ioctlftruncate64   __FILE _cnt# _ptr # _base # _flag# _file# __orientationx# __ionolockx#  __seekablex#  __extendedfdx#  __xf_nocheckx#  __fillerx#  ftello64  fseeko648   8fsetpos64d = fgetpos64 dFILEtmpfile64freopen64fopen64ftello64 >fseeko64d  fileno~  ~fsetpos64 fgetpos64 dfreopen64fopen64; fflushU tmpfile64, /var/tmp/readline-6.1/usr/include/sys/usr/include/isorltty.crltypedefs.htermios.hkeymaps.hrltty.htypes.hstdio_impl.hstdio_iso.h 5 Lq }         %1=IUfy           # 6P Z d n|        " 1CR] hx       " (p z     -s              " 2 H M PZ g l v    * 3N i    ! 3B H {  & 0 < _ l     ( 2 9 F P \ }     DD%$> ' D II: I4I?  : ;  ' D . : ; @ ' D  I: ;  4I : ;   :  I8 . : ;@ ' D I: ; D D I !I/ . : ;@ ' ID 4I : ; .?  : ;@ ' D .?  : ;@ ' ID ' ID .?  : ;@ D &I.? < ' D .? < ' D .? < ' ID  I8 .? < ' ID 2j3rl_prep_term_functiontrl_deprep_term_functionrl_prep_terminalFrl_deprep_terminalrl_restart_outputrl_stop_outputrltty_set_default_bindingsrl_tty_set_default_bindingsFrl_tty_unset_default_bindings_rl_disable_tty_signals_rl_restore_tty_signalsjset_winsize?save_tty_chars*_get_tty_settingsget_tty_settings_set_tty_settings$set_tty_settingsnprepare_terminal_settingsIset_special_charB_rl_bind_tty_special_charsjrl_vintfunc_t[rl_voidfunc_twinsizetcflag_tcc_ttermiosrl_command_func_t_keymap_entry5Keymapt _rl_tty_chars _RL_TTY_CHARS off64_t ssize_t off_t__FILEFILEjtty_sigs_disabled0 nosigsttyI sigstty` otio _rl_last_tty_chars _rl_tty_chars terminal_prepped7@`xH0d030qN<_`ijuv      '5AN$_ $$0$/ASfszp88W )3 KnH$l$@ Z.NTy !!-9EQo"#$#D%Q#f#|%&'(*+,-## #&.,/4/</D/L/T/\/d/l/q0{12343/55012 43/9/?/E/K/Q/W/]/c/.6789*55.*+,- 67%8+93/I.R*[5c5h.y8-,-8=S>n?@,-A45KWjsC~CC  C' E? ,E -M Fm Fr Gw F| G F G F G F G F G F G F G F G G G G G , - G , - F* EG E_ ,e -m F E):TIJSWAE:> )_:c;<_ cb fA%B)j3nED H E G\ Fp /   * "*2:BJT^hr|$,6CJV^fnx &.8@HR\k)r~ &08@HRZbjrz: ;(2?<FR\fs z AB"/36BJRZdn{DH&4n  LL X"X%+}4?jK(0W0e 26uB3455 L:( t? ?x   @  F 0 F E FZ Fcomplete.o/ 1280456740 0 0 100644 73924 ` ELF4(.strtab.text.bss.data.rodata.rodata1.comment.debug_loc.debug_info.debug_line.debug_abbrev.debug_pubnames.debug_funcnames.debug_typenames.debug_varnames.symtabcomplete.cmknodset_completion_defaultsget_y_or_n_rl_internal_pagerpath_isdirstat_charprintable_partfnwidthfnprintprint_filenamerl_quote_filenamegen_completion_matchesremove_duplicate_matchescompute_lcd_of_matchespostprocess_matchesdisplay_matchesmake_quoted_replacementinsert_matchappend_to_matchinsert_all_matchesBbss.bssDdata.dataDrodata.rodata_xmknodrl_completerl_completion_invoking_keyrl_inhibit_completion_rl_insert_charrl_last_func.XAKgoyLkgjUMUE2.completion_changed_bufferrl_complete_internal_rl_complete_show_all_rl_complete_show_unmodifiedrl_possible_completionsrl_insert_completionsrl_completion_mode_rl_reset_completion_staterl_completion_found_quoterl_completion_quote_characterrl_filename_completion_desiredrl_filename_quoting_desiredrl_completion_typerl_completion_suppress_quoterl_completion_suppress_appendrl_completion_append_character_rl_complete_mark_symlink_dirsrl_completion_mark_symlink_dirsrl_readline_staterl_read_key_rl_abort_internalrl_dingrl_outstreamfprintffflush_rl_erase_entire_linestat64lstat64accessstrrchrstrlenmemsetmbrtowcwcwidth__flsbuf__ctypetoupperfwriterl_visible_stats_rl_complete_mark_directoriestilde_expandrl_directory_completion_hookxmallocstrcpyfreerl_completer_quote_characters_rl_find_completion_wordrl_pointrl_completion_word_break_hookrl_completer_word_break_charactersrl_line_bufferstrchrrl_byte_oriented_rl_find_next_mbchar_rl_find_prev_mbcharrl_char_is_quoted_prl_basic_quote_charactersrl_special_prefixesrl_attempted_completion_function_rl_interrupt_immediatelyrl_attempted_completion_overrl_completion_matchesrl_sort_completion_matches_rl_qsort_string_compareqsortstrcmp_rl_completion_case_foldtolowertowlower_rl_compare_chars_rl_get_char_lenrl_filename_dequoting_functionstrncmpstrncpyrl_ignore_completion_duplicatesrl_ignore_some_completions_functionrl_display_match_list_rl_completion_prefix_display_length_rl_screenwidthrl_crlf_rl_print_completions_horizontally_rl_page_completions_rl_screenheight_rl_vis_botlin_rl_move_vertrl_forced_update_displayrl_display_fixedrl_completion_display_matches_hookrl_completion_query_items.XAKgoyLkgjUMUE2.completion_y_or_nrl_filename_quote_charactersstrpbrkrl_filename_quoting_function_rl_skip_completed_textrl_end_rl_replace_textrl_insert_textrl_begin_undo_grouprl_delete_textrl_end_undo_group_rl_free_match_listrl_completion_entry_functionrl_filename_completion_functionrl_copy_textrl_editing_mode_rl_ttymsgxreallocrl_username_completion_function.XBKgoyLkgjUMUE2.rl_username_completion_function.username.XBKgoyLkgjUMUE2.rl_username_completion_function.first_char.XBKgoyLkgjUMUE2.rl_username_completion_function.first_char_loc.XBKgoyLkgjUMUE2.rl_username_completion_function.namelensetpwentgetpwent.XBKgoyLkgjUMUE2.rl_username_completion_function.entryendpwent.XBKgoyLkgjUMUE2.rl_filename_completion_function.directoryclosedir.XBKgoyLkgjUMUE2.rl_filename_completion_function.dirname.XBKgoyLkgjUMUE2.rl_filename_completion_function.filename.XBKgoyLkgjUMUE2.rl_filename_completion_function.users_dirnamerl_directory_rewrite_hookopendir.XBKgoyLkgjUMUE2.rl_filename_completion_function.filename_lenreaddir64rl_filename_rewrite_hook_rl_match_hidden_filesstrncasecmprl_complete_with_tilde_expansionrl_old_menu_complete.XBKgoyLkgjUMUE2.rl_old_menu_complete.orig_text.XBKgoyLkgjUMUE2.rl_old_menu_complete.matches.XBKgoyLkgjUMUE2.rl_old_menu_complete.match_list_size.XBKgoyLkgjUMUE2.rl_old_menu_complete.match_list_indexrl_menu_completion_entry_function.XBKgoyLkgjUMUE2.rl_old_menu_complete.orig_end.XBKgoyLkgjUMUE2.rl_old_menu_complete.delimiter.XBKgoyLkgjUMUE2.rl_old_menu_complete.quote_char.XBKgoyLkgjUMUE2.rl_old_menu_complete.orig_startrl_menu_completerl_backward_menu_complete.XBKgoyLkgjUMUE2.rl_menu_complete.full_completion.XBKgoyLkgjUMUE2.rl_menu_complete.orig_text.XBKgoyLkgjUMUE2.rl_menu_complete.matches.XBKgoyLkgjUMUE2.rl_menu_complete.match_list_size.XBKgoyLkgjUMUE2.rl_menu_complete.match_list_index.XBKgoyLkgjUMUE2.rl_menu_complete.orig_end.XBKgoyLkgjUMUE2.rl_menu_complete.delimiter.XBKgoyLkgjUMUE2.rl_menu_complete.quote_char.XBKgoyLkgjUMUE2.rl_menu_complete.orig_start.XBKgoyLkgjUMUE2.rl_menu_complete.nontrivial_lcdrl_basic_word_break_characters.rel.text.rel.data.rel.debug_info.rel.debug_line.rel.debug_pubnames.rel.debug_funcnames.rel.debug_typenames.rel.debug_varnamesUjjEPE PEPjEEÐUE tE PEPEw=uujj?EMtjj!E1tjj@Ejj EEÐUE jj?EEÐUE jj*EEÐU;Euu E?5t E!!t E@ E EÐUÐUE ÐU@E࿣EytEYtE u EEntENtEu EkEtE}EtE tE u E2EtEqtEQu E0EÐUhPjPjjEEu E"Eu EHEEEÐUlPEPuE%=@u Džh DžhhEEÐUlPEPdduEDžhE%=@uDžh/E%= uDžh%E%=`uDžh#E%=u Džh@eE%=u Džh=IE%=u Džh|-E%=ujEPu Džh*hEEÐUu EEj/EPEEt E@u EEsE@uTEHEE;Ev E@/uEHEE;EwE@/u E@EEEEEE@EEEEÐU8jEP@EjjEP EEEEE@EE@ }EE@%tEE@uEEE@EMMU+UjjEPRQEPEЋEЃtEЃu#E@EE@EjjEP KEЃuQEEЉEjEPEԋEԃ| EԉE EEEȉEEE@EEEÐUdjEPUDEjjEP EEE @uE E EE @.u E_E.EEEE}}@HEUPE}UǡPRE7EE@EEU@BELjEEUBEEE@EE|EEE EE@E@ E@%@HEġUĉPEă}Pj^E6EE@EEU@B^UB^E@HEUPE}yE@@ЋE@@;u6E@@tE@@jPE E@@EPEPEEE@EEU@BE@@ЋE@@;u7E@@tE@@jPEE@@EEEEUBEEEEE@EjjEP E@@HEġUĉPEă}Pj^E4EE@EEU@B^UB^E@HEUPE}Pj?E4EE@EEU@B?UB?EEEE@EjjEP U+UjjEPREPEPEЋEЃtEЃu"EEjjEP ?EЃuqjEPEE| EE EEĉEjjPEPjEPEEЉEEẺEE@FEEEÐU8EEPEPEu~E;E E@EUBE t E @u  EXE @/tE EBE @u E+E @/uE @u  EE EjEPEtjEPЃjEPEjEPEEEjPEEPEPEE@/u EHEUU/BUU/BUUEPBPtjEPEjEPtE/jEPUEBJjE PEtjEPEjEP%tE/jEPEtt@HEءU؉PE؃}PEPE7EЋEЋ@E̋E̋U@BEEEˋÜBEˉEԋE@EEEEÐUjEPjPE@UBUEPBPEt@UBEEEÐU,EEEEEEt ЉE܋E܃uEܡIEEEE;E0EtEE't'E@\uEEEEt'EPE;uEEjE@PPtIE@EE@E'u EEE"u EE EE~+u!jjjjEPPE E@E؋E؉EE;E;EE~(ujPP E HE؋EأE؃@EEPEPu6t&EtPPЃtS~(ujPP E HEԋEԣEԃP@EEtSEtPPЃu EPEPt E EE؉EEPEPEEtat+EPPtE+~EEtEPPu @Et EUPE t E UPEEEUEEt`@EPE PEPЃ E~ HEu tEEEPEPEEEEÐU ]EUEtE@EUEuEt)tUEjjhjHPBPEj@Pj@PЋE@PREEEEUEDtc]MUEDPPu$UEjPUEM E@EE@EUEDuEjPEEEEUEt>UEE;tUE]ME@EE@EUEu‹UEEPE;tEj@PEUPEu6UE@PBPuEj@PE@EEE]ÐUx]uE u$EU@BE@EEE蠆E;E ~*u jjEP jjEP NEUEE@ȋUEE@;uDUEE@t%UEE@jPEUEE@EEEEUEDE@ȋUEDE@;uFUEDE@t&UEDE@jPEUEDE@EEEEUE]UEEjPjjEPRSEPEUE\]UEDEjPjjEPRSEPjEPEjEPEE;EtTE~ EUDEE;Et-E@EUEE@ȋUEE@;uBUEE@t#UEE@jPEUEE@EEEEUEDE@ȋUEDE@;uFUEDE@t&UEDE@jPEUEDE@EEEECEUEE@EEUEDE@EEEȉEẺEEЉEEԉEE؉EE܉Eu]MUEPEPDPEPEPPuUEUEPREE~ EUDE E;EtDE@EUEE@EEt UEDE@EEE;E~EEE@EE;E  EuQEtIE@t=jEPj@PЋEPUEPBPEj@PЋEP;Et;t1t'tPEPЃEEEUjjhjE PBPjEPEE;EEE;E PMUEPEPP u"]MUEPPCP E@EE;E ~E;E ~MUEPBPAP UEPEPBP EtjEPMUEPBPAP EPUBE EE]uÐUE@EEu EEt%jEPwEjEPEEE EUEtE@EUEujEPЃEt E@u.EtjEPE@EEUEtE@EUEuE~>E;E}6E@EUEPBPEP EtjEPEUPEEÐU@EE؉EܡEj@P1Ej/EPEԋEԃtjEPEjEPE̋ẺE܋EԃtjEPEjEPEȋEȉE؋E;~E܃~E܋U+ЉUEE؉E܋EE}EEtEE;uEHEEuEEU D}Eu(tUjjhjE PBPEEE;EEEEE;E E;E UEuUEjPEԋMUEPPEPz EE@;EEE+EU;}@HE̡ỦPẼ}Pj E7EċEċ@EEU@B UB EȋE@EE+EU;|EEEE@EE;EE@Et6UH;|)E;E}!jEPREE}E@EE;E|vEUEXUEjPEԋMUEPPEP EUEDEt`E~XE}ƒuJE@Et,UH;|jEPxEE}EE+EU;}|@HE̡ỦPẼ}Pj E4EċEċ@EEU@B UB EȋE@EE+EU;|E@EUEÐUjPE@uGEj@PEEj@PEP /EEUEtKUEjP+EjEPEE;E~EEE@EUEuEHEtEPEPEPЃ ~nE;|cEPhP jPjjzEEEu%EPEPEP ÐUEEEt(ttt EEEEEtXEtCEt1E@t%t%E@PPt EEEEEt!PEPEEEEEt E E EEEEt#tEPEPEPЃ EEEEÐUEtE@E EEEEPEPEPv EEjEPEEtGE@t;E t3E PE@;uEPE@;u E HE JEtAEPE;t2E t*E PE;uEPE;tE HE HEEtJE@t>Et6PE@;uEEPE@;uE@EEEE ;}_E@tSE PE@;uEPEPЃEE;Eu EEjEPE܋E܉Eu[uE@.upE@.u$E@t E@.u E@td3E@ЋE@;u1E@tE@jPE E@Eܡ@С@;u5@t@jPE @E؋E;Eu,E;|!PEPP uoBEP@;u,E;|!PEPP u+tjPEEEtjPtjPtjPtjPEN@.u@.@~jPE]EjPjDPEPEPE@/t#UU/BE@EUUBrjPE]EjPjDPEPEPE@/tUU/BE@EUUEPR/jEPj@PЋEPREE;EtjEPEEE]ÐU,]ԡ=UtjPtjPE @jj%EEu%t E EEEEthEPPPPEPEPPPPEtEPh|uttjPtjP%E%t@u~tjPt uBtjPE E}=£u3~)jjhjPP~ jjhjPPEءEPPjjPSPEU؋PEE]ÐU4]̡=t =uetjPtjP @jj%EEu%t E EEEEthEPPPPEPEPPPPt&@PPt EEEEtEPhEuutjPtjP%E%t@uuLtjPE@@@t EEjjhEPPBPj@P£P@@;u'@PPu E EE~vtljPG~N;|AtjPENB jjPRPAPEbt u@tjPE E}=£u7~-jjhjPBP~ jjhjPPEСEPPjjPSPE؋UЋPEE]ÐUUڋE PREE dp--More--///Display all %d possibilities? (y or n) bad value %d for what_to_do in rl_complete. "\'`@$><=;|&{("'@(#)types.h 1.86 07/09/20 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)machtypes.h 1.11 04/09/28 SMI@(#)machtypes.h 1.2 04/09/28 SMI@(#)int_types.h 1.10 04/09/28 SMI@(#)select.h 1.19 04/01/28 SMI@(#)time_impl.h 1.11 05/05/19 SMI@(#)time.h 2.77 09/06/02 SMI@(#)time.h 1.45 08/01/09 SMI@(#)time_iso.h 1.4 04/09/07 SMI@(#)fcntl.h 1.17 06/03/10 SMI@(#)fcntl.h 1.52 07/03/05 SMI@(#)file.h 1.70 07/03/05 SMI@(#)t_lock.h 1.45 98/02/01 SMI@(#)machlock.h 1.25 04/07/19 SMI@(#)param.h 1.82 06/01/30 SMI@(#)unistd.h 1.43 06/03/10 SMI@(#)mutex.h 1.21 07/04/04 SMI@(#)rwlock.h 1.9 98/02/18 SMI@(#)semaphore.h 1.5 98/02/01 SMI@(#)condvar.h 1.14 04/10/21 SMI@(#)unistd.h 1.76 06/03/10 SMI@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMI@(#)stdio.h 1.84 04/09/28 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMI@(#)errno.h 1.17 03/01/03 SMI@(#)errno.h 1.20 00/01/12 SMI@(#)pwd.h 1.22 04/09/28 SMI@(#)dirent.h 1.37 04/09/28 SMI@(#)dirent.h 1.36 04/09/28 SMI@(#)stat.h 1.11 04/09/28 SMI@(#)stat_impl.h 1.4 03/12/04 SMI@(#)string.h 1.27 07/01/14 SMI@(#)string_iso.h 1.5 04/06/18 SMI@(#)stdarg.h 1.47 04/09/28 SMI@(#)stdarg_iso.h 1.4 04/11/19 SMI@(#)va_impl.h 1.1 04/11/19 SMI@(#)stdarg_c99.h 1.2 04/09/28 SMI@(#)wchar.h 1.37 03/12/04 SMI@(#)wchar_iso.h 1.8 04/09/28 SMI@(#)wchar_impl.h 1.3 99/07/26 SMI@(#)ctype.h 1.35 04/09/28 SMI@(#)ctype_iso.h 1.3 04/09/28 SMI@(#)ctype_c99.h 1.2 04/09/28 SMI@(#)stddef.h 1.18 04/09/28 SMI@(#)stddef_iso.h 1.2 03/03/06 SMI@(#)wchar_c99.h 1.3 04/03/29 SMI@(#)wctype.h 1.19 03/12/04 SMI@(#)wctype_iso.h 1.2 03/12/04 SMI@(#)wctype_c99.h 1.1 03/12/04 SMI@(#)limits.h 1.59 04/08/24 SMI@(#)limits_iso.h 1.2 03/12/04 SMI@(#)int_limits.h 1.9 04/09/28 SMI@(#)strings.h 1.3 96/03/12 SMI@(#)setjmp.h 1.38 04/09/28 SMI@(#)setjmp_iso.h 1.2 04/09/28 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03vAcomplete.c /var/tmp/readline-6.1 /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I. -DRL_LIBRARY_VERSION='"6.1"' -g complete.c -W0,-xp.XAKgoyLkgjUMUE2.Xa;g;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLkgjUMUE2.;backend;raw;cd;DBG_GEN 5.2.7mknod(UZZn_path_mode _devintcharaiunsigned longsmode_tsdev_ta  Z Zrl_compdisp_func_t rl_completion_display_matches_hook_ _rl_complete_show_allZ _rl_complete_show_unmodifiedZ _rl_complete_mark_directoriesZ _rl_complete_mark_symlink_dirsZ _rl_match_hidden_filesZ _rl_completion_prefix_display_lengthZ rl_visible_statsZ _rl_skip_completed_textZ Zl [rl_icppfunc_tl rl_directory_completion_hook rl_directory_rewrite_hook   Zrl_dequote_func_t rl_filename_rewrite_hook rl_complete_with_tilde_expansionZae  j Zorl_compentry_func_t rl_completion_entry_function rl_menu_completion_entry_functiona &  Z Z rl_completion_func_t& rl_attempted_completion_functionA rl_attempted_completion_overZ rl_completion_typeZ rl_completion_query_itemsZ _rl_page_completionsZa rl_basic_word_break_charactersaI rl_basic_quote_charactersN rl_completer_word_break_characters rl_cpvfunc_t rl_completion_word_break_hooka rl_completer_quote_characters a3 rl_filename_quote_characters8 aj rl_special_prefixeso rl_ignore_completion_duplicatesZ rl_filename_completion_desiredZ rl_filename_quoting_desiredZ! Z4 #rl_compignore_func_t4 rl_ignore_some_completions_functionO,   Z rl_quote_func_t rl_filename_quoting_function2 rl_filename_dequoting_function8 Z0  Z rl_linebuf_func_t0 rl_char_is_quoted_pH = rl_completion_suppress_appendZB rl_completion_append_characterZF rl_completion_suppress_quoteZK rl_sort_completion_matchesZgrl_complete}UZw Zignore{Zinvoking_key{ rl_possible_completionsUZ ZignoreZinvoking_key rl_insert_completions2UZ/ ZignoreZinvoking_key rl_completion_modeUZn  cfunc Z Z Zn rl_command_func_t _rl_reset_completion_stateUset_completion_defaults U Zwhat_to_doget_y_or_nUZ^ Zfor_pagercZ_rl_internal_pagereUZ ZlinesiZpath_isdirUZ  filenamefinfo"a long  unsigned long long ino_tsnlink_t uid_t gid_t y  long longy off_t time_ttimespec tv_sec #tv_nsec # timestruc_t blksize_ty blkcnt_ta  " statCst_dev#st_pad1 #st_ino6 #st_mode#st_nlinkB #st_uidP # st_gid\ #$st_rdev#(st_pad2h #,st_size #4st_atim #<st_mtim #Dst_ctim #Lst_blksize #Tst_blocks #Xst_fstype#`st_pad4#pstat_charUZfilenamefinfo"characterZrZprintable_partPU!pathnameNtempQxQfnwidthq.UZstringowidthZrposZrps!tleftZuwZuclen=vwcJwaZ __mbstate_t!__filler#mbstate_tunsigned1size_twchar_tfnprint UZto_printZprefix_bytes printed_lenZwZsps!endtlen=widthZwcJ{@@@ellipsisaaaaprint_filenameUZto_printfull_pathname Zprefix_bytesprinted_lenZextension_charZslenZtlenZscanew_full_pathnamednrl_quote_filename_YU4s[Zrtype[ qcp[r`_rl_find_completion_word|PUaGGfpzGdpz scanZ}endZ}found_quoteZ}delimiterZ}pass_nextZ}isbrkZ}quote_chara~brkchars~Zgen_completion_matchesUtextZstart Zendour_funcZfound_quoteZquote_charmatchesremove_duplicate_matches&Umatches$lowest_common'iZ(jZ(newlenZ(dead_slota)temp_array*compute_lcd_of_matchese<UZmatch_listaZmatchesa textaiZfc1Zfc2ZfsiZflowZgdtexthvZjps1!kps2!kwc1Jlwc2Jl8GR4R4&&&&**HHps_back!Capostprocess_matchesUZmatchespZmatching_filenames tmatchestemp_matchesnmatchZiZrl_display_match_list8D#Umatches5Zlen5 Zmax5countZ9limitZ9printed_lenZ9linesZ9iZ:jZ:kZ:lZ:common_lengthZ:sindZ:temp;t;display_matches$UomatcheslenZmaxZiZtempmake_quoted_replacement3&U%matchZmtype qcshould_quoteZdo_replaceZreplacementinsert_match#|(UmatchZstart Zmtypeqcreplacement$r$oqca%endZ&rlenZ&append_to_match^*UZtext[Zdelimiter[ Zquote_char[Znontrivial_match[temp_string_filename_temp_string_indexZ`sZ`finfo"aa insert_all_matches,UmatchesZpoint qciZrp_rl_free_match_list~,UmatchesiZrl_complete_internal0UZ/ Zwhat_to_domatchesour_funcstartZendZdelimiterZfound_quoteZiZnontrivial_lcdZtextsaved_line_bufferquote_chararl_completion_matchesq1U  textnentry_functionn match_list_sizeZsmatch_listvmatchesZystring|a rl_username_completion_function]3U!!textZstate usernameentry"namelenZfirst_charZfirst_char_locZvaluea!passwd$ "pw_name#pw_passwd#pw_uidP #pw_gid\ # pw_age#pw_comment#pw_gecos#pw_dir#pw_shell# !rl_filename_completion_function8;U$$textZstate directoryr$filenamedirnameusers_dirnamefilename_lenZtempdentryconvfndirlenZdentlenZconvlenZentry$a$ h$dd_fdZ#dd_locZ#dd_sizeZ#dd_buf# $$DIR h$unsigned shorta$ dirent $d_ino6 #d_off #d_reclenw$#d_name$#$rl_old_menu_complete?UZv&ZcountZinvoking_key our_funcmatching_filenamesZfound_quoteZorig_textmatchesmatch_list_indexZmatch_list_sizeZorig_startZorig_endZquote_charadelimiterZBrl_menu_complete> EUZ5(Zcount< Zignore<  our_func? matching_filenamesZ@ found_quoteZ@ orig_textB matchesC match_list_indexZD match_list_sizeZE nontrivial_lcdZF full_completionZG orig_startZH orig_endZH quote_charaI delimiterZJ Brl_backward_menu_complete @EUZ(Zcount Zkey  completion_y_or_nZocompletion_changed_bufferZl _rl_completion_case_foldZ _rl_print_completions_horizontallyZ_rl_qsort_string_compareZ_)  _rl_abort_internalZa{)_rl_ttymsg) )_rl_insert_charZ) Z Za)_rl_replace_textZ* ) Z Z _rl_erase_entire_line_rl_move_vert8* Zvoid8*xrealloc@*f* @* 1xmalloc@** 1 rl_inhibit_completionZa rl_completion_mark_symlink_dirsZ^ rl_completion_found_quoteZS rl_completion_quote_characterZO rl_completion_invoking_keyZdrl_dingZrl_read_keyZrl_copy_text+ Z Zrl_delete_textZ+ Z Za+rl_insert_textZ+ +rl_crlfZrl_forced_update_displayZrl_end_undo_groupZrl_begin_undo_groupZac,tilde_expand, h,_rl_get_char_lenZ,  ,_rl_compare_charsZ,  Z ,  Z ,_rl_find_next_mbcharZ0-  Z Z Z_rl_find_prev_mbcharZb-  Z Z wcwidthZ- b- wint_ttowlower-- - a-mbrtowc=- - - = - -tm$ .tm_secZ#tm_minZ#tm_hourZ#tm_mdayZ# tm_monZ#tm_yearZ#tm_wdayZ#tm_ydayZ#tm_isdstZ# -.__wcsftime_xpg5=. - = - .JJ..__wcstok_xpg5./ . . .__putwchar_xpg5-*/ -unsigned char*/__FILE 0_cntZ#_ptr;/#_base;/#_flag*/# _file*/# !__orientation1# !__ionolock1#  !__seekable1#  !__extendedfd1#  !__xf_nocheck1#  !__filler1#  @/__putwc_xpg5-F0 - 0__getwchar_xpg5-__getwc_xpg5-0 0__ungetwc_xpg5-0 - 0 0@/__fputws_xpg5Z0 0 0__fputwc_xpg5-1 - 0@/__fgetws_xpg5.11 . Z 1__fgetwc_xpg5-R1 0toupperZm1 ZtolowerZ1 Za1a1strncasecmpZ1 1 1 1a1strrchr1 1 Za1a1strpbrk#2 1 1a#2strchrL2 (2 ZaL2strncpy{2  Q2 1a{2a2strncmpZ2 2 2 1a2strlen=2 2a2strcpy3  2a3a 3strcmpZ43 3 3memset@*X3 @* Z 1Za]3_xmknodZ3 X3 b3 s sa3"lstat64Z3 3 3a3stat64Z3 3 3fstat64Z 4 Z 3a 4fstatat64Z?4 Z 4 3 Za?4 Z4  ino64_t y4 y off64_ty blkcnt64_ta4  4 stat645st_dev#st_pad1I4#st_inoZ4#st_mode#st_nlinkB #st_uidP # st_gid\ #$st_rdev#(st_pad2h4#,st_sizey4#4st_atim #<st_mtim #Dst_ctim #Lst_blksize #Tst_blocks4#Xst_fstype4#`st_pad44#p4fstatat64Z6 Z D4 5 Za6lstat64Z86 6 5a86stat64Za6 =6 5fstat64Z6 Z 5$$a6 dirent64 6d_inoZ4#d_offy4#d_reclenw$#d_name6#66readdir64_rZ7 6 6 6$readdir64_rZE7 6 $ 76E7J76T7Y7alphasort64Z7 O7 ^7a7667 Z7 77677677 Z7 7 77scandir64Z8 7 7 7 7readdir64688 6closedirZT8 6readdir64$q8 6$q8v8$88alphasort64Z8 {8 8a87$8 Z8 88$88$88 Z9 8 89scandir64ZG9 8 8 8 9aG9opendirr$l9 L9getdents64Z9 Z $ 1 setpwentgetpwent" endpwent@/ftello64y49 9fseeko64Z : 0 y Zy  :fsetpos64Z5: 0 :y fgetpos64Z\: 0 5:@/FILE\:tmpfile64g:a:a:freopen64g:: : : g:a:a:fopen64g:: : :@/ftello64 ; :fseeko64Z5; 0 y Z__flsbufZV; Z 0y V;fsetpos64Z; 0 [;fgetpos64Z; 0 5:8*;@/fwrite=; ; = = ;a;fprintfZ< 0 ;a<a<freopen64g:B< < < g:aB<aL<fopen64g:v< G< Q<fflushZ< 0tmpfile64g:mkstemp64Z< mkstemp64Z< 8*<8*< Z= < <<qsort0= @* 1 1 =freeD= @*lockf64Zi= Z Z y ai=truncate64Z= n= y tell64y4= ZZssize_t8*=pwrite64== = = 1 y 8*pread64="> = = 1 y lseek64y4G> Z y4 Zftruncate64Zk> Z y ak>truncate64Z> p> y tell64 > Z8*>pwrite64=> = > 1 y pread64=? = = 1 y lseek64 6? Z Zlockf64Z[? Z Z y ftruncate64Z? Z y a?accessZ? ? Za?a?attropen64Z? ? ? Za?openat64Z@ Z ? Za@creat64Z@@ @ sa@@open64Zj@ E@ Zaj@at@attropen64Z@ o@ y@ Za@openat64Z@ Z @ Za@creat64ZA @ saAopen64Z,A A Z"readdir64?AJA#readdir"stat64ZAbA#stat$lstat64oA#lstat  /var/tmp/readline-6.1/usr/include/sys/usr/include/isocomplete.cstat_impl.htypes.hrltypedefs.hstat.htime_impl.hwchar_impl.hwchar_iso.hpwd.hdirent.hdirent.htime_iso.hstdio_impl.hstdio_iso.h# 6> H ` v          - FZ d n x           # + 8 P \ t             ( - 5 @ H T ` y     % 4 C Tc t          , =Q \h w  ~   ( Z c p        i# ) 6N ^et {   * 9 @I Y ~    $ < L   % , D f v }          W 2 & - @ f r |             ) : K b r           ! + @S Zh p    $ 7 ? N T fn {              %9A Ll{      X- q    q!3? I    !) 2 : C J V^ fp {        #5 T    x   ; K d}y          * 8Rh x     [ l }     p  *Hl     r &. 4IG=c      / @ L [ z  |   +1 F O W dn         (R b k         + _ r         " 0 C \ r x     8! L!U!sh!m! t! ! ! ! !i!! ! " ," J" O" V" m" ~" " "" # $#m=#B# V# f#q# # # # # # # ## # # $  $z$ &$0$ F$ L$a$ f$ }$ $ $ $ $ $ $$ $ $ $ $9% A% % %% %& (& .& F& i& && && &.' 5' >' ' ' ' ' ' ' '}("( 6( P(d( l( z( ( ( ( ( ( ( ) ) &) 4) E)) ) )) * *`*u* * ** ** * *+ + '+ /+ >+ S+ n+ |+ + + +z+ + + + , , , &, ., 0, E, Y, n, |, , , , ,- - (- 0- :-M- U- ]- p- -- - - - - . . . (.0. E. J. `. j. y. ~. ... . . . . /  / / "/ (/ 2/ 5^5 n5 5 55 5 5 5*6C6 S6 [6 p6 z6 6 6 6 6 6 6 7)7 ?7 D7t7 77l8 t88 8Y8,8 8 9  9 9 '9 19 ;9 K9 U9 _9 o9 y999 9 9 : !:2: G: X:k: : : : ::; ; &; 0; I;Y;s; }; ; ; ; ; ;; ; ;< < < (< 2<H< R< \< u< << < < < < = = #= 2= @=O= == == = = = = >> > 0> C> W> \> >> >?  ? )?O?i? s? ? ? ? ? ?? ? ??@ @  @ *@@@ J@ T@ m@ @ @@ A A "A ,A FA PA ZA iA xAA AA A A A A  B B-B pB B BB  C#C (C BC LC VC hCrC C C CC C C C C DD D 4D GD [D `D DD E E E &E;E  DD%. : ; @ ' ID I: ;  $> &III: ' D  I 4I?  : ;  ' ID  ' ID 4I?  : ; .?  : ;@ ' ID I: ; .?  : ;@ ' D . : ;@ ' D . : ;@ ' ID 4I : ; I !I/  :  I8  D D .?  : ;@ ' D  : .? < ' ID .? < ' ID .? < ' D  .? < ' D ! I8 "#.< $NzArl_completion_display_matches_hook_rl_complete_show_all3_rl_complete_show_unmodified__rl_complete_mark_directories_rl_complete_mark_symlink_dirs_rl_match_hidden_files_rl_completion_prefix_display_lengthrl_visible_stats4_rl_skip_completed_textrl_directory_completion_hookrl_directory_rewrite_hook rl_filename_rewrite_hook5rl_complete_with_tilde_expansionrl_completion_entry_functionrl_menu_completion_entry_functionFrl_attempted_completion_functionvrl_attempted_completion_overrl_completion_typerl_completion_query_items_rl_page_completionsrl_basic_word_break_charactersSrl_basic_quote_characters|rl_completer_word_break_charactersrl_completion_word_break_hookrl_completer_quote_characters=rl_filename_quote_characterstrl_special_prefixesrl_ignore_completion_duplicatesrl_filename_completion_desiredrl_filename_quoting_desiredTrl_ignore_some_completions_functionrl_filename_quoting_functionrl_filename_dequoting_functionM rl_char_is_quoted_pq rl_completion_suppress_append rl_completion_append_character rl_completion_suppress_quote rl_sort_completion_matches& rl_completew rl_possible_completions rl_insert_completions/ rl_completion_mode _rl_reset_completion_state4_rl_find_completion_wordrl_display_match_list_rl_free_match_listrl_complete_internal/ rl_completion_matches rl_username_completion_function"rl_filename_completion_function$rl_old_menu_completev&rl_menu_complete5(rl_backward_menu_complete(_rl_completion_case_fold(_rl_print_completions_horizontally*rl_inhibit_completion*rl_completion_mark_symlink_dirs*rl_completion_found_quote+rl_completion_quote_character/+rl_completion_invoking_keyzA mknod set_completion_defaults get_y_or_n^ _rl_internal_pager path_isdirCstat_charprintable_part!fnwidthUfnprintprint_filenamerl_quote_filenameLgen_completion_matchesremove_duplicate_matchescompute_lcd_of_matchespostprocess_matchesdisplay_matchesomake_quoted_replacement%insert_matchappend_to_matchinsert_all_matches:zAmode_tdev_trl_compdisp_func_tlrl_icppfunc_trl_dequote_func_trl_compentry_func_t&rl_completion_func_trl_cpvfunc_t4rl_compignore_func_trl_quote_func_t0 rl_linebuf_func_t rl_command_func_t6 ino_tB nlink_tP uid_t\ gid_t off_t time_t timespec timestruc_t blksize_t blkcnt_t"stat__mbstate_t!mbstate_t=size_t!passwd$$h$DIR$dirent-wint_t-tm@/__FILEZ4ino64_ty4off64_t4blkcnt64_t4stat646dirent64\:FILE=ssize_tzAY!usernameq!entry!namelen!first_char!first_char_loc"directory#filename)#dirname@#users_dirname]#filename_len%orig_text%matches%match_list_index%match_list_size &orig_start#&orig_end;&quote_charU&delimiter'orig_text5'matchesL'match_list_indexl'match_list_size'nontrivial_lcd'full_completion'orig_start'orig_end'quote_char(delimiter(completion_y_or_n(completion_changed_buffer(IupT2 N#0+ :iLPc |<@mP#$C@&<(B*E  %&'( ) * + , -./70C^t,""2@]E`z !@ _&/7?F$W(u,0`484CJ[p<@DHL05PPiovTX\6L`qd  h< lV y p  t x      / ,^C |` `3     1  G       M V    " * h r     @; Bx $0(a, ? E 0Ew48<.@[':)?*Q+a,f(m-{./.0..).)#.G,Q-e/y056789:;<=>??$@,?4?ABCD CE)FGHI73JKLMLN=KWLCCCOCCCCOCCC/ PL Qf Cp O C P Q- LM CY Cl Ct O C C C C O C5 L\ M L N C RA 7O SY T    U V V0 KA KX Wk X X S YU"SaYqC}CCOCK WZ0X@Zg\]]^Z_&_E\M_ZZ``m_\Pa_b\#P-a9\?_EcU\a\r_x\`d\_dPa\_c\\"_(\@dR\X_^du``ee`\ff `\\Z5b6ggqhwhghhhiij,k@lMm^KjW|XnYWYnYUP_aqLLoPpjPpPaKM<KTMbqsqPpPp-P;arsjKvWXWo7t586tl(m6KnuvvvYvewYxx YYzJ:KOKdz{{wk l m |# } C C C O!Ci!|u!~!K"|W"~a""C"C"C"O"C>#|Y#_##|#|##'$=$M$[$b$|k$p$Cv$D$C$E$$|$$$y$$%Z%7%8^%Zp%Zv%`%%%&&&K&_ '_6'\['_a'\'''_''_/(=(KJ(\](s(Y(\(:(_(\(;(<)<')7;)UN)>c)H)G)T)\)_)\)_)\)_)\* *>*Ga*\g*|**Y*\****_+\ +++\u++++Y+++,Y,R,Yu,Y,?,?,_,_,K,W,_,X,,--\1-\C-[N-\Y-\f--n-Y-B-Y.- .?.?.4).7F.BY.Yb.-k.?u.?z.4)/3/B///B/Y/?/?/4+0?0_E0nV0-a0Yi0?s0?x040W0h0h1W1ha1hg1h1Y111Y11122K2W"2)2X1282>2KF2K2P2[2h2r2222222u222222K 3W&3+353X=3H37v3333333Y333Y333Y3K3W 4X4#414K=4WL4XT4[4a4J44X4444K4W44X4445U55Y5$50555?5VK5P5Va5g5Yq5w5K5W55X5555t5655t55Y55555 665!6t+661676tF6L6YW6^6d6Kl6r676666K667K 7*77o7P7p7778P8#8p18I8P8Z8`8|88888u888888999 9Y)929>9D9YM9V9b9h9Yq99999999K9K:W::X":[:a:Kx:K:W::X::X:K:W;X;YJ;,O;Z;f;l;Yt;;;;;;;);?;?;;;;<\ <<$<)<\3<<<[D<I<\N<S<X<\]<c<i<q<x<<<<<<7<<<B<<<Y<<==Y==-$=?.=?A=?K=?Q=[=`=m=s=y=~===/====B===Y==-> >>>">'>1>8>?>D>N>X>Ba>h>n>>>>>>>>>>>>n>>-*?,/?6?,;?B?P?\?b?Yj?v?|??????????????\@@@!@\+@4@[<@A@\F@K@P@\U@[@a@i@p@~@@@@@@@@n@@7@@AB AAAY$A-A9A?AYHARA-[A?eA?yA?A?AAAAAAAAABAAAYAAB-B.BMBVB_BqB|BKBBBBBBBnB-BB/B CCC$CB)C5C;CYDCNCiCtC{CCCCCCCBCCCYCC- DDD D&D+D5D*5++6V+)(5(<HPX`hpx123 (0=4DPXelx "*2?FRZbjrz (0:BLT\dlt  (08@HRZbjrz &08@HPX`hrz &2:DNX`jrz &.6>HPXbjt| [    & . 6 > H P X ` j r z                   " , 4 > H R \ d n v ~                   & . 6 @ H U \ h r z                   " * 7 > J R Z b l v ~                    * 4 < D L T ^ f p x                *4<FNX`jw~ *2?yFRZbjrz &.6>FNXblt| &3:FPX`hpx "*4<DQXdnv~ (08@HPZdlt~"*4>FNX`jw~ -4@HPX`hu.|&.6@HPX`hpx &.6>FNXblt|j$,6>FSZfnv~  ,6>FNV^fnv~"*2<FNV^fpx&.6>FNV^fnx &2<DLT\dlv~&.8@JR\dlt| $,4<FNV`jrz"*2:BJR\dlt~    & . 6 > F P X b j w ~      41 p@EWDW|X"|X+YY4]a?]azAKע Wk*eRu>P ' P ` xx          bind.o/ 1280456740 0 0 100644 73956 ` ELF4(.strtab.text.bss.data.rodata.rodata1.comment.debug_loc.debug_info.debug_line.debug_abbrev.debug_pubnames.debug_funcnames.debug_typenames.debug_varnames.symtabbind.cmknod_rl_untranslate_macro_value_rl_read_file_rl_read_init_file_rl_init_file_errorparser_ifparser_elseparser_endifparser_includehandle_parser_directivefind_boolean_varglean_key_from_namesubstring_member_of_arrayhack_special_boolean_varfind_string_varbool_to_int_rl_get_string_variable_valuesv_editmodesv_combeginsv_dispprefixsv_compquerysv_histsizesv_keymapsv_bell_stylesv_isrchterm_rl_get_keyname_rl_macro_dumper_internalBbss.bssDdata.dataDrodata.rodata_xmknodrl_add_defunrl_bind_keyrl_add_funmap_entry_rl_convert_meta_chars_to_ascii_rl_keymaprl_binding_keymaprl_bind_key_in_maprl_bind_key_if_unbound_in_maprl_bind_keyseq_if_unbound_in_maprl_bind_key_if_unboundrl_unbind_keyrl_unbind_key_in_maprl_unbind_function_in_maprl_unbind_command_in_maprl_named_functionrl_bind_keyseqrl_generic_bindrl_bind_keyseq_in_maprl_set_keyrl_function_of_keyseqrl_do_lowercase_versionrl_vi_movement_moderl_bind_keyseq_if_unboundrl_macro_bindstrlenxmallocrl_translate_keyseqxfreerl_make_bare_keymap_rl_null_functionstrncmp__ctypetoupperrl_untranslate_keyseq.XBKgoyLkgjUMUF2.rl_untranslate_keyseq.kseqtolowerrl_initialize_funmapfunmapstrcasecmpstat64open64closeerrnoread_rl_caught_signal_rl_signal_handlerrl_re_read_init_filerl_read_init_filerl_set_keymap_from_edit_mode.XAKgoyLkgjUMUF2.last_readline_init_filesh_get_env_value.XAKgoyLkgjUMUF2.current_readline_init_file.XAKgoyLkgjUMUF2.current_readline_init_include_leveltilde_expandfreestrcpy.XAKgoyLkgjUMUF2.currently_reading_init_file.XAKgoyLkgjUMUF2.current_readline_init_linenorl_parse_and_bind_rl_errmsg.XAKgoyLkgjUMUF2.if_stack_depth.XAKgoyLkgjUMUF2.if_stack_size.XAKgoyLkgjUMUF2.if_stackxrealloc_rl_parsing_conditionalized_outrl_terminal_namestrncasecmpstrchrrl_editing_moderl_readline_name.XAKgoyLkgjUMUF2.parser_directivesrl_variable_bindstrrchr_rl_possible_control_prefixes_rl_possible_meta_prefixesemacs_meta_keymap.XAKgoyLkgjUMUF2.boolean_varlistrl_blink_matching_paren_rl_enable_paren_matching.XAKgoyLkgjUMUF2._rl_prefer_visible_bell_rl_bell_preference.XAKgoyLkgjUMUF2.string_varlistrl_variable_valuevi_insertion_keymapemacs_standard_keymap_rl_comment_beginatoi_rl_completion_prefix_display_lengthrl_completion_query_itemsstifle_historyrl_get_keymap_by_namerl_set_keymap_rl_isearch_terminators.XAKgoyLkgjUMUF2.name_key_alist.XAKgoyLkgjUMUF2.keymap_namesrl_get_keymap_namerl_get_keymaprl_get_keymap_name_from_edit_moderl_list_funmap_namesrl_funmap_namesrl_outstreamfprintfrl_invoking_keyseqs_in_mapsprintfstrcatrl_invoking_keyseqsrl_function_dumperrl_dump_functionsrl_dispatchingrl_explicit_argrl_on_new_linerl_macro_dumperrl_dump_macros.XBKgoyLkgjUMUF2._rl_get_string_variable_value.numbufhistory_is_stifledhistory_max_entriesstrncpyrl_variable_dumperrl_dump_variables_rl_strindex_rl_bind_stty_charsrl_byte_oriented_rl_completion_case_foldrl_inhibit_completion_rl_echo_control_chars_rl_enable_keypad_rl_enable_metarl_complete_with_tilde_expansion_rl_history_preserve_point_rl_horizontal_scroll_mode_rl_meta_flag_rl_complete_mark_directories_rl_mark_modified_lines_rl_complete_mark_symlink_dirs_rl_match_hidden_files_rl_output_meta_chars_rl_page_completions_rl_print_completions_horizontally_rl_revert_all_at_newline_rl_complete_show_all_rl_complete_show_unmodified_rl_skip_completed_textrl_visible_statsemacs_ctlx_keymapvi_movement_keymap.rel.text.rel.data.rel.rodata.rel.debug_info.rel.debug_line.rel.debug_pubnames.rel.debug_funcnames.rel.debug_typenames.rel.debug_varnamesUjjEPE PEPjEEÐUEtE PEPE PEPEEÐUE}EEE~lE=btXu?EE%EMUʋUEM LE;EE1MʋUM LEEÐU EEE PEPEEEEEÐUEEEEPE PEP EEÐUEEEPE PEP EEÐUjEPEEÐUE PjEP EEU EEEE=}DUE Ѓu$UE D;EuUE DEE@EE=|EEEÐUjEPEEu EE PEPEEUjjPE PEPjEEÐUjjEPE PEPjEEÐUjjEPE PEPjEEÐUEtVjEPEP EEtE=t E=uEPE PEP EE EEUPE PEP EEÐU jE PjEPEEPEPE P tjEPE$jjEPEPEPjEEÐU EE t E @u#EujEPE:jE PjEPEEPEPE P tjEPEEE;EEE@EEEE| E=|jEPEE~:E=0t&E%EEu EEE@;EUEЃt2MUʉEDEMUȋUELUEDEEt8Eu E=u EuUE艂E쉂E~UEЃuUEjDP>UEЃu-UEDEEEuEu EUEMLMUEʋEE@EE;EGjEPEEÐU$EEEEE@EECE\E@EEE@EEuECt EMEE@-EEjhP U UBE@EEEEE@ЋEE@;u9EE@t EE@jPEEE@EEU UBE@EEE@uEHE EMPE@Et+uU UBE@EEE@\EE@CEE@-EEEE@?u ElEE@ЋEE@;u9EE@t EE@jPEEE@EEEEEE U UBE@E(E@EEE@ U UBE@EECEEEE@?u EmEE@ЋEE@;u9EE@t EE@jPEEE@EEEU UEBE@EOU UBE@EU UBE@EU UBE@EzU UBE@E^U U BE@EBU U BE@E&U U BE@E U U BE@EU U BE@EU U\BE@EE@EEE0EEE@0|~EE@7oEEEHEEEEtTUEE@DЉEE@EEE@0|*EE@7EE܋EHEE܉EEuEHEE%U UBE@EE@EEEEE@%EEEHEEEEEE@a|#EE@fEE@WEHEE@A|!EE@FEE@7EEE@0E܋E܉EEU‰EE@EEE@%tEE܋EHEE܉EE6EuExEHEE%U UBE@EU UEBE@EUa} \}BЃw$\n}Bw$t}nr 듐v} t뀃v#xiU UEBE@EE@EEE@EEEUPU UBEE  U$EEEE~YE=OU\E@EUME@EU-E@EE%EEu$U\E@EEemE E%U\E@EUCE@EU-E@EE@ЋE@;u1E@tE@jPE E@EE@ЋE@;u0E@tE@jPE E@EE;EE@ЋE@;u/E@tE@jPE E@EEtaE@ЋE@;u.E@tE@jPE E@EEjPEVE@ЋE@;u1E@tE@jPE E@E܋E܉EEEOEuFU\E@EUCE@EU-E@EE?EuU\E@EEe%E\tE"uU\E@EEUE@EUEEÐU,jEP+jBPEEEEEE@LE@EE~PE=F\UBE@EMUBE@E-UBE@EE%E}Eu \UBE@EEeWE E%\UBE@ECUBE@E-UBE@EE@ЋE@;u.E@tE@jPE E@EE@ЋE@;u0E@tE@jPE E@EE;EE@ЋE@;u/E@tE@jPE E@EEtaE@ЋE@;u.E@tE@jPE E@EEjPEVE@ЋE@;u1E@tE@jPE E@EԋEԉE܋E܉EFEu=\UBE@ECUBE@E-UBE@EE?Eu\UBE@EEe"E\tE"u\UBE@EEUBE@EE@EE@UBEEEÐUEUtMUEPBPuU@E!E@EUuEEÐU E uE EE]EE@JEE@EE~jE=_tUE uE E E%E,EtE EPE EUE ЃuDEE@u%Et E@UE DEUE DE TUE ЃtEE@t EUEtUE ЋEPUE DE,E@EEtEE@EEÐUlPEP|$hjEP \\}E"Ehh;Eu;Uuh@;hs3\|j\PEhj@PdhPdP\P `j\P`}jdPENtjPd`BE t E `PdEEÐUjjEEEEÐUEuEEujhEEt E@u1EjEP8u EEjEPEEÐUEE jEPEEPEPEjEPtjPEuEE uSE;tHtjPjEPj@PЋEPREEEEEE;EEEE;Et0EE@ t!E@EEE;EtEE@ uߋUUBE@tJE@ t E@ u2E@EEHEE@tE@ tڋE@ t΋E@tE@#tjEPEUDE@E;EjEPEEÐUt#jjEPPPh,EPh@ÐU@;|Nujj'PPE@UBt E!EEE@tREE@ tCEE@ t4E@EEE@tEE@ tEE@ űEE@tUUBE@EjhDEP jPj@PСPREj-EPEEt UBUEPBPt&UPBPt E EEjEPjhLEP uhEhTPu E-Eh\Pu E EE;1PEPu EEÐU ujh`EjEE;},E@u E>E@EE;|u EEEEEÐUt$H@jhEEÐUt EoEEEj EPEEt UBE@PEPjEEEEEEEÐUEEE@ tEE@ u%E@EEE@ tEE@ tۋEEEEE@tREE@ tCEE@ t4E@EEE@tEE@ tEE@ űEE@tUUBE@EEE@tREE@ tEE@ u4E@EEE@tEE@ tۋEE@ t̋EEEEEtPEPEPuUjEPЃE,E@EEujhEEÐU4Et?E@ t E@ u'E@EEtE@ tE@ tًEtE@t E@#uEE@$uEj@PEkt EREE@"EEEE@EEtNEt E!E\u E@EE"uE@EEE@EEuEE@ujh1EEE@EEtLE:tDE tw$AHhEPu)t E EEEhEPu&Ph@h EhDEPu&Ph@h Eth\EPuEQhlEPuBt E EEPh@h Eh|EPuvu EjP#EEt-jEPh jEP EohEPuJjPEEuEEt EE  EEEEEEEEU EUEt]U@t E EMjjEPPhPZU@t E EMjjEPPhPE@EU EUUjPEEuhEt0MjjEPPhP.MjjEPPhPE@EUNÐUthPjPEEÐUE @t7E @PEPt EE E E @uEE(@Pd|,@LXlD\l|    ( , 4 T8HT\`htC-\M-INPUTRC~/.inputrc/etc/inputrc%s: line %d: %s %sterm=mode=emacsvi$else found without matching $if$endif without matching $ifunknown parser directiveno closing `"' in key bindingsetprefix-metablink-matching-parenprefer-visible-bellonoffnoneaudiblevisible%s \M-\e\C-%c\C-? # %s (not bound) "%s": %s %s is not bound to any keys %s can be found on "%s"%s, . ... "%s%s": "%s" %s%s outputs %s bell-stylecomment-begin#completion-prefix-display-length%dcompletion-query-itemsediting-modehistory-sizeisearch-terminatorskeymapset %s %s %s is set to `%s' Control-C-CTRL-MetaM-otherifendifelseincludebind-tty-special-charsbyte-orientedcompletion-ignore-caseconvert-metadisable-completionecho-control-charactersenable-keypadenable-meta-keyexpand-tildehistory-preserve-pointhorizontal-scroll-modeinput-metamark-directoriesmark-modified-linesmark-symlinked-directoriesmatch-hidden-filesmeta-flagoutput-metapage-completionsprint-completions-horizontallyrevert-all-at-newlineshow-all-if-ambiguousshow-all-if-unmodifiedskip-completed-textvisible-statsDELESCEscapeLFDNewlineRETReturnRuboutSPCSpaceTabemacs-standardemacs-metaemacs-ctlxvi-movevi-commandvi-insert@(#)stdio.h 1.84 04/09/28 SMI@(#)feature_tests.h 1.25 07/02/02 SMI@(#)ccompile.h 1.2 04/11/08 SMI@(#)isa_defs.h 1.29 08/06/06 SMI@(#)stdio_iso.h 1.8 05/08/16 SMI@(#)va_list.h 1.15 04/11/19 SMI@(#)stdio_tag.h 1.4 04/09/28 SMI@(#)stdio_impl.h 1.15 07/03/05 SMI@(#)stdio_c99.h 1.2 04/03/29 SMI@(#)types.h 1.86 07/09/20 SMI@(#)machtypes.h 1.11 04/09/28 SMI@(#)machtypes.h 1.2 04/09/28 SMI@(#)int_types.h 1.10 04/09/28 SMI@(#)select.h 1.19 04/01/28 SMI@(#)time_impl.h 1.11 05/05/19 SMI@(#)time.h 2.77 09/06/02 SMI@(#)time.h 1.45 08/01/09 SMI@(#)time_iso.h 1.4 04/09/07 SMI@(#)fcntl.h 1.17 06/03/10 SMI@(#)fcntl.h 1.52 07/03/05 SMI@(#)file.h 1.70 07/03/05 SMI@(#)t_lock.h 1.45 98/02/01 SMI@(#)machlock.h 1.25 04/07/19 SMI@(#)param.h 1.82 06/01/30 SMI@(#)unistd.h 1.43 06/03/10 SMI@(#)mutex.h 1.21 07/04/04 SMI@(#)rwlock.h 1.9 98/02/18 SMI@(#)semaphore.h 1.5 98/02/01 SMI@(#)condvar.h 1.14 04/10/21 SMI@(#)unistd.h 1.76 06/03/10 SMI@(#)stdlib.h 1.51 04/06/30 SMI@(#)stdlib_iso.h 1.9 04/09/28 SMI@(#)stdlib_c99.h 1.2 04/03/29 SMI@(#)errno.h 1.17 03/01/03 SMI@(#)errno.h 1.20 00/01/12 SMI@(#)stat.h 1.11 04/09/28 SMI@(#)stat_impl.h 1.4 03/12/04 SMI@(#)string.h 1.27 07/01/14 SMI@(#)string_iso.h 1.5 04/06/18 SMI@(#)stdarg.h 1.47 04/09/28 SMI@(#)stdarg_iso.h 1.4 04/11/19 SMI@(#)va_impl.h 1.1 04/11/19 SMI@(#)stdarg_c99.h 1.2 04/09/28 SMI@(#)ctype.h 1.35 04/09/28 SMI@(#)ctype_iso.h 1.3 04/09/28 SMI@(#)ctype_c99.h 1.2 04/09/28 SMI@(#)strings.h 1.3 96/03/12 SMI@(#)setjmp.h 1.38 04/09/28 SMI@(#)setjmp_iso.h 1.2 04/09/28 SMIacomp: Sun C 5.10 SunOS_i386 2009/06/03as: Sun Compiler Common 12.1 SunOS_i386 2009/06/03:bind.c /var/tmp/readline-6.1 /opt/sunstudio12.1/prod/bin/cc -c -DHAVE_CONFIG_H -I. -I. -DRL_LIBRARY_VERSION='"6.1"' -g bind.c -W0,-xp.XAKgoyLkgjUMUF2.Xa;g;R=Sun C 5.10 SunOS_i386 2009/06/03;G=.XAKgoyLkgjUMUF2.;backend;raw;cd;DBG_GEN 5.2.7mknod(URRf_path|_mode _devintcharYaunsigned longkmode_tkdev_t_rl_prefer_visible_bellRW rl_add_defungjURnamecJfunctionc RkeycY R2 R Rrl_command_func_t2 rl_bind_keys6URRkeypJfunctionp    escmap!{ _keymap_entrytypeY#functionJ#Keymap rl_bind_key_in_map|URRkeyJfunction !mapresultRoldmap! rl_bind_key_if_unbound_in_mapUR8RkeyJdefault_func !kmapkeyseq@longYQ8 rl_bind_key_if_unboundURRkeyJdefault_func keyseqY8 rl_unbind_keyURRkey rl_unbind_key_in_map@URORkey!map rl_unbind_function_in_mapURJfunc!map iRrvalR rl_unbind_command_in_mapUR,1command!map funcJY, rl_bind_keyseqURkeyseqJfunction Yrl_bind_keyseq_in_mapHURkeyseqJfunction !mapYrl_set_key xURUZkeyseqJfunction !mapYUrl_bind_keyseq_if_unbound_in_mapURkeyseqJdefault_func !kmapfuncJYrl_bind_keyseq_if_unbound,URSXkeyseq)Jdefault_func) YSrl_macro_bind7URkeyseq4macro4 !map4macro_keys8macro_keys_lenR9YYrl_generic_bindQ2UR RtypeL keyseqL dataL!mapLkeysRkeys_lenRSiRTk U L _ _uc' oicRpCY KEYMAP_ENTRYunsigned charrl_translate_keyseqUR  seqarray  leniRcRlRtempRY Rrl_untranslate_keyseq=Uh Rseq;kseqh >iR?cR?Yy 8_rl_untranslate_macro_valuepLU seqnretqrqsqcRrrl_named_functionUJX ] stringiRYX rl_function_of_keyseqbUJ  keyseq!map  typeiR V 4 4ic' Y last_readline_init_file_rl_read_fileU filename sizep finfo$file_size bufferiR fileR unsigned size_t 8 "8unsigned long long"ino_tknlink_t8uid_t8gid_t8{8long long{off_t8time_t timespec tv_sec#tv_nsec8#timestruc_t 8blksize_t{blkcnt_tY88 $8 statEst_dev#st_pad1#st_ino8#st_mode|#st_nlinkD#st_uidR# st_gid^#$st_rdev#(st_pad2j#,st_size#4st_atim#<st_mtim#Dst_ctim#Lst_blksize#Tst_blocks#Xst_fstype#`st_pad4#prl_re_read_init_file3URRcount1Rignore1 rR4rl_read_init_fileEURfilenameCY_rl_read_init_file`URfilename]Rinclude_level] iRabufferbopennameblinebendbfile_size cY_rl_init_file_errorUmsgYY!&+A8_rl_possible_control_prefixes0Yoty 8_rl_possible_meta_prefixes~Yrl_readline_name' if_stackparser_ifURargsiR L v% v%temtname , , D DmodeRparser_else URargsiRparser_endif3 URIargs1parser_include>o!URargs<old_init_file ?e@old_line_numberRAold_include_levelRArRAYY R/ _rl_parser_func_t/pname#functionF#Kp8parser_directivesuZp(8parser_directivesZhandle_parser_directiveg9#UR^statementeiRhdirectiveiargsirl_parse_and_bindS,URstringfunnameknamecRiRkeyRequivalencyR $$ $$ $$passcR %t' %t' %t'varvaluee '( '( '(delimiterRpasscR )* )* )*seq.jR/kR/passcR/ h+G, ++ ++useqkflRl +G, +G, +), +),seqxY8Y 8Y  Jname#value #flagsR#J^8boolean_varlistOJP8boolean_varlist}find_boolean_var,URnameiRYhack_special_boolean_var\-UURinameZYUY_dYn R sx_rl_sv_func_t namei#flagsR#set_func#8string_varlistl8string_varlistfind_string_var-URnameiRYbool_to_int F.URvalueYrl_variable_value.UnameiRYrl_variable_bind&/URname$value$ iR'vR(Ysv_editmodeBP0URvalue@Ysv_combeginW0URvalueUYsv_dispprefixd%1URnsvaluebnvalReYnsv_compqueryt1URvaluernvalRuYsv_histsize1UR valuenvalRYsv_keymap42URotvaluekmap!Yosv_bell_style3URvalueYsv_isrchterm4URDIvaluebegRendRdelimRvYDYNSnameX#valueR#]assoc_list8name_key_alist`8 name_key_alistglean_key_from_namem5UR@ nameiRY@ E o nameJ #map!#O o 8keymap_namest o H 8keymap_names rl_get_keymap_by_name5U!!$!name iRY!rl_get_keymap_name>6Ux!!mapiRrl_set_keymap%U6U!!map# rl_get_keymap,s6U!!rl_set_keymap_from_edit_mode26U rl_get_keymap_name_from_edit_mode=7Url_list_funmap_namesV7U"iRWfunmap_names"XY""_rl_get_keynameh;U#RkeyfkeynameiiRjcRjrl_invoking_keyseqs_in_map?U$$Jfunction!map keyRresult$result_indexRresult_sizeR *;? ?;? ?;? ?;? D;|? D;|? D;; S;; S;;keyname ;w?seqs$iR ;i? <P? <P?keynamerl_invoking_keyseqs!?U$$Jfunctionrl_function_dumper+ABUV&Rprint_readably)iR,names`&-namej&. @?B @ B @ BfunctionJ6invokers$7 F@ B R@@ R@@ R@@ t@@ t@@jRB @ B @ B @ B A B A BjRUYV&[&Ye&rl_dump_functionsqBUR&RcountoRkeyo _rl_macro_dumper_internal~%EU'Rprint_readablyz!mapz prefixzkeyRkeynameoutprefix_lenRrl_macro_dumperYEU'Rprint_readablyrl_dump_macrosEUR (RcountRkey _rl_get_string_variable_valueAHU~((namenumbuf(retY~(Y (8rl_variable_dumper ,JU)Rprint_readably iR v rl_dump_variables- tJURN)Rcount+ Rkey+  substring_member_of_array: JUR))string7 )array7  Y)Y)))if_stack_sizeRif_stack_depthRcurrent_readline_init_linenoRcurrent_readline_init_include_levelRY]*current_readline_init_fileb*currently_reading_init_fileRTvoid*"xfree* *#xrealloc** * #xmalloc*+ Y+#sh_get_env_valueG+ +YG+YQ+#_rl_strindex+ L+ V+#_rl_null_functionR+ R RY+"_rl_errmsg+ +$"_rl_signal_handler+ R"_rl_enable_paren_matching, R%history_is_stifledR"stifle_historyT, R&rl_binding_keymap!I%rl_on_new_lineR'rl_initialize_funmapY,,%rl_funmap_names,Y,#rl_add_funmap_entryR - , ,#rl_vi_movement_modeR6- R R#rl_do_lowercase_versionRf- R RYf-#tilde_expand- k-%rl_make_bare_keymap!#toupperR- R#tolowerR- RY-Y-#strncasecmpR . - - Y .Y*.#strcasecmpRW. %. /.YW.#strrchr. \. RY.#strchr. . RY.#strncpy.  . Y.Y.#strncmpR/ . . Y/#strlen 6/ /Y6/#strcpy_/  ;/Y_/#strcat/  d/RY/#_xmknodR/ / / k kY/$#lstat64R/ / /Y/#stat64R0 / /#fstat64R90 R /Y90#fstatat64Ro0 R >0 / RYo08 08"ino64_t808{off64_t{blkcnt64_tY088 08 stat64 2st_dev#st_pad1y0#st_ino0#st_mode|#st_nlinkD#st_uidR# st_gid^#$st_rdev#(st_pad20#,st_size0#4st_atim#<st_mtim#Dst_ctim#Lst_blksize#Tst_blocks0#Xst_fstype0#`st_pad40#p0#fstatat64R>2 R t0 2 RY>2#lstat64Rh2 C2 2Yh2#stat64R2 m2 2#fstat64R2 R 2#mkstemp64R2 #mkstemp64R2 "free2 *Y2#atoiR!3 3#lockf64RF3 R R {YF3#truncate64Rs3 K3 {#tell6403 RRssize_t*3#pwrite6433 3 3 {*#pread6433 3 3 {#lseek640$4 R 0 R#ftruncate64RH4 R {YH4#truncate64Ru4 M4 {#tell644 R#read34 3 3 *4#pwrite6434 3 4 {#pread6435 3 3 {#lseek6455 R  R#lockf64RZ5 R R {#ftruncate64R~5 R {#closeR5 RY5Y5#attropen64R5 5 5 R$Y5#openat64R6 R 5 R$Y6#creat64R/6 6 kY/6#open64RY6 46 R$YY6Yc6#attropen64R6 ^6 h6 R$Y6#openat64R6 R 6 R$Y6#creat64R6 6 kY6#open64R7 6 R$ __FILE 7_cntR#_ptr#_base#_flag' # _file' # (__orientation # (__ionolock #  (__seekable #  (__extendedfd #  (__xf_nocheck #  (__filler #  7#ftello6408 77#fseeko64RC8 8 { R{C8#fsetpos64Ro8 8 H8{#fgetpos64R8 8 o87FILE8%tmpfile648Y8Y8#freopen6488 8 8 8Y8Y8#fopen648(9 8 97#ftello64I9 (9#fseeko64Ro9 8 { R{o9#fsetpos64R9 8 t9#fgetpos64R9 8 o8Y9#sprintfR9  9$Y9#fprintfR: 8 9$Y:Y:#freopen648N: : ": 8YN:YX:#fopen648: S: ]:%tmpfile648)open64::*open+stat64:*stat" /var/tmp/readline-6.1/usr/include/sys/usr/include/isobind.cstat_impl.htypes.hrltypedefs.hkeymaps.hstdio_iso.hstat.hstdio.htime_impl.hstdio_impl.h# 6> N ^ e v~           * 1 FN V i q w        &; F] {  {      &C Vs       &I b p |      0 > L_ ls          0 =a v       & - Fl x      w                          1 8 M T i p         ( h o     h         Mx5|    # 5 J _ t               " 7 @ P ey        * < L T f t               Z6(A G V[ r  ~      7 F R `h x      ! 4RV1] y       $< _ p {           &. 6 > P d m           ( ; U     & - 4}Xp ~ e      &4 > \   ( 7 Lv    ,D] h            * ; D }V {          !  ! ! %! -! 8! L! T! \! d! j! v!! ! *" 9" N" " "" " " #|#-# 4# F# f# m# ## ## # ## # $$ $ 6$ >$ E$ H$P$ W$ \$d$ h$q$$ $ $% A%P% e%m% %%% %% I& U& g& && &&  ' ' 2' 9' M' X'h' t'' ' '( *( 2( 9( <(D( K( P(X( \(qx(( ((((  ))9) `)w) ) ) )) ) )p) *"* 3*P* ^* |** * ** * * * *+ G+ ]+ h+++ + + + ++,  , ,,G, N, f, , , ,~,, , , - $- :- D- P- Z- f- - - -~-- - A. V. g. o. . . . .. . / / 3/ L/ Z/ d/u// / / / / // 0  0 $0 /0 90 D0 K0 V0 j0 0 0 0 0 0 0 0 1  1 1 1  1 61 =1 Q1 b1 j1 q1 y1 1 1 1 1 1 1 1 1 1 1 2 2 2 (2 /2 F2 Z2 l2 2 2 2 2 2 3  3 3 &3 .3 <3h3 3 3 3 3444 4 4 4 4 5 5 85 H5~^5h5 v55 5 5~55 55  6 6~2696 C6K6 S6 f6n6 66 6 6 6 66 6 6 67 77 &7 (7 =7 Z7 o7}7 77 7 7 7 7 7 77 7 7 7 8 8 8#8@8 U8 j8 8 9:M: b: w: : : :: :: : : ;; *; ?; D;S;d; o; x; ;; ; ; ; ; ; ; ; < :< B<[< p< < < t> |> > > > > >> >> ?  ? ? 0?C? P?Wi?,w? |??~?? ?? ?? @  @1@ F@ R@ Z@ t@@@ @|@@@ A'A DAA}AA A A A B BO?B5VB`B sB B B B BB BB B BLCC C C C C C C D D )D 7D ED XDiD qD D D D D DD D DSE~#E2CEWE fEpE E E E E EE EE EFxF 'F PF fF ~F F F F F F F G 5G DG ZG dG pG G G G G GG G G G H  H 0H &III: 4I : ;  .?  : ; @ ' ID  ' ID  I   :  I8 I !I/ .?  : ;@ ' ID I: ; 4I : ; D D . : ;@ ID . : ;@ ' ID . : ;@ ' D 4I?  : ; I I!II . : ;@ D .?  : ;@ ' D  .?  : ;@ ' ID !.?  : ;@ ' D ".? < ' D #.? < ' ID $%.? < ' ID &4I?  : ;  '.? < ' D ( I8 )*.< +9:rl_add_defunOrl_bind_key.rl_bind_key_in_maprl_bind_key_if_unbound_in_mapQrl_bind_key_if_unboundrl_unbind_keyrl_unbind_key_in_mapOrl_unbind_function_in_maprl_unbind_command_in_map6rl_bind_keyseqrl_bind_keyseq_in_maprl_set_key_rl_bind_keyseq_if_unbound_in_maprl_bind_keyseq_if_unbound]rl_macro_bind rl_generic_bind8 rl_translate_keyseq rl_untranslate_keyseq rl_named_functionb rl_function_of_keyseqErl_re_read_init_filerl_read_init_fileA_rl_possible_control_prefixes_rl_possible_meta_prefixesrl_readline_name^rl_parse_and_bindrl_variable_value#rl_variable_bind rl_get_keymap_by_name)!rl_get_keymap_namex!rl_set_keymap!rl_get_keymap!rl_set_keymap_from_edit_mode!rl_get_keymap_name_from_edit_mode7"rl_list_funmap_names#rl_invoking_keyseqs_in_map$rl_invoking_keyseqs$rl_function_dumpero&rl_dump_functions'rl_macro_dumper'rl_dump_macros(rl_variable_dumper)rl_dump_variablesT,rl_binding_keymap;:mknody _rl_untranslate_macro_value8 _rl_read_file_rl_read_init_file_rl_init_file_errorparser_ifparser_elseparser_endifIparser_includehandle_parser_directivefind_boolean_varhack_special_boolean_var5find_string_varbool_to_intsv_editmodesv_combegin sv_dispprefixxsv_compquerysv_histsize%sv_keymapysv_bell_stylesv_isrchtermglean_key_from_name"_rl_get_keyname&_rl_macro_dumper_internal (_rl_get_string_variable_valueN)substring_member_of_array:|mode_tdev_t2rl_command_func_t_keymap_entry!Keymap KEYMAP_ENTRY size_t8ino_tDnlink_tRuid_t^gid_toff_ttime_ttimespectimestruc_tblksize_tblkcnt_t$stat/_rl_parser_func_tK_rl_sv_func_t]assoc_listO 0ino64_t0off64_t0blkcnt64_t0stat643ssize_t7__FILE8FILE:_rl_prefer_visible_bell/ kseq last_readline_init_fileif_stackparser_directivesparser_directives^boolean_varlistboolean_varliststring_varliststring_varlistname_key_alistname_key_alist keymap_names keymap_namesS(numbuf)if_stack_size)if_stack_depth)current_readline_init_lineno**current_readline_init_include_levelg*current_readline_init_file*currently_reading_init_file(pxC $ O1 @p!X`,yi5m}JT,|`-y-fE/P0x0U01U1^)1D3@2A 3N7^Bxy     0:p@<-1Kpl3  @l@P{*  ( P(+AYm$ @>F[bmt{% 63/[@# ! A$`z( .$(B8 ]oDP l P.1 E [ m r    p5j @6  ` `H: 5^M `6[ 6E} 7o    ;   ?  ?a PBD ) 9 H @EX `EDg (     PH 0JD   # < R i {       & E \ r       2.G0W123333!3&4G3R3_0m3737 015=;3 ?9?i?BCD@37-G?HVIiJ?JG H$I7JJ2 KRCJL4J$M(NEO23` N} OH Ne O N N0?QTQiQQQQQ(NAOuNONON+NDOaRNOQQQ,QZQnQQQGHNO-NFONONNORDN]OWSfTvTUTT3.2VWXY/HRZiXJ[[\^_/`A$Faf$$bcdJ[[ \Y5`<`H`Ne\GhHwf`ghwihhJgghb$j$ j'k.l5m@lMHUm]leljlpmvn~mkkkmooMp]$fqypGHpfrUpUoJ/$8qH$QUl$uUsotUook $$ k+ mP kY ow o k k k m k o $ o b!h !c!rP!bX!h`!c"u"u"U"u#u!#$#o$$%$%U&Ga'v#)G/)H)*Gb*3p*F*=*>*J*w*x+N)+OH+y+G+3+F+$+U,3,z",?3,=@,0z,{,{,U,{,{,$-U-|-}%-$.-U;-~F-R-z---U--$.U|.{.$.$.,/{@/{///$/q//3/s0$0q&0+0310sk0w0}0e0G0H0f001X1u11112\2m2$v2U2$2U22$2U2$2U22$2U2C3GO3H^3fi3u3{3e4G4H444I44J5"5,5U>5U5555U55566)6O63g636s6636s6636s6$6s6$6$7H7$M7S7v7J7H8N8O8N8O>9NW9Os9N9N9O9R9N:O;n;"<G0<HC<2\<$e<q<$z<<N<O =N&=Of=N=O=N=N=O=R$>N=>O`>$i>}>$>>>J&?np?J?????3???$??'@=2@3<@_@$d@j@@$@@@J@J@$@AA$A AUA$bA$|A$AAA$AAAJBJWBaB$fBlBvB|BBC$"C$8C$=CCC^C$zC$C$CCCJCJCGDH"DfxDGDHDfDfDJDJ E%E)E-EFE3gEqE$vE|EEEEE$EUE$E$E$F FF$FU(F2F>F$QF$ZFUgFmF$rFwFFF$FUFF$FFFF$FUFF$FUG G$G$)G.G7GEG$NGU[GsGGGGJGGGG$GUG3GHH$AHEHIHjH{H{H$H$H{H$HHH{H$I$I{$I$)I/IJI{kIIII$IIII$IJJ7JAJ$FJLJVJ\JdJJ$$$  $ $ ($,$0$8$<$D$HP$T|\$`h$lt$x2$$$$$$$$$$$$$$ ($,4$8~@$DL$PX$\d$hp$t|$$$$$$$$$$$$$ $($0$8$@$H$P$`$dh$lp$tzx$|$$$$()~/`0dF5J6m8q9:"n;r<J>N@ A7EqFu ?       R IV  P ? Q   =# ~ B       4 `K O `]d^ kxytmGKPTY] % )] auu viz#(,15SW\`ei gkpty}y{{ #'1JN:v>3748      B!F!!!!!!_!'"+"R"V"""6#:############$$ $$$$$>$B$n$r$w${$$$$$ %%t%x%}%%%%%%%%%%%%%%%%&&&& &$&)&-&2&6&&&&&''''/(3(e((())m)q))l)k&*hY*c*b*gq,4/&30:FNV^hpx56"/86BJR_9fr:;<#>*6C@JVcAjv7EF (5?<HRZbjt~"*2<DLT\fnxI $,4<DLT\dnv $,4<DNV^fnv~ 'P.:BJRZbjrz   # * 6 > F N V ^ f n v ~                    $ 1 =8 D L T \ f p } B                  " * 4 < D N X e l x                    ]" . 6 > K ^R ^ f n v ~                   " , 4 < D N X b j r |              $,4>FPX`jt|  $,6>FPZbo v  ' .:BJRZbjt|i(08@HPZbjt| &.8@HPX`hrz&.8BJT\dlv~ $,6@HPX`jt|  "*7>JRZdn{v (2<DLTaht~ &.6>FSZfnv~&3:FNV^fnv~+2>FNXbov &2?_FRZbjw~ &08@HPZbjrz )0<DLT^hpx&.6@HRZbjr|"*2:DNV`jt| "/6BJT\dnx    $ , 6 @ O V b o v               ! !!!"!*!2!:!B!J!R!Z!b!j!r!z!!!!!!!!!!!!!!!!""""","4"<"D"L"T"\"f"u"|""""""""""""""''''4 JYHYY"\+bv4h?h:KU"WSe=uA? .E O Y pe   u ,       isearch.o/ 1280456740 0 0 100644 23652 ` ELFxX4(.strtab.text.bss.data.rodata.rodata1.comment.debug_loc.debug_info.debug_line.debug_abbrev.debug_pubnames.debug_funcnames.debug_typenames.debug_varnames.symtabisearch.crl_search_historyrl_display_search_rl_isearch_init_rl_isearch_fini_rl_isearch_cleanupBbss.bssDdata.dataDrodata.rodata_rl_scxt_allocxmallocrl_pointrl_markwhere_history_rl_scxt_disposefreexfreerl_reverse_search_historyrl_forward_search_historystrlenstrcpyrl_messagerl_redisplay_function_rl_isearch_terminators.XAKgoyLkgjUMUG2.default_isearch_terminatorshistory_listrl_maybe_replace_line_rl_saved_line_for_historyrl_line_bufferrl_save_prompt_rl_iscxtrl_restore_prompt.XAKgoyLkgjUMUG2.last_isearch_string.XAKgoyLkgjUMUG2.last_isearch_string_lenrl_get_previous_historyrl_get_next_historyrl_clear_message_rl_search_getcharrl_readline_staterl_read_key__ctyperl_byte_oriented_rl_read_mbstring_rl_isearch_dispatch_rl_keymaprl_ruboutstrchr_rl_input_availablerl_execute_nextxreallocrl_dingrl_replace_linerl_end_rl_char_value_rl_walphabetic_rl_find_next_mbcharstrncmpstrcmp_rl_isearch_callback.rel.text.rel.rodata.rel.debug_info.rel.debug_line.rel.debug_pubnames.rel.debug_funcnames.rel.debug_typenames.rel.debug_varnamesUjjhEEUPEU PE@E@ E@E@E@E@ E@EP$EP(ЋEP,EU@,B0E@4E@8E@<E@@E@DE@XE@`E@\E@dEEEÐUE@tEj@PE@tEj@PE@tEj@PjEPÐUUڋE PREEUE PEPEEÐUEt"E@tjEPE EEEEj!PEEUU(BE@EE tEEhPEEEEh PE EEtUUEPREEEEEhPEPhjEPÐUjjEE}EPEPt EEEUPdEEEt*EUEtE@EUEuEUPE@jPЋEPEEU;P}*UEEM@RE@EEU;P|֡tEM@RLjPj@PЋEPUPBPUEM@RE@U@BEU@,B#end>#text# what#Jundo_codeUNDO_DELETEUNDO_INSERTUNDO_BEGINUNDO_END JUNDO_LISTlong  __rl_search_contexthtype>#sflags>#search_string#search_string_index># search_string_size>#linesE#allocated_line#hlen>#hindex># save_point>#$save_mark>#(save_line>#,last_found_line>#0prev_line_found#4save_undo_list#8history_pos>#<direction>#@lastc>#Dmb#Hsline#Xsline_len>#\sline_index>#`search_terminators#d _rl_search_cxt_rl_iscxt<  default_isearch_terminatorsO_rl_scxt_allocTU>typeR>flagsR cxtU_rl_scxt_dispose|wUcxty>flagsy rl_reverse_search_historyU>;>sign>key rl_forward_search_historyU>>sign>key rl_display_searchU4search_string>reverse_p >where message msglen> searchlen>_rl_isearch_initU>direction cxt i> hlistvoid histdata_t_hist_entry  line#timestamp#data# _rl_isearch_finiUIcxt_rl_search_getchar/U>cxt-c>0_rl_isearch_dispatchFU>cxtC>cC n>Gwstart>Gwlen>Glimit>Gcval>GfH0 8 8   V Vj> l> >>> rl_command_func_t_rl_isearch_cleanup`7U>< cxt]>r] rl_search_historyrU> >directionp>invoking_keyp cxtsc>tr>t_rl_isearch_callbackNU>0 cxtc>r> last_isearch_string_len>M last_isearch_stringLxfree unsignedxrealloc  xmalloc  _rl_input_available>where_history>history_listrl_maybe_replace_line>rl_ding>rl_read_key>rl_execute_next> >  rl_replace_line  >rl_restore_promptrl_save_prompt  rl_message>  rl_clear_message>rl_get_previous_history>S >>rl_get_next_history> >>rl_rubout> >>_rl_walphabetic>  wchar_t_rl_char_value   >_rl_read_mbstring>* >>_rl_find_next_mbchar>a >>> size_t s tm$tm_sec>#tm_min>#tm_hour>#tm_mday># tm_mon>#tm_year>#tm_wday>#tm_yday>#tm_isdst># } __wcsftime_xpg5f Ra f x  WR__wcstok_xpg5RR\a wint_t__putwchar_xpg5unsigned char__FILE _cnt>#_ptr#_base#_flag# _file# __orientation #  __ionolock #   __seekable #   __extendedfd #   __xf_nocheck #   __filler #  __putwc_xpg5__getwchar_xpg5__getwc_xpg5__ungetwc_xpg5= =__fputws_xpg5>rBG__fputwc_xpg5__fgetws_xpg5RR>__fgetwc_xpg5 strchr>  strncmp>K! Kstrlenf oP ostrcpyt  strcmp>mkstemp64>mkstemp64>freelong longlockf64>K>> Ktruncate64>xP off64_ttell64x> >ssize_t pwrite64 pread64 lseek64x7>x>ftruncate64>[> [truncate64>` off_ttell64> pwrite64 pread64  lseek642>>lockf64>W>>ftruncate64>{>ftello64x{fseeko64>G> fsetpos64>Gfgetpos64>G FILE tmpfile64  8 Bfreopen64 s=G  s }fopen64 xftello64fseeko64>G> fsetpos64>Gfgetpos64><G < Ffreopen64 wAK  w fopen64 |tmpfile64 n  /var/tmp/readline-6.1/usr/include/sys/usr/include/isoisearch.crlprivate.hreadline.hhistory.hrltypedefs.htypes.htime_iso.hwchar_iso.hstdio_impl.hstdio_iso.h  ' 1 E O Y m y             / K g u      - 5 I Rf o w        !) . 5 = g     % 7DP Uv       ! &@ K V ` n        * 7M w}         < F t ~          .   ! 0 8 G Q _ }            & 1 D S X c l              , 1 8 }      {   3 Q Y            + < q         N X    V e hzx     ) B      . C ] h t       # 2 FU f          I  DD%$> I4I?  : ;   :  I8  : ( I: I  !I/ &I 4I : ;  .?  : ; @ ' ID I: ;  .?  : ; @ ' D . : ; @ D . : ; @ ' ID . : ;@ ' D I: ; .?  : ;@ ' ID 4I : ;  ' ID I. : ;@ ' ID .? < ' D .? < ' ID .? < ' ID .? < ' D  I8 _rl_isearch_terminators_rl_iscxtJ_rl_scxt_alloc_rl_scxt_disposerl_reverse_search_history;rl_forward_search_historyI_rl_search_getchar_rl_isearch_dispatch _rl_isearch_callback|rl_display_search4_rl_isearch_init_rl_isearch_fini_rl_isearch_cleanup< rl_search_historyundo_codeJundo_listUNDO_LIST__rl_search_context_rl_search_cxthistdata_t_hist_entryrl_command_func_tf size_t} tmwint_t__FILExoff64_tssize_toff_tFILEb default_isearch_terminators0 last_isearch_string_lenV last_isearch_string@$W*+:;<= > ? @ A BCDS[dlzg >Ka|0ATfrz1 )9NV]^ r~(D`n"<B#Y_###$%&&'"(*)**+"+#Q,g+"-+#".'/3/9G/R0~12+"3556+535:7D8^9;; @!x<=>?7!8? ?H /R 0n @ / # 0 Ad A B   . 3  C A + D E- A; 7E 8[ +a F C + D E 7 8 + F CB @w +  C A C @6 CZ +} C @ 7 8"JG3"HAVBd -55G5Q554:4::&-F'^b  Z!^IM)-b4f:_chlquz~  S W  I R 0t /&.6>FNV^fnv~ !".6>HPX`jrz"*2<DNV^hrz *2:BJT^k4r~: $,4<DLT\fpx $,4<DNV^fnx&.6@JRZbjrz"*2<DLWbjt|    & . 6 @ H P X ` h r                    & . 8 E IL X ` h 4 0N"$+Q4?K5r W3@ e@Bu)CCDfEr I| 8N @NX  O  XX  `X  hX pX display.o/ 1280456740 0 0 100644 74708 ` ELF4(.strtab.text.bss.data.rodata.rodata1.comment.debug_loc.debug_info.debug_line.debug_abbrev.debug_pubnames.debug_funcnames.debug_typenames.debug_varnames.symtabdisplay.cmknodexpand_prompt_rl_col_widthinit_line_structurescrupdate_lineinsert_some_charsdelete_charsspace_to_eolredraw_promptBbss.bssDdata.dataDrodata.rodata_xmknod__ctyperl_byte_orientedstrchrstrlenxmallocstrcpy_rl_find_next_mbchar_rl_screenwidth_rl_strip_promptrl_expand_prompt.XAKgoyLkgjUMUH2.local_promptfree.XAKgoyLkgjUMUH2.local_prompt_prefix.XAKgoyLkgjUMUH2.local_prompt_len.XAKgoyLkgjUMUH2.prompt_invis_chars_first_line.XAKgoyLkgjUMUH2.prompt_last_invisible.XAKgoyLkgjUMUH2.prompt_physical_chars.XAKgoyLkgjUMUH2.prompt_visible_lengthstrrchr.XAKgoyLkgjUMUH2.prompt_prefix_length.XAKgoyLkgjUMUH2.line_state_invisible.XAKgoyLkgjUMUH2.line_size.XAKgoyLkgjUMUH2.line_state_visiblexrealloc.XAKgoyLkgjUMUH2.line_structures_initializedrl_redisplay_rl_echoing_p_rl_block_sigintrl_readline_staterl_display_promptrl_on_new_line.XAKgoyLkgjUMUH2.cpos_buffer_position.XAKgoyLkgjUMUH2.prompt_multibyte_chars.XAKgoyLkgjUMUH2.modmark_rl_mark_modified_linescurrent_historyrl_undo_listrl_display_fixedrl_prompt.XAKgoyLkgjUMUH2.forced_display_rl_output_some_charsstrncpy.XAKgoyLkgjUMUH2.wrap_offsetmemset_rl_find_prev_mbchar.XAKgoyLkgjUMUH2.prompt_last_screen_linerl_endrl_line_buffermbrtowcwcwidthrl_point_rl_output_meta_charssprintf_rl_horizontal_scroll_mode_rl_term_uptoupper_rl_screenchars_rl_last_c_pos.XAKgoyLkgjUMUH2.cpos_adjusted_rl_vis_botlin.XAKgoyLkgjUMUH2.visible_wrap_offset.XAKgoyLkgjUMUH2.visible_first_line_len_rl_clear_to_eol_rl_move_vert_rl_move_cursor_relative_rl_last_v_pos_rl_term_cr_rl_output_character_functiontputs_rl_backspace.XAKgoyLkgjUMUH2.last_lmarginrl_outstreamfflush_rl_release_sigint_rl_term_autowrap__flsbufmemmovememcpymemcmpstrncmp_rl_compare_chars_rl_terminal_can_insert_rl_term_IC_rl_term_dcrl_on_new_line_with_promptrl_forced_update_displayrl_redisplay_function_rl_term_forward_char_rl_screenheightrl_show_charfprintfrl_character_lenrl_message.XAKgoyLkgjUMUH2.msg_bufvsnprintf.XAKgoyLkgjUMUH2.saved_local_promptrl_save_prompt.XAKgoyLkgjUMUH2.msg_saved_promptrl_clear_messagerl_restore_promptrl_reset_line_state.XAKgoyLkgjUMUH2.saved_local_prefix.XAKgoyLkgjUMUH2.saved_prefix_length.XAKgoyLkgjUMUH2.saved_local_length.XAKgoyLkgjUMUH2.saved_last_invisible.XAKgoyLkgjUMUH2.saved_visible_length.XAKgoyLkgjUMUH2.saved_invis_chars_first_line.XAKgoyLkgjUMUH2.saved_physical_chars_rl_make_prompt_for_search_rl_erase_at_end_of_line_rl_term_clreol_rl_clear_screen_rl_term_clrpagrl_crlf_rl_ttymsgtgoto_rl_term_im_rl_term_ic_rl_term_ei_rl_term_DC_rl_update_final_rl_redisplay_after_sigwinch_rl_clean_up_for_exitrl_restart_output_rl_erase_entire_line_rl_current_display_linerl_visible_prompt_lengthmbrlen.XAKgoyLkgjUMUH2.line_state_array_rl_suppress_redisplay_rl_want_redisplay.rel.text.rel.data.rel.debug_info.rel.debug_line.rel.debug_pubnames.rel.debug_funcnames.rel.debug_typename