diff -aNrc2 readline-2.2.1/CHANGELOG readline-4.0/CHANGELOG *** readline-2.2.1/CHANGELOG Thu Apr 2 14:49:42 1998 --- readline-4.0/CHANGELOG Fri Feb 19 11:38:10 1999 *************** *** 76,77 **** --- 76,216 ---- configure.in - bumped LIBVERSION up to 2.2 + + 4/18 + ---- + [readline-2.2 released] + + 4/20 + ---- + Makefile.in + - make `libhistory.a' a dependency of `install' + - fixed a typo in the recipe for `install' that copied libreadline.a + to libhistory.old right after installing it + + 4/27 + ---- + doc/Makefile.in + - install {readline,history}.info out of the source directory if + they are not found in the current (build) directory -- only an + issue if the libraries are built in a different directory than + the source directory + + 5/1 + --- + support/shobj-conf + - script from the bash distribution to do shared object and library + configuration + + shlib/Makefile.in + - new directory and makefile to handle building shared versions of + libreadline and libhistory, controlled by support/shobj-conf + + 5/7 + --- + doc/Makefile.in + - set SHELL to /bin/sh, rather than relying on make to be correct + + 5/14 + ---- + savestring.c + - new file, moved from shell.c, for backwards compatibility + + Makefile.in, shlib/Makefile.in + - make sure savestring.c is compiled and added to libreadline and + libhistory + + [THERE ARE NO MORE #ifdef SHELL LINES IN THE C SOURCE FILES.] + + 5/15 + ---- + README + - updated description of shared library creation for the new scheme + + [THERE ARE NO MORE #ifdef SHELL LINES IN ANY OF THE SOURCE FILES.] + + Makefile.in + - bumped SHLIB_MAJOR up to 4 since we've augmented the library + API + - rlconf.h is now one of the installed headers, so applications can + find out whether things like vi-mode are available in the installed + libreadline + + 5/20 + ---- + configure.in + - changed RL_LIBRARY_VERSION to 4.0 to match the version of the + installed shared libraries + + 6/5 + --- + rlstdc.h + - new file + + Makefile.in + - rlstdc.h is now one of the installed headers + + 8/3 + --- + shlib/Makefile.in + - made the suffix rule that creates xx.so from xx.c write the + compiler output to `a.o', which is then mv'd to xx.so, because + some compilers (Sun WSpro 4.2, for example) don't allow any + suffixes other than `.o' for `cc -c' (not even `a.out') + + 9/15 + ---- + + Makefile.in + - AR and ARFLAGS are now substituted by configure, used in recipes + that build the libraries + + configure.in + - use AC_CHECK_PROG to check for ar + - set ARFLAGS if it has not already been set in the environment + + 10/5 + ---- + Makefile.in + - removed savestring.o from object file list + + 10/28 + ----- + shlib/Makefile.in + - don't use a fixed filename in the .c.so suffix rule to avoid + problems with parallel makes + + 12/21 + ----- + support/shlib-install + - new script to install shared readline and history libraries + + shlib/Makefile.in + - changed to call shlib-install for install and uninstall targets + + [readline-4.0-beta1 frozen] + + 12/22 + ----- + configure.in + - call AC_SUBST for SHOBJ_XLDFLAGS and SHLIB_LIBS + + shlib/Makefile.in + - SHOBJ_XLDFLAGS and SHLIB_LIBS are now substituted by configure + - add $(SHLIB_LIBS) at end of command line that builds the shared + libraries (currently needed only by AIX 4.2) + + 12/31 + ----- + MANIFEST, MANIFEST.doc + - the TOC html files are no longer generated and no longer part of + the distribution + + 2/18/1999 + --------- + configure.in + - set MAKE_SHELL to /bin/sh and substitute into the Makefiles + + Makefile.in,{doc,examples,shlib}/Makefile.in + - set SHELL from @MAKE_SHELL@ + + [readline-4.0 released] diff -aNrc2 readline-2.2.1/CHANGES readline-4.0/CHANGES *** readline-2.2.1/CHANGES Fri Jul 17 11:18:01 1998 --- readline-4.0/CHANGES Fri Feb 19 11:46:40 1999 *************** *** 1,21 **** ! This document details the changes between this version, readline-2.2.1, and the previous version, readline-2.2. 1. Changes to Readline ! a. The `make install' target was corrected so that it did not move the ! newly-installed libreadline.a to libhistory.old ! b. The `make install' target for the documentation will now install the ! info files from the source directory if they do not appear in the ! build directory, since they are shipped in the readline tar file. ! c. Fixed a problem with redisplay that showed up when the prompt string was ! longer than the screen width and the prompt contained invisible characters. ! d. Fixed a problem with the paren matching code -- the blink was far too ! short (it's specified in microseconds, not milliseconds, Chet!). ! ------------------------------------------------------------------------------ This document details the changes between this version, readline-2.2, and the previous version, readline-2.1. --- 1,130 ---- ! This document details the changes between this version, readline-4.0, and the previous version, readline-2.2. 1. Changes to Readline ! a. The version number is now 4.0, to match the major and minor version ! numbers on the shared readline and history libraries. Future ! releases will maintain the identical numbering. ! b. Fixed a typo in the `make install' recipe that copied libreadline.a ! to libhistory.old right after installing it. ! c. The readline and history info files are now installed out of the source ! directory if they are not found in the build directory. ! d. The library no longer exports a function named `savestring' -- backwards ! compatibility be damned. ! e. There is no longer any #ifdef SHELL code in the source files. ! ! f. Some changes were made to the key binding code to fix memory leaks and ! better support Win32 systems. ! ! g. Fixed a silly typo in the paren matching code -- it's microseconds, not ! milliseconds. ! ! h. The readline library should be compilable by C++ compilers. ! ! i. The readline.h public header file now includes function prototypes for ! all readline functions, and some changes were made to fix errors in the ! source files uncovered by the use of prototypes. ! ! j. The maximum numeric argument is now clamped at 1000000. ! ! k. Fixes to rl_yank_last_arg to make it behave better. ! ! l. Fixed a bug in the display code that caused core dumps if the prompt ! string length exceeded 1024 characters. ! ! m. The menu completion code was fixed to properly insert a single completion ! if there is only one match. ! ! n. A bug was fixed that caused the display code to improperly display tabs ! after newlines. ! ! o. A fix was made to the completion code in which a typo caused the wrong ! value to be passed to the function that computed the longest common ! prefix of the list of matches. ! ! p. The completion code now checks the value of rl_filename_completion_desired, ! which is set by application-supplied completion functions to indicate ! that filename completion is being performed, to decide whether or not to ! call an application-supplied `ignore completions' function. ! ! q. Code was added to the history library to catch history substitutions ! using `&' without a previous history substitution or search having been ! performed. ! ! ! 2. New Features in Readline ! ! a. There is a new script, support/shobj-conf, to do system-specific shared ! object and library configuration. It generates variables for configure ! to substitute into makefiles. The README file provides a detailed ! explanation of the shared library creation process. ! ! b. Shared libraries and objects are now built in the `shlib' subdirectory. ! There is a shlib/Makefile.in to control the build process. `make shared' ! from the top-level directory is still the right way to build shared ! versions of the libraries. ! ! c. rlconf.h is now installed, so applications can find out which features ! have been compiled into the installed readline and history libraries. ! ! d. rlstdc.h is now an installed header file. ! ! e. Many changes to the signal handling: ! o Readline now catches SIGQUIT and cleans up the tty before returning; ! o A new variable, rl_catch_signals, is available to application writers ! to indicate to readline whether or not it should install its own ! signal handlers for SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, ! SIGTTIN, and SIGTTOU; ! o A new variable, rl_catch_sigwinch, is available to application ! writers to indicate to readline whether or not it should install its ! own signal handler for SIGWINCH, which will chain to the calling ! applications's SIGWINCH handler, if one is installed; ! o There is a new function, rl_free_line_state, for application signal ! handlers to call to free up the state associated with the current ! line after receiving a signal; ! o There is a new function, rl_cleanup_after_signal, to clean up the ! display and terminal state after receiving a signal; ! o There is a new function, rl_reset_after_signal, to reinitialize the ! terminal and display state after an application signal handler ! returns and readline continues ! ! f. There is a new function, rl_resize_terminal, to reset readline's idea of ! the screen size after a SIGWINCH. ! ! g. New public functions: rl_save_prompt and rl_restore_prompt. These were ! previously private functions with a `_' prefix. These functions are ! used when an application wants to write a message to the `message area' ! with rl_message and have the prompt restored correctly when the message ! is erased. ! ! h. New function hook: rl_pre_input_hook, called just before readline starts ! reading input, after initialization. ! ! i. New function hook: rl_display_matches_hook, called when readline would ! display the list of completion matches. The new function ! rl_display_match_list is what readline uses internally, and is available ! for use by application functions called via this hook. ! ! j. New bindable function, delete-char-or-list, like tcsh. ! ! k. A new variable, rl_erase_empty_line, which, if set by an application using ! readline, will cause readline to erase, prompt and all, lines on which the ! only thing typed was a newline. ! ! l. There is a new script, support/shlib-install, to install and uninstall ! the shared readline and history libraries. ! ! m. A new bindable variable, `isearch-terminators', which is a string ! containing the set of characters that should terminate an incremental ! search without being executed as a command. ! ! n. A new bindable function, forward-backward-delete-char. ! ! ------------------------------------------------------------------------------- This document details the changes between this version, readline-2.2, and the previous version, readline-2.1. diff -aNrc2 readline-2.2.1/MANIFEST readline-4.0/MANIFEST *** readline-2.2.1/MANIFEST Thu Sep 4 10:47:05 1997 --- readline-4.0/MANIFEST Thu Dec 31 12:07:24 1998 *************** *** 5,8 **** --- 5,9 ---- examples d support d + shlib d COPYING f README f *************** *** 28,31 **** --- 29,33 ---- rlconf.h f rldefs.h f + rlstdc.h f rltty.h f rlwinsize.h f *************** *** 46,49 **** --- 48,52 ---- readline.c f rltty.c f + savestring.c f search.c f shell.c f *************** *** 61,64 **** --- 64,68 ---- histfile.c f histsearch.c f + shlib/Makefile.in f support/config.guess f support/config.sub f *************** *** 66,71 **** --- 70,78 ---- support/mkdirs f support/mkdist f + support/shobj-conf f + support/shlib-install f doc/Makefile.in f doc/texinfo.tex f + doc/manvers.texinfo f doc/rlman.texinfo f doc/rltech.texinfo f *************** *** 82,85 **** --- 89,103 ---- examples/rltest.c f examples/rl.c f + examples/rlversion.c f examples/histexamp.c f examples/Inputrc f + # formatted documentation, from MANIFEST.doc + doc/readline.ps f + doc/history.ps f + doc/readline.dvi f + doc/history.dvi f + doc/readline.info f + doc/history.info f + doc/readline.html f + doc/history.html f + doc/readline.0 f diff -aNrc2 readline-2.2.1/MANIFEST.doc readline-4.0/MANIFEST.doc *** readline-2.2.1/MANIFEST.doc Thu Apr 16 10:28:49 1998 --- readline-4.0/MANIFEST.doc Wed Dec 31 19:00:00 1969 *************** *** 1,16 **** - # - # Master Manifest file for documentation-only distribution - # - doc d - MANIFEST.doc f - doc/readline.ps f - doc/history.ps f - doc/readline.dvi f - doc/history.dvi f - doc/readline.info f - doc/history.info f - doc/readline.html f - doc/readline_toc.html f - doc/history.html f - doc/history_toc.html f - doc/readline.0 f --- 0 ---- diff -aNrc2 readline-2.2.1/Makefile.in readline-4.0/Makefile.in *** readline-2.2.1/Makefile.in Fri Jul 17 11:00:54 1998 --- readline-4.0/Makefile.in Thu Feb 18 12:24:11 1999 *************** *** 29,39 **** CC = @CC@ - LD = ld # needed when building shared libraries RANLIB = @RANLIB@ ! AR = ar RM = rm -f CP = cp MV = mv prefix = @prefix@ exec_prefix = @exec_prefix@ --- 29,41 ---- CC = @CC@ RANLIB = @RANLIB@ ! AR = @AR@ ! ARFLAGS = @ARFLAGS@ RM = rm -f CP = cp MV = mv + SHELL = @MAKE_SHELL@ + prefix = @prefix@ exec_prefix = @exec_prefix@ *************** *** 48,53 **** man3dir = $(mandir)/man3 - SHELL = /bin/sh - # Programs to make tags files. ETAGS = etags -tw --- 50,53 ---- *************** *** 57,61 **** LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"' CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@ @CFLAGS@ DEFS = @DEFS@ --- 57,60 ---- *************** *** 67,98 **** CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) $(INCLUDES) $(LOCAL_CFLAGS) $(CFLAGS) - # these two options need tweaking for compiler/OS versions other than gcc - # and SunOS4 - PICFLAG= -fpic # -pic for some versions of cc - SHLIB_OPTS= -assert pure-text -ldl # -Bshareable for some versions of gcc - - MAJOR= 3 - # shared library systems like SVR4's do not use minor versions - MINOR= .0 - - .SUFFIXES: .so - .c.o: $(CC) -c $(CCFLAGS) $< - .c.so: - -mv $*.o z$*.o - $(CC) -c $(PICFLAG) $(CCFLAGS) $< - mv $*.o $@ - -mv z$*.o $*.o - # The name of the main library target. LIBRARY_NAME = libreadline.a STATIC_LIBS = libreadline.a libhistory.a - SHARED_READLINE = libreadline.so.$(MAJOR)$(MINOR) - SHARED_HISTORY = libhistory.so.$(MAJOR)$(MINOR) - SHARED_LIBS = $(SHARED_READLINE) $(SHARED_HISTORY) - # The C code source files for this library. CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(srcdir)/keymaps.c \ --- 66,77 ---- CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) $(INCLUDES) $(LOCAL_CFLAGS) $(CFLAGS) .c.o: + ${RM} $@ $(CC) -c $(CCFLAGS) $< # The name of the main library target. LIBRARY_NAME = libreadline.a STATIC_LIBS = libreadline.a libhistory.a # The C code source files for this library. CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(srcdir)/keymaps.c \ *************** *** 105,116 **** $(srcdir)/history.c $(srcdir)/histsearch.c $(srcdir)/histexpand.c \ $(srcdir)/histfile.c $(srcdir)/nls.c $(srcdir)/search.c \ ! $(srcdir)/shell.c $(srcdir)/tilde.c # The header files for this library. HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \ posixstat.h posixdir.h posixjmp.h tilde.h rlconf.h rltty.h \ ! ansi_stdlib.h tcap.h ! HISTOBJ = history.o histexpand.o histfile.o histsearch.o shell.o TILDEOBJ = tilde.o OBJECTS = readline.o vi_mode.o funmap.o keymaps.o parens.o search.o \ --- 84,95 ---- $(srcdir)/history.c $(srcdir)/histsearch.c $(srcdir)/histexpand.c \ $(srcdir)/histfile.c $(srcdir)/nls.c $(srcdir)/search.c \ ! $(srcdir)/shell.c $(srcdir)/savestring.c $(srcdir)/tilde.c # The header files for this library. HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h histlib.h \ posixstat.h posixdir.h posixjmp.h tilde.h rlconf.h rltty.h \ ! ansi_stdlib.h tcap.h rlstdc.h ! HISTOBJ = history.o histexpand.o histfile.o histsearch.o shell.o TILDEOBJ = tilde.o OBJECTS = readline.o vi_mode.o funmap.o keymaps.o parens.o search.o \ *************** *** 119,129 **** nls.o xmalloc.o $(HISTOBJ) $(TILDEOBJ) - SHARED_HISTOBJ = history.so histexpand.so histfile.so histsearch.so shell.so - SHARED_TILDEOBJ = tilde.so - SHARED_OBJ = readline.so vi_mode.so funmap.so keymaps.so parens.so search.so \ - rltty.so complete.so bind.so isearch.so display.so signals.so \ - util.so kill.so undo.so macro.so input.so callback.so terminal.so \ - nls.so xmalloc.so $(SHARED_HISTOBJ) $(SHARED_TILDEOBJ) - # The texinfo files which document this library. DOCSOURCE = doc/rlman.texinfo doc/rltech.texinfo doc/rluser.texinfo --- 98,101 ---- *************** *** 132,141 **** DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT) ! CREATED_MAKEFILES = Makefile doc/Makefile examples/Makefile CREATED_CONFIGURE = config.status config.h config.cache config.log \ stamp-config stamp-h CREATED_TAGS = TAGS tags ! INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h ########################################################################## --- 104,114 ---- DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT) ! CREATED_MAKEFILES = Makefile doc/Makefile examples/Makefile shlib/Makefile CREATED_CONFIGURE = config.status config.h config.cache config.log \ stamp-config stamp-h CREATED_TAGS = TAGS tags ! INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h \ ! rlstdc.h rlconf.h ########################################################################## *************** *** 144,167 **** static: $(STATIC_LIBS) - shared: $(SHARED_LIBS) libreadline.a: $(OBJECTS) $(RM) $@ ! $(AR) cr $@ $(OBJECTS) -test -n "$(RANLIB)" && $(RANLIB) $@ libhistory.a: $(HISTOBJ) xmalloc.o $(RM) $@ ! $(AR) cr $@ $(HISTOBJ) xmalloc.o -test -n "$(RANLIB)" && $(RANLIB) $@ - $(SHARED_READLINE): $(SHARED_OBJ) - $(RM) $@ - $(LD) ${SHLIB_OPTS} -o $@ $(SHARED_OBJ) - - $(SHARED_HISTORY): $(SHARED_HISTOBJ) xmalloc.so - $(RM) $@ - $(LD) ${SHLIB_OPTS} -o $@ $(SHARED_HISTOBJ) xmalloc.so - readline: $(OBJECTS) readline.h rldefs.h chardefs.h $(CC) $(CCFLAGS) -o $@ ./examples/rl.c ./libreadline.a -ltermcap --- 117,131 ---- static: $(STATIC_LIBS) libreadline.a: $(OBJECTS) $(RM) $@ ! $(AR) $(ARFLAGS) $@ $(OBJECTS) -test -n "$(RANLIB)" && $(RANLIB) $@ libhistory.a: $(HISTOBJ) xmalloc.o $(RM) $@ ! $(AR) $(ARFLAGS) $@ $(HISTOBJ) xmalloc.o -test -n "$(RANLIB)" && $(RANLIB) $@ readline: $(OBJECTS) readline.h rldefs.h chardefs.h $(CC) $(CCFLAGS) -o $@ ./examples/rl.c ./libreadline.a -ltermcap *************** *** 187,190 **** --- 151,159 ---- cd $(srcdir) && autoconf ## Comment-me-out in distribution + + shared: force + -test -d shlib || mkdir shlib + -( cd shlib ; ${MAKE} ${MFLAGS} all ) + documentation: force -test -d doc || mkdir doc *************** *** 223,233 **** install-shared: installdirs shared ! -$(MV) $(libdir)/$(SHARED_HISTORY) $(libdir)/$(SHARED_HISTORY).old ! $(INSTALL_DATA) $(SHARED_HISTORY) $(libdir)/$(SHARED_HISTORY) ! -$(MV) $(libdir)/$(SHARED_READLINE) $(libdir)/$(SHARED_READLINE).old ! $(INSTALL_DATA) $(SHARED_READLINE) $(libdir)/$(SHARED_READLINE) uninstall-shared: ! -test -n "$(libdir)" && cd $(libdir) && ${RM} ${SHARED_LIBS} TAGS: force --- 192,199 ---- install-shared: installdirs shared ! -( cd shlib ; ${MAKE} ${MFLAGS} install ) uninstall-shared: ! -( cd shlib; ${MAKE} ${MFLAGS} uninstall ) TAGS: force *************** *** 239,251 **** clean: force $(RM) $(OBJECTS) $(STATIC_LIBS) ! $(RM) $(SHARED_OBJ) $(SHARED_LIBS) -( cd doc && $(MAKE) $(MFLAGS) $@ ) -( cd examples && $(MAKE) $(MFLAGS) $@ ) mostlyclean: clean -( cd doc && $(MAKE) $(MFLAGS) $@ ) -( cd examples && $(MAKE) $(MFLAGS) $@ ) distclean maintainer-clean: clean -( cd doc && $(MAKE) $(MFLAGS) $@ ) -( cd examples && $(MAKE) $(MFLAGS) $@ ) --- 205,219 ---- clean: force $(RM) $(OBJECTS) $(STATIC_LIBS) ! -( cd shlib && $(MAKE) $(MFLAGS) $@ ) -( cd doc && $(MAKE) $(MFLAGS) $@ ) -( cd examples && $(MAKE) $(MFLAGS) $@ ) mostlyclean: clean + -( cd shlib && $(MAKE) $(MFLAGS) $@ ) -( cd doc && $(MAKE) $(MFLAGS) $@ ) -( cd examples && $(MAKE) $(MFLAGS) $@ ) distclean maintainer-clean: clean + -( cd shlib && $(MAKE) $(MFLAGS) $@ ) -( cd doc && $(MAKE) $(MFLAGS) $@ ) -( cd examples && $(MAKE) $(MFLAGS) $@ ) *************** *** 275,348 **** bind.o: ansi_stdlib.h posixstat.h bind.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h ! bind.o: readline.h keymaps.h chardefs.h tilde.h bind.o: history.h callback.o: rlconf.h callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h ! callback.o: readline.h keymaps.h chardefs.h tilde.h complete.o: ansi_stdlib.h posixdir.h posixstat.h complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h ! complete.o: readline.h keymaps.h chardefs.h tilde.h display.o: ansi_stdlib.h posixstat.h display.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h display.o: tcap.h display.o: readline.h keymaps.h chardefs.h tilde.h ! display.o: history.h funmap.o: readline.h keymaps.h chardefs.h tilde.h ! funmap.o: rlconf.h ansi_stdlib.h funmap.o: ${BUILD_DIR}/config.h histexpand.o: ansi_stdlib.h ! histexpand.o: history.h histlib.h histexpand.o: ${BUILD_DIR}/config.h histfile.o: ansi_stdlib.h ! histfile.o: history.h histlib.h histfile.o: ${BUILD_DIR}/config.h history.o: ansi_stdlib.h ! history.o: history.h histlib.h history.o: ${BUILD_DIR}/config.h histsearch.o: ansi_stdlib.h ! histsearch.o: history.h histlib.h histsearch.o: ${BUILD_DIR}/config.h input.o: ansi_stdlib.h input.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h ! input.o: readline.h keymaps.h chardefs.h tilde.h isearch.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h isearch.o: readline.h keymaps.h chardefs.h tilde.h ! isearch.o: ansi_stdlib.h history.h keymaps.o: emacs_keymap.c vi_keymap.c keymaps.o: keymaps.h chardefs.h rlconf.h ansi_stdlib.h keymaps.o: readline.h keymaps.h chardefs.h tilde.h ! keymaps.o: ${BUILD_DIR}/config.h kill.o: ansi_stdlib.h kill.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h kill.o: readline.h keymaps.h chardefs.h tilde.h ! kill.o: history.h macro.o: ansi_stdlib.h macro.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h macro.o: readline.h keymaps.h chardefs.h tilde.h ! macro.o: history.h nls.o: ansi_stdlib.h nls.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h parens.o: rlconf.h parens.o: ${BUILD_DIR}/config.h ! parens.o: readline.h keymaps.h chardefs.h tilde.h readline.o: readline.h keymaps.h chardefs.h tilde.h readline.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h ! readline.o: history.h readline.o: posixstat.h ansi_stdlib.h posixjmp.h rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h rltty.o: rltty.h ! rltty.o: readline.h keymaps.h chardefs.h tilde.h search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h search.o: readline.h keymaps.h chardefs.h tilde.h ! search.o: ansi_stdlib.h history.h shell.o: ${BUILD_DIR}/config.h shell.o: ansi_stdlib.h signals.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h signals.o: readline.h keymaps.h chardefs.h tilde.h ! signals.o: history.h terminal.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h terminal.o: tcap.h terminal.o: readline.h keymaps.h chardefs.h tilde.h ! terminal.o: history.h tilde.o: ansi_stdlib.h tilde.o: ${BUILD_DIR}/config.h --- 243,316 ---- bind.o: ansi_stdlib.h posixstat.h bind.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h ! bind.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h bind.o: history.h callback.o: rlconf.h callback.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h ! callback.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h complete.o: ansi_stdlib.h posixdir.h posixstat.h complete.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h ! complete.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h display.o: ansi_stdlib.h posixstat.h display.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h display.o: tcap.h display.o: readline.h keymaps.h chardefs.h tilde.h ! display.o: history.h rlstdc.h funmap.o: readline.h keymaps.h chardefs.h tilde.h ! funmap.o: rlconf.h ansi_stdlib.h rlstdc.h funmap.o: ${BUILD_DIR}/config.h histexpand.o: ansi_stdlib.h ! histexpand.o: history.h histlib.h rlstdc.h histexpand.o: ${BUILD_DIR}/config.h histfile.o: ansi_stdlib.h ! histfile.o: history.h histlib.h rlstdc.h histfile.o: ${BUILD_DIR}/config.h history.o: ansi_stdlib.h ! history.o: history.h histlib.h rlstdc.h history.o: ${BUILD_DIR}/config.h histsearch.o: ansi_stdlib.h ! histsearch.o: history.h histlib.h rlstdc.h histsearch.o: ${BUILD_DIR}/config.h input.o: ansi_stdlib.h input.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h ! input.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h isearch.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h isearch.o: readline.h keymaps.h chardefs.h tilde.h ! isearch.o: ansi_stdlib.h history.h rlstdc.h keymaps.o: emacs_keymap.c vi_keymap.c keymaps.o: keymaps.h chardefs.h rlconf.h ansi_stdlib.h keymaps.o: readline.h keymaps.h chardefs.h tilde.h ! keymaps.o: ${BUILD_DIR}/config.h rlstdc.h kill.o: ansi_stdlib.h kill.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h kill.o: readline.h keymaps.h chardefs.h tilde.h ! kill.o: history.h rlstdc.h macro.o: ansi_stdlib.h macro.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h macro.o: readline.h keymaps.h chardefs.h tilde.h ! macro.o: history.h rlstdc.h nls.o: ansi_stdlib.h nls.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h parens.o: rlconf.h parens.o: ${BUILD_DIR}/config.h ! parens.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h readline.o: readline.h keymaps.h chardefs.h tilde.h readline.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h ! readline.o: history.h rlstdc.h readline.o: posixstat.h ansi_stdlib.h posixjmp.h rltty.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h rltty.o: rltty.h ! rltty.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h search.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h search.o: readline.h keymaps.h chardefs.h tilde.h ! search.o: ansi_stdlib.h history.h rlstdc.h shell.o: ${BUILD_DIR}/config.h shell.o: ansi_stdlib.h signals.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h signals.o: readline.h keymaps.h chardefs.h tilde.h ! signals.o: history.h rlstdc.h terminal.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h terminal.o: tcap.h terminal.o: readline.h keymaps.h chardefs.h tilde.h ! terminal.o: history.h rlstdc.h tilde.o: ansi_stdlib.h tilde.o: ${BUILD_DIR}/config.h *************** *** 351,361 **** undo.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h undo.o: readline.h keymaps.h chardefs.h tilde.h ! undo.o: history.h util.o: posixjmp.h ansi_stdlib.h util.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h ! util.o: readline.h keymaps.h chardefs.h tilde.h vi_mode.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h vi_mode.o: readline.h keymaps.h chardefs.h tilde.h ! vi_mode.o: history.h ansi_stdlib.h xmalloc.o: ${BUILD_DIR}/config.h xmalloc.o: ansi_stdlib.h --- 319,329 ---- undo.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h undo.o: readline.h keymaps.h chardefs.h tilde.h ! undo.o: history.h rlstdc.h util.o: posixjmp.h ansi_stdlib.h util.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h ! util.o: readline.h keymaps.h chardefs.h tilde.h rlstdc.h vi_mode.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h vi_mode.o: readline.h keymaps.h chardefs.h tilde.h ! vi_mode.o: history.h ansi_stdlib.h rlstdc.h xmalloc.o: ${BUILD_DIR}/config.h xmalloc.o: ansi_stdlib.h *************** *** 386,478 **** histfile.o: $(srcdir)/histfile.c histsearch.o: $(srcdir)/histsearch.c shell.o: $(srcdir)/shell.c tilde.o: $(srcdir)/tilde.c - bind.so: ansi_stdlib.h posixstat.h - bind.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - bind.so: readline.h keymaps.h chardefs.h tilde.h - bind.so: history.h - callback.so: rlconf.h - callback.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - callback.so: readline.h keymaps.h chardefs.h tilde.h - complete.so: ansi_stdlib.h posixdir.h posixstat.h - complete.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - complete.so: readline.h keymaps.h chardefs.h tilde.h - display.so: ansi_stdlib.h posixstat.h - display.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - display.so: tcap.h - display.so: readline.h keymaps.h chardefs.h tilde.h - display.so: history.h - funmap.so: readline.h keymaps.h chardefs.h tilde.h - funmap.so: rlconf.h ansi_stdlib.h - funmap.so: ${BUILD_DIR}/config.h - histexpand.so: ansi_stdlib.h - histexpand.so: history.h histlib.h - histexpand.so: ${BUILD_DIR}/config.h - histfile.so: ansi_stdlib.h - histfile.so: history.h histlib.h - histfile.so: ${BUILD_DIR}/config.h - history.so: ansi_stdlib.h - history.so: history.h histlib.h - history.so: ${BUILD_DIR}/config.h - histsearch.so: ansi_stdlib.h - histsearch.so: history.h histlib.h - histsearch.so: ${BUILD_DIR}/config.h - input.so: ansi_stdlib.h - input.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - input.so: readline.h keymaps.h chardefs.h tilde.h - isearch.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - isearch.so: readline.h keymaps.h chardefs.h tilde.h - isearch.so: ansi_stdlib.h history.h - keymaps.so: emacs_keymap.c vi_keymap.c - keymaps.so: keymaps.h chardefs.h rlconf.h ansi_stdlib.h - keymaps.so: readline.h keymaps.h chardefs.h tilde.h - keymaps.so: ${BUILD_DIR}/config.h - kill.so: ansi_stdlib.h - kill.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - kill.so: readline.h keymaps.h chardefs.h tilde.h - kill.so: history.h - macro.so: ansi_stdlib.h - macro.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - macro.so: readline.h keymaps.h chardefs.h tilde.h - macro.so: history.h - nls.so: ansi_stdlib.h - nls.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - parens.so: rlconf.h - parens.so: ${BUILD_DIR}/config.h - parens.so: readline.h keymaps.h chardefs.h tilde.h - readline.so: readline.h keymaps.h chardefs.h tilde.h - readline.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - readline.so: history.h - readline.so: posixstat.h ansi_stdlib.h posixjmp.h - rltty.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - rltty.so: rltty.h - rltty.so: readline.h keymaps.h chardefs.h tilde.h - search.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - search.so: readline.h keymaps.h chardefs.h tilde.h - search.so: ansi_stdlib.h history.h - signals.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - signals.so: readline.h keymaps.h chardefs.h tilde.h - signals.so: history.h - terminal.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - terminal.so: tcap.h - terminal.so: readline.h keymaps.h chardefs.h tilde.h - terminal.so: history.h - tilde.so: ansi_stdlib.h - tilde.so: ${BUILD_DIR}/config.h - tilde.so: tilde.h - undo.so: ansi_stdlib.h - undo.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - undo.so: readline.h keymaps.h chardefs.h tilde.h - undo.so: history.h - util.so: posixjmp.h ansi_stdlib.h - util.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - util.so: readline.h keymaps.h chardefs.h tilde.h - vi_mode.so: rldefs.h ${BUILD_DIR}/config.h rlconf.h - vi_mode.so: readline.h keymaps.h chardefs.h tilde.h - vi_mode.so: history.h ansi_stdlib.h - xmalloc.so: ${BUILD_DIR}/config.h - xmalloc.so: ansi_stdlib.h - readline.o: readline.c vi_mode.o: vi_mode.c --- 354,361 ---- histfile.o: $(srcdir)/histfile.c histsearch.o: $(srcdir)/histsearch.c + savestring.o: $(srcdir)/savestring.c shell.o: $(srcdir)/shell.c tilde.o: $(srcdir)/tilde.c readline.o: readline.c vi_mode.o: vi_mode.c *************** *** 500,559 **** histfile.o: histfile.c histsearch.o: histsearch.c shell.o: shell.c tilde.o: tilde.c - - readline.so: $(srcdir)/readline.c - vi_mode.so: $(srcdir)/vi_mode.c - funmap.so: $(srcdir)/funmap.c - keymaps.so: $(srcdir)/keymaps.c - parens.so: $(srcdir)/parens.c - search.so: $(srcdir)/search.c - rltty.so: $(srcdir)/rltty.c - complete.so: $(srcdir)/complete.c - bind.so: $(srcdir)/bind.c - isearch.so: $(srcdir)/isearch.c - display.so: $(srcdir)/display.c - signals.so: $(srcdir)/signals.c - util.so: $(srcdir)/util.c - kill.so: $(srcdir)/kill.c - undo.so: $(srcdir)/undo.c - macro.so: $(srcdir)/macro.c - input.so: $(srcdir)/input.c - callback.so: $(srcdir)/callback.c - terminal.so: $(srcdir)/terminal.c - nls.so: $(srcdir)/nls.c - xmalloc.so: $(srcdir)/xmalloc.c - history.so: $(srcdir)/history.c - histexpand.so: $(srcdir)/histexpand.c - histfile.so: $(srcdir)/histfile.c - histsearch.so: $(srcdir)/histsearch.c - shell.so: $(srcdir)/shell.c - tilde.so: $(srcdir)/tilde.c - - readline.so: readline.c - vi_mode.so: vi_mode.c - funmap.so: funmap.c - keymaps.so: keymaps.c - parens.so: parens.c - search.so: search.c - rltty.so: rltty.c - complete.so: complete.c - bind.so: bind.c - isearch.so: isearch.c - display.so: display.c - signals.so: signals.c - util.so: util.c - kill.so: kill.c - undo.so: undo.c - macro.so: macro.c - input.so: input.c - callback.so: callback.c - terminal.so: terminal.c - nls.so: nls.c - xmalloc.so: xmalloc.c - history.so: history.c - histexpand.so: histexpand.c - histfile.so: histfile.c - histsearch.so: histsearch.c - shell.so: shell.c - tilde.so: tilde.c --- 383,387 ---- histfile.o: histfile.c histsearch.o: histsearch.c + savestring.o: savestring.c shell.o: shell.c tilde.o: tilde.c diff -aNrc2 readline-2.2.1/README readline-4.0/README *** readline-2.2.1/README Thu Apr 2 14:48:59 1998 --- readline-4.0/README Tue Dec 22 13:40:27 1998 *************** *** 2,6 **** ============ ! This is the Gnu Readline library, version 2.2 The Readline library provides a set of functions for use by applications --- 2,6 ---- ============ ! This is the Gnu Readline library, version 4.0. The Readline library provides a set of functions for use by applications *************** *** 35,40 **** to customize and control the build process. ! The file rlconf.h contains defines that enable and disable certain ! Readline features. Examples --- 35,40 ---- to customize and control the build process. ! The file rlconf.h contains C preprocessor defines that enable and disable ! certain Readline features. Examples *************** *** 50,79 **** There is skeletal support for building shared versions of the ! Readline and History libraries. ! ! Typing `make shared' will cause shared versions of the Readline and ! History libraries to be built on SunOS 4.1.x. For versions of Unix ! other than SunOS, you will have to make some changes to Makefile.in. ! The relevant variables are: ! ! PICFLAG Options to give to the compiler to produce position-independent ! code. The value `-fpic' works for most versions of gcc. ! SHLIB_OPTS Options to give to the linker to produce a shared library. ! The value `-assert pure-text -ldl' works on SunOS 4.1.x. ! The value `-Bshareable' works for some versions of GNU ld. ! ! MAJOR The major version number of the shared library. You should ! not need to change this. ! MINOR The minor version number of the shared library. Some systems, ! such as SVR4 and its descendents (e.g., Solaris, Unixware), ! do not use minor version numbers. For those systems, this ! variable should be left unset. ! ! LD The linker. The value of `ld' is correct for SunOS 4.1.x. ! You may need to change it to `gcc'; make sure to change ! SHLIB_OPTS if you do so. ! ! Once you have edited Makefile.in, type `make Makefile' to rebuild the ! Makefile, then `make shared' to build the shared libraries. Documentation --- 50,130 ---- There is skeletal support for building shared versions of the ! Readline and History libraries. The configure script creates ! a Makefile in the `shlib' subdirectory, and typing `make shared' ! will cause shared versions of the Readline and History libraries ! to be built on supported platforms. ! ! Configure calls the script support/shobj-conf to test whether or ! not shared library creation is supported and to generate the values ! of variables that are substituted into shlib/Makefile. If you ! try to build shared libraries on an unsupported platform, `make' ! will display a message asking you to update support/shobj-conf for ! your platform. ! ! If you need to update support/shobj-conf, you will need to create ! a `stanza' for your operating system and compiler. The script uses ! the value of host_os and ${CC} as determined by configure. For ! instance, FreeBSD 2.2.5 with any version of gcc is identified as ! `freebsd2.2.5-gcc*'. ! ! In the stanza for your operating system-compiler pair, you will need to ! define several variables. They are: ! ! SHOBJ_CC The C compiler used to compile source files into shareable ! object files. This is normally set to the value of ${CC} ! by configure, and should not need to be changed. ! ! SHOBJ_CFLAGS Flags to pass to the C compiler ($SHOBJ_CC) to create ! position-independent code. If you are using gcc, this ! should probably be set to `-fpic'. ! ! SHOBJ_LD The link editor to be used to create the shared library from ! the object files created by $SHOBJ_CC. If you are using ! gcc, a value of `gcc' will probably work. ! ! SHOBJ_LDFLAGS Flags to pass to SHOBJ_LD to enable shared object creation. ! If you are using gcc, `-shared' may be all that is necessary. ! These should be the flags needed for generic shared object ! creation. ! ! SHLIB_XLDFLAGS Additional flags to pass to SHOBJ_LD for shared library ! creation. Many systems use the -R option to the link ! editor to embed a path within the library for run-time ! library searches. A reasonable value for such systems would ! be `-R$(libdir)'. ! ! SHLIB_LIBS Any additional libraries that shared libraries should be ! linked against when they are created. ! ! SHLIB_LIBSUFF The suffix to add to `libreadline' and `libhistory' when ! generating the filename of the shared library. Many systems ! use `so'; HP-UX uses `sl'. ! ! SHLIB_LIBVERSION The string to append to the filename to indicate the version ! of the shared library. It should begin with $(SHLIB_LIBSUFF), ! and possibly include version information that allows the ! run-time loader to load the version of the shared library ! appropriate for a particular program. Systems using shared ! libraries similar to SunOS 4.x use major and minor library ! version numbers; for those systems a value of ! `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' is appropriate. ! Systems based on System V Release 4 don't use minor version ! numbers; use `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' on those systems. ! Other Unix versions use different schemes. ! ! SHLIB_STATUS Set this to `supported' when you have defined the other ! necessary variables. Make uses this to determine whether ! or not shared library creation should be attempted. ! ! You should look at the existing stanzas in support/shobj-conf for ideas. ! ! Once you have updated support/shobj-conf, re-run configure and type ! `make shared'. The shared libraries will be created in the shlib ! subdirectory. ! ! Since shared libraries are not created on all platforms, `make install' ! will not automatically install the shared libraries. To install them, ! change the current directory to shlib and type `make install'. Running ! `make install-shared' from the top-level build directory will also work. Documentation *************** *** 94,98 **** When reporting a bug, please include the following information: ! * the version number and release status of Readline (e.g., 2.2-release) * the machine and OS that it is running on * a list of the compilation flags or the contents of `config.h', if --- 145,149 ---- When reporting a bug, please include the following information: ! * the version number and release status of Readline (e.g., 4.0-release) * the machine and OS that it is running on * a list of the compilation flags or the contents of `config.h', if diff -aNrc2 readline-2.2.1/aclocal.m4 readline-4.0/aclocal.m4 *** readline-2.2.1/aclocal.m4 Fri Mar 27 12:04:31 1998 --- readline-4.0/aclocal.m4 Wed Dec 30 11:06:41 1998 *************** *** 27,31 **** } ], bash_cv_dup2_broken=yes, bash_cv_dup2_broken=no, ! [AC_MSG_ERROR(cannot check dup2 if cross compiling -- defaulting to no) bash_cv_dup2_broken=no]) ]) --- 27,31 ---- } ], bash_cv_dup2_broken=yes, bash_cv_dup2_broken=no, ! [AC_MSG_WARN(cannot check dup2 if cross compiling -- defaulting to no) bash_cv_dup2_broken=no]) ]) *************** *** 130,134 **** } ], bash_cv_pgrp_pipe=no,bash_cv_pgrp_pipe=yes, ! [AC_MSG_ERROR(cannot check pgrp synchronization if cross compiling -- defaulting to no) bash_cv_pgrp_pipe=no]) ]) --- 130,134 ---- } ], bash_cv_pgrp_pipe=no,bash_cv_pgrp_pipe=yes, ! [AC_MSG_WARN(cannot check pgrp synchronization if cross compiling -- defaulting to no) bash_cv_pgrp_pipe=no]) ]) *************** *** 188,192 **** exit(1); }], bash_cv_type_rlimit=quad_t, bash_cv_type_rlimit=long, ! [AC_MSG_ERROR(cannot check quad_t if cross compiling -- defaulting to long) bash_cv_type_rlimit=long])]) ]) --- 188,192 ---- exit(1); }], bash_cv_type_rlimit=quad_t, bash_cv_type_rlimit=long, ! [AC_MSG_WARN(cannot check quad_t if cross compiling -- defaulting to long) bash_cv_type_rlimit=long])]) ]) *************** *** 212,216 **** #endif], [ char *msg = _sys_siglist[2]; ], bash_cv_decl_under_sys_siglist=yes, bash_cv_decl_under_sys_siglist=no, ! [AC_MSG_ERROR(cannot check for _sys_siglist[] if cross compiling -- defaulting to no)])])dnl AC_MSG_RESULT($bash_cv_decl_under_sys_siglist) if test $bash_cv_decl_under_sys_siglist = yes; then --- 212,216 ---- #endif], [ char *msg = _sys_siglist[2]; ], bash_cv_decl_under_sys_siglist=yes, bash_cv_decl_under_sys_siglist=no, ! [AC_MSG_WARN(cannot check for _sys_siglist[] if cross compiling -- defaulting to no)])])dnl AC_MSG_RESULT($bash_cv_decl_under_sys_siglist) if test $bash_cv_decl_under_sys_siglist = yes; then *************** *** 238,242 **** }], bash_cv_under_sys_siglist=yes, bash_cv_under_sys_siglist=no, ! [AC_MSG_ERROR(cannot check for _sys_siglist[] if cross compiling -- defaulting to no) bash_cv_under_sys_siglist=no])]) AC_MSG_RESULT($bash_cv_under_sys_siglist) --- 238,242 ---- }], bash_cv_under_sys_siglist=yes, bash_cv_under_sys_siglist=no, ! [AC_MSG_WARN(cannot check for _sys_siglist[] if cross compiling -- defaulting to no) bash_cv_under_sys_siglist=no])]) AC_MSG_RESULT($bash_cv_under_sys_siglist) *************** *** 265,269 **** }], bash_cv_sys_siglist=yes, bash_cv_sys_siglist=no, ! [AC_MSG_ERROR(cannot check for sys_siglist if cross compiling -- defaulting to no) bash_cv_sys_siglist=no])]) AC_MSG_RESULT($bash_cv_sys_siglist) --- 265,269 ---- }], bash_cv_sys_siglist=yes, bash_cv_sys_siglist=no, ! [AC_MSG_WARN(cannot check for sys_siglist if cross compiling -- defaulting to no) bash_cv_sys_siglist=no])]) AC_MSG_RESULT($bash_cv_sys_siglist) *************** *** 326,330 **** exit (dir == 0); }], bash_cv_opendir_not_robust=yes,bash_cv_opendir_not_robust=no, ! [AC_MSG_ERROR(cannot check opendir if cross compiling -- defaulting to no) bash_cv_opendir_not_robust=no] )]) --- 326,330 ---- exit (dir == 0); }], bash_cv_opendir_not_robust=yes,bash_cv_opendir_not_robust=no, ! [AC_MSG_WARN(cannot check opendir if cross compiling -- defaulting to no) bash_cv_opendir_not_robust=no] )]) *************** *** 357,391 **** AC_DEFUN(BASH_TYPE_INT32_T, [ ! if test "X$bash_cv_type_int32_t" = "X"; then ! _bash_needmsg=yes else ! AC_MSG_CHECKING(which builtin C type is 32 bits wide) ! _bash_needmsg= ! fi ! AC_CACHE_VAL(bash_cv_type_int32_t, ! [AC_TRY_RUN([ ! main() ! { ! #if SIZEOF_INT == 4 ! exit (0); ! #else ! # if SIZEOF_LONG == 4 ! exit (1); ! # else ! # error cannot find 32 bit type... ! # endif ! #endif ! }], bash_cv_type_int32_t=int, bash_cv_type_int32_t=long, ! [AC_MSG_ERROR(cannot check type sizes if cross-compiling -- defaulting to int) ! bash_cv_type_int32_t=int] ! )]) ! if test "X$_bash_needmsg" = "Xyes"; then ! AC_MSG_CHECKING(which builtin C type is 32 bits wide) ! fi ! AC_MSG_RESULT($bash_cv_type_int32_t); ! if test "$bash_cv_type_int32_t" = "int"; then ! AC_DEFINE(int32_t, int) ! else ! AC_DEFINE(int32_t, long) fi ]) --- 357,366 ---- AC_DEFUN(BASH_TYPE_INT32_T, [ ! if test "$ac_cv_sizeof_int" = 4; then ! AC_CHECK_TYPE(int32_t, int) ! elif test "$ac_cv_sizeof_long" = 4; then ! AC_CHECK_TYPE(int32_t, long) else ! AC_CHECK_TYPE(int32_t, int) fi ]) *************** *** 393,427 **** AC_DEFUN(BASH_TYPE_U_INT32_T, [ ! if test "X$bash_cv_type_u_int32_t" = "X"; then ! _bash_needmsg=yes ! else ! AC_MSG_CHECKING(which unsigned builtin C type is 32 bits wide) ! _bash_needmsg= ! fi ! AC_CACHE_VAL(bash_cv_type_u_int32_t, ! [AC_TRY_RUN([ ! main() ! { ! #if SIZEOF_INT == 4 ! exit (0); ! #else ! # if SIZEOF_LONG == 4 ! exit (1); ! # else ! # error cannot find 32 bit type... ! # endif ! #endif ! }], bash_cv_type_u_int32_t=int, bash_cv_type_u_int32_t=long, ! [AC_MSG_ERROR(cannot check type sizes if cross-compiling -- defaulting to int) ! bash_cv_type_u_int32_t=int] ! )]) ! if test "X$_bash_needmsg" = "Xyes"; then ! AC_MSG_CHECKING(which unsigned builtin C type is 32 bits wide) ! fi ! AC_MSG_RESULT($bash_cv_type_u_int32_t); ! if test "$bash_cv_type_u_int32_t" = "int"; then ! AC_DEFINE(u_int32_t, unsigned int) else ! AC_DEFINE(u_int32_t, unsigned long) fi ]) --- 368,377 ---- AC_DEFUN(BASH_TYPE_U_INT32_T, [ ! if test "$ac_cv_sizeof_int" = 4; then ! AC_CHECK_TYPE(u_int32_t, unsigned int) ! elif test "$ac_cv_sizeof_long" = 4; then ! AC_CHECK_TYPE(u_int32_t, unsigned long) else ! AC_CHECK_TYPE(u_int32_t, unsigned int) fi ]) *************** *** 429,463 **** AC_DEFUN(BASH_TYPE_PTRDIFF_T, [ ! if test "X$bash_cv_type_ptrdiff_t" = "X"; then ! _bash_needmsg=yes else ! AC_MSG_CHECKING(which builtin C type is correct for ptrdiff_t) ! _bash_needmsg= fi ! AC_CACHE_VAL(bash_cv_type_ptrdiff_t, ! [AC_TRY_RUN([ ! main() ! { ! #if SIZEOF_CHAR_P == SIZEOF_INT ! exit (0); ! #else ! # if SIZEOF_CHAR_P == SIZEOF_LONG ! exit (1); ! # else ! # error cannot find type for pointer arithmetic... ! # endif ! #endif ! }], bash_cv_type_ptrdiff_t=int, bash_cv_type_ptrdiff_t=long, ! [AC_MSG_ERROR(cannot check type sizes if cross-compiling -- defaulting to int) ! bash_cv_type_ptrdiff_t=int] ! )]) ! if test "X$_bash_needmsg" = "Xyes"; then ! AC_MSG_CHECKING(which builtin C type is correct for ptrdiff_t) ! fi ! AC_MSG_RESULT($bash_cv_type_ptrdiff_t); ! if test "$bash_cv_type_ptrdiff_t" = "int"; then ! AC_DEFINE(ptrdiff_t, int) else ! AC_DEFINE(ptrdiff_t, long) fi ]) --- 379,401 ---- AC_DEFUN(BASH_TYPE_PTRDIFF_T, [ ! if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then ! AC_CHECK_TYPE(ptrdiff_t, int) ! elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then ! AC_CHECK_TYPE(ptrdiff_t, long) else ! AC_CHECK_TYPE(ptrdiff_t, int) fi ! ]) ! ! AC_DEFUN(BASH_TYPE_BITS64_T, ! [ ! if test "$ac_sv_sizeof_char_p" = 8; then ! AC_CHECK_TYPE(bits64_t, char *) ! elif test "$ac_cv_sizeof_double" = 8; then ! AC_CHECK_TYPE(bits64_t, double) ! elif test "$ac_cv_sizeof_long" = 8; then ! AC_CHECK_TYPE(bits64_t, long) else ! AC_CHECK_TYPE(bits64_t, double) fi ]) *************** *** 549,553 **** } ], bash_cv_getenv_redef=yes, bash_cv_getenv_redef=no, ! [AC_MSG_ERROR(cannot check getenv redefinition if cross compiling -- defaulting to yes) bash_cv_getenv_redef=yes] )]) --- 487,491 ---- } ], bash_cv_getenv_redef=yes, bash_cv_getenv_redef=no, ! [AC_MSG_WARN(cannot check getenv redefinition if cross compiling -- defaulting to yes) bash_cv_getenv_redef=yes] )]) *************** *** 575,579 **** } ], bash_cv_printf_declared=yes, bash_cv_printf_declared=no, ! [AC_MSG_ERROR(cannot check printf declaration if cross compiling -- defaulting to yes) bash_cv_printf_declared=yes] )]) --- 513,517 ---- } ], bash_cv_printf_declared=yes, bash_cv_printf_declared=no, ! [AC_MSG_WARN(cannot check printf declaration if cross compiling -- defaulting to yes) bash_cv_printf_declared=yes] )]) *************** *** 594,598 **** } ], bash_cv_ulimit_maxfds=yes, bash_cv_ulimit_maxfds=no, ! [AC_MSG_ERROR(cannot check ulimit if cross compiling -- defaulting to no) bash_cv_ulimit_maxfds=no] )]) --- 532,536 ---- } ], bash_cv_ulimit_maxfds=yes, bash_cv_ulimit_maxfds=no, ! [AC_MSG_WARN(cannot check ulimit if cross compiling -- defaulting to no) bash_cv_ulimit_maxfds=no] )]) *************** *** 691,695 **** } ], bash_cv_getcwd_calls_popen=no, bash_cv_getcwd_calls_popen=yes, ! [AC_MSG_ERROR(cannot check whether getcwd calls popen if cross compiling -- defaulting to no) bash_cv_getcwd_calls_popen=no] )]) --- 629,633 ---- } ], bash_cv_getcwd_calls_popen=no, bash_cv_getcwd_calls_popen=yes, ! [AC_MSG_WARN(cannot check whether getcwd calls popen if cross compiling -- defaulting to no) bash_cv_getcwd_calls_popen=no] )]) *************** *** 815,819 **** } ], bash_cv_must_reinstall_sighandlers=no, bash_cv_must_reinstall_sighandlers=yes, ! [AC_MSG_ERROR(cannot check signal handling if cross compiling -- defaulting to no) bash_cv_must_reinstall_sighandlers=no] )]) --- 753,757 ---- } ], bash_cv_must_reinstall_sighandlers=no, bash_cv_must_reinstall_sighandlers=yes, ! [AC_MSG_WARN(cannot check signal handling if cross compiling -- defaulting to no) bash_cv_must_reinstall_sighandlers=no] )]) *************** *** 884,888 **** exit(0); }], bash_cv_job_control_missing=present, bash_cv_job_control_missing=missing, ! [AC_MSG_ERROR(cannot check job control if cross-compiling -- defaulting to missing) bash_cv_job_control_missing=missing] )]) --- 822,826 ---- exit(0); }], bash_cv_job_control_missing=present, bash_cv_job_control_missing=missing, ! [AC_MSG_WARN(cannot check job control if cross-compiling -- defaulting to missing) bash_cv_job_control_missing=missing] )]) *************** *** 929,933 **** exit(0); }], bash_cv_sys_named_pipes=present, bash_cv_sys_named_pipes=missing, ! [AC_MSG_ERROR(cannot check for named pipes if cross-compiling -- defaulting to missing) bash_cv_sys_named_pipes=missing] )]) --- 867,871 ---- exit(0); }], bash_cv_sys_named_pipes=present, bash_cv_sys_named_pipes=missing, ! [AC_MSG_WARN(cannot check for named pipes if cross-compiling -- defaulting to missing) bash_cv_sys_named_pipes=missing] )]) *************** *** 980,984 **** #endif }], bash_cv_func_sigsetjmp=present, bash_cv_func_sigsetjmp=missing, ! [AC_MSG_ERROR(cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing) bash_cv_func_sigsetjmp=missing] )]) --- 918,922 ---- #endif }], bash_cv_func_sigsetjmp=present, bash_cv_func_sigsetjmp=missing, ! [AC_MSG_WARN(cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing) bash_cv_func_sigsetjmp=missing] )]) *************** *** 1247,1251 **** } ], bash_cv_func_strcoll_broken=yes, bash_cv_func_strcoll_broken=no, ! [AC_MSG_ERROR(cannot check strcoll if cross compiling -- defaulting to no) bash_cv_func_strcoll_broken=no] )]) --- 1185,1189 ---- } ], bash_cv_func_strcoll_broken=yes, bash_cv_func_strcoll_broken=no, ! [AC_MSG_WARN(cannot check strcoll if cross compiling -- defaulting to no) bash_cv_func_strcoll_broken=no] )]) *************** *** 1337,1341 **** } ], bash_cv_sys_restartable_syscalls=yes, bash_cv_sys_restartable_syscalls=no, ! AC_MSG_ERROR(cannot check restartable syscalls if cross compiling)) ]) if test $bash_cv_sys_restartable_syscalls = yes; then --- 1275,1279 ---- } ], bash_cv_sys_restartable_syscalls=yes, bash_cv_sys_restartable_syscalls=no, ! AC_MSG_WARN(cannot check restartable syscalls if cross compiling)) ]) if test $bash_cv_sys_restartable_syscalls = yes; then *************** *** 1343,1344 **** --- 1281,1301 ---- fi ]) + dnl + dnl Check for 64-bit off_t -- used for malloc alignment + dnl + dnl C does not allow duplicate case labels, so the compile will fail if + dnl sizeof(off_t) is > 4. + dnl + AC_DEFUN(BASH_CHECK_OFF_T_64, + [AC_CACHE_CHECK(for 64-bit off_t, bash_cv_off_t_64, + AC_TRY_COMPILE([ + #ifdef HAVE_UNISTD_H + #include + #endif + #include + ],[ + switch (0) case 0: case (sizeof (off_t) <= 4):; + ], bash_cv_off_t_64=no, bash_cv_off_t_64=yes)) + if test $bash_cv_off_t_64 = yes; then + AC_DEFINE(HAVE_OFF_T_64) + fi]) diff -aNrc2 readline-2.2.1/bind.c readline-4.0/bind.c *** readline-2.2.1/bind.c Mon Oct 6 13:45:33 1997 --- readline-4.0/bind.c Tue Feb 2 13:26:20 1999 *************** *** 84,87 **** --- 84,88 ---- extern int rl_inhibit_completion; extern char *_rl_comment_begin; + extern unsigned char *_rl_isearch_terminators; extern int rl_explicit_arg; *************** *** 208,218 **** Keymap map; { ! register int i; ! for (i = 0; i < KEYMAP_SIZE; i++) { if (map[i].type == ISFUNC && map[i].function == func) ! map[i].function = (Function *)NULL; } } --- 209,223 ---- Keymap map; { ! register int i, rval; ! for (i = rval = 0; i < KEYMAP_SIZE; i++) { if (map[i].type == ISFUNC && map[i].function == func) ! { ! map[i].function = (Function *)NULL; ! rval = 1; ! } } + return rval; } *************** *** 223,227 **** { Function *func; - register int i; func = rl_named_function (command); --- 228,231 ---- *************** *** 664,668 **** --- 668,676 ---- close (file); + #if 0 if (i < file_size) + #else + if (i < 0) + #endif { free (buffer); *************** *** 728,731 **** --- 736,741 ---- openname = tilde_expand (filename); buffer = _rl_read_file (openname, &file_size); + free (openname); + if (buffer == 0) return (errno); *************** *** 1339,1343 **** --- 1349,1380 ---- _rl_bell_preference = AUDIBLE_BELL; } + else if (_rl_stricmp (name, "isearch-terminators") == 0) + { + /* Isolate the value and translate it into a character string. */ + int beg, end; + char *v; + + v = savestring (value); + FREE (_rl_isearch_terminators); + if (v[0] == '"' || v[0] == '\'') + { + int delim = v[0]; + for (beg = end = 1; v[end] && v[end] != delim; end++) + ; + } + else + { + for (beg = end = 0; whitespace (v[end]) == 0; end++) + ; + } + v[end] = '\0'; + /* The value starts at v + beg. Translate it into a character string. */ + _rl_isearch_terminators = (unsigned char *)xmalloc (2 * strlen (v) + 1); + rl_translate_keyseq (v + beg, _rl_isearch_terminators, &end); + _rl_isearch_terminators[end] = '\0'; + free (v); + } + /* For the time being, unknown variable names are simply ignored. */ return 0; *************** *** 1493,1497 **** { char *keyname; ! int i, c, v; keyname = (char *)xmalloc (8); --- 1530,1534 ---- { char *keyname; ! int i, c; keyname = (char *)xmalloc (8); *************** *** 1898,1901 **** --- 1935,1953 ---- else fprintf (rl_outstream, "keymap is set to `%s'\n", kname ? kname : "none"); + + /* isearch-terminators */ + if (_rl_isearch_terminators) + { + char *disp; + + disp = _rl_untranslate_macro_value (_rl_isearch_terminators); + + if (print_readably) + fprintf (rl_outstream, "set isearch-terminators \"%s\"\n", disp); + else + fprintf (rl_outstream, "isearch-terminators is set to \"%s\"\n", disp); + + free (disp); + } } diff -aNrc2 readline-2.2.1/callback.c readline-4.0/callback.c *** readline-2.2.1/callback.c Thu Feb 5 13:40:46 1998 --- readline-4.0/callback.c Wed Jun 3 13:34:10 1998 *************** *** 37,41 **** #include "readline.h" ! extern void readline_internal_startup (); extern char *readline_internal_teardown (); extern int readline_internal_char (); --- 37,41 ---- #include "readline.h" ! extern void readline_internal_setup (); extern char *readline_internal_teardown (); extern int readline_internal_char (); diff -aNrc2 readline-2.2.1/complete.c readline-4.0/complete.c *** readline-2.2.1/complete.c Thu Jan 29 15:19:46 1998 --- readline-4.0/complete.c Thu Feb 18 12:35:57 1999 *************** *** 86,89 **** --- 86,98 ---- extern int rl_display_fixed; + /* 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. */ + VFunction *rl_completion_display_matches_hook = (VFunction *)NULL; + /* Forward declarations for functions defined and used in this file. */ char *filename_completion_function (); *************** *** 675,678 **** --- 684,688 ---- filename dequoting function. */ temp = (char *)NULL; + if (found_quote && our_func == (Function *)filename_completion_function && rl_filename_dequoting_function) *************** *** 683,687 **** } ! matches = completion_matches (text, our_func); FREE (temp); return matches; --- 693,697 ---- } ! matches = completion_matches (text, (CPFunction *)our_func); FREE (temp); return matches; *************** *** 814,819 **** static int ! postprocess_matches (text, matchesp, matching_filenames) ! char *text; char ***matchesp; int matching_filenames; --- 824,828 ---- static int ! postprocess_matches (matchesp, matching_filenames) char ***matchesp; int matching_filenames; *************** *** 846,850 **** { FREE (matches); - ding (); *matchesp = (char **)0; return 0; --- 855,858 ---- *************** *** 858,862 **** { t = matches[0]; ! compute_lcd_of_matches (matches, i - 1, text); FREE (t); } --- 866,870 ---- { t = matches[0]; ! compute_lcd_of_matches (matches, i - 1, t); FREE (t); } *************** *** 868,931 **** } ! static void ! display_matches (matches) char **matches; { ! int len, count, limit, max, printed_len; int i, j, k, l; char *temp; - /* Move to the last visible line of a possibly-multiple-line command. */ - _rl_move_vert (_rl_vis_botlin); - - /* Handle simple case first. What if there is only one answer? */ - if (matches[1] == 0) - { - temp = printable_part (matches[0]); - crlf (); - print_filename (temp, matches[0]); - crlf (); - #if 0 - rl_on_new_line (); - #else - rl_forced_update_display (); - rl_display_fixed = 1; - #endif - return; - } - - /* There is more than one answer. Find out how many there are, - and find the maximum printed length of a single entry. */ - for (max = 0, i = 1; matches[i]; i++) - { - temp = printable_part (matches[i]); - len = strlen (temp); - - if (len > max) - max = len; - } - - len = i - 1; - - /* If there are many items, then ask the user if she really wants to - see them all. */ - if (len >= rl_completion_query_items) - { - crlf (); - fprintf (rl_outstream, "Display all %d possibilities? (y or n)", len); - fflush (rl_outstream); - if (get_y_or_n () == 0) - { - crlf (); - #if 0 - rl_on_new_line (); - #else - rl_forced_update_display (); - rl_display_fixed = 1; - #endif - return; - } - } - /* How many items of MAX length can we fit in the screen window? */ max += 2; --- 876,892 ---- } ! /* 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, LEN is the number of strings in MATCHES, ! and MAX is the length of the longest string in MATCHES. */ ! void ! rl_display_match_list (matches, len, max) char **matches; + int len, max; { ! int count, limit, printed_len; int i, j, k, l; char *temp; /* How many items of MAX length can we fit in the screen window? */ max += 2; *************** *** 994,1004 **** crlf (); } - #if 0 - rl_on_new_line (); - #else rl_forced_update_display (); rl_display_fixed = 1; - #endif } --- 955,1037 ---- crlf (); } + } + + /* Display MATCHES, a list of matching filenames in argv format. This + handles the simple case -- a single match -- first. If there is more + than one match, we compute the number of strings in the list and the + length of the longest string, which will be needed by the display + function. If the application wants to handle displaying the list of + matches itself, it sets RL_COMPLETION_DISPLAY_MATCHES_HOOK to the + address of a function, and we just call it. If we're handling the + display ourselves, we just call rl_display_match_list. We also check + that the list of matches doesn't exceed the user-settable threshold, + and ask the user if he wants to see the list if there are more matches + than RL_COMPLETION_QUERY_ITEMS. */ + static void + display_matches (matches) + char **matches; + { + int len, max, i; + char *temp; + + /* Move to the last visible line of a possibly-multiple-line command. */ + _rl_move_vert (_rl_vis_botlin); + + /* Handle simple case first. What if there is only one answer? */ + if (matches[1] == 0) + { + temp = printable_part (matches[0]); + crlf (); + print_filename (temp, matches[0]); + crlf (); + + rl_forced_update_display (); + rl_display_fixed = 1; + + return; + } + + /* There is more than one answer. Find out how many there are, + and find the maximum printed length of a single entry. */ + for (max = 0, i = 1; matches[i]; i++) + { + temp = printable_part (matches[i]); + len = strlen (temp); + + if (len > max) + max = len; + } + + len = i - 1; + + /* If the caller has defined a display hook, then call that now. */ + if (rl_completion_display_matches_hook) + { + (*rl_completion_display_matches_hook) (matches, len, max); + return; + } + + /* If there are many items, then ask the user if she really wants to + see them all. */ + if (len >= rl_completion_query_items) + { + crlf (); + fprintf (rl_outstream, "Display all %d possibilities? (y or n)", len); + fflush (rl_outstream); + if (get_y_or_n () == 0) + { + crlf (); + + rl_forced_update_display (); + rl_display_fixed = 1; + + return; + } + } + + rl_display_match_list (matches, len, max); rl_forced_update_display (); rl_display_fixed = 1; } *************** *** 1027,1035 **** if (should_quote) ! #if defined (SHELL) ! should_quote = should_quote && (!qc || !*qc || *qc == '"' || *qc == '\''); ! #else /* !SHELL */ ! should_quote = should_quote && (!qc || !*qc); ! #endif /* !SHELL */ if (should_quote) --- 1060,1065 ---- if (should_quote) ! should_quote = should_quote && (!qc || !*qc || ! (rl_completer_quote_characters && strchr (rl_completer_quote_characters, *qc))); if (should_quote) *************** *** 1169,1172 **** --- 1199,1213 ---- } + static void + free_match_list (matches) + char **matches; + { + register int i; + + for (i = 0; matches[i]; i++) + free (matches[i]); + free (matches); + } + /* Complete the word at or before point. WHAT_TO_DO says what to do with the completion. *************** *** 1211,1214 **** --- 1252,1256 ---- text = rl_copy_text (start, end); matches = gen_completion_matches (text, start, end, our_func, found_quote, quote_char); + free (text); if (matches == 0) *************** *** 1216,1235 **** ding (); FREE (saved_line_buffer); - free (text); return (0); } /* If we are matching filenames, our_func will have been set to filename_completion_function */ i = our_func == (Function *)filename_completion_function; ! if (postprocess_matches (text, &matches, i) == 0) { FREE (saved_line_buffer); ! free (text); return (0); } - free (text); - switch (what_to_do) { --- 1258,1283 ---- ding (); FREE (saved_line_buffer); return (0); } + #if 0 /* If we are matching filenames, our_func will have been set to filename_completion_function */ i = our_func == (Function *)filename_completion_function; ! #else ! /* If we are matching filenames, the attempted completion function will ! have set rl_filename_completion_desired to a non-zero value. The basic ! filename_completion_function does this. */ ! i = rl_filename_completion_desired; ! #endif ! ! if (postprocess_matches (&matches, i) == 0) { + ding (); FREE (saved_line_buffer); ! completion_changed_buffer = 0; return (0); } switch (what_to_do) { *************** *** 1278,1284 **** } ! for (i = 0; matches[i]; i++) ! free (matches[i]); ! free (matches); /* Check to see if the line has changed through all of this manipulation. */ --- 1326,1330 ---- } ! free_match_list (matches); /* Check to see if the line has changed through all of this manipulation. */ *************** *** 1359,1366 **** char * username_completion_function (text, state) - int state; char *text; { ! #if defined (__GO32__) || defined (__WIN32__) return (char *)NULL; #else /* !__GO32__ */ --- 1405,1412 ---- char * username_completion_function (text, state) char *text; + int state; { ! #if defined (__GO32__) || defined (__WIN32__) || defined (__OPENNT) return (char *)NULL; #else /* !__GO32__ */ *************** *** 1416,1421 **** char * filename_completion_function (text, state) - int state; char *text; { static DIR *directory = (DIR *)NULL; --- 1462,1467 ---- char * filename_completion_function (text, state) char *text; + int state; { static DIR *directory = (DIR *)NULL; *************** *** 1575,1579 **** } ! strcpy (temp + dirlen, entry->d_name); /* strcat (temp, entry->d_name); */ } else --- 1621,1625 ---- } ! strcpy (temp + dirlen, entry->d_name); } else *************** *** 1650,1657 **** our_func, found_quote, quote_char); /* If we are matching filenames, our_func will have been set to filename_completion_function */ matching_filenames = our_func == (Function *)filename_completion_function; ! if (matches == 0 || postprocess_matches (orig_text, &matches, matching_filenames) == 0) { ding (); --- 1696,1710 ---- our_func, found_quote, quote_char); + #if 0 /* If we are matching filenames, our_func will have been set to filename_completion_function */ matching_filenames = our_func == (Function *)filename_completion_function; ! #else ! /* If we are matching filenames, the attempted completion function will ! have set rl_filename_completion_desired to a non-zero value. The basic ! filename_completion_function does this. */ ! matching_filenames = rl_filename_completion_desired; ! #endif ! if (matches == 0 || postprocess_matches (&matches, matching_filenames) == 0) { ding (); *************** *** 1687,1691 **** match_list_index += match_list_size; ! if (match_list_index == 0) { ding (); --- 1740,1744 ---- match_list_index += match_list_size; ! if (match_list_index == 0 && match_list_size > 1) { ding (); diff -aNrc2 readline-2.2.1/configure readline-4.0/configure *** readline-2.2.1/configure Fri Apr 3 11:12:13 1998 --- readline-4.0/configure Thu Feb 18 15:44:06 1999 *************** *** 1,6 **** #! /bin/sh ! # From configure.in for Readline 2.2, version 2.07, from autoconf version 2.12 ! LIBVERSION=2.2 --- 1,9 ---- #! /bin/sh ! # From configure.in for Readline 4.0, version 2.14, from autoconf version 2.12 ! LIBVERSION=4.0 ! ! ! *************** *** 640,644 **** echo $ac_n "checking host system type""... $ac_c" 1>&6 ! echo "configure:643: checking host system type" >&5 host_alias=$host --- 643,647 ---- echo $ac_n "checking host system type""... $ac_c" 1>&6 ! echo "configure:646: checking host system type" >&5 host_alias=$host *************** *** 681,685 **** set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:684: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 684,688 ---- set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:687: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 *************** *** 710,714 **** set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:713: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 713,717 ---- set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:716: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 *************** *** 758,762 **** echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 ! echo "configure:761: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c --- 761,765 ---- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 ! echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c *************** *** 768,776 **** cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. --- 771,779 ---- cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. *************** *** 792,801 **** fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 ! echo "configure:795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 ! echo "configure:800: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 795,804 ---- fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 ! echo "configure:798: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 ! echo "configure:803: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 *************** *** 806,810 **** #endif EOF ! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else --- 809,813 ---- #endif EOF ! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else *************** *** 821,825 **** CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 ! echo "configure:824: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 824,828 ---- CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 ! echo "configure:827: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 *************** *** 849,853 **** echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 ! echo "configure:852: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then --- 852,856 ---- echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 ! echo "configure:855: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then *************** *** 864,868 **** # not just through cpp. cat > conftest.$ac_ext < --- 867,871 ---- # not just through cpp. cat > conftest.$ac_ext < *************** *** 870,874 **** EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then --- 873,877 ---- EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then *************** *** 881,885 **** CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < --- 884,888 ---- CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < *************** *** 887,891 **** EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then --- 890,894 ---- EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then *************** *** 911,925 **** ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 ! echo "configure:914: checking for minix/config.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then --- 914,928 ---- ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 ! echo "configure:917: checking for minix/config.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then *************** *** 964,968 **** if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 ! echo "configure:967: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 967,971 ---- if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 ! echo "configure:970: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 *************** *** 970,974 **** ac_pattern="Autoconf.*'x'" cat > conftest.$ac_ext < --- 973,977 ---- ac_pattern="Autoconf.*'x'" cat > conftest.$ac_ext < *************** *** 988,992 **** if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext < --- 991,995 ---- if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext < *************** *** 1020,1024 **** # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 ! echo "configure:1023: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then --- 1023,1027 ---- # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 ! echo "configure:1026: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then *************** *** 1069,1076 **** test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:1075: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 1072,1108 ---- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + # Extract the first word of "ar", so it can be a program name with args. + set dummy ar; ac_word=$2 + echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 + echo "configure:1078: checking for $ac_word" >&5 + if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. + else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_AR="ar" + break + fi + done + IFS="$ac_save_ifs" + fi + fi + AR="$ac_cv_prog_AR" + if test -n "$AR"; then + echo "$ac_t""$AR" 1>&6 + else + echo "$ac_t""no" 1>&6 + fi + + test -n "$ARFLAGS" || ARFLAGS="cr" # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:1107: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 *************** *** 1099,1109 **** echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 ! echo "configure:1103: checking return type of signal handlers" >&5 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < --- 1131,1144 ---- + MAKE_SHELL=/bin/sh + + echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 ! echo "configure:1138: checking return type of signal handlers" >&5 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < *************** *** 1122,1126 **** ; return 0; } EOF ! if { (eval echo configure:1125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void --- 1157,1161 ---- ; return 0; } EOF ! if { (eval echo configure:1160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void *************** *** 1142,1151 **** echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 ! echo "configure:1145: checking whether stat file-mode macros are broken" >&5 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < --- 1177,1186 ---- echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 ! echo "configure:1180: checking whether stat file-mode macros are broken" >&5 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < *************** *** 1202,1211 **** ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 ! echo "configure:1205: checking for $ac_hdr that defines DIR" >&5 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < --- 1237,1246 ---- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 ! echo "configure:1240: checking for $ac_hdr that defines DIR" >&5 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < *************** *** 1215,1219 **** ; return 0; } EOF ! if { (eval echo configure:1218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" --- 1250,1254 ---- ; return 0; } EOF ! if { (eval echo configure:1253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" *************** *** 1240,1244 **** if test $ac_header_dirent = dirent.h; then echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 ! echo "configure:1243: checking for opendir in -ldir" >&5 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then --- 1275,1279 ---- if test $ac_header_dirent = dirent.h; then echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 ! echo "configure:1278: checking for opendir in -ldir" >&5 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then *************** *** 1248,1252 **** LIBS="-ldir $LIBS" cat > conftest.$ac_ext < conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" --- 1294,1298 ---- ; return 0; } EOF ! if { (eval echo configure:1297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" *************** *** 1281,1285 **** else echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 ! echo "configure:1284: checking for opendir in -lx" >&5 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then --- 1316,1320 ---- else echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 ! echo "configure:1319: checking for opendir in -lx" >&5 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then *************** *** 1289,1293 **** LIBS="-lx $LIBS" cat > conftest.$ac_ext < conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" --- 1335,1339 ---- ; return 0; } EOF ! if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" *************** *** 1326,1335 **** do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 ! echo "configure:1329: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 ! echo "configure:1364: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" --- 1389,1393 ---- ; return 0; } EOF ! if { (eval echo configure:1392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" *************** *** 1380,1384 **** echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 ! echo "configure:1383: checking for working strcoll" >&5 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 1415,1419 ---- echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 ! echo "configure:1418: checking for working strcoll" >&5 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 *************** *** 1388,1392 **** else cat > conftest.$ac_ext < --- 1423,1427 ---- else cat > conftest.$ac_ext < *************** *** 1398,1402 **** } EOF ! if { (eval echo configure:1401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then ac_cv_func_strcoll_works=yes --- 1433,1437 ---- } EOF ! if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then ac_cv_func_strcoll_works=yes *************** *** 1427,1441 **** ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! echo "configure:1430: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then --- 1462,1476 ---- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! echo "configure:1465: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then *************** *** 1466,1470 **** echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6 ! echo "configure:1469: checking for type of signal functions" >&5 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 1501,1505 ---- echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6 ! echo "configure:1504: checking for type of signal functions" >&5 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 *************** *** 1472,1476 **** cat > conftest.$ac_ext < --- 1507,1511 ---- cat > conftest.$ac_ext < *************** *** 1485,1489 **** ; return 0; } EOF ! if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* bash_cv_signal_vintage=posix --- 1520,1524 ---- ; return 0; } EOF ! if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* bash_cv_signal_vintage=posix *************** *** 1494,1498 **** cat > conftest.$ac_ext < --- 1529,1533 ---- cat > conftest.$ac_ext < *************** *** 1504,1508 **** ; return 0; } EOF ! if { (eval echo configure:1507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* bash_cv_signal_vintage=4.2bsd --- 1539,1543 ---- ; return 0; } EOF ! if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* bash_cv_signal_vintage=4.2bsd *************** *** 1513,1517 **** cat > conftest.$ac_ext < conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* bash_cv_signal_vintage=svr3 --- 1561,1565 ---- ; return 0; } EOF ! if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* bash_cv_signal_vintage=svr3 *************** *** 1567,1581 **** echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6 ! echo "configure:1570: checking if signal handlers must be reinstalled when invoked" >&5 if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ! { echo "configure: error: cannot check signal handling if cross compiling -- defaulting to no" 1>&2; exit 1; } bash_cv_must_reinstall_sighandlers=no else cat > conftest.$ac_ext <&6 ! echo "configure:1605: checking if signal handlers must be reinstalled when invoked" >&5 if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ! echo "configure: warning: cannot check signal handling if cross compiling -- defaulting to no" 1>&2 bash_cv_must_reinstall_sighandlers=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then bash_cv_must_reinstall_sighandlers=no --- 1659,1663 ---- EOF ! if { (eval echo configure:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then bash_cv_must_reinstall_sighandlers=no *************** *** 1649,1663 **** echo $ac_n "checking for presence of POSIX-style sigsetjmp/siglongjmp""... $ac_c" 1>&6 ! echo "configure:1652: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 if eval "test \"`echo '$''{'bash_cv_func_sigsetjmp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ! { echo "configure: error: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" 1>&2; exit 1; } bash_cv_func_sigsetjmp=missing else cat > conftest.$ac_ext <&6 ! echo "configure:1687: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 if eval "test \"`echo '$''{'bash_cv_func_sigsetjmp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ! echo "configure: warning: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" 1>&2 bash_cv_func_sigsetjmp=missing else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then bash_cv_func_sigsetjmp=present --- 1735,1739 ---- } EOF ! if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then bash_cv_func_sigsetjmp=present *************** *** 1723,1732 **** echo $ac_n "checking for lstat""... $ac_c" 1>&6 ! echo "configure:1726: checking for lstat" >&5 if eval "test \"`echo '$''{'bash_cv_func_lstat'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 ! echo "configure:1761: checking for lstat" >&5 if eval "test \"`echo '$''{'bash_cv_func_lstat'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* bash_cv_func_lstat=yes --- 1773,1777 ---- ; return 0; } EOF ! if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* bash_cv_func_lstat=yes *************** *** 1759,1768 **** echo $ac_n "checking whether programs are able to redeclare getpw functions""... $ac_c" 1>&6 ! echo "configure:1762: checking whether programs are able to redeclare getpw functions" >&5 if eval "test \"`echo '$''{'bash_cv_can_redecl_getpw'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < --- 1794,1803 ---- echo $ac_n "checking whether programs are able to redeclare getpw functions""... $ac_c" 1>&6 ! echo "configure:1797: checking whether programs are able to redeclare getpw functions" >&5 if eval "test \"`echo '$''{'bash_cv_can_redecl_getpw'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < *************** *** 1775,1779 **** ; return 0; } EOF ! if { (eval echo configure:1778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_can_redecl_getpw=yes --- 1810,1814 ---- ; return 0; } EOF ! if { (eval echo configure:1813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_can_redecl_getpw=yes *************** *** 1797,1811 **** echo $ac_n "checking whether or not strcoll and strcmp differ""... $ac_c" 1>&6 ! echo "configure:1800: checking whether or not strcoll and strcmp differ" >&5 if eval "test \"`echo '$''{'bash_cv_func_strcoll_broken'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ! { echo "configure: error: cannot check strcoll if cross compiling -- defaulting to no" 1>&2; exit 1; } bash_cv_func_strcoll_broken=no else cat > conftest.$ac_ext <&6 ! echo "configure:1835: checking whether or not strcoll and strcmp differ" >&5 if eval "test \"`echo '$''{'bash_cv_func_strcoll_broken'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ! echo "configure: warning: cannot check strcoll if cross compiling -- defaulting to no" 1>&2 bash_cv_func_strcoll_broken=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then bash_cv_func_strcoll_broken=yes --- 1881,1885 ---- EOF ! if { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then bash_cv_func_strcoll_broken=yes *************** *** 1870,1879 **** echo $ac_n "checking whether signal handlers are of type void""... $ac_c" 1>&6 ! echo "configure:1873: checking whether signal handlers are of type void" >&5 if eval "test \"`echo '$''{'bash_cv_void_sighandler'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < --- 1905,1914 ---- echo $ac_n "checking whether signal handlers are of type void""... $ac_c" 1>&6 ! echo "configure:1908: checking whether signal handlers are of type void" >&5 if eval "test \"`echo '$''{'bash_cv_void_sighandler'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < *************** *** 1890,1894 **** ; return 0; } EOF ! if { (eval echo configure:1893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_void_sighandler=yes --- 1925,1929 ---- ; return 0; } EOF ! if { (eval echo configure:1928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_void_sighandler=yes *************** *** 1910,1919 **** echo $ac_n "checking for TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6 ! echo "configure:1913: checking for TIOCGWINSZ in sys/ioctl.h" >&5 if eval "test \"`echo '$''{'bash_cv_tiocgwinsz_in_ioctl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < --- 1945,1954 ---- echo $ac_n "checking for TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6 ! echo "configure:1948: checking for TIOCGWINSZ in sys/ioctl.h" >&5 if eval "test \"`echo '$''{'bash_cv_tiocgwinsz_in_ioctl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < *************** *** 1923,1927 **** ; return 0; } EOF ! if { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_tiocgwinsz_in_ioctl=yes --- 1958,1962 ---- ; return 0; } EOF ! if { (eval echo configure:1961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_tiocgwinsz_in_ioctl=yes *************** *** 1944,1953 **** echo $ac_n "checking for TIOCSTAT in sys/ioctl.h""... $ac_c" 1>&6 ! echo "configure:1947: checking for TIOCSTAT in sys/ioctl.h" >&5 if eval "test \"`echo '$''{'bash_cv_tiocstat_in_ioctl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < --- 1979,1988 ---- echo $ac_n "checking for TIOCSTAT in sys/ioctl.h""... $ac_c" 1>&6 ! echo "configure:1982: checking for TIOCSTAT in sys/ioctl.h" >&5 if eval "test \"`echo '$''{'bash_cv_tiocstat_in_ioctl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < *************** *** 1957,1961 **** ; return 0; } EOF ! if { (eval echo configure:1960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_tiocstat_in_ioctl=yes --- 1992,1996 ---- ; return 0; } EOF ! if { (eval echo configure:1995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_tiocstat_in_ioctl=yes *************** *** 1978,1987 **** echo $ac_n "checking for FIONREAD in sys/ioctl.h""... $ac_c" 1>&6 ! echo "configure:1981: checking for FIONREAD in sys/ioctl.h" >&5 if eval "test \"`echo '$''{'bash_cv_fionread_in_ioctl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < --- 2013,2022 ---- echo $ac_n "checking for FIONREAD in sys/ioctl.h""... $ac_c" 1>&6 ! echo "configure:2016: checking for FIONREAD in sys/ioctl.h" >&5 if eval "test \"`echo '$''{'bash_cv_fionread_in_ioctl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < *************** *** 1991,1995 **** ; return 0; } EOF ! if { (eval echo configure:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_fionread_in_ioctl=yes --- 2026,2030 ---- ; return 0; } EOF ! if { (eval echo configure:2029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_fionread_in_ioctl=yes *************** *** 2012,2021 **** echo $ac_n "checking for speed_t in sys/types.h""... $ac_c" 1>&6 ! echo "configure:2015: checking for speed_t in sys/types.h" >&5 if eval "test \"`echo '$''{'bash_cv_speed_t_in_sys_types'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < --- 2047,2056 ---- echo $ac_n "checking for speed_t in sys/types.h""... $ac_c" 1>&6 ! echo "configure:2050: checking for speed_t in sys/types.h" >&5 if eval "test \"`echo '$''{'bash_cv_speed_t_in_sys_types'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < *************** *** 2024,2028 **** ; return 0; } EOF ! if { (eval echo configure:2027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_speed_t_in_sys_types=yes --- 2059,2063 ---- ; return 0; } EOF ! if { (eval echo configure:2062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_speed_t_in_sys_types=yes *************** *** 2045,2054 **** echo $ac_n "checking for struct winsize in sys/ioctl.h and termios.h""... $ac_c" 1>&6 ! echo "configure:2048: checking for struct winsize in sys/ioctl.h and termios.h" >&5 if eval "test \"`echo '$''{'bash_cv_struct_winsize_header'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < --- 2080,2089 ---- echo $ac_n "checking for struct winsize in sys/ioctl.h and termios.h""... $ac_c" 1>&6 ! echo "configure:2083: checking for struct winsize in sys/ioctl.h and termios.h" >&5 if eval "test \"`echo '$''{'bash_cv_struct_winsize_header'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < *************** *** 2058,2062 **** ; return 0; } EOF ! if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_struct_winsize_header=ioctl_h --- 2093,2097 ---- ; return 0; } EOF ! if { (eval echo configure:2096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_struct_winsize_header=ioctl_h *************** *** 2066,2070 **** rm -rf conftest* cat > conftest.$ac_ext < --- 2101,2105 ---- rm -rf conftest* cat > conftest.$ac_ext < *************** *** 2074,2078 **** ; return 0; } EOF ! if { (eval echo configure:2077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_struct_winsize_header=termios_h --- 2109,2113 ---- ; return 0; } EOF ! if { (eval echo configure:2112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_struct_winsize_header=termios_h *************** *** 2107,2116 **** echo $ac_n "checking if struct dirent has a d_ino member""... $ac_c" 1>&6 ! echo "configure:2110: checking if struct dirent has a d_ino member" >&5 if eval "test \"`echo '$''{'bash_cv_dirent_has_dino'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 ! echo "configure:2145: checking if struct dirent has a d_ino member" >&5 if eval "test \"`echo '$''{'bash_cv_dirent_has_dino'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_dirent_has_dino=yes --- 2176,2180 ---- ; return 0; } EOF ! if { (eval echo configure:2179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_dirent_has_dino=yes *************** *** 2163,2172 **** echo $ac_n "checking if struct dirent has a d_fileno member""... $ac_c" 1>&6 ! echo "configure:2166: checking if struct dirent has a d_fileno member" >&5 if eval "test \"`echo '$''{'bash_cv_dirent_has_d_fileno'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 ! echo "configure:2201: checking if struct dirent has a d_fileno member" >&5 if eval "test \"`echo '$''{'bash_cv_dirent_has_d_fileno'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_dirent_has_d_fileno=yes --- 2232,2236 ---- ; return 0; } EOF ! if { (eval echo configure:2235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bash_cv_dirent_has_d_fileno=yes *************** *** 2226,2230 **** else echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6 ! echo "configure:2229: checking which library has the termcap functions" >&5 _bash_needmsg= fi --- 2261,2265 ---- else echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6 ! echo "configure:2264: checking which library has the termcap functions" >&5 _bash_needmsg= fi *************** *** 2233,2237 **** else echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 ! echo "configure:2236: checking for tgetent in -ltermcap" >&5 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then --- 2268,2272 ---- else echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 ! echo "configure:2271: checking for tgetent in -ltermcap" >&5 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then *************** *** 2241,2245 **** LIBS="-ltermcap $LIBS" cat > conftest.$ac_ext < conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" --- 2287,2291 ---- ; return 0; } EOF ! if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" *************** *** 2271,2275 **** echo "$ac_t""no" 1>&6 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 ! echo "configure:2274: checking for tgetent in -lcurses" >&5 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then --- 2306,2310 ---- echo "$ac_t""no" 1>&6 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 ! echo "configure:2309: checking for tgetent in -lcurses" >&5 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then *************** *** 2279,2283 **** LIBS="-lcurses $LIBS" cat > conftest.$ac_ext < conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" --- 2325,2329 ---- ; return 0; } EOF ! if { (eval echo configure:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" *************** *** 2309,2313 **** echo "$ac_t""no" 1>&6 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 ! echo "configure:2312: checking for tgetent in -lncurses" >&5 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then --- 2344,2348 ---- echo "$ac_t""no" 1>&6 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 ! echo "configure:2347: checking for tgetent in -lncurses" >&5 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then *************** *** 2317,2321 **** LIBS="-lncurses $LIBS" cat > conftest.$ac_ext < conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" --- 2363,2367 ---- ; return 0; } EOF ! if { (eval echo configure:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" *************** *** 2357,2361 **** if test "X$_bash_needmsg" = "Xyes"; then echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6 ! echo "configure:2360: checking which library has the termcap functions" >&5 fi echo "$ac_t""using $bash_cv_termcap_lib" 1>&6 --- 2392,2396 ---- if test "X$_bash_needmsg" = "Xyes"; then echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6 ! echo "configure:2395: checking which library has the termcap functions" >&5 fi echo "$ac_t""using $bash_cv_termcap_lib" 1>&6 *************** *** 2387,2390 **** --- 2422,2449 ---- esac + # shared library configuration section + # + # Shared object configuration section. These values are generated by + # ${srcdir}/support/shobj-conf + # + if test -f ${srcdir}/support/shobj-conf; then + echo $ac_n "checking configuration for building shared libraries""... $ac_c" 1>&6 + echo "configure:2432: checking configuration for building shared libraries" >&5 + eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C ${CC} -c ${host_cpu} -o ${host_os} -v ${host_vendor}` + + + + + + + + + + + + + echo "$ac_t""$SHLIB_STATUS" 1>&6 + fi + BUILD_DIR=`pwd` *************** *** 2402,2405 **** --- 2461,2467 ---- + + + trap '' 1 2 15 cat > confcache <<\EOF *************** *** 2503,2507 **** ac_given_INSTALL="$INSTALL" ! trap 'rm -fr `echo "Makefile doc/Makefile examples/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF --- 2667,2671 ---- cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF diff -aNrc2 readline-2.2.1/configure.in readline-4.0/configure.in *** readline-2.2.1/configure.in Fri Apr 3 11:12:06 1998 --- readline-4.0/configure.in Thu Feb 18 12:23:02 1999 *************** *** 5,10 **** dnl dnl Process this file with autoconf to produce a configure script. ! AC_REVISION([for Readline 2.2, version 2.07, from autoconf version] AC_ACVERSION) ! LIBVERSION=2.2 AC_INIT(readline.h) --- 5,10 ---- dnl dnl Process this file with autoconf to produce a configure script. ! AC_REVISION([for Readline 4.0, version 2.14, from autoconf version] AC_ACVERSION) ! LIBVERSION=4.0 AC_INIT(readline.h) *************** *** 40,45 **** --- 40,52 ---- AC_PROG_GCC_TRADITIONAL AC_PROG_INSTALL + AC_CHECK_PROG(AR, ar, ar) + dnl Set default for ARFLAGS, since autoconf does not have a macro for it. + dnl This allows people to set it when running configure or make + test -n "$ARFLAGS" || ARFLAGS="cr" AC_PROG_RANLIB + MAKE_SHELL=/bin/sh + AC_SUBST(MAKE_SHELL) + AC_RETSIGTYPE *************** *** 89,92 **** --- 96,122 ---- esac + # shared library configuration section + # + # Shared object configuration section. These values are generated by + # ${srcdir}/support/shobj-conf + # + if test -f ${srcdir}/support/shobj-conf; then + AC_MSG_CHECKING(configuration for building shared libraries) + eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C ${CC} -c ${host_cpu} -o ${host_os} -v ${host_vendor}` + AC_SUBST(SHOBJ_CC) + AC_SUBST(SHOBJ_CFLAGS) + AC_SUBST(SHOBJ_LD) + AC_SUBST(SHOBJ_LDFLAGS) + AC_SUBST(SHOBJ_XLDFLAGS) + AC_SUBST(SHOBJ_LIBS) + AC_SUBST(SHOBJ_STATUS) + AC_SUBST(SHLIB_STATUS) + AC_SUBST(SHLIB_XLDFLAGS) + AC_SUBST(SHLIB_LIBSUFF) + AC_SUBST(SHLIB_LIBVERSION) + AC_SUBST(SHLIB_LIBS) + AC_MSG_RESULT($SHLIB_STATUS) + fi + BUILD_DIR=`pwd` AC_SUBST(BUILD_DIR) *************** *** 97,100 **** --- 127,133 ---- AC_SUBST(LOCAL_DEFS) + AC_SUBST(AR) + AC_SUBST(ARFLAGS) + AC_SUBST(host_cpu) AC_SUBST(host_os) *************** *** 104,108 **** AC_SUBST(TERMCAP_LIB) ! AC_OUTPUT([Makefile doc/Makefile examples/Makefile], [ # Makefile uses this timestamp file to record whether config.h is up to date. --- 137,141 ---- AC_SUBST(TERMCAP_LIB) ! AC_OUTPUT([Makefile doc/Makefile examples/Makefile shlib/Makefile], [ # Makefile uses this timestamp file to record whether config.h is up to date. diff -aNrc2 readline-2.2.1/display.c readline-4.0/display.c *** readline-2.2.1/display.c Fri Jul 17 11:02:49 1998 --- readline-4.0/display.c Thu Dec 17 15:36:30 1998 *************** *** 281,285 **** free (local_prompt_prefix); local_prompt = local_prompt_prefix = (char *)0; ! last_invisible = 0; if (prompt == 0 || *prompt == 0) --- 281,285 ---- free (local_prompt_prefix); local_prompt = local_prompt_prefix = (char *)0; ! last_invisible = visible_length = 0; if (prompt == 0 || *prompt == 0) *************** *** 374,377 **** --- 374,384 ---- if (local_len > 0) { + temp = local_len + out + 2; + if (temp >= line_size) + { + line_size = (temp + 1024) - (temp % 1024); + visible_line = xrealloc (visible_line, line_size); + line = invisible_line = xrealloc (invisible_line, line_size); + } strncpy (line + out, local_prompt, local_len); out += local_len; *************** *** 400,403 **** --- 407,417 ---- pmtlen = strlen (prompt_this_line); + temp = pmtlen + out + 2; + if (temp >= line_size) + { + line_size = (temp + 1024) - (temp % 1024); + visible_line = xrealloc (visible_line, line_size); + line = invisible_line = xrealloc (invisible_line, line_size); + } strncpy (line + out, prompt_this_line, pmtlen); out += pmtlen; *************** *** 408,417 **** #define CHECK_LPOS() \ do { \ ! lpos++; \ ! if (lpos >= screenwidth) \ ! { \ ! inv_lbreaks[++newlines] = out; \ ! lpos = 0; \ ! } \ } while (0) --- 422,431 ---- #define CHECK_LPOS() \ do { \ ! lpos++; \ ! if (lpos >= screenwidth) \ ! { \ ! inv_lbreaks[++newlines] = out; \ ! lpos = 0; \ ! } \ } while (0) *************** *** 482,486 **** --- 496,505 ---- { register int temp, newout; + + #if 0 newout = (out | (int)7) + 1; + #else + newout = out + 8 - lpos % 8; + #endif temp = newout - out; if (lpos + temp >= screenwidth) *************** *** 502,510 **** #endif else if (c == '\n' && _rl_horizontal_scroll_mode == 0 && term_up && *term_up) ! { ! line[out++] = '\0'; /* XXX - sentinel */ ! inv_lbreaks[++newlines] = out; ! lpos = 0; ! } else if (CTRL_CHAR (c) || c == RUBOUT) { --- 521,529 ---- #endif else if (c == '\n' && _rl_horizontal_scroll_mode == 0 && term_up && *term_up) ! { ! line[out++] = '\0'; /* XXX - sentinel */ ! inv_lbreaks[++newlines] = out; ! lpos = 0; ! } else if (CTRL_CHAR (c) || c == RUBOUT) { *************** *** 617,625 **** _rl_move_vert (cursor_linenum); /* If we moved up to the line with the prompt using term_up, ! the physical cursor position on the screen stays the same, ! but the buffer position needs to be adjusted to account ! for invisible characters. */ if (cursor_linenum == 0 && wrap_offset) ! _rl_last_c_pos += wrap_offset; } --- 636,644 ---- _rl_move_vert (cursor_linenum); /* If we moved up to the line with the prompt using term_up, ! the physical cursor position on the screen stays the same, ! but the buffer position needs to be adjusted to account ! for invisible characters. */ if (cursor_linenum == 0 && wrap_offset) ! _rl_last_c_pos += wrap_offset; } *************** *** 674,687 **** nleft = visible_length + wrap_offset; /* Where the new cursor position will be on the screen. This can be ! longer than SCREENWIDTH; if it is, lmargin will be adjusted. */ phys_c_pos = c_pos - (last_lmargin ? last_lmargin : wrap_offset); t = screenwidth / 3; /* If the number of characters had already exceeded the screenwidth, ! last_lmargin will be > 0. */ /* If the number of characters to be displayed is more than the screen ! width, compute the starting offset so that the cursor is about ! two-thirds of the way across the screen. */ if (phys_c_pos > screenwidth - 2) { --- 693,706 ---- nleft = visible_length + wrap_offset; /* Where the new cursor position will be on the screen. This can be ! longer than SCREENWIDTH; if it is, lmargin will be adjusted. */ phys_c_pos = c_pos - (last_lmargin ? last_lmargin : wrap_offset); t = screenwidth / 3; /* If the number of characters had already exceeded the screenwidth, ! last_lmargin will be > 0. */ /* If the number of characters to be displayed is more than the screen ! width, compute the starting offset so that the cursor is about ! two-thirds of the way across the screen. */ if (phys_c_pos > screenwidth - 2) { *************** *** 695,699 **** } else if (ndisp < screenwidth - 2) /* XXX - was -1 */ ! lmargin = 0; else if (phys_c_pos < 1) { --- 714,718 ---- } else if (ndisp < screenwidth - 2) /* XXX - was -1 */ ! lmargin = 0; else if (phys_c_pos < 1) { *************** *** 705,709 **** } else ! lmargin = last_lmargin; /* If the first character on the screen isn't the first character --- 724,728 ---- } else ! lmargin = last_lmargin; /* If the first character on the screen isn't the first character *************** *** 713,722 **** /* If SCREENWIDTH characters starting at LMARGIN do not encompass ! the whole line, indicate that with a special characters at the ! right edge of the screen. If LMARGIN is 0, we need to take the ! wrap offset into account. */ t = lmargin + M_OFFSET (lmargin, wrap_offset) + screenwidth; if (t < out) ! line[t - 1] = '>'; if (!rl_display_fixed || forced_display || lmargin != last_lmargin) --- 732,741 ---- /* If SCREENWIDTH characters starting at LMARGIN do not encompass ! the whole line, indicate that with a special character at the ! right edge of the screen. If LMARGIN is 0, we need to take the ! wrap offset into account. */ t = lmargin + M_OFFSET (lmargin, wrap_offset) + screenwidth; if (t < out) ! line[t - 1] = '>'; if (!rl_display_fixed || forced_display || lmargin != last_lmargin) *************** *** 783,787 **** All are character pointers for the sake of speed. Special cases for ! no differences, as well as for end of line additions must be handeled. Could be made even smarter, but this works well enough */ --- 802,806 ---- All are character pointers for the sake of speed. Special cases for ! no differences, as well as for end of line additions must be handled. Could be made even smarter, but this works well enough */ *************** *** 811,815 **** _rl_last_v_pos++; if (old[0] && new[0]) ! old[0] = new[0]; } --- 830,834 ---- _rl_last_v_pos++; if (old[0] && new[0]) ! old[0] = new[0]; } *************** *** 896,903 **** if (current_line == 0 && !_rl_horizontal_scroll_mode && current_invis_chars != visible_wrap_offset) ! { ! temp = visible_wrap_offset - current_invis_chars; ! lendiff += temp; ! } /* Insert (diff (len (old), len (new)) ch. */ --- 915,919 ---- if (current_line == 0 && !_rl_horizontal_scroll_mode && current_invis_chars != visible_wrap_offset) ! lendiff += visible_wrap_offset - current_invis_chars; /* Insert (diff (len (old), len (new)) ch. */ *************** *** 928,932 **** be "inserted". They can just be placed on the screen. */ /* However, this screws up the rest of this block, which ! assumes you've done the insert because you can. */ _rl_output_some_chars (nfd, lendiff); _rl_last_c_pos += lendiff; --- 944,948 ---- be "inserted". They can just be placed on the screen. */ /* However, this screws up the rest of this block, which ! assumes you've done the insert because you can. */ _rl_output_some_chars (nfd, lendiff); _rl_last_c_pos += lendiff; *************** *** 988,995 **** } lendiff = (oe - old) - (ne - new); ! if (_rl_term_autowrap && current_line < inv_botlin) ! space_to_eol (lendiff); ! else ! _rl_clear_to_eol (lendiff); } } --- 1004,1014 ---- } lendiff = (oe - old) - (ne - new); ! if (lendiff) ! { ! if (_rl_term_autowrap && current_line < inv_botlin) ! space_to_eol (lendiff); ! else ! _rl_clear_to_eol (lendiff); ! } } } *************** *** 1020,1024 **** while (*temp) ! *temp++ = '\0'; } rl_on_new_line (); --- 1039,1043 ---- while (*temp) ! *temp++ = '\0'; } rl_on_new_line (); *************** *** 1081,1085 **** #endif /* HACK_TERMCAP_MOTION */ } ! else if (_rl_last_c_pos != new) _rl_backspace (_rl_last_c_pos - new); _rl_last_c_pos = new; --- 1100,1104 ---- #endif /* HACK_TERMCAP_MOTION */ } ! else if (_rl_last_c_pos > new) _rl_backspace (_rl_last_c_pos - new); _rl_last_c_pos = new; *************** *** 1246,1250 **** void ! _rl_save_prompt () { saved_local_prompt = local_prompt; --- 1265,1269 ---- void ! rl_save_prompt () { saved_local_prompt = local_prompt; *************** *** 1258,1262 **** void ! _rl_restore_prompt () { if (local_prompt) --- 1277,1281 ---- void ! rl_restore_prompt () { if (local_prompt) *************** *** 1278,1282 **** char *pmt; ! _rl_save_prompt (); if (saved_local_prompt == 0) --- 1297,1301 ---- char *pmt; ! rl_save_prompt (); if (saved_local_prompt == 0) *************** *** 1285,1289 **** pmt = xmalloc (len + 2); if (len) ! strcpy (pmt, rl_prompt); pmt[len] = pchar; pmt[len+1] = '\0'; --- 1304,1308 ---- pmt = xmalloc (len + 2); if (len) ! strcpy (pmt, rl_prompt); pmt[len] = pchar; pmt[len+1] = '\0'; *************** *** 1294,1298 **** pmt = xmalloc (len + 2); if (len) ! strcpy (pmt, saved_local_prompt); pmt[len] = pchar; pmt[len+1] = '\0'; --- 1313,1317 ---- pmt = xmalloc (len + 2); if (len) ! strcpy (pmt, saved_local_prompt); pmt[len] = pchar; pmt[len+1] = '\0'; *************** *** 1541,1545 **** _rl_vis_botlin = 0; fflush (rl_outstream); ! rl_restart_output (); } } --- 1560,1573 ---- _rl_vis_botlin = 0; fflush (rl_outstream); ! rl_restart_output (1, 0); } + } + + void + _rl_erase_entire_line () + { + cr (); + _rl_clear_to_eol (0); + cr (); + fflush (rl_outstream); } diff -aNrc2 readline-2.2.1/doc/Makefile.in readline-4.0/doc/Makefile.in *** readline-2.2.1/doc/Makefile.in Fri Jul 17 11:02:36 1998 --- readline-4.0/doc/Makefile.in Thu Feb 18 12:24:36 1999 *************** *** 11,14 **** --- 11,15 ---- man3dir = $(mandir)/man3 + SHELL = @MAKE_SHELL@ RM = rm -f *************** *** 26,32 **** RLSRC = $(srcdir)/rlman.texinfo $(srcdir)/rluser.texinfo \ ! $(srcdir)/rltech.texinfo HISTSRC = $(srcdir)/hist.texinfo $(srcdir)/hsuser.texinfo \ ! $(srcdir)/hstech.texinfo # This should be a program that converts troff to an ascii-readable format --- 27,33 ---- RLSRC = $(srcdir)/rlman.texinfo $(srcdir)/rluser.texinfo \ ! $(srcdir)/rltech.texinfo $(srcdir)/manvers.texinfo HISTSRC = $(srcdir)/hist.texinfo $(srcdir)/hsuser.texinfo \ ! $(srcdir)/hstech.texinfo $(srcdir)/manvers.texinfo # This should be a program that converts troff to an ascii-readable format *************** *** 43,46 **** --- 44,49 ---- TEXTOBJ = readline.0 + INTERMEDIATE_OBJ = rlman.dvi hist.dvi + CREATED_DOCS = $(DVIOBJ) $(INFOOBJ) $(PSOBJ) $(HTMLOBJ) $(HTMLTOC) $(TEXTOBJ) *************** *** 77,90 **** readline.html: ${RLSRC} ! $(TEXI2HTML) -I $(TEXINPUTDIR) $(srcdir)/rlman.texinfo ! sed -e 's:rlman.html:readline.html:' -e 's:rlman_toc.html:readline_toc.html:' rlman.html > readline.html ! sed -e 's:rlman.html:readline.html:' -e 's:rlman_toc.html:readline_toc.html:' rlman_toc.html > readline_toc.html ! $(RM) rlman.html rlman_toc.html history.html: ${HISTSRC} ! $(TEXI2HTML) -I $(TEXINPUTDIR) $(srcdir)/hist.texinfo ! sed -e 's:hist.html:history.html:' -e 's:hist_toc.html:history_toc.html:' hist.html > history.html ! sed -e 's:hist.html:history.html:' -e 's:hist_toc.html:history_toc.html:' hist_toc.html > history_toc.html ! $(RM) hist.html hist_toc.html info: $(INFOOBJ) --- 80,91 ---- readline.html: ${RLSRC} ! $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rlman.texinfo ! sed -e 's:rlman.html:readline.html:' rlman.html > readline.html ! $(RM) rlman.html history.html: ${HISTSRC} ! $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/hist.texinfo ! sed -e 's:hist.html:history.html:' hist.html > history.html ! $(RM) hist.html info: $(INFOOBJ) *************** *** 102,105 **** --- 103,107 ---- distclean: clean $(RM) $(CREATED_DOCS) + $(RM) $(INTERMEDIATE_OBJ) $(RM) Makefile *************** *** 108,111 **** --- 110,114 ---- maintainer-clean: clean $(RM) $(CREATED_DOCS) + $(RM) $(INTERMEDIATE_OBJ) $(RM) Makefile *************** *** 113,117 **** -$(SHELL) $(top_srcdir)/support/mkdirs $(infodir) $(man3dir) ! install: installdirs info if test -f readline.info; then \ ${INSTALL_DATA} readline.info $(infodir)/readline.info; \ --- 116,120 ---- -$(SHELL) $(top_srcdir)/support/mkdirs $(infodir) $(man3dir) ! install: installdirs if test -f readline.info; then \ ${INSTALL_DATA} readline.info $(infodir)/readline.info; \ diff -aNrc2 readline-2.2.1/doc/hist.texinfo readline-4.0/doc/hist.texinfo *** readline-2.2.1/doc/hist.texinfo Thu Apr 2 14:38:53 1998 --- readline-4.0/doc/hist.texinfo Thu Dec 31 12:04:50 1998 *************** *** 7,19 **** @setchapternewpage odd ! @ignore ! last change: Thu Apr 2 14:38:22 EST 1998 ! @end ignore ! ! @set EDITION 2.2 ! @set VERSION 2.2 ! @set UPDATED 2 April 1998 ! @set UPDATE-MONTH April 1998 @dircategory Libraries @direntry --- 7,13 ---- @setchapternewpage odd ! @include manvers.texinfo + @ifinfo @dircategory Libraries @direntry *************** *** 21,30 **** @end direntry - @ifinfo This document describes the GNU History library, a programming tool that provides a consistent user interface for recalling lines of previously typed input. ! Copyright (C) 1988, 1991, 1993, 1995, 1996, 1998 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of --- 15,23 ---- @end direntry This document describes the GNU History library, a programming tool that provides a consistent user interface for recalling lines of previously typed input. ! Copyright (C) 1988-1999 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of *************** *** 47,51 **** 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. @end ifinfo --- 40,44 ---- into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved ! by the Free Software Foundation. @end ifinfo *************** *** 78,85 **** 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. @vskip 0pt plus 1filll ! Copyright @copyright{} 1989, 1991 Free Software Foundation, Inc. @end titlepage --- 71,78 ---- into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved ! by the Free Software Foundation. @vskip 0pt plus 1filll ! Copyright @copyright{} 1988-1999 Free Software Foundation, Inc. @end titlepage diff -aNrc2 readline-2.2.1/doc/history.dvi readline-4.0/doc/history.dvi *** readline-2.2.1/doc/history.dvi Thu Apr 2 14:45:23 1998 --- readline-4.0/doc/history.dvi Thu Dec 31 12:08:49 1998 *************** *** 1,24 **** ! ÷ƒ’À;è TeX output 1998.04.02:1444‹ÿÿÿÿŸòŽ ƒ3Ú þ#¾ã‘GóZÂÖN ¼j cmbx12ëZGNU–ƧHistory“LibraryŽ‘GŸ 0‰±ž¸Ÿ šª’Õ@„ó2Kñ`y ó3 ! cmr10ÝEdition–¦f2.1,“for“ó3ßê‘!GÝThese–¤functions“return“information“abMÞout“the“enš²!tire“history“list“or“individual“list“en˜tries.Ž©U’sF‘ÿeunctionŽŽ‘GèHIST_ENTRY–™˜**“çhistory‘Óõ‰ˆŠ#ØŽ‘÷Ílist‘yšâ()ޤ 33‘.ùœÝReturn–oÝa“ÞNULL“Ýterminated“arraš²!y“of“ÞHIST_ENTRY“Ýwhic˜h“is“the“curren˜t“inputŽ¡‘.ùœhistory‘ÿe.›HÔElemen²!t–c0“of“this“list“is“the“bMÞeginning“of“time.˜If“there“is“no“history‘ÿe,Ž¡‘.ùœreturn‘¦fÞNULLÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çwhere‘Óõ‰ˆŠ#ØŽ‘÷Íhistory‘yšâ()Ž¡‘.ùœÝReturns–¦fthe“o set“of“the“currenš²!t“history“elemen˜t.ަ’sF‘ÿeunctionŽŽ‘GèHIST_ENTRY–™˜*“çcurrenÞt‘Óõ‰ˆŠ#ØŽ‘÷Íhistory‘yšâ()Ž¡‘.ùœÝReturn–O‰the“history“enš²!try“at“the“curren˜t“pMÞosition,‘¹Òas“determined“b˜y“Þwhere_Ž¡‘.ùœhistory–¦f()Ý.‘ÝÝIf“there“is“no“enš²!try“there,“return“a“ÞNULL“ÝpMÞoin˜ter.ަ’sF‘ÿeunctionŽŽ‘GèHIST_ENTRY–™˜*“çhistory‘Óõ‰ˆŠ#ØŽ‘÷Íget‘yšâ(Þint‘¦foffsetâ)Ž¡‘.ùœÝReturn–öÏthe“history“en²!try“at“pMÞosition“áo setÝ,‘Jéstarting“from“Þhistory_baseÝ.‘ÏIfŽ¡‘.ùœthere–ììis“no“en²!try“there,›þor“if“áo set‘)ìÝis“greater“than“the“history“length,˜return“aŽ¡‘.ùœÞNULL‘¦fÝpMÞoin²!ter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷Ítotal‘Óõ‰ˆŠ#ØŽ“bÞytes‘yšâ()Ž¡‘.ùœÝReturn–Z+the“n•²!um“bMÞer–Z+of“bš²!ytes“that“the“primary“history“en˜tries“are“using.‘ù-ThisŽ¡‘.ùœfunction–¦freturns“the“sum“of“the“lengths“of“all“the“lines“in“the“history‘ÿe.ŽŸß"‘GëQ2.3.4‘d(Mo–áving–íMAround“the“History“ListŽŽŸ(>‘!GÝThese–¦ffunctions“alloš²!w“the“curren˜t“index“in˜to“the“history“list“to“bMÞe“set“or“c˜hanged.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷Íset‘Óõ‰ˆŠ#ØŽ“pb"os‘yšâ(Þint‘¦fposâ)Ž¡‘.ùœÝSet–¦fthe“pšMÞosition“in“the“history“list“to“áp˜osÝ,“an“absolute“index“in²!to“the“list.ަ’sF‘ÿeunctionŽŽ‘GèHIST_ENTRY–™˜*“çprevious‘Óõ‰ˆŠ#ØŽ‘÷Íhistory‘yšâ()Ž¡‘.ùœÝBacš²!k–iup“the“curren˜t“history“o set“to“the“previous“history“en˜try‘ÿe,‘‘!GÝThese–5²functions“alloš²!w“searc˜hing“of“the“history“list“for“en˜tries“con˜taining“a“spMÞeci c“string.Ž¡‘GSearc•²!hing›LØma“y˜b•MÞe˜p“erformed˜b“oth˜forw•²!ard˜and˜bac“kw“ard˜from˜the˜curren“t˜history˜pMÞosition.Ž¡‘GThe–Ãsearcš²!h“ma˜y“bMÞe“áanc˜horedÝ,‘ÊÅmeaning“that“the“string“m˜ust“matc˜h“at“the“bMÞeginning“of“theŽ¡‘Ghistory‘¦fen²!try‘ÿe.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ‘÷ÍsearcÞh‘yšâ(Þchar–¦f*string,“int“directionâ)Ž¡‘.ùœÝSearcš²!h–£Àthe“history“for“ástringÝ,‘¤Hstarting“at“the“curren˜t“history“o set.‘ÜûIf“ádirectionŽ¡‘.ùœÞ<–‘1Ý0,‘Ëäthen“the“searcš²!h“is“through“previous“en˜tries,‘Ëäelse“through“subsequen˜t.‘ž>IfŽŽŸŒ‹6³Ÿò‘GÝ6’D¦ñGNU–¦fHistory“LibraryŽŽŽ ƒ3Ú ý¨ðБ.ùœástring‘™ëÝis–©Ófound,‘ª¯then“the“currenš²!t“history“index“is“set“to“that“history“en˜try‘ÿe,‘ª¯andޤ 33‘.ùœthe–‡øv‘ÿdDalue“returned“is“the“o set“in“the“line“of“the“enš²!try“where“ástring‘xÝw˜as“found.Ž¡‘.ùœOtherwise,–¦fnothing“is“c²!hanged,“and“a“-1“is“returned.Ž©Ø’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷ÍsearcÞh‘Óõ‰ˆŠ#ØŽ“pre x‘yšâ(Þchar–¦f*string,“int“directionâ)Ž¡‘.ùœÝSearcš²!h–³¢the“history“for“ástringÝ,‘¶ñstarting“at“the“curren˜t“history“o set.‘The“searc˜hŽ¡‘.ùœis›òanc•²!hored:‘˜õmatc“hing˜lines˜m“ust˜bMÞegin˜with˜ástringÝ.‘ö€If˜ádirection˜Þ<˜Ý0,‘Uthen˜theŽ¡‘.ùœsearcš²!h–Éãis“through“previous“en˜tries,‘ÒÂelse“through“subsequen˜t.‘HSIf“ástring‘¹ûÝis“found,Ž¡‘.ùœthen–O…the“currenš²!t“history“index“is“set“to“that“en˜try‘ÿe,‘yÌand“the“return“v‘ÿdDalue“is“0.Ž¡‘.ùœOtherwise,–¦fnothing“is“c²!hanged,“and“a“-1“is“returned.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷ÍsearcÞh‘Óõ‰ˆŠ#ØŽ“pb"os‘yšâ(Þchar–¦f*string,“int“direction,“intŽ¡‘DGposâ)Ž¡‘.ùœÝSearc²!h–Ÿ-for“ástring‘EÝin“the“history“list,› žstarting“at“ápMÞosÝ,˜an“absolute“index“in²!to“theŽ¡‘.ùœlist.‘Ú†If–œaádirection“Ýis“negativš²!e,‘žbthe“searc˜h“proMÞceeds“bac˜kw˜ard“from“ápMÞosÝ,‘žbotherwiseŽ¡‘.ùœforwš²!ard.‘ÉReturns–J&the“absolute“index“of“the“history“elemen˜t“where“ástring‘:>Ýw˜asŽ¡‘.ùœfound,–¦for“-1“otherwise.ŽŸ¥]‘GëQ2.3.6‘d(Managing–íMthe“History“FileŽŽŸ…á‘!GÝThe–ÌeHistory“library“can“read“the“history“from“and“write“it“to“a“ le.‘OÛThis“section“doMÞcu-Ž¡‘Gmen²!ts–¦fthe“functions“for“managing“a“history“ le.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çread‘Óõ‰ˆŠ#ØŽ‘÷Íhistory‘yšâ(Þchar‘¦f*filenameâ)Ž¡‘.ùœÝAdd–™þthe“con•²!ten“ts–™þof“á lename›7Ýto“the“history“list,‘œya“line“at“a“time.‘ÙºIf“á lename˜ÝisŽ¡‘.ùœÞNULLÝ,–¦fthen“read“from“`Þ~/.historyÝ'.‘ÝÝReturns“0“if“successful,“or“errno“if“not.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çread‘Óõ‰ˆŠ#ØŽ–÷Íhistory‘Óõ‰ˆŠ#ØŽ“range‘yšâ(Þchar–¦f*filename,“int“from,“int“toâ)Ž¡‘.ùœÝRead–è0a“range“of“lines“from“á lenameÝ,‘8¢adding“them“to“the“history“list.‘£;StartŽ¡‘.ùœreading–hat“line“áfrom“Ýand“end“at“átoÝ.›ÉIf“áfrom“Ýis“zero,‘t‹start“at“the“bMÞeginning.˜If“átoŽ¡‘.ùœÝis–ñÄless“than“áfromÝ,››then“read“un²!til“the“end“of“the“ le.‘¿÷If“á lename‘ŽËÝis“ÞNULLÝ,˜thenŽ¡‘.ùœread–¦ffrom“`Þ~/.historyÝ'.‘ÝÝReturns“0“if“successful,“or“Þerrno“Ýif“not.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çwrite‘Óõ‰ˆŠ#ØŽ‘÷Íhistory‘yšâ(Þchar‘¦f*filenameâ)Ž¡‘.ùœÝW‘ÿerite–d¨the“currenš²!t“history“to“á lenameÝ,‘Ô8o˜v˜erwriting“á lename‘¯Ýif“necessary‘ÿe.‘ ! £IfŽ¡‘.ùœá lename‘ŽÝis–ñÞNULLÝ,‘Àthen“write“the“history“list“to“`Þ~/.historyÝ'.‘½êV‘ÿealues“returnedŽ¡‘.ùœare–¦fas“in“Þread_history“()Ý.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çappb"end‘Óõ‰ˆŠ#ØŽ‘÷Íhistory‘yšâ(Þint–¦fnelements,“char“*filenameâ)Ž¡‘.ùœÝAppMÞend–¦fthe“last“ánelemen²!ts‘èÝof“the“history“list“to“á lenameÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷Ítruncate‘Óõ‰ˆŠ#ØŽ“ le‘yšâ(Þchar–¦f*filename,“int“nlinesâ)Ž¡‘.ùœÝT‘ÿeruncate–¦fthe“history“ le“á lenameÝ,“lea²!ving“only“the“last“ánlines‘èÝlines.ŽŸ¥]‘GëQ2.3.7‘d(History‘íMExpansionŽŽŸ…á‘!GÝThese–¦ffunctions“implemenš²!t“ÞcshÝ-lik˜e“history“expansion.ŽŽŸŒ‹CПò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“History’Ö5ˆ7ŽŽŽ ƒ3Ú ý¨ðÐ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ‘÷Íexpand‘yšâ(Þchar–¦f*string,“char“**outputâ)ޤ 33‘.ùœÝExpand–˜ðástringÝ,››¡placing“the“result“in²!to“áoutputÝ,˜a“pMÞoin²!ter“to“a“string“(see“æhÝunde-Ž¡‘.ùœ nedæi–¦fÝ[History“In²!teraction],“page“æhÝunde nedæiÝ).‘ÝÝReturns:Ž©žÛ‘.ùœÞ0ŽŽ‘hÊÝIf–Îno“expansions“toMÞok“place“(or,‘×ëif“the“only“cš²!hange“in“the“text“w˜asŽ¡‘hÊthe–¦fde-slashifying“of“the“history“expansion“c²!haracter);ަ‘.ùœÞ1ŽŽ‘hÊÝif–¦fexpansions“did“tak²!e“place;ަ‘.ùœÞ-1ŽŽ‘hÊÝif–¦fthere“w²!as“an“error“in“expansion;ަ‘.ùœÞ2ŽŽ‘hÊÝif–̘the“returned“line“should“only“bMÞe“displa•²!y“ed,›Ö%but–̘not“executed,˜asŽ¡‘hÊwith–{Sthe“Þ:p“ÝmošMÞdi er“(see“æhÝunde nedæi“Ý[Mo˜di ers],‘·$page“æhÝunde nedæiÝ).ަ‘.ùœIf–™tan“error“oMÞcurred“in“expansion,‘œ then“áoutput‘ÖtÝconš²!tains“a“descriptiv˜e“error“mes-Ž¡‘.ùœsage.Ž©T¯’sF‘ÿeunctionŽŽ‘Gèchar–™˜*“çhistory‘Óõ‰ˆŠ#ØŽ–÷Íarg‘Óõ‰ˆŠ#ØŽ“extract‘yšâ(Þint–¦ffirst,“int“last,“charŽ¡‘DG*stringâ)Ž¡‘.ùœÝExtract–}»a“string“segmen²!t“consisting“of“the“á rst›º»Ýthrough“álast˜Ýargumenš²!ts“presen˜tŽ¡‘.ùœin–¦fástringÝ.‘ÝÝArgumenš²!ts“are“brok˜en“up“as“in“Bash.ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜*“çget‘Óõ‰ˆŠ#ØŽ–÷Íhistory‘Óõ‰ˆŠ#ØŽ“ev•Þen“t‘yšâ(Þchar–¦f*string,“int“*cindex,“intŽ¡‘DGqcharâ)Ž¡‘.ùœÝReturns–ƒdthe“text“of“the“history“ev•²!en“t–ƒdbMÞeginning“at“ástring‘s|Þ+“á*cindexÝ.‘Ò2á*cindex‘DÃÝisŽ¡‘.ùœmošMÞdi ed–Ã’to“p˜oinš²!t“to“after“the“ev˜en˜t“spMÞeci er.‘5`A˜t“function“en˜try‘ÿe,‘ÊÝácindex‘„ñÝpMÞoin˜tsŽ¡‘.ùœto–ìthe“index“inš²!to“ástring‘òÝwhere“the“history“ev˜en˜t“spšMÞeci cation“b˜egins.‘ðnáqc²!har‘ËÝisŽ¡‘.ùœa–éacš²!haracter“that“is“allo˜w˜ed“to“end“the“ev˜en˜t“spMÞeci cation“in“addition“to“theŽ¡‘.ùœ\normal"–¦fterminating“c²!haracters.ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜**“çhistory‘Óõ‰ˆŠ#ØŽ‘÷ÍtokÞenize‘yšâ(Þchar‘¦f*stringâ)Ž¡‘.ùœÝReturn–¼an“arraš²!y“of“tok˜ens“parsed“out“of“ástringÝ,‘!Rm˜uc˜h“as“the“shell“migh˜t.‘àTheŽ¡‘.ùœtokš²!ens–p7are“split“on“white“space“and“on“the“c˜haracters“Þ()<>;&|$Ý,‘â«and“shellŽ¡‘.ùœquoting›¦fcon•²!v“en“tions˜are˜obMÞey“ed.ŽŸ!}‘GëH2.4‘™History‘f@V‘þ¦fariablesŽŽŸé‘!GÝThis–:ßsection“describšMÞes“the“externally“visible“v‘ÿdDariables“exp˜orted“b²!y“the“GNU‘:wHistoryŽ¡‘GLibrary‘ÿe.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ‘÷ÍbaseŽ¡‘.ùœÝThe–¦flogical“o set“of“the“ rst“en²!try“in“the“history“list.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ‘÷ÍlengthŽ¡‘.ùœÝThe›¦fn•²!um“bMÞer˜of˜en“tries˜curren“tly˜stored˜in˜the˜history˜list.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çmax‘Óõ‰ˆŠ#ØŽ–÷Íinput‘Óõ‰ˆŠ#ØŽ“historyŽ¡‘.ùœÝThe–4Êmaximš²!um“n˜um˜bMÞer“of“history“en˜tries.‘·ÿThis“m˜ust“bMÞe“c˜hanged“using“Þstifle_Ž¡‘.ùœhistory‘¦f()Ý.ަ’‰V‘ÿeariableŽŽ‘Gèchar‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷Íexpansion‘Óõ‰ˆŠ#ØŽ“cÞharŽ¡‘.ùœÝThe–¦fcš²!haracter“that“starts“a“history“ev˜en˜t.‘ÝÝThe“default“is“`Þ!Ý'.ŽŽŸŒ‹Q:Ÿò‘GÝ8’D¦ñGNU–¦fHistory“LibraryŽŽŽ ƒ3Ú ý¨ðÐ’‰V‘ÿeariableŽŽ‘Gèchar‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷Ísubst‘Óõ‰ˆŠ#ØŽ“cÞharޤ 33‘.ùœÝThe–ùcš²!haracter“that“in˜v˜ok˜es“w˜ord“substitution“if“found“at“the“start“of“a“line.‘¤TheŽ¡‘.ùœdefault–¦fis“`Þ^Ý'.Ž©þ‘’‰V‘ÿeariableŽŽ‘Gèchar‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷ÍcommenšÞt‘Óõ‰ˆŠ#ØŽ“c˜harŽ¡‘.ùœÝDuring–R·tokš²!enization,‘}Ëif“this“c˜haracter“is“seen“as“the“ rst“c˜haracter“of“a“w˜ord,Ž¡‘.ùœthen–ÑÃit“and“all“subsequenš²!t“c˜haracters“up“to“a“newline“are“ignored,‘ÜšsuppressingŽ¡‘.ùœhistory–¦fexpansion“for“the“remainder“of“the“line.‘ÝÝThis“is“disabled“b²!y“default.ަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çhistory‘Óõ‰ˆŠ#ØŽ–÷Íno‘Óõ‰ˆŠ#ØŽ“expand‘Óõ‰ˆŠ#ØŽ“cÞharsŽ¡‘.ùœÝThe–N)list“of“cš²!haracters“whic˜h“inhibit“history“expansion“if“found“immediatelyŽ¡‘.ùœfolloš²!wing‘¦fáhistory‘¨/‰x³HøŽ–ñ'expansion‘¨/‰x³HøŽ“c˜harÝ.‘ÝÝThe–¦fdefault“is“whitespace“and“`Þ=Ý'.ަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çhistory‘Óõ‰ˆŠ#ØŽ–÷ÍsearcšÞh‘Óõ‰ˆŠ#ØŽ“delimiter‘Óõ‰ˆŠ#ØŽ“c˜harsŽ¡‘.ùœÝThe–Eslist“of“additional“cš²!haracters“whic˜h“can“delimit“a“history“searc˜h“string,‘m6inŽ¡‘.ùœaddition–ýŽto“whitespace,‘S`Þ:Ý'“and“`Þ?Ý'“in“the“case“of“a“substring“searc²!h.‘¥•The“defaultŽ¡‘.ùœis‘¦fempt²!y‘ÿe.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷Íquotes‘Óõ‰ˆŠ#ØŽ“inhibit‘Óõ‰ˆŠ#ØŽ“expansionŽ¡‘.ùœÝIf–øÌnon-zero,‘…single-quoted“wš²!ords“are“not“scanned“for“the“history“expansion“c˜har-Ž¡‘.ùœacter.‘ÝÝThe–¦fdefault“v‘ÿdDalue“is“0.ަ’‰V‘ÿeariableŽŽ‘GèFunction–™˜*“çhistory‘Óõ‰ˆŠ#ØŽ–÷Íinhibit‘Óõ‰ˆŠ#ØŽ“expansion‘Óõ‰ˆŠ#ØŽ“functionŽ¡‘.ùœÝThis–±should“bMÞe“set“to“the“address“of“a“function“that“takš²!es“t˜w˜o“argumen˜ts:‘c8a“ÞcharŽ¡‘.ùœ*–bÖÝ(ástring‘ðÝ)“and“an“inš²!teger“index“in˜to“that“string“(ái‘”ƒÝ).‘ÇXIt“should“return“a“non-zeroŽ¡‘.ùœv‘ÿdDalue–öàif“the“history“expansion“starting“at“ástring[i]‘UáÝshould“not“bšMÞe“p˜erformed;‘1bzeroŽ¡‘.ùœif–tthe“expansion“should“bMÞe“done.‘°It“is“inš²!tended“for“use“b˜y“applications“lik˜e“BashŽ¡‘.ùœthat–?use“the“history“expansion“c²!haracter“for“additional“purpMÞoses.‘§ÀBy“default,Ž¡‘.ùœthis–¦fv‘ÿdDariable“is“set“to“NULL.ŽŸþ5‘GëH2.5‘™History–f@Programming“ExampleŽŽŸ˜â‘!GÝThe–¦ffollo²!wing“program“demonstrates“simple“use“of“the“GNU“History“Library‘ÿe.ŽŸ寑.ùœÞmain‘¿ª()ޤ €‘.ùœ{Ž¡‘:xðchar–¿ªline[1024],“*t;Ž¡‘:xðint–¿ªlen,“done“=“0;ޤ‘:xðline[0]–¿ª=“0;Ž¡‘:xðusing_history‘¿ª();ޤ €‘:xðwhile‘¿ª(!done)Ž¡‘EøD{Ž¡‘Qw˜printf–¿ª("history$“");Ž¡‘Qw˜fflush‘¿ª(stdout);Ž¡‘Qw˜t–¿ª=“fgets“(line,“sizeof“(line)“-“1,“stdin);Ž¡‘Qw˜if–¿ª(t“&&“*t)Ž¡‘\öì{ŽŽŸŒ‹ ]•Ÿò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“History’Ö5ˆ9ŽŽŽ ƒ3Ú ý¨ðБhv@Þlen–¿ª=“strlen“(t);ޤ €‘hv@if–¿ª(t[len“-“1]“==“'\n')Ž¡‘sõ”t[len–¿ª-“1]“=“'\0';Ž¡‘\öì}Ž©‘Qw˜if‘¿ª(!t)Ž¡‘\öìstrcpy–¿ª(line,“"quit");ަ‘Qw˜if‘¿ª(line[0])Ž¡‘\öì{Ž¡‘hv@char‘¿ª*expansion;Ž¡‘hv@int‘¿ªresult;ަ‘hv@result–¿ª=“history_expand“(line,“&expansion);Ž¡‘hv@if‘¿ª(result)Ž¡‘sõ”fprintf–¿ª(stderr,“"%s\n",“expansion);ަ‘hv@if–¿ª(result“<“0“||“result“==“2)Ž¡‘sõ”{Ž¡‘tèfree‘¿ª(expansion);Ž¡‘tècontinue;Ž¡‘sõ”}ަ‘hv@add_history‘¿ª(expansion);Ž¡‘hv@strncpy–¿ª(line,“expansion,“sizeof“(line)“-“1);Ž¡‘hv@free‘¿ª(expansion);Ž¡‘\öì}ަ‘Qw˜if–¿ª(strcmp“(line,“"quit")“==“0)Ž¡‘\öìdone–¿ª=“1;Ž¡‘Qw˜else–¿ªif“(strcmp“(line,“"save")“==“0)Ž¡‘\öìwrite_history‘¿ª("history_file");Ž¡‘Qw˜else–¿ªif“(strcmp“(line,“"read")“==“0)Ž¡‘\öìread_history‘¿ª("history_file");Ž¡‘Qw˜else–¿ªif“(strcmp“(line,“"list")“==“0)Ž¡‘\öì{Ž¡‘hv@register–¿ªHIST_ENTRY“**the_list;Ž¡‘hv@register–¿ªint“i;ަ‘hv@the_list–¿ª=“history_list“();Ž¡‘hv@if‘¿ª(the_list)Ž¡‘sõ”for–¿ª(i“=“0;“the_list[i];“i++)Ž¡‘tèprintf–¿ª("%d:“%s\n",“i“+“history_base,“the_list[i]->line);Ž¡‘\öì}Ž¡‘Qw˜else–¿ªif“(strncmp“(line,“"delete",“6)“==“0)Ž¡‘\öì{Ž¡‘hv@int‘¿ªwhich;Ž¡‘hv@if–¿ª((sscanf“(line“+“6,“"%d",“&which))“==“1)ŽŽŸŒ‹ ! h‹Ÿò‘GÝ10’?-WGNU–¦fHistory“LibraryŽŽŽ ƒ3Ú ý¨ðБsõ”Þ{ޤ €‘tèHIST_ENTRY–¿ª*entry“=“remove_history“(which);Ž¡‘tèif‘¿ª(!entry)Ž¡’Šôline);Ž¡’–sfree‘¿ª(entry);Ž¡’Šô<}Ž¡‘sõ”}Ž¡‘hv@elseŽ¡‘sõ”{Ž¡‘tèfprintf–¿ª(stderr,“"non-numeric“arg“given“to“`delete'\n");Ž¡‘sõ”}Ž¡‘\öì}Ž¡‘EøD}Ž¡‘.ùœ}ŽŽŸŒ‹ mÚŸò‘GÝAppMÞendix–¦fA:“Concept“Index’ž¬11ŽŽŽ ƒ3Ú ý¨ðБGêApp‘Š=endix‘záA‘ ¸QConcept‘z³IndexŽŽŸ$\(Ÿ‘!Góo´‹Ç cmr9¬(Index–Tis“nonexisten¾9t)ŽŽŽŽŸŒ‹ o¢Ÿò‘GÝ12’?-WGNU–¦fHistory“LibraryŽŽŽ ƒ3ÚŸŒ‹ p†Ÿò‘GÝAppMÞendix–¦fB:“F›ÿeunction“and“V˜ariable“Index’Üú13ŽŽŽ ƒ3Ú ý¨ðБGêApp‘Š=endix‘záB‘ ¸QF›þaGunction–z³and“V˜ariable“IndexŽŽŸ$\(Ÿ‘!G¬(Index–Tis“nonexisten¾9t)ŽŽŽŽŸŒ‹péŸò‘GÝ14’?-WGNU–¦fHistory“LibraryŽŽŽ ƒ3ÚŸŒ‹ÿÿÿÿqߟò’À¥TÝiŽŽŽ ƒ3Ú ý¨ðБGêT‘þaGable–z³of“Con–ÿuÂten“tsŽŽŸ)33‘GëH1‘32Using–ffHistory“In•ŒÌteractiv“ely‘%‘32óIF C–ff cmbxti10ëI.Ž–…‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž‘ ð›ëH1Ž©ÿ‘6GÝ1.1‘ ó5History‘¦fExpansion*•‘é˜ó5ý': --- 1,24 ---- ! ÷ƒ’À;è TeX output 1998.12.31:1208‹ÿÿÿÿŸòŽ ƒ3Ú þ#¾ã‘GóZÂÖN ¼j cmbx12ëZGNU–ƧHistory“LibraryŽ‘GŸ 0‰±ž¸Ÿ šª’Õ@„ó2Kñ`y ó3 ! cmr10ÝEdition–¦f4.0,“for“ó3ßê‘!GÝThese–¤functions“return“information“abMÞout“the“enš²!tire“history“list“or“individual“list“en˜tries.Ž©U’sF‘ÿeunctionŽŽ‘GèHIST_ENTRY–™˜**“çhistory‘Óõ‰ˆŠ#ØŽ‘÷Ílist‘yšâ()ޤ 33‘.ùœÝReturn–oÝa“ÞNULL“Ýterminated“arraš²!y“of“ÞHIST_ENTRY“Ýwhic˜h“is“the“curren˜t“inputŽ¡‘.ùœhistory‘ÿe.›HÔElemen²!t–c0“of“this“list“is“the“bMÞeginning“of“time.˜If“there“is“no“history‘ÿe,Ž¡‘.ùœreturn‘¦fÞNULLÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çwhere‘Óõ‰ˆŠ#ØŽ‘÷Íhistory‘yšâ()Ž¡‘.ùœÝReturns–¦fthe“o set“of“the“currenš²!t“history“elemen˜t.ަ’sF‘ÿeunctionŽŽ‘GèHIST_ENTRY–™˜*“çcurrenÞt‘Óõ‰ˆŠ#ØŽ‘÷Íhistory‘yšâ()Ž¡‘.ùœÝReturn–O‰the“history“enš²!try“at“the“curren˜t“pMÞosition,‘¹Òas“determined“b˜y“Þwhere_Ž¡‘.ùœhistory–¦f()Ý.‘ÝÝIf“there“is“no“enš²!try“there,“return“a“ÞNULL“ÝpMÞoin˜ter.ަ’sF‘ÿeunctionŽŽ‘GèHIST_ENTRY–™˜*“çhistory‘Óõ‰ˆŠ#ØŽ‘÷Íget‘yšâ(Þint‘¦foffsetâ)Ž¡‘.ùœÝReturn–öÏthe“history“en²!try“at“pMÞosition“áo setÝ,‘Jéstarting“from“Þhistory_baseÝ.‘ÏIfŽ¡‘.ùœthere–ììis“no“en²!try“there,›þor“if“áo set‘)ìÝis“greater“than“the“history“length,˜return“aŽ¡‘.ùœÞNULL‘¦fÝpMÞoin²!ter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷Ítotal‘Óõ‰ˆŠ#ØŽ“bÞytes‘yšâ()Ž¡‘.ùœÝReturn–Z+the“n•²!um“bMÞer–Z+of“bš²!ytes“that“the“primary“history“en˜tries“are“using.‘ù-ThisŽ¡‘.ùœfunction–¦freturns“the“sum“of“the“lengths“of“all“the“lines“in“the“history‘ÿe.ŽŸß"‘GëQ2.3.4‘d(Mo–áving–íMAround“the“History“ListŽŽŸ(>‘!GÝThese–¦ffunctions“alloš²!w“the“curren˜t“index“in˜to“the“history“list“to“bMÞe“set“or“c˜hanged.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷Íset‘Óõ‰ˆŠ#ØŽ“pb"os‘yšâ(Þint‘¦fposâ)Ž¡‘.ùœÝSet–¦fthe“pšMÞosition“in“the“history“list“to“áp˜osÝ,“an“absolute“index“in²!to“the“list.ަ’sF‘ÿeunctionŽŽ‘GèHIST_ENTRY–™˜*“çprevious‘Óõ‰ˆŠ#ØŽ‘÷Íhistory‘yšâ()Ž¡‘.ùœÝBacš²!k–iup“the“curren˜t“history“o set“to“the“previous“history“en˜try‘ÿe,‘‘!GÝThese–5²functions“alloš²!w“searc˜hing“of“the“history“list“for“en˜tries“con˜taining“a“spMÞeci c“string.Ž¡‘GSearc•²!hing›LØma“y˜b•MÞe˜p“erformed˜b“oth˜forw•²!ard˜and˜bac“kw“ard˜from˜the˜curren“t˜history˜pMÞosition.Ž¡‘GThe–Ãsearcš²!h“ma˜y“bMÞe“áanc˜horedÝ,‘ÊÅmeaning“that“the“string“m˜ust“matc˜h“at“the“bMÞeginning“of“theŽ¡‘Ghistory‘¦fen²!try‘ÿe.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ‘÷ÍsearcÞh‘yšâ(Þchar–¦f*string,“int“directionâ)Ž¡‘.ùœÝSearcš²!h–£Àthe“history“for“ástringÝ,‘¤Hstarting“at“the“curren˜t“history“o set.‘ÜûIf“ádirectionŽ¡‘.ùœÞ<–‘1Ý0,‘Ëäthen“the“searcš²!h“is“through“previous“en˜tries,‘Ëäelse“through“subsequen˜t.‘ž>IfŽŽŸŒ‹6¨Ÿò‘GÝ6’D¦ñGNU–¦fHistory“LibraryŽŽŽ ƒ3Ú ý¨ðБ.ùœástring‘™ëÝis–©Ófound,‘ª¯then“the“currenš²!t“history“index“is“set“to“that“history“en˜try‘ÿe,‘ª¯andޤ 33‘.ùœthe–‡øv‘ÿdDalue“returned“is“the“o set“in“the“line“of“the“enš²!try“where“ástring‘xÝw˜as“found.Ž¡‘.ùœOtherwise,–¦fnothing“is“c²!hanged,“and“a“-1“is“returned.Ž©Ø’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷ÍsearcÞh‘Óõ‰ˆŠ#ØŽ“pre x‘yšâ(Þchar–¦f*string,“int“directionâ)Ž¡‘.ùœÝSearcš²!h–³¢the“history“for“ástringÝ,‘¶ñstarting“at“the“curren˜t“history“o set.‘The“searc˜hŽ¡‘.ùœis›òanc•²!hored:‘˜õmatc“hing˜lines˜m“ust˜bMÞegin˜with˜ástringÝ.‘ö€If˜ádirection˜Þ<˜Ý0,‘Uthen˜theŽ¡‘.ùœsearcš²!h–Éãis“through“previous“en˜tries,‘ÒÂelse“through“subsequen˜t.‘HSIf“ástring‘¹ûÝis“found,Ž¡‘.ùœthen–O…the“currenš²!t“history“index“is“set“to“that“en˜try‘ÿe,‘yÌand“the“return“v‘ÿdDalue“is“0.Ž¡‘.ùœOtherwise,–¦fnothing“is“c²!hanged,“and“a“-1“is“returned.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷ÍsearcÞh‘Óõ‰ˆŠ#ØŽ“pb"os‘yšâ(Þchar–¦f*string,“int“direction,“intŽ¡‘DGposâ)Ž¡‘.ùœÝSearc²!h–Ÿ-for“ástring‘EÝin“the“history“list,› žstarting“at“ápMÞosÝ,˜an“absolute“index“in²!to“theŽ¡‘.ùœlist.‘Ú†If–œaádirection“Ýis“negativš²!e,‘žbthe“searc˜h“proMÞceeds“bac˜kw˜ard“from“ápMÞosÝ,‘žbotherwiseŽ¡‘.ùœforwš²!ard.‘ÉReturns–J&the“absolute“index“of“the“history“elemen˜t“where“ástring‘:>Ýw˜asŽ¡‘.ùœfound,–¦for“-1“otherwise.ŽŸ¥]‘GëQ2.3.6‘d(Managing–íMthe“History“FileŽŽŸ…á‘!GÝThe–ÌeHistory“library“can“read“the“history“from“and“write“it“to“a“ le.‘OÛThis“section“doMÞcu-Ž¡‘Gmen²!ts–¦fthe“functions“for“managing“a“history“ le.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çread‘Óõ‰ˆŠ#ØŽ‘÷Íhistory‘yšâ(Þchar‘¦f*filenameâ)Ž¡‘.ùœÝAdd–™þthe“con•²!ten“ts–™þof“á lename›7Ýto“the“history“list,‘œya“line“at“a“time.‘ÙºIf“á lename˜ÝisŽ¡‘.ùœÞNULLÝ,–¦fthen“read“from“`Þ~/.historyÝ'.‘ÝÝReturns“0“if“successful,“or“errno“if“not.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çread‘Óõ‰ˆŠ#ØŽ–÷Íhistory‘Óõ‰ˆŠ#ØŽ“range‘yšâ(Þchar–¦f*filename,“int“from,“int“toâ)Ž¡‘.ùœÝRead–è0a“range“of“lines“from“á lenameÝ,‘8¢adding“them“to“the“history“list.‘£;StartŽ¡‘.ùœreading–hat“line“áfrom“Ýand“end“at“átoÝ.›ÉIf“áfrom“Ýis“zero,‘t‹start“at“the“bMÞeginning.˜If“átoŽ¡‘.ùœÝis–ñÄless“than“áfromÝ,››then“read“un²!til“the“end“of“the“ le.‘¿÷If“á lename‘ŽËÝis“ÞNULLÝ,˜thenŽ¡‘.ùœread–¦ffrom“`Þ~/.historyÝ'.‘ÝÝReturns“0“if“successful,“or“Þerrno“Ýif“not.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çwrite‘Óõ‰ˆŠ#ØŽ‘÷Íhistory‘yšâ(Þchar‘¦f*filenameâ)Ž¡‘.ùœÝW‘ÿerite–d¨the“currenš²!t“history“to“á lenameÝ,‘Ô8o˜v˜erwriting“á lename‘¯Ýif“necessary‘ÿe.‘ ! £IfŽ¡‘.ùœá lename‘ŽÝis–ñÞNULLÝ,‘Àthen“write“the“history“list“to“`Þ~/.historyÝ'.‘½êV‘ÿealues“returnedŽ¡‘.ùœare–¦fas“in“Þread_history“()Ý.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çappb"end‘Óõ‰ˆŠ#ØŽ‘÷Íhistory‘yšâ(Þint–¦fnelements,“char“*filenameâ)Ž¡‘.ùœÝAppMÞend–¦fthe“last“ánelemen²!ts‘èÝof“the“history“list“to“á lenameÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷Ítruncate‘Óõ‰ˆŠ#ØŽ“ le‘yšâ(Þchar–¦f*filename,“int“nlinesâ)Ž¡‘.ùœÝT‘ÿeruncate–¦fthe“history“ le“á lenameÝ,“lea²!ving“only“the“last“ánlines‘èÝlines.ŽŸ¥]‘GëQ2.3.7‘d(History‘íMExpansionŽŽŸ…á‘!GÝThese–¦ffunctions“implemenš²!t“ÞcshÝ-lik˜e“history“expansion.ŽŽŸŒ‹CÅŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“History’Ö5ˆ7ŽŽŽ ƒ3Ú ý¨ðÐ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ‘÷Íexpand‘yšâ(Þchar–¦f*string,“char“**outputâ)ޤ 33‘.ùœÝExpand–uástringÝ,›¨«placing“the“result“in²!to“áoutputÝ,˜a“pMÞoin²!ter“to“a“string“(see“Sec-Ž¡‘.ùœtion–¦f1.1“[History“In²!teraction],“page“1).‘ÝÝReturns:Ž©žÛ‘.ùœÞ0ŽŽ‘hÊÝIf–Îno“expansions“toMÞok“place“(or,‘×ëif“the“only“cš²!hange“in“the“text“w˜asŽ¡‘hÊthe–¦fde-slashifying“of“the“history“expansion“c²!haracter);ަ‘.ùœÞ1ŽŽ‘hÊÝif–¦fexpansions“did“tak²!e“place;ަ‘.ùœÞ-1ŽŽ‘hÊÝif–¦fthere“w²!as“an“error“in“expansion;ަ‘.ùœÞ2ŽŽ‘hÊÝif–̘the“returned“line“should“only“bMÞe“displa•²!y“ed,›Ö%but–̘not“executed,˜asŽ¡‘hÊwith–¦fthe“Þ:p“ÝmošMÞdi er“(see“Section“1.1.3“[Mo˜di ers],“page“2).ަ‘.ùœIf–™tan“error“oMÞcurred“in“expansion,‘œ then“áoutput‘ÖtÝconš²!tains“a“descriptiv˜e“error“mes-Ž¡‘.ùœsage.Ž©T¯’sF‘ÿeunctionŽŽ‘Gèchar–™˜*“çhistory‘Óõ‰ˆŠ#ØŽ–÷Íarg‘Óõ‰ˆŠ#ØŽ“extract‘yšâ(Þint–¦ffirst,“int“last,“charŽ¡‘DG*stringâ)Ž¡‘.ùœÝExtract–}»a“string“segmen²!t“consisting“of“the“á rst›º»Ýthrough“álast˜Ýargumenš²!ts“presen˜tŽ¡‘.ùœin–¦fástringÝ.‘ÝÝArgumenš²!ts“are“brok˜en“up“as“in“Bash.ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜*“çget‘Óõ‰ˆŠ#ØŽ–÷Íhistory‘Óõ‰ˆŠ#ØŽ“ev•Þen“t‘yšâ(Þchar–¦f*string,“int“*cindex,“intŽ¡‘DGqcharâ)Ž¡‘.ùœÝReturns–ƒdthe“text“of“the“history“ev•²!en“t–ƒdbMÞeginning“at“ástring‘s|Þ+“á*cindexÝ.‘Ò2á*cindex‘DÃÝisŽ¡‘.ùœmošMÞdi ed–Ã’to“p˜oinš²!t“to“after“the“ev˜en˜t“spMÞeci er.‘5`A˜t“function“en˜try‘ÿe,‘ÊÝácindex‘„ñÝpMÞoin˜tsŽ¡‘.ùœto–ìthe“index“inš²!to“ástring‘òÝwhere“the“history“ev˜en˜t“spšMÞeci cation“b˜egins.‘ðnáqc²!har‘ËÝisŽ¡‘.ùœa–éacš²!haracter“that“is“allo˜w˜ed“to“end“the“ev˜en˜t“spMÞeci cation“in“addition“to“theŽ¡‘.ùœ\normal"–¦fterminating“c²!haracters.ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜**“çhistory‘Óõ‰ˆŠ#ØŽ‘÷ÍtokÞenize‘yšâ(Þchar‘¦f*stringâ)Ž¡‘.ùœÝReturn–¼an“arraš²!y“of“tok˜ens“parsed“out“of“ástringÝ,‘!Rm˜uc˜h“as“the“shell“migh˜t.‘àTheŽ¡‘.ùœtokš²!ens–p7are“split“on“white“space“and“on“the“c˜haracters“Þ()<>;&|$Ý,‘â«and“shellŽ¡‘.ùœquoting›¦fcon•²!v“en“tions˜are˜obMÞey“ed.ŽŸ!}‘GëH2.4‘™History‘f@V‘þ¦fariablesŽŽŸé‘!GÝThis–:ßsection“describšMÞes“the“externally“visible“v‘ÿdDariables“exp˜orted“b²!y“the“GNU‘:wHistoryŽ¡‘GLibrary‘ÿe.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ‘÷ÍbaseŽ¡‘.ùœÝThe–¦flogical“o set“of“the“ rst“en²!try“in“the“history“list.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ‘÷ÍlengthŽ¡‘.ùœÝThe›¦fn•²!um“bMÞer˜of˜en“tries˜curren“tly˜stored˜in˜the˜history˜list.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çmax‘Óõ‰ˆŠ#ØŽ–÷Íinput‘Óõ‰ˆŠ#ØŽ“historyŽ¡‘.ùœÝThe–4Êmaximš²!um“n˜um˜bMÞer“of“history“en˜tries.‘·ÿThis“m˜ust“bMÞe“c˜hanged“using“Þstifle_Ž¡‘.ùœhistory‘¦f()Ý.ަ’‰V‘ÿeariableŽŽ‘Gèchar‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷Íexpansion‘Óõ‰ˆŠ#ØŽ“cÞharŽ¡‘.ùœÝThe–¦fcš²!haracter“that“starts“a“history“ev˜en˜t.‘ÝÝThe“default“is“`Þ!Ý'.ŽŽŸŒ‹Q/Ÿò‘GÝ8’D¦ñGNU–¦fHistory“LibraryŽŽŽ ƒ3Ú ý¨ðÐ’‰V‘ÿeariableŽŽ‘Gèchar‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷Ísubst‘Óõ‰ˆŠ#ØŽ“cÞharޤ 33‘.ùœÝThe–ùcš²!haracter“that“in˜v˜ok˜es“w˜ord“substitution“if“found“at“the“start“of“a“line.‘¤TheŽ¡‘.ùœdefault–¦fis“`Þ^Ý'.Ž©þ‘’‰V‘ÿeariableŽŽ‘Gèchar‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷ÍcommenšÞt‘Óõ‰ˆŠ#ØŽ“c˜harŽ¡‘.ùœÝDuring–R·tokš²!enization,‘}Ëif“this“c˜haracter“is“seen“as“the“ rst“c˜haracter“of“a“w˜ord,Ž¡‘.ùœthen–ÑÃit“and“all“subsequenš²!t“c˜haracters“up“to“a“newline“are“ignored,‘ÜšsuppressingŽ¡‘.ùœhistory–¦fexpansion“for“the“remainder“of“the“line.‘ÝÝThis“is“disabled“b²!y“default.ަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çhistory‘Óõ‰ˆŠ#ØŽ–÷Íno‘Óõ‰ˆŠ#ØŽ“expand‘Óõ‰ˆŠ#ØŽ“cÞharsŽ¡‘.ùœÝThe–N)list“of“cš²!haracters“whic˜h“inhibit“history“expansion“if“found“immediatelyŽ¡‘.ùœfolloš²!wing‘¦fáhistory‘¨/‰x³HøŽ–ñ'expansion‘¨/‰x³HøŽ“c˜harÝ.‘ÝÝThe–¦fdefault“is“whitespace“and“`Þ=Ý'.ަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çhistory‘Óõ‰ˆŠ#ØŽ–÷ÍsearcšÞh‘Óõ‰ˆŠ#ØŽ“delimiter‘Óõ‰ˆŠ#ØŽ“c˜harsŽ¡‘.ùœÝThe–Eslist“of“additional“cš²!haracters“whic˜h“can“delimit“a“history“searc˜h“string,‘m6inŽ¡‘.ùœaddition–ýŽto“whitespace,‘S`Þ:Ý'“and“`Þ?Ý'“in“the“case“of“a“substring“searc²!h.‘¥•The“defaultŽ¡‘.ùœis‘¦fempt²!y‘ÿe.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çhistory‘Óõ‰ˆŠ#ØŽ–÷Íquotes‘Óõ‰ˆŠ#ØŽ“inhibit‘Óõ‰ˆŠ#ØŽ“expansionŽ¡‘.ùœÝIf–øÌnon-zero,‘…single-quoted“wš²!ords“are“not“scanned“for“the“history“expansion“c˜har-Ž¡‘.ùœacter.‘ÝÝThe–¦fdefault“v‘ÿdDalue“is“0.ަ’‰V‘ÿeariableŽŽ‘GèFunction–™˜*“çhistory‘Óõ‰ˆŠ#ØŽ–÷Íinhibit‘Óõ‰ˆŠ#ØŽ“expansion‘Óõ‰ˆŠ#ØŽ“functionŽ¡‘.ùœÝThis–±should“bMÞe“set“to“the“address“of“a“function“that“takš²!es“t˜w˜o“argumen˜ts:‘c8a“ÞcharŽ¡‘.ùœ*–bÖÝ(ástring‘ðÝ)“and“an“inš²!teger“index“in˜to“that“string“(ái‘”ƒÝ).‘ÇXIt“should“return“a“non-zeroŽ¡‘.ùœv‘ÿdDalue–öàif“the“history“expansion“starting“at“ástring[i]‘UáÝshould“not“bšMÞe“p˜erformed;‘1bzeroŽ¡‘.ùœif–tthe“expansion“should“bMÞe“done.‘°It“is“inš²!tended“for“use“b˜y“applications“lik˜e“BashŽ¡‘.ùœthat–?use“the“history“expansion“c²!haracter“for“additional“purpMÞoses.‘§ÀBy“default,Ž¡‘.ùœthis–¦fv‘ÿdDariable“is“set“to“NULL.ŽŸþ5‘GëH2.5‘™History–f@Programming“ExampleŽŽŸ˜â‘!GÝThe–¦ffollo²!wing“program“demonstrates“simple“use“of“the“GNU“History“Library‘ÿe.ŽŸ寑.ùœÞmain‘¿ª()ޤ €‘.ùœ{Ž¡‘:xðchar–¿ªline[1024],“*t;Ž¡‘:xðint–¿ªlen,“done“=“0;ޤ‘:xðline[0]–¿ª=“0;Ž¡‘:xðusing_history‘¿ª();ޤ €‘:xðwhile‘¿ª(!done)Ž¡‘EøD{Ž¡‘Qw˜printf–¿ª("history$“");Ž¡‘Qw˜fflush‘¿ª(stdout);Ž¡‘Qw˜t–¿ª=“fgets“(line,“sizeof“(line)“-“1,“stdin);Ž¡‘Qw˜if–¿ª(t“&&“*t)Ž¡‘\öì{ŽŽŸŒ‹ ]iŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“History’Ö5ˆ9ŽŽŽ ƒ3Ú ý¨ðБhv@Þlen–¿ª=“strlen“(t);ޤ €‘hv@if–¿ª(t[len“-“1]“==“'\n')Ž¡‘sõ”t[len–¿ª-“1]“=“'\0';Ž¡‘\öì}Ž©‘Qw˜if‘¿ª(!t)Ž¡‘\öìstrcpy–¿ª(line,“"quit");ަ‘Qw˜if‘¿ª(line[0])Ž¡‘\öì{Ž¡‘hv@char‘¿ª*expansion;Ž¡‘hv@int‘¿ªresult;ަ‘hv@result–¿ª=“history_expand“(line,“&expansion);Ž¡‘hv@if‘¿ª(result)Ž¡‘sõ”fprintf–¿ª(stderr,“"%s\n",“expansion);ަ‘hv@if–¿ª(result“<“0“||“result“==“2)Ž¡‘sõ”{Ž¡‘tèfree‘¿ª(expansion);Ž¡‘tècontinue;Ž¡‘sõ”}ަ‘hv@add_history‘¿ª(expansion);Ž¡‘hv@strncpy–¿ª(line,“expansion,“sizeof“(line)“-“1);Ž¡‘hv@free‘¿ª(expansion);Ž¡‘\öì}ަ‘Qw˜if–¿ª(strcmp“(line,“"quit")“==“0)Ž¡‘\öìdone–¿ª=“1;Ž¡‘Qw˜else–¿ªif“(strcmp“(line,“"save")“==“0)Ž¡‘\öìwrite_history‘¿ª("history_file");Ž¡‘Qw˜else–¿ªif“(strcmp“(line,“"read")“==“0)Ž¡‘\öìread_history‘¿ª("history_file");Ž¡‘Qw˜else–¿ªif“(strcmp“(line,“"list")“==“0)Ž¡‘\öì{Ž¡‘hv@register–¿ªHIST_ENTRY“**the_list;Ž¡‘hv@register–¿ªint“i;ަ‘hv@the_list–¿ª=“history_list“();Ž¡‘hv@if‘¿ª(the_list)Ž¡‘sõ”for–¿ª(i“=“0;“the_list[i];“i++)Ž¡‘tèprintf–¿ª("%d:“%s\n",“i“+“history_base,“the_list[i]->line);Ž¡‘\öì}Ž¡‘Qw˜else–¿ªif“(strncmp“(line,“"delete",“6)“==“0)Ž¡‘\öì{Ž¡‘hv@int‘¿ªwhich;Ž¡‘hv@if–¿ª((sscanf“(line“+“6,“"%d",“&which))“==“1)ŽŽŸŒ‹ ! h_Ÿò‘GÝ10’?-WGNU–¦fHistory“LibraryŽŽŽ ƒ3Ú ý¨ðБsõ”Þ{ޤ €‘tèHIST_ENTRY–¿ª*entry“=“remove_history“(which);Ž¡‘tèif‘¿ª(!entry)Ž¡’Šôline);Ž¡’–sfree‘¿ª(entry);Ž¡’Šô<}Ž¡‘sõ”}Ž¡‘hv@elseŽ¡‘sõ”{Ž¡‘tèfprintf–¿ª(stderr,“"non-numeric“arg“given“to“`delete'\n");Ž¡‘sõ”}Ž¡‘\öì}Ž¡‘EøD}Ž¡‘.ùœ}ŽŽŸŒ‹ m®Ÿò‘GÝAppMÞendix–¦fA:“Concept“Index’ž¬11ŽŽŽ ƒ3Ú ý¨ðБGêApp‘Š=endix‘záA‘ ¸QConcept‘z³IndexŽŽŸ^\(ŸÌ‘GëHAޤ‘Góo´‹Ç cmr9¬anc•¾9hored‘Tsearc“h 4‘ÅUó"”q[˜ cmsl9Í.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘=ï¬5ŽŸ‘GëHEŽ¡‘G¬ev•¾9en“t‘Tdesignators‘q ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘£Z¬1ŽŽŸÌ’óáðëHHŽŸ’óáð¬history‘Tev•¾9en“tsK‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘:¬1ޤ ’óáðhistory‘Texpansion‘ΑÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ÿ̬1Ž¡’óáðHistory‘TSearc¾9hingo~‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¡9¬5ŽŽŽŽŸŒ‹ ovŸò‘GÝ12’?-WGNU–¦fHistory“LibraryŽŽŽ ƒ3ÚŸŒ‹ vXŸò‘GÝAppMÞendix–¦fB:“F›ÿeunction“and“V˜ariable“Index’Üú13ŽŽŽ ƒ3Ú ý¨ðБGêApp‘Š=endix‘záB‘ ¸QF›þaGunction–z³and“V˜ariable“IndexŽŽ š\( þ‘GëHAޤ‘GóߤN cmtt9Éadd‘‘$‰c4ÕÂŽ‘fæhistory‘¹"‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘êݬ4Ž© ‘GÉappend‘‘$‰c4ÕÂŽ‘fæhistory‘Û¡‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ \¬6ŽŸ‘GëHCŽ¡‘GÉclear‘‘$‰c4ÕÂŽ‘fæhistoryü‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘M·¬4ަ‘GÉcurrent‘‘$‰c4ÕÂŽ‘fæhistory‘‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¾É¬5Ž©‘GëHGŽ¡‘GÉget‘‘$‰c4ÕÂŽ–fæhistory‘‘$‰c4ÕÂŽ“event‘™@‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Êû¬7ަ‘GëHHŽ¡‘GÉhistory‘‘$‰c4ÕÂŽ–fæarg‘‘$‰c4ÕÂŽ“extract‘ü‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘-Õ¬7ޤ ‘GÉhistory‘‘$‰c4ÕÂŽ‘fæbase‘q‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ج7Ž¡‘GÉhistory_comment_char‘ñ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ X¬8Ž¡‘GÉhistory‘‘$‰c4ÕÂŽ‘fæexpand‘Û¡‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ \¬7Ž¡‘GÉhistory‘‘$‰c4ÕÂŽ–fæexpansion‘‘$‰c4ÕÂŽ“char‘©C‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.ޑ۬7Ž¡‘GÉhistory‘‘$‰c4ÕÂŽ‘fæget‘¹"‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘êݬ5Ž¡‘GÉhistory‘‘$‰c4ÕÂŽ–fæget‘‘$‰c4ÕÂŽ“history‘‘$‰c4ÕÂŽ“state‘Ü8‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ ó¬4Ž¡‘GÉhistory_inhibit_expansion_function‘ÒW‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘8Ž¡‘GÉhistory‘‘$‰c4ÕÂŽ–fæis‘‘$‰c4ÕÂŽ“stifled‘J­‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘|h¬4Ž¡‘GÉhistory‘‘$‰c4ÕÂŽ‘fælength‘fK‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘‚²¬7Ž¡‘GÉhistory‘‘$‰c4ÕÂŽ‘fælistj‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘œJ¬5Ž¡‘GÉhistory_no_expand_chars‘8‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘2Ÿ¬8Ž¡‘GÉhistory_quotes_inhibit_expansion‘aE‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘}¬¬8Ž¡‘GÉhistory‘‘$‰c4ÕÂŽ‘fæsearch‘Û¡‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ \¬5Ž¡‘GÉhistory_search_delimiter_chars‘þk‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Ò¬8Ž¡‘GÉhistory‘‘$‰c4ÕÂŽ–fæsearch‘‘$‰c4ÕÂŽ“pos‘J­‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘|h¬6Ž¡‘GÉhistory‘‘$‰c4ÕÂŽ–fæsearch‘‘$‰c4ÕÂŽ“prefix^ô‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¯¬6Ž¡‘GÉhistory‘‘$‰c4ÕÂŽ–fæset‘‘$‰c4ÕÂŽ“history‘‘$‰c4ÕÂŽ“state‘Ü8‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ ó¬4Ž¡‘GÉhistory‘‘$‰c4ÕÂŽ–fæset‘‘$‰c4ÕÂŽ“pos(.‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Yé¬5ŽŽ þ’óáðÉhistory_subst_char‘ß‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘­F¬8ޤ ’óáðÉhistory‘‘$‰c4ÕÂŽ‘fætokenize‘>{‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘p6¬7Ž¡’óáðÉhistory‘‘$‰c4ÕÂŽ–fætotal‘‘$‰c4ÕÂŽ“bytes‘ü‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘-Õ¬5Ž¡’óáðÉhistory‘‘$‰c4ÕÂŽ–fætruncate‘‘$‰c4ÕÂŽ“file^ô‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¯¬6ޤÛn’óáðëHMŽ©’óáðÉmax‘‘$‰c4ÕÂŽ–fæinput‘‘$‰c4ÕÂŽ“history‘#ê‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘@Q¬7Ž¡’óáðëHNަ’óáðÉnext‘‘$‰c4ÕÂŽ‘fæhistoryj‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘œJ¬5Ž¡’óáðëHPަ’óáðÉprevious‘‘$‰c4ÕÂŽ‘fæhistory‘>{‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘p6¬5Ž¡’óáðëHRަ’óáðÉread‘‘$‰c4ÕÂŽ‘fæhistoryj‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘œJ¬6ޤ ’óáðÉread‘‘$‰c4ÕÂŽ–fæhistory‘‘$‰c4ÕÂŽ“range‘J­‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘|h¬6Ž¡’óáðÉremove‘‘$‰c4ÕÂŽ‘fæhistory‘Û¡‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ \¬4Ž¡’óáðÉreplace‘‘$‰c4ÕÂŽ–fæhistory‘‘$‰c4ÕÂŽ“entry^ô‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¯¬4ޤÛn’óáðëHSަ’óáðÉstifle‘‘$‰c4ÕÂŽ‘fæhistory‘Û¡‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ \¬4Ž¡’óáðëHUަ’óáðÉunstifle‘‘$‰c4ÕÂŽ‘fæhistory‘>{‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘p6¬4ŽŸ ’óáðÉusing‘‘$‰c4ÕÂŽ‘fæhistoryü‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘M·¬4Ž¡’óáðëHWަ’óáðÉwhere‘‘$‰c4ÕÂŽ‘fæhistoryü‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘M·¬5ŽŸ ’óáðÉwrite‘‘$‰c4ÕÂŽ‘fæhistoryü‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘M·¬6ŽŽŽŽŸŒ‹v»Ÿò‘GÝ14’?-WGNU–¦fHistory“LibraryŽŽŽ ƒ3ÚŸŒ‹ÿÿÿÿ¤òŸò’À¥TÝiŽŽŽ ƒ3Ú ý¨ðБGêT‘þaGable–z³of“Con–ÿuÂten“tsŽŽŸ)33‘GëH1‘32Using–ffHistory“In•ŒÌteractiv“ely‘%‘32óIF C–ff cmbxti10ëI.Ž–…‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž‘ ð›ëH1Ž©ÿ‘6GÝ1.1‘ ó5History‘¦fExpansion*•‘é˜ó5ý': *************** *** 47,51 **** ]Ý6Ž¡‘6G2.4‘ ó5History‘¦fV‘ÿeariables‘†{‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ [«Ý7Ž¡‘6G2.5‘ ! ó5History–¦fProgramming“Example‘Åh‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ š™Ý8ŽŸ33‘GëHApps3endix–ffA‘32Concept“Index‘q†‘32ëI.Ž–…‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž‘\ûëH11ŽŸ ÿ‘GApps3endix–ffB‘32F›þ¦function“and“V˜ariable“Index‘fò‘32ëI.Ž–…‘32.Ž“‘32.Ž“‘32.Ž‘RhëH13ŽŽŸŒ‹ÿÿÿþrBŸò‘GÝii’D 5GNU–¦fHistory“LibraryŽŽŽ ƒ3ÚŸŒø‡?ƒ’À;è›3ÚïÿóZÂÖN ¼j cmbx12óQÂÖN  #× cmbx12óIF C–ff cmbxti10óHÂÖN ff cmbx12ó?ÂÖN G® cmbx12ó=ßê ! GNU History Library --- 1,6 ---- ! GNU History Library *************** *** 8,24 ****

GNU History Library

!

Edition 2.1, for History Library Version 2.1.

!

March 1996

Brian Fox, Free Software Foundation
Chet Ramey, Case Western Reserve University


! !

! @dircategory Libraries ! @direntry ! * History: (history). The GNU history library API ! !

--- 8,49 ----

GNU History Library

!

Edition 4.0, for History Library Version 4.0.

!

December 1998

Brian Fox, Free Software Foundation
Chet Ramey, Case Western Reserve University


!

Table of Contents

! !


*************** *** 51,59 **** 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.

! Copyright (C) 1989, 1991 Free Software Foundation, Inc.

--- 76,84 ---- into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved ! by the Free Software Foundation.

! Copyright (C) 1988-1999 Free Software Foundation, Inc.

*************** *** 61,65 **** !

Using History Interactively

--- 86,90 ---- !

Using History Interactively

*************** *** 71,77 ****

!

History Expansion

--- 96,106 ----

+ + !

History Expansion

*************** *** 96,101 **** 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 --- 125,130 ---- 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 *************** *** 107,112 **** !

Event Designators

--- 136,148 ---- +

! ! !

Event Designators

*************** *** 162,166 **** !

Word Designators

--- 198,202 ---- !

Word Designators

*************** *** 222,226 **** !

Modifiers

--- 258,262 ---- !

Modifiers

*************** *** 276,280 **** !

Programming with GNU History

--- 312,316 ---- !

Programming with GNU History

*************** *** 286,292 ****

!

Introduction to History

--- 322,336 ----

+ + !

Introduction to History

*************** *** 302,306 **** 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. --- 346,350 ---- 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. *************** *** 323,327 **** !

History Storage

--- 367,371 ---- !

History Storage

*************** *** 370,374 **** !

History Functions

--- 414,418 ---- !

History Functions

*************** *** 378,384 ****

!

Initializing History and State Management

--- 422,446 ----

+ ! !

Initializing History and State Management

*************** *** 415,419 **** !

History List Management

--- 477,481 ---- !

History List Management

*************** *** 487,491 **** !

Information About the History List

--- 549,553 ---- !

Information About the History List

*************** *** 544,548 **** !

Moving Around the History List

--- 606,610 ---- !

Moving Around the History List

*************** *** 582,586 **** !

Searching the History List

--- 644,648 ---- !

Searching the History List

*************** *** 590,594 **** 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. --- 652,656 ---- 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. *************** *** 635,639 **** !

Managing the History File

--- 697,701 ---- !

Managing the History File

*************** *** 695,699 **** !

History Expansion

--- 757,761 ---- !

History Expansion

*************** *** 767,771 **** !

History Variables

--- 829,833 ---- !

History Variables

*************** *** 873,877 **** !

History Programming Example

--- 935,939 ---- !

History Programming Example

*************** *** 965,979 **** !

Concept Index

!

a

  • anchored search
  • !

    e

  • event designators
  • !

    h

  • history events --- 1027,1048 ---- !

    Concept Index

    !

    ! Jump to: ! a ! - ! e ! - ! h

    !

    a

  • anchored search
  • !

    e

  • event designators
  • !

    h

  • history events *************** *** 985,1005 **** !

    Function and Variable Index

    !

    a

  • add_history
  • append_history
  • !

    c

  • clear_history
  • current_history
  • !

    g

  • get_history_event
  • !

    h

  • history_arg_extract --- 1054,1097 ---- !

    Function and Variable Index

    !

    ! Jump to: ! a ! - ! c ! - ! g ! - ! h ! - ! m ! - ! n ! - ! p ! - ! r ! - ! s ! - ! u ! - ! w

    !

    a

  • add_history
  • append_history
  • !

    c

  • clear_history
  • current_history
  • !

    g

  • get_history_event
  • !

    h

  • history_arg_extract *************** *** 1027,1043 ****
  • history_truncate_file
  • !

    m

  • max_input_history
  • !

    n

  • next_history
  • !

    p

  • previous_history
  • !

    r

  • read_history --- 1119,1135 ----
  • history_truncate_file
  • !

    m

  • max_input_history
  • !

    n

  • next_history
  • !

    p

  • previous_history
  • !

    r

  • read_history *************** *** 1046,1059 ****
  • replace_history_entry
  • !

    s

  • stifle_history
  • !

    u

  • unstifle_history
  • using_history
  • !

    w

  • where_history --- 1138,1151 ----
  • replace_history_entry
  • !

    s

  • stifle_history
  • !

    u

  • unstifle_history
  • using_history
  • !

    w

  • where_history *************** *** 1063,1069 ****


    ! This document was generated on 2 April 1998 using the ! texi2html ! translator version 1.51.

    --- 1155,1161 ----


    ! This document was generated on 31 December 1998 using the ! texi2html ! translator version 1.52.

    diff -aNrc2 readline-2.2.1/doc/history.info readline-4.0/doc/history.info *** readline-2.2.1/doc/history.info Thu Apr 2 14:44:10 1998 --- readline-4.0/doc/history.info Thu Dec 31 12:08:33 1998 *************** *** 1,4 **** This is Info file history.info, produced by Makeinfo version 1.67 from ! the input file /usr/homes/chet/src/bash/readline-2.2/doc/hist.texinfo. INFO-DIR-SECTION Libraries --- 1,4 ---- This is Info file history.info, produced by Makeinfo version 1.67 from ! the input file /usr/homes/chet/src/bash/readline-src/doc/hist.texinfo. INFO-DIR-SECTION Libraries *************** *** 11,16 **** previously typed input. ! Copyright (C) 1988, 1991, 1993, 1995, 1996 Free Software Foundation, ! Inc. Permission is granted to make and distribute verbatim copies of this --- 11,15 ---- previously typed input. ! Copyright (C) 1988-1999 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this *************** *** 26,30 **** 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.  --- 25,29 ---- 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 Free Software Foundation.  *************** *** 765,789 ****  Tag Table: ! Node: Top1167 ! Node: Using History Interactively1747 ! Node: History Interaction2255 ! Node: Event Designators3674 ! Node: Word Designators4601 ! Node: Modifiers5850 ! Node: Programming with GNU History6988 ! Node: Introduction to History7714 ! Node: History Storage9035 ! Node: History Functions10128 ! Node: Initializing History and State Management11099 ! Node: History List Management11891 ! Node: Information About the History List13412 ! Node: Moving Around the History List14718 ! Node: Searching the History List15603 ! Node: Managing the History File17435 ! Node: History Expansion18941 ! Node: History Variables20785 ! Node: History Programming Example23103 ! Node: Concept Index25707 ! Node: Function and Variable Index26193  End Tag Table --- 764,788 ----  Tag Table: ! Node: Top1162 ! Node: Using History Interactively1742 ! Node: History Interaction2250 ! Node: Event Designators3669 ! Node: Word Designators4596 ! Node: Modifiers5845 ! Node: Programming with GNU History6983 ! Node: Introduction to History7709 ! Node: History Storage9030 ! Node: History Functions10123 ! Node: Initializing History and State Management11094 ! Node: History List Management11886 ! Node: Information About the History List13407 ! Node: Moving Around the History List14713 ! Node: Searching the History List15598 ! Node: Managing the History File17430 ! Node: History Expansion18936 ! Node: History Variables20780 ! Node: History Programming Example23098 ! Node: Concept Index25702 ! Node: Function and Variable Index26188  End Tag Table diff -aNrc2 readline-2.2.1/doc/history.ps readline-4.0/doc/history.ps *** readline-2.2.1/doc/history.ps Thu Apr 2 14:45:33 1998 --- readline-4.0/doc/history.ps Thu Dec 31 12:09:10 1998 *************** *** 9,13 **** %DVIPSCommandLine: dvips -D 300 -o history.ps history.dvi %DVIPSParameters: dpi=300, comments removed ! %DVIPSSource: TeX output 1998.04.02:1444 %%BeginProcSet: tex.pro /TeXDict 250 dict def TeXDict begin /N{def}def /B{bind def}N /S{exch}N --- 9,13 ---- %DVIPSCommandLine: dvips -D 300 -o history.ps history.dvi %DVIPSParameters: dpi=300, comments removed ! %DVIPSSource: TeX output 1998.12.31:1208 %%BeginProcSet: tex.pro /TeXDict 250 dict def TeXDict begin /N{def}def /B{bind def}N /S{exch}N *************** *** 61,89 **** @start /Fa 1 47 df<70F8F8F0E005057B840E>46 D E /Fb 1 47 df<0E003F007F807F80FF80FF80FF007E003C000909798815>46 ! D E /Fc 11 121 df<00800100020004000C000800180030003000300060006000600060 ! 00E000E000E000E000E000E000E000E000E000E000600060006000600030003000300018 ! 0008000C00040002000100008009267D9B0F>40 D<8000400020001000180008000C0006 ! 000600060003000300030003000380038003800380038003800380038003800380030003 ! 00030003000600060006000C0008001800100020004000800009267E9B0F>I73 D<003F0000070000070000070000070000 ! 070000070000070000070000070003E7000C1700180F00300700700700E00700E00700E0 ! 0700E00700E00700E00700600700700700380F001C370007C7E0131A7F9915>100 ! D<07C01C3030187018600CE00CFFFCE000E000E000E0006000700438081C1807E00E107F ! 8F11>I<183C3C18000000000000FC1C1C1C1C1C1C1C1C1C1C1C1C1C1CFF081A80990A> ! 105 D110 D<07E01C38300C700E6006E007 ! E007E007E007E007E0076006700E381C1C3807E010107F8F13>I<1F2060E04020C020C0 ! 20F0007F003FC01FE000F080708030C030C020F0408F800C107F8F0F>115 ! D<0800080008000800180018003800FFC038003800380038003800380038003800382038 ! 203820382018201C4007800B177F960F>I ! 120 D E /Fd 2 42 df<00E001C00380078007000F001E001E001C003C003C0038007800 ! 780078007000F000F000F000F000F000F000F000F000F000F000F000F000F000F0007000 ! 78007800780038003C003C001C001E001E000F0007000780038001C000E00B2E7CA112> ! 40 DI ! E /Fe 27 123 df<0007F800007FFC0001FC0E0003F01F0007E03F000FC03F000FC03F00 0FC03F000FC01E000FC00C000FC000000FC000000FC0FF80FFFFFF80FFFFFF800FC01F80 0FC01F800FC01F800FC01F800FC01F800FC01F800FC01F800FC01F800FC01F800FC01F80 --- 61,153 ---- @start /Fa 1 47 df<70F8F8F0E005057B840E>46 D E /Fb 1 47 df<0E003F007F807F80FF80FF80FF007E003C000909798815>46 ! D E /Fc 26 123 df95 D<1FC0007FF00070780020180000 ! 1C00001C0007FC001FFC003C1C00701C00E01C00E01C00E01C00707C003FFF800F8F8011 ! 107E8F14>97 DI<03F80FFE1C0E380470006000E000E000E000E0006000700038 ! 0E1C1E0FFC03F00F107E8F14>I<007E00007E00000E00000E00000E00000E00000E0007 ! CE000FFE001C3E00301E00700E00E00E00E00E00E00E00E00E00E00E00E00E00700E0030 ! 1E00383E001FEFC007CFC012177F9614>I<07E00FF01C38301C700CE00EE00EFFFEFFFE ! E00060007000380E1C1E0FFC03F00F107E8F14>I<00FC01FE038E07040700070007007F ! FEFFFE070007000700070007000700070007000700070007000700FFF8FFF80F177F9614 ! >I<07CF001FFF80383B80301800701C00701C00701C003018003838003FF00037C00070 ! 00007000003FF8001FFC003FFE00700F00E00380E00380E00380E003807007003C1E001F ! FC0007F00011197F8F14>II<06000F000F0006000000000000000000FF00FF00 ! 070007000700070007000700070007000700070007000700FFF8FFF80D187C9714>I107 DIII<07C01FF03C78701C701CE00E ! E00EE00EE00EE00EE00E701C783C3C781FF007C00F107E8F14>II<03E7 ! 000FF7001C1F00300F00700F00E00700E00700E00700E00700E00700E00700700F00300F ! 001C3F000FF70007C700000700000700000700000700000700000700003FE0003FE01318 ! 7F8F14>II<0FD83FF86038C038C038F000 ! 7F803FF007F8001C6006E006F006F81CFFF8CFE00F107E8F14>I<06000E000E000E000E ! 007FFCFFFC0E000E000E000E000E000E000E000E000E0E0E0E0E0E0E1C07F801F00F157F ! 9414>IIII<7E3F007E3F001E3C000E78 ! 0007700007E00003E00001C00003C00003E0000770000E78000E38001C1C00FE3F80FE3F ! 8011107F8F14>II<3FFF7FFF700E701C7038007000E001C0038007000E ! 001C0738077007FFFFFFFF10107F8F14>I E /Fd 1 47 df<7070F06004047D830B>46 ! D E /Fe 24 122 df<03000700FF00070007000700070007000700070007000700070007 ! 000700070007000700070007000700070007007FF80D187D9713>49 ! D<001800180038007800F800B8013802380238043808381838103820384038C038FFFF00 ! 380038003800380038003803FF10187F9713>52 D<30183FF03FE03F8020002000200020 ! 0020002FC03060203000380018001C001C401CE01CE01C80184038403030E00F800E187E ! 9713>I<01F807040C06180E300E300070006000E000E3E0E418E80CF00EE006E007E007 ! E007600760077006300E180C0C3807E010187F9713>I<40007FFF7FFE7FFE4004800880 ! 108010002000400040008001800100030003000700060006000E000E000E000E000E0004 ! 0010197E9813>I<07E01818300C2006600660067006780C3E181F3007C003E00CF8307C ! 601E600FC007C003C003C00360022004181807E010187F9713>I72 ! D<0FC21836200E6006C006C002C002C002E00070007E003FE01FF803FC007E000E000700 ! 03800380038003C002C006E004D81887E0101A7E9915>83 D<1FC000387000383800101C ! 00001C00001C0003FC001E1C00381C00701C00E01C00E01C80E01C80E03C80705F801F8F ! 0011107F8F13>97 D<07F81C1C381C70087000E000E000E000E000E000E0007000700438 ! 081C1807E00E107F8F11>99 D<003F000007000007000007000007000007000007000007 ! 0000070000070003E7000C1700180F00300700700700E00700E00700E00700E00700E007 ! 00E00700600700700700380F001C370007C7E0131A7F9915>I<07C01C3030187018600C ! E00CFFFCE000E000E000E0006000700438081C1807E00E107F8F11>I<0FCF0018718030 ! 30007038007038007038007038003030001860002FC0006000006000007000003FF0003F ! FC001FFE00600F00C00300C00300C00300C00300600600381C0007E00011187F8F13> ! 103 DI<183C3C18000000000000FC1C1C1C1C1C1C1C1C1C ! 1C1C1C1C1CFF081A80990A>I110 ! D<07E01C38300C700E6006E007E007E007E007E007E0076006700E381C1C3807E010107F ! 8F13>II114 D<1F2060E04020C020C020F0007F003FC01FE000F0807080 ! 30C030C020F0408F800C107F8F0F>I<0800080008000800180018003800FFC038003800 ! 380038003800380038003800382038203820382018201C4007800B177F960F>I118 D ! 120 DI E /Ff 2 42 df<00E001C00380078007000F001E001E001C003C003C00 ! 38007800780078007000F000F000F000F000F000F000F000F000F000F000F000F000F000 ! F000700078007800780038003C003C001C001E001E000F0007000780038001C000E00B2E ! 7CA112>40 DI ! E /Fg 27 123 df<0007F800007FFC0001FC0E0003F01F0007E03F000FC03F000FC03F00 0FC03F000FC01E000FC00C000FC000000FC000000FC0FF80FFFFFF80FFFFFF800FC01F80 0FC01F800FC01F800FC01F800FC01F800FC01F800FC01F800FC01F800FC01F800FC01F80 *************** *** 168,172 **** C0601FC0E01F80C03F00C07F00C07E0000FC0001FC0003F80003F03007E0300FE0300FC0 701F80703F80603F00E07E03E0FFFFE0FFFFE014167E9519>I E ! /Ff 24 119 df<00E00000E00000E00000E00000E000F0E1E0FCE7E07EEFC01FFF0007FC 0001F00007FC001FFF007EEFC0FCE7E0F0E1E000E00000E00000E00000E00000E0001315 7D991A>42 D<003800007C00007C00006C0000EE0000EE0000EE0000C60000C60001C700 --- 232,236 ---- C0601FC0E01F80C03F00C07F00C07E0000FC0001FC0003F80003F03007E0300FE0300FC0 701F80703F80603F00E07E03E0FFFFE0FFFFE014167E9519>I E ! /Fh 24 119 df<00E00000E00000E00000E00000E000F0E1E0FCE7E07EEFC01FFF0007FC 0001F00007FC001FFF007EEFC0FCE7E0F0E1E000E00000E00000E00000E00000E0001315 7D991A>42 D<003800007C00007C00006C0000EE0000EE0000EE0000C60000C60001C700 *************** *** 225,229 **** E00F03E007FFFE03FFFE00FCFE17157F941A>I<7FC7FCFFC7FE7FC7FC0E00E00E00E00E 00E00701C00701C00701C003838003838003838001C70001C70001C70000EE0000EE0000 ! EE00007C00007C0000380017157F941A>I E /Fg 41 123 df<0007FC00003FFF0000FE 078003F007C007E00FC007E00FC00FC00FC00FC00FC00FC00FC00FC003000FC000000FC0 00000FC000000FC07FE0FFFFFFE0FFFFFFE00FC007E00FC007E00FC007E00FC007E00FC0 --- 289,293 ---- E00F03E007FFFE03FFFE00FCFE17157F941A>I<7FC7FCFFC7FE7FC7FC0E00E00E00E00E 00E00701C00701C00701C003838003838003838001C70001C70001C70000EE0000EE0000 ! EE00007C00007C0000380017157F941A>I E /Fi 41 123 df<0007FC00003FFF0000FE 078003F007C007E00FC007E00FC00FC00FC00FC00FC00FC00FC00FC003000FC000000FC0 00000FC000000FC07FE0FFFFFFE0FFFFFFE00FC007E00FC007E00FC007E00FC007E00FC0 *************** *** 382,386 **** 0FC0E01F80C03F80C03F00C07E0000FE0000FC0001F80003F80C03F00C07E00C0FE00C0F C01C1F80183F80387F00787E01F8FFFFF8FFFFF816187E971B>I ! E /Fh 30 122 df<0003F07C001E0DC600380F0F00701E0F00E01E0E00E00C0001C01C00 01C01C0001C01C0001C01C0001C01C00038038007FFFFFC0038038000380380003803800 038038000700700007007000070070000700700007007000070070000E00E0000E00E000 --- 446,450 ---- 0FC0E01F80C03F80C03F00C07E0000FE0000FC0001F80003F80C03F00C07E00C0FE00C0F C01C1F80183F80387F00787E01F8FFFFF8FFFFF816187E971B>I ! E /Fj 30 122 df<0003F07C001E0DC600380F0F00701E0F00E01E0E00E00C0001C01C00 01C01C0001C01C0001C01C0001C01C00038038007FFFFFC0038038000380380003803800 038038000700700007007000070070000700700007007000070070000E00E0000E00E000 *************** *** 455,459 **** 40000070400000708000007080000071000000390000003A0000003E0000003C00000038 000000180000001000000010000000200000002000000040000070C00000F0800000F100 ! 0000E600000078000000191D809318>I E /Fi 36 122 df<0001C0000003C000000FC0 00007FC0001FFFC000FFFFC000FFBFC000E03FC000003FC000003FC000003FC000003FC0 00003FC000003FC000003FC000003FC000003FC000003FC000003FC000003FC000003FC0 --- 519,523 ---- 40000070400000708000007080000071000000390000003A0000003E0000003C00000038 000000180000001000000010000000200000002000000040000070C00000F0800000F100 ! 0000E600000078000000191D809318>I E /Fk 36 122 df<0001C0000003C000000FC0 00007FC0001FFFC000FFFFC000FFBFC000E03FC000003FC000003FC000003FC000003FC0 00003FC000003FC000003FC000003FC000003FC000003FC000003FC000003FC000003FC0 *************** *** 698,702 **** 0000780000000070000000007000000000F000000000E000000001E000007C01C00000FE 03C00000FE03800000FE07000000FE0F000000FC1E000000787C0000003FF00000000FC0 ! 000000262E7E9F2B>I E /Fj 3 106 df<0000FF00000007FFE000001F00F8000078001E 0000E0000700018000018003000000C006000000600C000000300C000000301800000018 300000000C300000000C6000000006600000000660000000066000000006C000000003C0 --- 762,766 ---- 0000780000000070000000007000000000F000000000E000000001E000007C01C00000FE 03C00000FE03800000FE07000000FE0F000000FC1E000000787C0000003FF00000000FC0 ! 000000262E7E9F2B>I E /Fl 1 14 df<0000FF00000007FFE000001F00F8000078001E 0000E0000700018000018003000000C006000000600C000000300C000000301800000018 300000000C300000000C6000000006600000000660000000066000000006C000000003C0 *************** *** 704,955 **** 0000036000000006600000000660000000066000000006300000000C300000000C180000 00180C000000300C00000030060000006003000000C0018000018000E00007000078001E ! 00001F00F8000007FFE0000000FF0000282B7EA02D>13 D<0020006000C000C000C00180 ! 0180030003000300060006000C000C0018001800180030003000600060006000C000C000 ! 600060006000300030001800180018000C000C00060006000300030003000180018000C0 ! 00C000C0006000200B2E7CA112>104 DI E /Fk 44 122 df<3C007F00FF80FF80FFC0FFC0FFC07FC03EC000C0 ! 00C00180018001800300030006000E001C00380010000A157B8813>44 ! D<1C007F007F00FF80FF80FF807F007F001C0009097B8813>46 D<000E00001E00007E00 ! 07FE00FFFE00FFFE00F8FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE00 00FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE00 ! 00FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE00FFFFFEFFFFFEFFFFFE ! 17277BA622>49 D<00FF800007FFF0000FFFFC001E03FE003800FF807C003F80FE003FC0 ! FF001FC0FF001FE0FF000FE0FF000FE07E000FE03C001FE000001FE000001FC000001FC0 ! 00003F8000003F0000007E000000FC000000F8000001F0000003E00000078000000F0000 ! 001E0000003C00E0007000E000E000E001C001C0038001C0060001C00FFFFFC01FFFFFC0 ! 3FFFFFC07FFFFFC0FFFFFF80FFFFFF80FFFFFF801B277DA622>I<007F800003FFF00007 ! FFFC000F81FE001F007F003F807F003F803F803F803F803F803F801F803F801F003F8000 ! 007F0000007F0000007E000000FC000001F8000007F00000FFC00000FFC0000001F80000 ! 007E0000003F0000003F8000001FC000001FC000001FE000001FE03C001FE07E001FE0FF ! 001FE0FF001FE0FF001FC0FF003FC0FE003F807C007F003F01FE001FFFFC0007FFF00000 ! FF80001B277DA622>I<00000F0000000F0000001F0000003F0000007F000000FF000001 ! FF000001FF000003BF0000073F00000E3F00001C3F00003C3F0000383F0000703F0000E0 ! 3F0001C03F0003803F0007803F0007003F000E003F001C003F0038003F0070003F00F000 ! 3F00FFFFFFF8FFFFFFF8FFFFFFF800007F0000007F0000007F0000007F0000007F000000 ! 7F0000007F0000007F00001FFFF8001FFFF8001FFFF81D277EA622>I<180003001F801F ! 001FFFFE001FFFFC001FFFF8001FFFF0001FFFC0001FFF00001C0000001C0000001C0000 ! 001C0000001C0000001C0000001C0000001C7FC0001DFFF8001F80FC001E003F0008003F ! 0000001F8000001FC000001FC000001FE000001FE018001FE07C001FE0FE001FE0FE001F ! E0FE001FE0FE001FC0FC001FC078003F8078003F803C007F001F01FE000FFFFC0003FFF0 ! 0000FF80001B277DA622>I<00000780000000000780000000000FC0000000000FC00000 ! 00000FC0000000001FE0000000001FE0000000003FF0000000003FF0000000003FF00000 ! 000077F80000000077F800000000F7FC00000000E3FC00000000E3FC00000001C1FE0000 ! 0001C1FE00000003C1FF0000000380FF0000000380FF00000007007F80000007007F8000 ! 000F007FC000000E003FC000000E003FC000001C001FE000001C001FE000003FFFFFF000 ! 003FFFFFF000003FFFFFF00000700007F80000700007F80000F00007FC0000E00003FC00 ! 01E00003FE0001C00001FE0001C00001FE0003C00001FF00FFFE003FFFFCFFFE003FFFFC ! FFFE003FFFFC2E297EA833>65 DI<00007FE0030007FFFC07001FFFFF0F007FF00F9F00FF0001FF01 ! FC0000FF03F800007F07F000003F0FE000001F1FC000001F1FC000000F3F8000000F3F80 ! 0000077F800000077F800000077F00000000FF00000000FF00000000FF00000000FF0000 ! 0000FF00000000FF00000000FF00000000FF00000000FF000000007F000000007F800000 ! 007F800000073F800000073F800000071FC00000071FC000000E0FE000000E07F000001C ! 03F800003C01FC00007800FF0001F0007FF007C0001FFFFF800007FFFE0000007FF00028 ! 297CA831>I69 DI<00 ! 007FE003000007FFFC0700001FFFFF0F00007FF00F9F0000FF0001FF0001FC0000FF0003 ! F800007F0007F000003F000FE000001F001FC000001F001FC000000F003F8000000F003F ! 80000007007F80000007007F80000007007F0000000000FF0000000000FF0000000000FF ! 0000000000FF0000000000FF0000000000FF0000000000FF0000000000FF0000000000FF ! 0000FFFFF87F0000FFFFF87F8000FFFFF87F800000FF003F800000FF003F800000FF001F ! C00000FF001FC00000FF000FE00000FF0007F00000FF0003F80000FF0001FC0000FF0000 ! FF0001FF00007FF007FF00001FFFFF9F000007FFFE0F0000007FF003002D297CA835>I< ! FFFFF00FFFFFFFFFF00FFFFFFFFFF00FFFFF03FC00003FC003FC00003FC003FC00003FC0 ! 03FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC0 ! 03FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC0 ! 03FFFFFFFFC003FFFFFFFFC003FFFFFFFFC003FC00003FC003FC00003FC003FC00003FC0 ! 03FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC0 ! 03FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC003FC00003FC0 ! 03FC00003FC003FC00003FC0FFFFF00FFFFFFFFFF00FFFFFFFFFF00FFFFF30297EA835> ! II78 D80 D82 D<00FF806003FFF0E00FFFF8E0 ! 1F80FDE03F001FE03E0007E07C0003E07C0003E0FC0001E0FC0001E0FC0000E0FE0000E0 ! FE0000E0FF000000FFC000007FFC00007FFFE0003FFFF8001FFFFE001FFFFF0007FFFF80 ! 03FFFFC000FFFFC0000FFFE000007FE000001FF000000FF0000007F0E00003F0E00003F0 ! E00003F0E00003F0F00003E0F00003E0F80007E0FC0007C0FF000F80FFE03F80E3FFFE00 ! E1FFFC00C01FF0001C297CA825>I85 DII<03FF ! 80000FFFF0001F01FC003F80FE003F807F003F803F003F803F801F003F8000003F800000 ! 3F8000003F8000003F80003FFF8001FC3F800FE03F801F803F803F003F807E003F80FC00 ! 3F80FC003F80FC003F80FC003F80FC005F807E00DF803F839FFC1FFE0FFC03FC03FC1E1B ! 7E9A21>97 D ! I<003FF00001FFFC0003F03E000FC07F001F807F003F007F003F007F007F003E007E0000 ! 007E000000FE000000FE000000FE000000FE000000FE000000FE000000FE0000007E0000 ! 007E0000007F0000003F0003803F8003801F8007000FE00E0003F83C0001FFF800003FC0 ! 00191B7E9A1E>I<00007FF000007FF000007FF0000007F0000007F0000007F0000007F0 ! 000007F0000007F0000007F0000007F0000007F0000007F0000007F0000007F0003F87F0 ! 01FFF7F007F03FF00FC00FF01F8007F03F0007F03F0007F07E0007F07E0007F07E0007F0 ! FE0007F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F07E0007F0 ! 7E0007F03F0007F03F0007F01F800FF00FC01FF007E07FFF01FFE7FF007F87FF202A7EA9 ! 25>I<003FC00001FFF00003E07C000F803E001F801F001F001F003F000F807E000F807E ! 000FC07E000FC0FE0007C0FE0007C0FFFFFFC0FFFFFFC0FE000000FE000000FE0000007E ! 0000007E0000007F0000003F0001C01F0001C00F80038007C0070003F01E0000FFFC0000 ! 3FE0001A1B7E9A1F>I<0007F8003FFC007E3E01FC7F03F87F03F07F07F07F07F03E07F0 ! 0007F00007F00007F00007F00007F00007F000FFFFC0FFFFC0FFFFC007F00007F00007F0 ! 0007F00007F00007F00007F00007F00007F00007F00007F00007F00007F00007F00007F0 ! 0007F00007F00007F00007F00007F00007F0007FFF807FFF807FFF80182A7EA915>I<00 ! FF80F003FFE3F80FC1FE1C1F007C7C3F007E7C3E003E107E003F007E003F007E003F007E ! 003F007E003F007E003F003E003E003F007E001F007C000FC1F8000BFFE00018FF800018 ! 00000038000000380000003C0000003FFFF8003FFFFF001FFFFFC00FFFFFE007FFFFF01F ! FFFFF03C0007F07C0001F8F80000F8F80000F8F80000F8F80000F87C0001F07C0001F03F ! 0007E00FC01F8007FFFF00007FF0001E287E9A22>II<07000F801FC03FE03FE03FE01FC00F80070000 ! 00000000000000000000000000FFE0FFE0FFE00FE00FE00FE00FE00FE00FE00FE00FE00F ! E00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE0FFFEFFFEFFFE0F2B7EAA12 ! >I108 DII<003FE00001FFFC0003F07E000FC01F801F800FC03F0007E03F00 ! 07E07E0003F07E0003F07E0003F0FE0003F8FE0003F8FE0003F8FE0003F8FE0003F8FE00 ! 03F8FE0003F8FE0003F87E0003F07E0003F03F0007E03F0007E01F800FC00FC01F8007F0 ! 7F0001FFFC00003FE0001D1B7E9A22>II< ! FFC1F0FFC7FCFFC63E0FCC7F0FD87F0FD07F0FD07F0FF03E0FE0000FE0000FE0000FE000 ! 0FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE000 ! FFFF00FFFF00FFFF00181B7F9A1B>114 D<03FE300FFFF03E03F07800F07000F0F00070 ! F00070F80070FE0000FFE0007FFF007FFFC03FFFE01FFFF007FFF800FFF80007FC0000FC ! E0007CE0003CF0003CF00038F80038FC0070FF01E0E7FFC0C1FF00161B7E9A1B>I<00E0 ! 0000E00000E00000E00001E00001E00001E00003E00003E00007E0000FE0001FFFE0FFFF ! E0FFFFE00FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0 ! 000FE0000FE0000FE0700FE0700FE0700FE0700FE0700FE0700FE07007F0E003F0C001FF ! 80007F0014267FA51A>IIIIII E /Fl 75 127 df<70F8F8F8F8F8F8F8F8F8F8F8F8F8F8F8F870000000000070 ! F8F8F870051C779B18>33 D<4010E038F078E038E038E038E038E038E038E038E038E038 ! E03860300D0E7B9C18>I<030600078F00078F00078F00078F00078F00078F007FFFC0FF ! FFE0FFFFE07FFFC00F1E000F1E000F1E000F1E000F1E000F1E007FFFC0FFFFE0FFFFE07F ! FFC01E3C001E3C001E3C001E3C001E3C001E3C000C1800131C7E9B18>I<00C00001C000 ! 01C00001C00003F0000FFC003FFE007DCF0071C700E1C380E1C780E1C780E1C780F1C000 ! 79C0003FC0001FE0000FF80001FC0001DE0001CF0001C70061C380F1C380F1C380E1C380 ! E1C70071C70079DE003FFE001FF80007E00001C00001C00001C00000C00011247D9F18> ! I<3803007C07807C0780EE0F80EE0F00EE0F00EE1F00EE1E00EE1E00EE3E007C3C007C3C ! 00387C0000780000780000F80000F00001F00001E00001E00003E00003C00003C00007C0 ! 000783800787C00F87C00F0EE00F0EE01F0EE01E0EE01E0EE03E0EE03C07C03C07C01803 ! 8013247E9F18>I<01C00007E0000FF0000E70001C38001C38001C38001C38001C73F81C ! F3F81CE3F80FC1C00FC3800F83800F03801F07003F87007B8E0071CE00E1FC00E0FC00E0 ! 7C00E07870E0787070FE707FFFE03FC7E00F03C0151C7F9B18>I<387C7C7E3E0E0E0E1C ! 1C38F8F0C0070E789B18>I<007000F001E003C007800F001E001C003800380070007000 ! 70007000E000E000E000E000E000E000E000E0007000700070007000380038001C001E00 ! 0F00078003C001F000F000700C24799F18>I<6000F00078003C001E000F000780038001 ! C001C000E000E000E000E00070007000700070007000700070007000E000E000E000E001 ! C001C0038007800F001E003C007800F00060000C247C9F18>I<01C00001C00001C00001 ! C00041C100F1C780FDDF807FFF001FFC0007F00007F0001FFC007FFF00FDDF80F1C78041 ! C10001C00001C00001C00001C00011147D9718>I<00600000F00000F00000F00000F000 ! 00F00000F00000F0007FFFC0FFFFE0FFFFE07FFFC000F00000F00000F00000F00000F000 ! 00F00000F00000600013147E9718>I<1C3E7E7F3F1F070E1E7CF860080C788518>I<7FFF ! C0FFFFE0FFFFE07FFFC013047E8F18>I<3078FCFC78300606778518>I<00030000078000 ! 0780000F80000F00001F00001E00001E00003E00003C00007C0000780000780000F80000 ! F00001F00001E00003E00003C00003C00007C0000780000F80000F00000F00001F00001E ! 00003E00003C00003C00007C0000780000F80000F00000F0000060000011247D9F18>I< ! 01F00007FC000FFE001F1F001C07003803807803C07001C07001C0E000E0E000E0E000E0 ! E000E0E000E0E000E0E000E0E000E0E000E0F001E07001C07001C07803C03803801C0700 ! 1F1F000FFE0007FC0001F000131C7E9B18>I<01800380038007800F803F80FF80FB8043 ! 8003800380038003800380038003800380038003800380038003800380038003807FFCFF ! FE7FFC0F1C7B9B18>I<03F0000FFE003FFF007C0F807003C0E001C0F000E0F000E06000 ! E00000E00000E00001C00001C00003C0000780000F00001E00003C0000780000F00001E0 ! 0007C0000F80001E00E03C00E07FFFE0FFFFE07FFFE0131C7E9B18>I<001F00003F0000 ! 770000770000E70001E70001C7000387000787000707000E07001E07003C070038070078 ! 0700F00700FFFFF8FFFFF8FFFFF8000700000700000700000700000700000700007FF000 ! 7FF0007FF0151C7F9B18>52 D<007E0001FF0007FF800F83C01E03C01C03C03801803800 ! 00700000700000E1F800E7FE00FFFF00FE0780F803C0F001C0F000E0E000E0F000E07000 ! E07000E07000E03801C03C03C01E07800FFF0007FE0001F800131C7E9B18>54 D<3078FCFC783000000000000000003078FCFC78300614779318>58 D<183C7E7E3C180000000000000000183C7E7E3E1E0E1C3C78F060071A789318>I<0000 --- 768,1023 ---- 0000036000000006600000000660000000066000000006300000000C300000000C180000 00180C000000300C00000030060000006003000000C0018000018000E00007000078001E ! 00001F00F8000007FFE0000000FF0000282B7EA02D>13 D E /Fm ! 45 122 df<3C007F00FF80FF80FFC0FFC0FFC07FC03EC000C000C0018001800180030003 ! 0006000E001C00380010000A157B8813>44 D<1C007F007F00FF80FF80FF807F007F001C ! 0009097B8813>46 D<000E00001E00007E0007FE00FFFE00FFFE00F8FE0000FE0000FE00 00FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE00 ! 00FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE00 ! 00FE0000FE0000FE00FFFFFEFFFFFEFFFFFE17277BA622>49 D<00FF800007FFF0000FFF ! FC001E03FE003800FF807C003F80FE003FC0FF001FC0FF001FE0FF000FE0FF000FE07E00 ! 0FE03C001FE000001FE000001FC000001FC000003F8000003F0000007E000000FC000000 ! F8000001F0000003E00000078000000F0000001E0000003C00E0007000E000E000E001C0 ! 01C0038001C0060001C00FFFFFC01FFFFFC03FFFFFC07FFFFFC0FFFFFF80FFFFFF80FFFF ! FF801B277DA622>I<007F800003FFF00007FFFC000F81FE001F007F003F807F003F803F ! 803F803F803F803F801F803F801F003F8000007F0000007F0000007E000000FC000001F8 ! 000007F00000FFC00000FFC0000001F80000007E0000003F0000003F8000001FC000001F ! C000001FE000001FE03C001FE07E001FE0FF001FE0FF001FE0FF001FC0FF003FC0FE003F ! 807C007F003F01FE001FFFFC0007FFF00000FF80001B277DA622>I<00000F0000000F00 ! 00001F0000003F0000007F000000FF000001FF000001FF000003BF0000073F00000E3F00 ! 001C3F00003C3F0000383F0000703F0000E03F0001C03F0003803F0007803F0007003F00 ! 0E003F001C003F0038003F0070003F00F0003F00FFFFFFF8FFFFFFF8FFFFFFF800007F00 ! 00007F0000007F0000007F0000007F0000007F0000007F0000007F00001FFFF8001FFFF8 ! 001FFFF81D277EA622>I<180003001F801F001FFFFE001FFFFC001FFFF8001FFFF0001F ! FFC0001FFF00001C0000001C0000001C0000001C0000001C0000001C0000001C0000001C ! 7FC0001DFFF8001F80FC001E003F0008003F0000001F8000001FC000001FC000001FE000 ! 001FE018001FE07C001FE0FE001FE0FE001FE0FE001FE0FE001FC0FC001FC078003F8078 ! 003F803C007F001F01FE000FFFFC0003FFF00000FF80001B277DA622>I<000007800000 ! 00000780000000000FC0000000000FC0000000000FC0000000001FE0000000001FE00000 ! 00003FF0000000003FF0000000003FF00000000077F80000000077F800000000F7FC0000 ! 0000E3FC00000000E3FC00000001C1FE00000001C1FE00000003C1FF0000000380FF0000 ! 000380FF00000007007F80000007007F8000000F007FC000000E003FC000000E003FC000 ! 001C001FE000001C001FE000003FFFFFF000003FFFFFF000003FFFFFF00000700007F800 ! 00700007F80000F00007FC0000E00003FC0001E00003FE0001C00001FE0001C00001FE00 ! 03C00001FF00FFFE003FFFFCFFFE003FFFFCFFFE003FFFFC2E297EA833>65 ! DI<00007F ! E0030007FFFC07001FFFFF0F007FF00F9F00FF0001FF01FC0000FF03F800007F07F00000 ! 3F0FE000001F1FC000001F1FC000000F3F8000000F3F800000077F800000077F80000007 ! 7F00000000FF00000000FF00000000FF00000000FF00000000FF00000000FF00000000FF ! 00000000FF00000000FF000000007F000000007F800000007F800000073F800000073F80 ! 0000071FC00000071FC000000E0FE000000E07F000001C03F800003C01FC00007800FF00 ! 01F0007FF007C0001FFFFF800007FFFE0000007FF00028297CA831>I69 DI<00007FE003000007FFFC0700001F ! FFFF0F00007FF00F9F0000FF0001FF0001FC0000FF0003F800007F0007F000003F000FE0 ! 00001F001FC000001F001FC000000F003F8000000F003F80000007007F80000007007F80 ! 000007007F0000000000FF0000000000FF0000000000FF0000000000FF0000000000FF00 ! 00000000FF0000000000FF0000000000FF0000000000FF0000FFFFF87F0000FFFFF87F80 ! 00FFFFF87F800000FF003F800000FF003F800000FF001FC00000FF001FC00000FF000FE0 ! 0000FF0007F00000FF0003F80000FF0001FC0000FF0000FF0001FF00007FF007FF00001F ! FFFF9F000007FFFE0F0000007FF003002D297CA835>III77 DI80 D82 D<00FF806003FFF0E00FFFF8E01F80 ! FDE03F001FE03E0007E07C0003E07C0003E0FC0001E0FC0001E0FC0000E0FE0000E0FE00 ! 00E0FF000000FFC000007FFC00007FFFE0003FFFF8001FFFFE001FFFFF0007FFFF8003FF ! FFC000FFFFC0000FFFE000007FE000001FF000000FF0000007F0E00003F0E00003F0E000 ! 03F0E00003F0F00003E0F00003E0F80007E0FC0007C0FF000F80FFE03F80E3FFFE00E1FF ! FC00C01FF0001C297CA825>I85 DII<03FF8000 ! 0FFFF0001F01FC003F80FE003F807F003F803F003F803F801F003F8000003F8000003F80 ! 00003F8000003F80003FFF8001FC3F800FE03F801F803F803F003F807E003F80FC003F80 ! FC003F80FC003F80FC003F80FC005F807E00DF803F839FFC1FFE0FFC03FC03FC1E1B7E9A ! 21>97 DI<00 ! 3FF00001FFFC0003F03E000FC07F001F807F003F007F003F007F007F003E007E0000007E ! 000000FE000000FE000000FE000000FE000000FE000000FE000000FE0000007E0000007E ! 0000007F0000003F0003803F8003801F8007000FE00E0003F83C0001FFF800003FC00019 ! 1B7E9A1E>I<00007FF000007FF000007FF0000007F0000007F0000007F0000007F00000 ! 07F0000007F0000007F0000007F0000007F0000007F0000007F0000007F0003F87F001FF ! F7F007F03FF00FC00FF01F8007F03F0007F03F0007F07E0007F07E0007F07E0007F0FE00 ! 07F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F07E0007F07E00 ! 07F03F0007F03F0007F01F800FF00FC01FF007E07FFF01FFE7FF007F87FF202A7EA925> ! I<003FC00001FFF00003E07C000F803E001F801F001F001F003F000F807E000F807E000F ! C07E000FC0FE0007C0FE0007C0FFFFFFC0FFFFFFC0FE000000FE000000FE0000007E0000 ! 007E0000007F0000003F0001C01F0001C00F80038007C0070003F01E0000FFFC00003FE0 ! 001A1B7E9A1F>I<0007F8003FFC007E3E01FC7F03F87F03F07F07F07F07F03E07F00007 ! F00007F00007F00007F00007F00007F000FFFFC0FFFFC0FFFFC007F00007F00007F00007 ! F00007F00007F00007F00007F00007F00007F00007F00007F00007F00007F00007F00007 ! F00007F00007F00007F00007F00007F0007FFF807FFF807FFF80182A7EA915>I<00FF80 ! F003FFE3F80FC1FE1C1F007C7C3F007E7C3E003E107E003F007E003F007E003F007E003F ! 007E003F007E003F003E003E003F007E001F007C000FC1F8000BFFE00018FF8000180000 ! 0038000000380000003C0000003FFFF8003FFFFF001FFFFFC00FFFFFE007FFFFF01FFFFF ! F03C0007F07C0001F8F80000F8F80000F8F80000F8F80000F87C0001F07C0001F03F0007 ! E00FC01F8007FFFF00007FF0001E287E9A22>II<07000F801FC03FE03FE03FE01FC00F800700000000 ! 0000000000000000000000FFE0FFE0FFE00FE00FE00FE00FE00FE00FE00FE00FE00FE00F ! E00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE0FFFEFFFEFFFE0F2B7EAA12>I< ! FFE0FFE0FFE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE0 0FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE0 ! 0FE00FE00FE0FFFEFFFEFFFE0F2A7EA912>108 D ! II<003FE00001FFFC0003F07E000FC01F801F800FC03F0007E03F0007E0 ! 7E0003F07E0003F07E0003F0FE0003F8FE0003F8FE0003F8FE0003F8FE0003F8FE0003F8 ! FE0003F8FE0003F87E0003F07E0003F03F0007E03F0007E01F800FC00FC01F8007F07F00 ! 01FFFC00003FE0001D1B7E9A22>II114 D<03FE300FFFF03E03F07800F07000F0F00070F000 ! 70F80070FE0000FFE0007FFF007FFFC03FFFE01FFFF007FFF800FFF80007FC0000FCE000 ! 7CE0003CF0003CF00038F80038FC0070FF01E0E7FFC0C1FF00161B7E9A1B>I<00E00000 ! E00000E00000E00001E00001E00001E00003E00003E00007E0000FE0001FFFE0FFFFE0FF ! FFE00FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000F ! E0000FE0000FE0700FE0700FE0700FE0700FE0700FE0700FE07007F0E003F0C001FF8000 ! 7F0014267FA51A>IIIIII E /Fn 75 127 df<70F8F8F8F8F8F8F8F8F8F8F8F8F8F8F8F870000000000070F8F8 ! F870051C779B18>33 D<4010E038F078E038E038E038E038E038E038E038E038E038E038 ! 60300D0E7B9C18>I<030600078F00078F00078F00078F00078F00078F007FFFC0FFFFE0 ! FFFFE07FFFC00F1E000F1E000F1E000F1E000F1E000F1E007FFFC0FFFFE0FFFFE07FFFC0 ! 1E3C001E3C001E3C001E3C001E3C001E3C000C1800131C7E9B18>I<00C00001C00001C0 ! 0001C00003F0000FFC003FFE007DCF0071C700E1C380E1C780E1C780E1C780F1C00079C0 ! 003FC0001FE0000FF80001FC0001DE0001CF0001C70061C380F1C380F1C380E1C380E1C7 ! 0071C70079DE003FFE001FF80007E00001C00001C00001C00000C00011247D9F18>I<38 ! 03007C07807C0780EE0F80EE0F00EE0F00EE1F00EE1E00EE1E00EE3E007C3C007C3C0038 ! 7C0000780000780000F80000F00001F00001E00001E00003E00003C00003C00007C00007 ! 83800787C00F87C00F0EE00F0EE01F0EE01E0EE01E0EE03E0EE03C07C03C07C018038013 ! 247E9F18>I<01C00007E0000FF0000E70001C38001C38001C38001C38001C73F81CF3F8 ! 1CE3F80FC1C00FC3800F83800F03801F07003F87007B8E0071CE00E1FC00E0FC00E07C00 ! E07870E0787070FE707FFFE03FC7E00F03C0151C7F9B18>I<387C7C7E3E0E0E0E1C1C38 ! F8F0C0070E789B18>I<007000F001E003C007800F001E001C0038003800700070007000 ! 7000E000E000E000E000E000E000E000E0007000700070007000380038001C001E000F00 ! 078003C001F000F000700C24799F18>I<6000F00078003C001E000F000780038001C001 ! C000E000E000E000E00070007000700070007000700070007000E000E000E000E001C001 ! C0038007800F001E003C007800F00060000C247C9F18>I<01C00001C00001C00001C000 ! 41C100F1C780FDDF807FFF001FFC0007F00007F0001FFC007FFF00FDDF80F1C78041C100 ! 01C00001C00001C00001C00011147D9718>I<00600000F00000F00000F00000F00000F0 ! 0000F00000F0007FFFC0FFFFE0FFFFE07FFFC000F00000F00000F00000F00000F00000F0 ! 0000F00000600013147E9718>I<1C3E7E7F3F1F070E1E7CF860080C788518>I<7FFFC0FF ! FFE0FFFFE07FFFC013047E8F18>I<3078FCFC78300606778518>I<000300000780000780 ! 000F80000F00001F00001E00001E00003E00003C00007C0000780000780000F80000F000 ! 01F00001E00003E00003C00003C00007C0000780000F80000F00000F00001F00001E0000 ! 3E00003C00003C00007C0000780000F80000F00000F0000060000011247D9F18>I<01F0 ! 0007FC000FFE001F1F001C07003803807803C07001C07001C0E000E0E000E0E000E0E000 ! E0E000E0E000E0E000E0E000E0E000E0F001E07001C07001C07803C03803801C07001F1F ! 000FFE0007FC0001F000131C7E9B18>I<01800380038007800F803F80FF80FB80438003 ! 800380038003800380038003800380038003800380038003800380038003807FFCFFFE7F ! FC0F1C7B9B18>I<03F0000FFE003FFF007C0F807003C0E001C0F000E0F000E06000E000 ! 00E00000E00001C00001C00003C0000780000F00001E00003C0000780000F00001E00007 ! C0000F80001E00E03C00E07FFFE0FFFFE07FFFE0131C7E9B18>I<001F00003F00007700 ! 00770000E70001E70001C7000387000787000707000E07001E07003C0700380700780700 ! F00700FFFFF8FFFFF8FFFFF8000700000700000700000700000700000700007FF0007FF0 ! 007FF0151C7F9B18>52 D<007E0001FF0007FF800F83C01E03C01C03C038018038000070 ! 0000700000E1F800E7FE00FFFF00FE0780F803C0F001C0F000E0E000E0F000E07000E070 ! 00E07000E03801C03C03C01E07800FFF0007FE0001F800131C7E9B18>54 D<3078FCFC783000000000000000003078FCFC78300614779318>58 D<183C7E7E3C180000000000000000183C7E7E3E1E0E1C3C78F060071A789318>I<0000 *************** *** 1069,1073 **** 0000E00000F000007FC0003FE0003FE0007FC000F00000E00000E00000E00000E00000E0 0000E00000E00000E00000E00000E00000E00003C000FFC000FF00007C000013247E9F18 ! >I<060C1F1E3FBEFBF8F1F060C00F067C9B18>I E /Fm 74 123 df<001F83E000F06E3001C078780380F8780300F0300700700007007000070070000700 7000070070000700700007007000FFFFFF80070070000700700007007000070070000700 --- 1137,1141 ---- 0000E00000F000007FC0003FE0003FE0007FC000F00000E00000E00000E00000E00000E0 0000E00000E00000E00000E00000E00000E00003C000FFC000FF00007C000013247E9F18 ! >I<060C1F1E3FBEFBF8F1F060C00F067C9B18>I E /Fo 74 123 df<001F83E000F06E3001C078780380F8780300F0300700700007007000070070000700 7000070070000700700007007000FFFFFF80070070000700700007007000070070000700 *************** *** 1260,1264 **** 00002000002000004000004000004000F08000F08000F100006200003C0000151D7F9318 >I<7FFF700E600E401C40384078407000E001E001C00380078007010E011E011C033802 ! 7006700EFFFE10147F9314>I E /Fn 13 122 df<0000001FFC0000C000000003FFFFC0 01C00000001FFFFFF003C00000007FFFFFFC07C0000001FFFC00FE0FC0000007FFC0001F 9FC000000FFE000007FFC000003FF8000003FFC000007FF0000000FFC00000FFE0000000 --- 1328,1332 ---- 00002000002000004000004000004000F08000F08000F100006200003C0000151D7F9318 >I<7FFF700E600E401C40384078407000E001E001C00380078007010E011E011C033802 ! 7006700EFFFE10147F9314>I E /Fp 13 122 df<0000001FFC0000C000000003FFFFC0 01C00000001FFFFFF003C00000007FFFFFFC07C0000001FFFC00FE0FC0000007FFC0001F 9FC000000FFE000007FFC000003FF8000003FFC000007FF0000000FFC00000FFE0000000 *************** *** 1396,1408 **** %%EndSetup %%Page: 1 1 ! 1 0 bop 75 693 a Fn(GNU)33 b(History)f(Library)p 75 743 ! 1800 17 v 960 791 a Fm(Edition)16 b(2.1,)e(for)h Fl(History)f(Library)g ! Fm(V)l(ersion)i(2.1.)1643 845 y(Marc)o(h)e(1996)75 2467 ! y Fk(Brian)23 b(F)-6 b(o)n(x,)23 b(F)-6 b(ree)23 b(Soft)n(w)n(are)f(F) ! -6 b(oundation)75 2534 y(Chet)22 b(Ramey)-6 b(,)23 b(Case)e(W)-6 ! b(estern)23 b(Reserv)n(e)f(Univ)n(ersit)n(y)p 75 2570 ! 1800 9 v eop %%Page: 2 2 ! 2 1 bop 75 250 a Fm(This)21 b(do)q(cumen)o(t)g(describ)q(es)h(the)f (GNU)f(History)g(library)l(,)j(a)d(programming)g(to)q(ol)g(that)g(pro)o (vides)h(a)75 305 y(consisten)o(t)15 b(user)h(in)o(terface)f(for)g --- 1464,1476 ---- %%EndSetup %%Page: 1 1 ! 1 0 bop 75 693 a Fp(GNU)33 b(History)f(Library)p 75 743 ! 1800 17 v 960 791 a Fo(Edition)16 b(4.0,)e(for)h Fn(History)f(Library)g ! Fo(V)l(ersion)i(4.0.)1572 845 y(Decem)o(b)q(er)g(1998)75 ! 2467 y Fm(Brian)23 b(F)-6 b(o)n(x,)23 b(F)-6 b(ree)23 ! b(Soft)n(w)n(are)f(F)-6 b(oundation)75 2534 y(Chet)22 ! b(Ramey)-6 b(,)23 b(Case)e(W)-6 b(estern)23 b(Reserv)n(e)f(Univ)n ! (ersit)n(y)p 75 2570 1800 9 v eop %%Page: 2 2 ! 2 1 bop 75 250 a Fo(This)21 b(do)q(cumen)o(t)g(describ)q(es)h(the)f (GNU)f(History)g(library)l(,)j(a)d(programming)g(to)q(ol)g(that)g(pro)o (vides)h(a)75 305 y(consisten)o(t)15 b(user)h(in)o(terface)f(for)g *************** *** 1425,1448 **** (for)d(mo)q(di\014ed)j(v)o(ersions,)e(except)h(that)f(this)h(p)q (ermission)g(notice)75 958 y(ma)o(y)f(b)q(e)i(stated)f(in)h(a)f ! (translation)g(appro)o(v)o(ed)g(b)o(y)g(the)g(F)l(oundation.)75 ! 2661 y(Cop)o(yrigh)o(t)301 2660 y(c)289 2661 y Fj(\015)g ! Fm(1989,)f(1991)g(F)l(ree)h(Soft)o(w)o(are)f(F)l(oundation,)h(Inc.)p ! eop %%Page: 1 3 ! 1 2 bop 75 -58 a Fm(Chapter)15 b(1:)k(Using)d(History)f(In)o(teractiv)o ! (ely)1007 b(1)75 183 y Fi(1)41 b(Using)26 b(History)h(In)n(teractiv)n ! (ely)137 317 y Fm(This)16 b(c)o(hapter)f(describ)q(es)i(ho)o(w)d(to)h (use)g(the)g(GNU)g(History)g(Library)h(in)o(teractiv)o(ely)l(,)g(from)e (a)h(user's)75 372 y(standp)q(oin)o(t.)35 b(It)20 b(should)g(b)q(e)h (considered)h(a)d(user's)h(guide.)35 b(F)l(or)19 b(information)h(on)g ! (using)h(the)f(GNU)75 427 y(History)15 b(Library)h(in)g(y)o(our)f(o)o ! (wn)g(programs,)e(see)j Fj(h)p Fm(unde\014ned)p Fj(i)g ! Fm([Programming)e(with)i(GNU)f(History],)75 482 y(page)g ! Fj(h)p Fm(unde\014ned)p Fj(i)p Fm(.)75 625 y Fk(1.1)33 ! b(History)22 b(Expansion)137 727 y Fm(The)c(History)g(library)h(pro)o ! (vides)f(a)f(history)h(expansion)h(feature)e(that)h(is)g(similar)h(to)e ! (the)h(history)75 782 y(expansion)12 b(pro)o(vided)g(b)o(y)f ! Fl(csh)p Fm(.)18 b(This)11 b(section)h(describ)q(es)g(the)g(syn)o(tax)e ! (used)h(to)g(manipulate)h(the)f(history)75 836 y(information.)137 909 y(History)k(expansions)h(in)o(tro)q(duce)h(w)o(ords)d(from)g(the)i (history)f(list)h(in)o(to)f(the)h(input)g(stream,)e(making)75 --- 1493,1515 ---- (for)d(mo)q(di\014ed)j(v)o(ersions,)e(except)h(that)f(this)h(p)q (ermission)g(notice)75 958 y(ma)o(y)f(b)q(e)i(stated)f(in)h(a)f ! (translation)g(appro)o(v)o(ed)g(b)o(y)g(the)g(F)l(ree)h(Soft)o(w)o(are) ! d(F)l(oundation.)75 2661 y(Cop)o(yrigh)o(t)301 2660 y(c)289 ! 2661 y Fl(\015)i Fo(1988-1999)e(F)l(ree)i(Soft)o(w)o(are)f(F)l ! (oundation,)h(Inc.)p eop %%Page: 1 3 ! 1 2 bop 75 -58 a Fo(Chapter)15 b(1:)k(Using)d(History)f(In)o(teractiv)o ! (ely)1007 b(1)75 183 y Fk(1)41 b(Using)26 b(History)h(In)n(teractiv)n ! (ely)137 317 y Fo(This)16 b(c)o(hapter)f(describ)q(es)i(ho)o(w)d(to)h (use)g(the)g(GNU)g(History)g(Library)h(in)o(teractiv)o(ely)l(,)g(from)e (a)h(user's)75 372 y(standp)q(oin)o(t.)35 b(It)20 b(should)g(b)q(e)h (considered)h(a)d(user's)h(guide.)35 b(F)l(or)19 b(information)h(on)g ! (using)h(the)f(GNU)75 427 y(History)d(Library)h(in)h(y)o(our)e(o)o(wn)g ! (programs,)f(see)i(Chapter)f(2)h([Programming)e(with)i(GNU)f(History],) ! 75 482 y(page)e(3.)75 625 y Fm(1.1)33 b(History)22 b(Expansion)137 ! 727 y Fo(The)c(History)g(library)h(pro)o(vides)f(a)f(history)h ! (expansion)h(feature)e(that)h(is)g(similar)h(to)e(the)h(history)75 ! 782 y(expansion)12 b(pro)o(vided)g(b)o(y)f Fn(csh)p Fo(.)18 ! b(This)11 b(section)h(describ)q(es)g(the)g(syn)o(tax)e(used)h(to)g ! (manipulate)h(the)f(history)75 836 y(information.)137 909 y(History)k(expansions)h(in)o(tro)q(duce)h(w)o(ords)d(from)g(the)i (history)f(list)h(in)o(to)f(the)h(input)g(stream,)e(making)75 *************** *** 1456,1463 **** (select)i(p)q(ortions)e(of)75 1202 y(that)15 b(line)i(for)d(inclusion)k (in)o(to)d(the)h(curren)o(t)f(one.)20 b(The)c(line)g(selected)h(from)e ! (the)g(history)g(is)h(called)h(the)75 1256 y Fh(ev)o(en)o(t)p ! Fm(,)c(and)h(the)g(p)q(ortions)g(of)f(that)g(line)i(that)e(are)g(acted) ! h(up)q(on)g(are)f(called)j Fh(w)o(ords)p Fm(.)i(V)l(arious)c ! Fh(mo)q(di\014ers)75 1311 y Fm(are)i(a)o(v)m(ailable)i(to)e(manipulate) i(the)e(selected)i(w)o(ords.)23 b(The)17 b(line)h(is)f(brok)o(en)f(in)o (to)h(w)o(ords)e(in)j(the)e(same)75 1366 y(fashion)c(that)e(Bash)i(do)q --- 1523,1530 ---- (select)i(p)q(ortions)e(of)75 1202 y(that)15 b(line)i(for)d(inclusion)k (in)o(to)d(the)h(curren)o(t)f(one.)20 b(The)c(line)g(selected)h(from)e ! (the)g(history)g(is)h(called)h(the)75 1256 y Fj(ev)o(en)o(t)p ! Fo(,)c(and)h(the)g(p)q(ortions)g(of)f(that)g(line)i(that)e(are)g(acted) ! h(up)q(on)g(are)f(called)j Fj(w)o(ords)p Fo(.)i(V)l(arious)c ! Fj(mo)q(di\014ers)75 1311 y Fo(are)i(a)o(v)m(ailable)i(to)e(manipulate) i(the)e(selected)i(w)o(ords.)23 b(The)17 b(line)h(is)f(brok)o(en)f(in)o (to)h(w)o(ords)e(in)j(the)e(same)75 1366 y(fashion)c(that)e(Bash)i(do)q *************** *** 1466,1573 **** b(expansions)h(are)g(in)o(tro)q(duced)g(b)o(y)f(the)h(app)q(earance)g (of)f(the)g(history)h(expansion)g(c)o(haracter,)75 1475 ! y(whic)o(h)d(is)g(`)p Fl(!)p Fm(')e(b)o(y)h(default.)75 ! 1599 y Fg(1.1.1)30 b(Ev)n(en)n(t)21 b(Designators)137 ! 1701 y Fm(An)16 b(ev)o(en)o(t)f(designator)g(is)g(a)g(reference)h(to)f (a)g(command)g(line)i(en)o(try)d(in)i(the)g(history)f(list.)75 ! 1789 y Fl(!)216 b Fm(Start)16 b(a)g(history)h(substitution,)g(except)h (when)f(follo)o(w)o(ed)g(b)o(y)f(a)h(space,)g(tab,)f(the)h(end)g(of)315 ! 1844 y(the)e(line,)i(`)p Fl(=)p Fm(')d(or)h(`)p Fl(\()p ! Fm('.)75 1929 y Fl(!)p Fh(n)191 b Fm(Refer)16 b(to)e(command)h(line)i ! Fh(n)p Fm(.)75 2015 y Fl(!-)p Fh(n)167 b Fm(Refer)16 ! b(to)e(the)i(command)f Fh(n)g Fm(lines)i(bac)o(k.)75 ! 2100 y Fl(!!)192 b Fm(Refer)16 b(to)e(the)i(previous)f(command.)20 ! b(This)c(is)g(a)f(synon)o(ym)g(for)f(`)p Fl(!-1)p Fm('.)75 ! 2186 y Fl(!)p Fh(string)102 b Fm(Refer)16 b(to)e(the)i(most)e(recen)o ! (t)h(command)g(starting)g(with)g Fh(string)p Fm(.)75 ! 2271 y Fl(!?)p Fh(string)t Fl([?])315 2326 y Fm(Refer)i(to)f(the)h ! (most)f(recen)o(t)h(command)g(con)o(taining)g Fh(string)p ! Fm(.)25 b(The)17 b(trailing)g(`)p Fl(?)p Fm(')f(ma)o(y)g(b)q(e)315 ! 2381 y(omitted)f(if)h(the)f Fh(string)k Fm(is)d(follo)o(w)o(ed)f ! (immediately)i(b)o(y)e(a)g(newline.)75 2466 y Fl(^)p ! Fh(string1)t Fl(^)p Fh(string2)t Fl(^)315 2521 y Fm(Quic)o(k)i (Substitution.)23 b(Rep)q(eat)17 b(the)f(last)f(command,)h(replacing)h ! Fh(string1)i Fm(with)e Fh(string2)p Fm(.)315 2576 y(Equiv)m(alen)o(t)g ! (to)d Fl(!!:s/)p Fh(string1)t Fl(/)p Fh(string2)t Fl(/)p ! Fm(.)75 2661 y Fl(!#)192 b Fm(The)15 b(en)o(tire)h(command)f(line)i(t)o (yp)q(ed)f(so)e(far.)p eop %%Page: 2 4 ! 2 3 bop 75 -58 a Fm(2)1347 b(GNU)15 b(History)g(Library)75 ! 183 y Fg(1.1.2)30 b(W)-5 b(ord)20 b(Designators)137 279 ! y Fm(W)l(ord)d(designators)g(are)g(used)h(to)f(select)h(desired)h(w)o ! (ords)d(from)h(the)g(ev)o(en)o(t.)26 b(A)18 b(`)p Fl(:)p ! Fm(')e(separates)h(the)75 333 y(ev)o(en)o(t)j(sp)q(eci\014cation)h (from)e(the)h(w)o(ord)f(designator.)34 b(It)20 b(ma)o(y)f(b)q(e)h (omitted)g(if)g(the)g(w)o(ord)f(designator)75 388 y(b)q(egins)f(with)g ! (a)e(`)p Fl(^)p Fm(',)h(`)p Fl($)p Fm(',)f(`)p Fl(*)p ! Fm(',)g(`)p Fl(-)p Fm(',)g(or)h(`)p Fl(\045)p Fm('.)24 b(W)l(ords)17 b(are)g(n)o(um)o(b)q(ered)g(from)g(the)g(b)q(eginning)i (of)e(the)g(line,)75 443 y(with)j(the)g(\014rst)f(w)o(ord)h(b)q(eing)h (denoted)f(b)o(y)g(0)f(\(zero\).)33 b(W)l(ords)20 b(are)f(inserted)i (in)o(to)f(the)g(curren)o(t)f(line)75 498 y(separated)c(b)o(y)g(single) ! i(spaces.)75 575 y Fl(0)e(\(zero\))57 b Fm(The)15 b Fl(0)p ! Fm(th)g(w)o(ord.)20 b(F)l(or)14 b(man)o(y)h(applications,)h(this)g(is)g ! (the)f(command)g(w)o(ord.)75 653 y Fh(n)215 b Fm(The)15 ! b Fh(n)p Fm(th)h(w)o(ord.)75 731 y Fl(^)216 b Fm(The)15 b(\014rst)g(argumen)o(t;)f(that)h(is,)g(w)o(ord)g(1.)75 ! 808 y Fl($)216 b Fm(The)15 b(last)h(argumen)o(t.)75 886 ! y Fl(\045)216 b Fm(The)15 b(w)o(ord)g(matc)o(hed)g(b)o(y)g(the)g(most)g ! (recen)o(t)g(`)p Fl(?)p Fh(string)t Fl(?)p Fm(')f(searc)o(h.)75 ! 964 y Fh(x)p Fl(-)p Fh(y)168 b Fm(A)15 b(range)g(of)g(w)o(ords;)f(`)p ! Fl(-)p Fh(y)t Fm(')g(abbreviates)i(`)p Fl(0-)p Fh(y)t ! Fm('.)75 1042 y Fl(*)216 b Fm(All)15 b(of)f(the)f(w)o(ords,)g(except)i ! (the)f Fl(0)p Fm(th.)19 b(This)14 b(is)h(a)e(synon)o(ym)h(for)f(`)p ! Fl(1-$)p Fm('.)18 b(It)c(is)g(not)g(an)g(error)315 1096 ! y(to)g(use)h(`)p Fl(*)p Fm(')f(if)i(there)e(is)i(just)e(one)h(w)o(ord)f (in)i(the)f(ev)o(en)o(t;)f(the)h(empt)o(y)g(string)g(is)g(returned)g ! (in)315 1151 y(that)f(case.)75 1229 y Fh(x)s Fl(*)189 ! b Fm(Abbreviates)16 b(`)p Fh(x)p Fl(-$)p Fm(')75 1307 ! y Fh(x)p Fl(-)192 b Fm(Abbreviates)16 b(`)p Fh(x)p Fl(-$)p ! Fm(')e(lik)o(e)i(`)p Fh(x)s Fl(*)p Fm(',)e(but)i(omits)f(the)g(last)g (w)o(ord.)137 1384 y(If)i(a)g(w)o(ord)f(designator)h(is)h(supplied)h (without)e(an)g(ev)o(en)o(t)f(sp)q(eci\014cation,)j(the)e(previous)h (command)75 1439 y(is)e(used)f(as)g(the)h(ev)o(en)o(t.)75 ! 1548 y Fg(1.1.3)30 b(Mo)r(di\014ers)137 1643 y Fm(After)10 b(the)h(optional)g(w)o(ord)e(designator,)i(y)o(ou)f(can)h(add)f(a)g (sequence)i(of)e(one)g(or)g(more)g(of)g(the)g(follo)o(wing)75 1698 y(mo)q(di\014ers,)16 b(eac)o(h)f(preceded)i(b)o(y)e(a)g(`)p ! Fl(:)p Fm('.)75 1776 y Fl(h)216 b Fm(Remo)o(v)o(e)15 b(a)g(trailing)h(pathname)f(comp)q(onen)o(t,)g(lea)o(ving)h(only)g(the) ! f(head.)75 1854 y Fl(t)216 b Fm(Remo)o(v)o(e)15 b(all)h(leading)h (pathname)e(comp)q(onen)o(ts,)g(lea)o(ving)h(the)f(tail.)75 ! 1931 y Fl(r)216 b Fm(Remo)o(v)o(e)15 b(a)g(trailing)h(su\016x)f(of)g ! (the)g(form)g(`)p Fl(.)p Fh(su\016x)s Fm(',)f(lea)o(ving)i(the)f ! (basename.)75 2009 y Fl(e)216 b Fm(Remo)o(v)o(e)15 b(all)h(but)g(the)f ! (trailing)h(su\016x.)75 2087 y Fl(p)216 b Fm(Prin)o(t)15 b(the)g(new)h(command)f(but)g(do)g(not)g(execute)h(it.)75 ! 2164 y Fl(s/)p Fh(old)r Fl(/)p Fh(new)t Fl(/)315 2219 ! y Fm(Substitute)h Fh(new)j Fm(for)c(the)h(\014rst)e(o)q(ccurrence)j(of) ! e Fh(old)i Fm(in)f(the)g(ev)o(en)o(t)f(line.)25 b(An)o(y)16 b(delimiter)315 2274 y(ma)o(y)c(b)q(e)h(used)g(in)g(place)g(of)f(`)p ! Fl(/)p Fm('.)18 b(The)13 b(delimiter)h(ma)o(y)e(b)q(e)h(quoted)f(in)i ! Fh(old)g Fm(and)f Fh(new)k Fm(with)12 b(a)315 2329 y(single)j(bac)o ! (kslash.)20 b(If)15 b(`)p Fl(&)p Fm(')e(app)q(ears)h(in)h ! Fh(new)p Fm(,)f(it)g(is)h(replaced)g(b)o(y)f Fh(old)p ! Fm(.)20 b(A)14 b(single)i(bac)o(kslash)315 2383 y(will)j(quote)e(the)h ! (`)p Fl(&)p Fm('.)25 b(The)17 b(\014nal)i(delimiter)g(is)f(optional)g (if)f(it)h(is)g(the)f(last)g(c)o(haracter)g(on)315 2438 ! y(the)e(input)h(line.)75 2516 y Fl(&)216 b Fm(Rep)q(eat)16 ! b(the)f(previous)h(substitution.)75 2594 y Fl(g)216 b ! Fm(Cause)19 b(c)o(hanges)h(to)e(b)q(e)i(applied)h(o)o(v)o(er)e(the)g (en)o(tire)h(ev)o(en)o(t)f(line.)34 b(Used)20 b(in)g(conjunction)315 ! 2648 y(with)c(`)p Fl(s)p Fm(',)d(as)i(in)h Fl(gs/)p Fh(old)r ! Fl(/)p Fh(new)t Fl(/)p Fm(,)f(or)g(with)g(`)p Fl(&)p ! Fm('.)p eop %%Page: 3 5 ! 3 4 bop 75 -58 a Fm(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g ! (History)889 b(3)75 183 y Fi(2)41 b(Programming)28 b(with)e(GNU)i ! (History)137 323 y Fm(This)16 b(c)o(hapter)e(describ)q(es)j(ho)o(w)d (to)g(in)o(terface)h(programs)e(that)h(y)o(ou)h(write)g(with)g(the)g (GNU)f(History)75 378 y(Library)l(.)24 b(It)17 b(should)g(b)q(e)g (considered)h(a)e(tec)o(hnical)i(guide.)25 b(F)l(or)15 b(information)i(on)f(the)h(in)o(teractiv)o(e)g(use)75 ! 433 y(of)e(GNU)g(History)l(,)g(see)g Fj(h)p Fm(unde\014ned)p ! Fj(i)i Fm([Using)e(History)g(In)o(teractiv)o(ely],)g(page)g ! Fj(h)p Fm(unde\014ned)p Fj(i)p Fm(.)75 581 y Fk(2.1)33 ! b(In)n(tro)r(duction)24 b(to)e(History)137 685 y Fm(Man)o(y)c(programs) g(read)h(input)g(from)f(the)h(user)g(a)f(line)j(at)d(a)g(time.)31 b(The)19 b(GNU)g(History)f(library)75 740 y(is)k(able)g(to)e(k)o(eep)i --- 1533,1639 ---- b(expansions)h(are)g(in)o(tro)q(duced)g(b)o(y)f(the)h(app)q(earance)g (of)f(the)g(history)h(expansion)g(c)o(haracter,)75 1475 ! y(whic)o(h)d(is)g(`)p Fn(!)p Fo(')e(b)o(y)h(default.)75 ! 1599 y Fi(1.1.1)30 b(Ev)n(en)n(t)21 b(Designators)137 ! 1701 y Fo(An)16 b(ev)o(en)o(t)f(designator)g(is)g(a)g(reference)h(to)f (a)g(command)g(line)i(en)o(try)d(in)i(the)g(history)f(list.)75 ! 1789 y Fn(!)216 b Fo(Start)16 b(a)g(history)h(substitution,)g(except)h (when)f(follo)o(w)o(ed)g(b)o(y)f(a)h(space,)g(tab,)f(the)h(end)g(of)315 ! 1844 y(the)e(line,)i(`)p Fn(=)p Fo(')d(or)h(`)p Fn(\()p ! Fo('.)75 1929 y Fn(!)p Fj(n)191 b Fo(Refer)16 b(to)e(command)h(line)i ! Fj(n)p Fo(.)75 2015 y Fn(!-)p Fj(n)167 b Fo(Refer)16 ! b(to)e(the)i(command)f Fj(n)g Fo(lines)i(bac)o(k.)75 ! 2100 y Fn(!!)192 b Fo(Refer)16 b(to)e(the)i(previous)f(command.)20 ! b(This)c(is)g(a)f(synon)o(ym)g(for)f(`)p Fn(!-1)p Fo('.)75 ! 2186 y Fn(!)p Fj(string)102 b Fo(Refer)16 b(to)e(the)i(most)e(recen)o ! (t)h(command)g(starting)g(with)g Fj(string)p Fo(.)75 ! 2271 y Fn(!?)p Fj(string)t Fn([?])315 2326 y Fo(Refer)i(to)f(the)h ! (most)f(recen)o(t)h(command)g(con)o(taining)g Fj(string)p ! Fo(.)25 b(The)17 b(trailing)g(`)p Fn(?)p Fo(')f(ma)o(y)g(b)q(e)315 ! 2381 y(omitted)f(if)h(the)f Fj(string)k Fo(is)d(follo)o(w)o(ed)f ! (immediately)i(b)o(y)e(a)g(newline.)75 2466 y Fn(^)p ! Fj(string1)t Fn(^)p Fj(string2)t Fn(^)315 2521 y Fo(Quic)o(k)i (Substitution.)23 b(Rep)q(eat)17 b(the)f(last)f(command,)h(replacing)h ! Fj(string1)i Fo(with)e Fj(string2)p Fo(.)315 2576 y(Equiv)m(alen)o(t)g ! (to)d Fn(!!:s/)p Fj(string1)t Fn(/)p Fj(string2)t Fn(/)p ! Fo(.)75 2661 y Fn(!#)192 b Fo(The)15 b(en)o(tire)h(command)f(line)i(t)o (yp)q(ed)f(so)e(far.)p eop %%Page: 2 4 ! 2 3 bop 75 -58 a Fo(2)1347 b(GNU)15 b(History)g(Library)75 ! 183 y Fi(1.1.2)30 b(W)-5 b(ord)20 b(Designators)137 279 ! y Fo(W)l(ord)d(designators)g(are)g(used)h(to)f(select)h(desired)h(w)o ! (ords)d(from)h(the)g(ev)o(en)o(t.)26 b(A)18 b(`)p Fn(:)p ! Fo(')e(separates)h(the)75 333 y(ev)o(en)o(t)j(sp)q(eci\014cation)h (from)e(the)h(w)o(ord)f(designator.)34 b(It)20 b(ma)o(y)f(b)q(e)h (omitted)g(if)g(the)g(w)o(ord)f(designator)75 388 y(b)q(egins)f(with)g ! (a)e(`)p Fn(^)p Fo(',)h(`)p Fn($)p Fo(',)f(`)p Fn(*)p ! Fo(',)g(`)p Fn(-)p Fo(',)g(or)h(`)p Fn(\045)p Fo('.)24 b(W)l(ords)17 b(are)g(n)o(um)o(b)q(ered)g(from)g(the)g(b)q(eginning)i (of)e(the)g(line,)75 443 y(with)j(the)g(\014rst)f(w)o(ord)h(b)q(eing)h (denoted)f(b)o(y)g(0)f(\(zero\).)33 b(W)l(ords)20 b(are)f(inserted)i (in)o(to)f(the)g(curren)o(t)f(line)75 498 y(separated)c(b)o(y)g(single) ! i(spaces.)75 575 y Fn(0)e(\(zero\))57 b Fo(The)15 b Fn(0)p ! Fo(th)g(w)o(ord.)20 b(F)l(or)14 b(man)o(y)h(applications,)h(this)g(is)g ! (the)f(command)g(w)o(ord.)75 653 y Fj(n)215 b Fo(The)15 ! b Fj(n)p Fo(th)h(w)o(ord.)75 731 y Fn(^)216 b Fo(The)15 b(\014rst)g(argumen)o(t;)f(that)h(is,)g(w)o(ord)g(1.)75 ! 808 y Fn($)216 b Fo(The)15 b(last)h(argumen)o(t.)75 886 ! y Fn(\045)216 b Fo(The)15 b(w)o(ord)g(matc)o(hed)g(b)o(y)g(the)g(most)g ! (recen)o(t)g(`)p Fn(?)p Fj(string)t Fn(?)p Fo(')f(searc)o(h.)75 ! 964 y Fj(x)p Fn(-)p Fj(y)168 b Fo(A)15 b(range)g(of)g(w)o(ords;)f(`)p ! Fn(-)p Fj(y)t Fo(')g(abbreviates)i(`)p Fn(0-)p Fj(y)t ! Fo('.)75 1042 y Fn(*)216 b Fo(All)15 b(of)f(the)f(w)o(ords,)g(except)i ! (the)f Fn(0)p Fo(th.)19 b(This)14 b(is)h(a)e(synon)o(ym)h(for)f(`)p ! Fn(1-$)p Fo('.)18 b(It)c(is)g(not)g(an)g(error)315 1096 ! y(to)g(use)h(`)p Fn(*)p Fo(')f(if)i(there)e(is)i(just)e(one)h(w)o(ord)f (in)i(the)f(ev)o(en)o(t;)f(the)h(empt)o(y)g(string)g(is)g(returned)g ! (in)315 1151 y(that)f(case.)75 1229 y Fj(x)s Fn(*)189 ! b Fo(Abbreviates)16 b(`)p Fj(x)p Fn(-$)p Fo(')75 1307 ! y Fj(x)p Fn(-)192 b Fo(Abbreviates)16 b(`)p Fj(x)p Fn(-$)p ! Fo(')e(lik)o(e)i(`)p Fj(x)s Fn(*)p Fo(',)e(but)i(omits)f(the)g(last)g (w)o(ord.)137 1384 y(If)i(a)g(w)o(ord)f(designator)h(is)h(supplied)h (without)e(an)g(ev)o(en)o(t)f(sp)q(eci\014cation,)j(the)e(previous)h (command)75 1439 y(is)e(used)f(as)g(the)h(ev)o(en)o(t.)75 ! 1548 y Fi(1.1.3)30 b(Mo)r(di\014ers)137 1643 y Fo(After)10 b(the)h(optional)g(w)o(ord)e(designator,)i(y)o(ou)f(can)h(add)f(a)g (sequence)i(of)e(one)g(or)g(more)g(of)g(the)g(follo)o(wing)75 1698 y(mo)q(di\014ers,)16 b(eac)o(h)f(preceded)i(b)o(y)e(a)g(`)p ! Fn(:)p Fo('.)75 1776 y Fn(h)216 b Fo(Remo)o(v)o(e)15 b(a)g(trailing)h(pathname)f(comp)q(onen)o(t,)g(lea)o(ving)h(only)g(the) ! f(head.)75 1854 y Fn(t)216 b Fo(Remo)o(v)o(e)15 b(all)h(leading)h (pathname)e(comp)q(onen)o(ts,)g(lea)o(ving)h(the)f(tail.)75 ! 1931 y Fn(r)216 b Fo(Remo)o(v)o(e)15 b(a)g(trailing)h(su\016x)f(of)g ! (the)g(form)g(`)p Fn(.)p Fj(su\016x)s Fo(',)f(lea)o(ving)i(the)f ! (basename.)75 2009 y Fn(e)216 b Fo(Remo)o(v)o(e)15 b(all)h(but)g(the)f ! (trailing)h(su\016x.)75 2087 y Fn(p)216 b Fo(Prin)o(t)15 b(the)g(new)h(command)f(but)g(do)g(not)g(execute)h(it.)75 ! 2164 y Fn(s/)p Fj(old)r Fn(/)p Fj(new)t Fn(/)315 2219 ! y Fo(Substitute)h Fj(new)j Fo(for)c(the)h(\014rst)e(o)q(ccurrence)j(of) ! e Fj(old)i Fo(in)f(the)g(ev)o(en)o(t)f(line.)25 b(An)o(y)16 b(delimiter)315 2274 y(ma)o(y)c(b)q(e)h(used)g(in)g(place)g(of)f(`)p ! Fn(/)p Fo('.)18 b(The)13 b(delimiter)h(ma)o(y)e(b)q(e)h(quoted)f(in)i ! Fj(old)g Fo(and)f Fj(new)k Fo(with)12 b(a)315 2329 y(single)j(bac)o ! (kslash.)20 b(If)15 b(`)p Fn(&)p Fo(')e(app)q(ears)h(in)h ! Fj(new)p Fo(,)f(it)g(is)h(replaced)g(b)o(y)f Fj(old)p ! Fo(.)20 b(A)14 b(single)i(bac)o(kslash)315 2383 y(will)j(quote)e(the)h ! (`)p Fn(&)p Fo('.)25 b(The)17 b(\014nal)i(delimiter)g(is)f(optional)g (if)f(it)h(is)g(the)f(last)g(c)o(haracter)g(on)315 2438 ! y(the)e(input)h(line.)75 2516 y Fn(&)216 b Fo(Rep)q(eat)16 ! b(the)f(previous)h(substitution.)75 2594 y Fn(g)216 b ! Fo(Cause)19 b(c)o(hanges)h(to)e(b)q(e)i(applied)h(o)o(v)o(er)e(the)g (en)o(tire)h(ev)o(en)o(t)f(line.)34 b(Used)20 b(in)g(conjunction)315 ! 2648 y(with)c(`)p Fn(s)p Fo(',)d(as)i(in)h Fn(gs/)p Fj(old)r ! Fn(/)p Fj(new)t Fn(/)p Fo(,)f(or)g(with)g(`)p Fn(&)p ! Fo('.)p eop %%Page: 3 5 ! 3 4 bop 75 -58 a Fo(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g ! (History)889 b(3)75 183 y Fk(2)41 b(Programming)28 b(with)e(GNU)i ! (History)137 323 y Fo(This)16 b(c)o(hapter)e(describ)q(es)j(ho)o(w)d (to)g(in)o(terface)h(programs)e(that)h(y)o(ou)h(write)g(with)g(the)g (GNU)f(History)75 378 y(Library)l(.)24 b(It)17 b(should)g(b)q(e)g (considered)h(a)e(tec)o(hnical)i(guide.)25 b(F)l(or)15 b(information)i(on)f(the)h(in)o(teractiv)o(e)g(use)75 ! 433 y(of)e(GNU)g(History)l(,)g(see)g(Chapter)g(1)g([Using)g(History)g ! (In)o(teractiv)o(ely],)h(page)f(1.)75 581 y Fm(2.1)33 ! b(In)n(tro)r(duction)24 b(to)e(History)137 685 y Fo(Man)o(y)c(programs) g(read)h(input)g(from)f(the)h(user)g(a)f(line)j(at)d(a)g(time.)31 b(The)19 b(GNU)g(History)f(library)75 740 y(is)k(able)g(to)e(k)o(eep)i *************** *** 1582,1586 **** (taining)f(an)g(arbitrary)f(text)g(string,)h(and)g(referencing)h(an)o (y)e(line)i(in)75 1034 y(the)c(list)i(directly)l(.)22 ! b(In)16 b(addition,)g(a)f(history)g Fh(expansion)h Fm(function)h(is)e (a)o(v)m(ailable)i(whic)o(h)g(pro)o(vides)f(for)e(a)75 1089 y(consisten)o(t)h(user)h(in)o(terface)f(across)g(di\013eren)o(t)g --- 1648,1652 ---- (taining)f(an)g(arbitrary)f(text)g(string,)h(and)g(referencing)h(an)o (y)e(line)i(in)75 1034 y(the)c(list)i(directly)l(.)22 ! b(In)16 b(addition,)g(a)f(history)g Fj(expansion)h Fo(function)h(is)e (a)o(v)m(ailable)i(whic)o(h)g(pro)o(vides)f(for)e(a)75 1089 y(consisten)o(t)h(user)h(in)o(terface)f(across)g(di\013eren)o(t)g *************** *** 1592,1609 **** (commands.)19 b(The)14 b(basic)h(history)e(manipulation)j(commands)d (are)75 1328 y(similar)j(to)f(the)g(history)g(substitution)h(pro)o ! (vided)g(b)o(y)g Fl(csh)p Fm(.)137 1403 y(If)f(the)g(programmer)f (desires,)h(he)g(can)g(use)g(the)g(Readline)i(library)l(,)f(whic)o(h)f (includes)j(some)c(history)75 1458 y(manipulation)j(b)o(y)e(default,)g (and)h(has)f(the)g(added)h(adv)m(an)o(tage)f(of)f(command)h(line)i ! (editing.)75 1606 y Fk(2.2)33 b(History)22 b(Storage)137 ! 1710 y Fm(The)16 b(history)f(list)h(is)g(an)f(arra)o(y)f(of)g(history)i (en)o(tries.)k(A)15 b(history)g(en)o(try)g(is)h(declared)g(as)f(follo)o ! (ws:)195 1782 y Fl(typedef)23 b(struct)g(_hist_entry)f({)243 1834 y(char)h(*line;)243 1886 y(char)g(*data;)195 1938 ! y(})h(HIST_ENTRY;)137 2013 y Fm(The)16 b(history)f(list)h(itself)g (migh)o(t)f(therefore)g(b)q(e)h(declared)g(as)195 2085 ! y Fl(HIST_ENTRY)22 b(**the_history_list;)137 2160 y Fm(The)16 b(state)e(of)h(the)g(History)g(library)h(is)g(encapsulated)g(in)o(to)f ! (a)g(single)i(structure:)195 2232 y Fl(/*)24 b(A)f(structure)g(used)g (to)h(pass)f(the)h(current)f(state)g(of)g(the)h(history)f(stuff)g (around.)g(*/)p 2033 2242 21 42 v 195 2284 a(typedef)g(struct)g --- 1658,1675 ---- (commands.)19 b(The)14 b(basic)h(history)e(manipulation)j(commands)d (are)75 1328 y(similar)j(to)f(the)g(history)g(substitution)h(pro)o ! (vided)g(b)o(y)g Fn(csh)p Fo(.)137 1403 y(If)f(the)g(programmer)f (desires,)h(he)g(can)g(use)g(the)g(Readline)i(library)l(,)f(whic)o(h)f (includes)j(some)c(history)75 1458 y(manipulation)j(b)o(y)e(default,)g (and)h(has)f(the)g(added)h(adv)m(an)o(tage)f(of)f(command)h(line)i ! (editing.)75 1606 y Fm(2.2)33 b(History)22 b(Storage)137 ! 1710 y Fo(The)16 b(history)f(list)h(is)g(an)f(arra)o(y)f(of)g(history)i (en)o(tries.)k(A)15 b(history)g(en)o(try)g(is)h(declared)g(as)f(follo)o ! (ws:)195 1782 y Fn(typedef)23 b(struct)g(_hist_entry)f({)243 1834 y(char)h(*line;)243 1886 y(char)g(*data;)195 1938 ! y(})h(HIST_ENTRY;)137 2013 y Fo(The)16 b(history)f(list)h(itself)g (migh)o(t)f(therefore)g(b)q(e)h(declared)g(as)195 2085 ! y Fn(HIST_ENTRY)22 b(**the_history_list;)137 2160 y Fo(The)16 b(state)e(of)h(the)g(History)g(library)h(is)g(encapsulated)g(in)o(to)f ! (a)g(single)i(structure:)195 2232 y Fn(/*)24 b(A)f(structure)g(used)g (to)h(pass)f(the)h(current)f(state)g(of)g(the)h(history)f(stuff)g (around.)g(*/)p 2033 2242 21 42 v 195 2284 a(typedef)g(struct)g *************** *** 1616,1741 **** (allocated)g(to)g(this)h(array.)f(*/)p 2057 2501 V 243 2543 a(int)g(flags;)195 2595 y(})h(HISTORY_STATE;)137 ! 2670 y Fm(If)16 b(the)f(\015ags)g(mem)o(b)q(er)g(includes)j ! Fl(HS_STIFLED)p Fm(,)13 b(the)i(history)h(has)f(b)q(een)h(sti\015ed.)p eop %%Page: 4 6 ! 4 5 bop 75 -58 a Fm(4)1347 b(GNU)15 b(History)g(Library)75 ! 183 y Fk(2.3)33 b(History)22 b(F)-6 b(unctions)137 278 ! y Fm(This)21 b(section)g(describ)q(es)h(the)f(calling)h(sequence)g(for) e(the)g(v)m(arious)h(functions)g(presen)o(t)g(in)g(GNU)75 ! 333 y(History)l(.)75 441 y Fg(2.3.1)30 b(Initializing)20 ! b(History)h(and)f(State)g(Managemen)n(t)137 536 y Fm(This)e(section)g (describ)q(es)h(functions)f(used)g(to)e(initialize)21 b(and)c(manage)g(the)g(state)g(of)g(the)g(History)75 591 y(library)f(when)g(y)o(ou)f(w)o(an)o(t)f(to)g(use)i(the)f(history)g (functions)h(in)g(y)o(our)f(program.)1650 679 y(F)l(unction)-1749 ! b Ff(void)20 b Fe(using)p 333 679 18 3 v 20 w(history)j ! Fd(\(\))195 734 y Fm(Begin)18 b(a)f(session)h(in)g(whic)o(h)g(the)g (history)f(functions)h(migh)o(t)f(b)q(e)h(used.)27 b(This)18 b(initializes)195 788 y(the)d(in)o(teractiv)o(e)h(v)m(ariables.)1650 ! 877 y(F)l(unction)-1749 b Ff(HISTORY_STATE)21 b(*)e Fe(history)p 657 877 V 21 w(get)p 755 877 V 21 w(history)p 951 877 ! V 21 w(state)j Fd(\(\))195 931 y Fm(Return)16 b(a)f(structure)g (describing)i(the)e(curren)o(t)g(state)f(of)h(the)g(input)i(history)l ! (.)1650 1019 y(F)l(unction)-1749 b Ff(void)20 b Fe(history)p 377 1019 V 20 w(set)p 468 1019 V 21 w(history)p 664 1019 ! V 21 w(state)j Fd(\()p Fl(HISTORY_STATE)13 b(*state)p ! Fd(\))195 1074 y Fm(Set)i(the)h(state)e(of)h(the)g(history)g(list)h ! (according)g(to)e Fh(state)p Fm(.)75 1182 y Fg(2.3.2)30 ! b(History)20 b(List)h(Managemen)n(t)137 1277 y Fm(These)11 b(functions)h(manage)e(individual)k(en)o(tries)d(on)g(the)g(history)f (list,)i(or)f(set)f(parameters)g(managing)75 1332 y(the)15 ! b(list)h(itself.)1650 1420 y(F)l(unction)-1749 b Ff(void)20 ! b Fe(add)p 294 1420 V 20 w(history)j Fd(\()p Fl(char)14 ! b(*string)p Fd(\))195 1475 y Fm(Place)i Fh(string)j Fm(at)c(the)g(end)i (of)d(the)i(history)f(list.)22 b(The)15 b(asso)q(ciated)h(data)f (\014eld)h(\(if)g(an)o(y\))e(is)195 1530 y(set)h(to)g ! Fl(NULL)p Fm(.)1650 1618 y(F)l(unction)-1749 b Ff(HIST_ENTRY)21 ! b(*)e Fe(remo)n(v)n(e)p 584 1618 V 20 w(history)k Fd(\()p ! Fl(int)14 b(which)p Fd(\))195 1673 y Fm(Remo)o(v)o(e)g(history)g(en)o ! (try)f(at)h(o\013set)f Fh(whic)o(h)h Fm(from)g(the)g(history)l(.)19 b(The)14 b(remo)o(v)o(ed)g(elemen)o(t)g(is)195 1727 y(returned)i(so)e (y)o(ou)h(can)h(free)f(the)g(line,)i(data,)d(and)h(con)o(taining)h ! (structure.)1650 1816 y(F)l(unction)-1749 b Ff(HIST_ENTRY)21 ! b(*)e Fe(replace)p 580 1816 V 22 w(history)p 777 1816 ! V 20 w(en)n(try)24 b Fd(\()p Fl(int)14 b(which,)g(char)283 ! 1870 y(*line,)g(char)g(*data)p Fd(\))195 1925 y Fm(Mak)o(e)f(the)h ! (history)f(en)o(try)g(at)g(o\013set)g Fh(whic)o(h)h Fm(ha)o(v)o(e)g ! Fh(line)k Fm(and)13 b Fh(data)p Fm(.)19 b(This)14 b(returns)g(the)f (old)195 1980 y(en)o(try)k(so)g(y)o(ou)g(can)g(disp)q(ose)i(of)d(the)i (data.)25 b(In)18 b(the)f(case)h(of)f(an)g(in)o(v)m(alid)i ! Fh(whic)o(h)p Fm(,)g(a)e Fl(NULL)195 2035 y Fm(p)q(oin)o(ter)f(is)f ! (returned.)1650 2123 y(F)l(unction)-1749 b Ff(void)20 ! b Fe(clear)p 320 2123 V 21 w(history)j Fd(\(\))195 2178 ! y Fm(Clear)15 b(the)h(history)f(list)h(b)o(y)f(deleting)i(all)f(the)f ! (en)o(tries.)1650 2266 y(F)l(unction)-1749 b Ff(void)20 ! b Fe(sti\015e)p 320 2266 V 21 w(history)j Fd(\()p Fl(int)14 ! b(max)p Fd(\))195 2321 y Fm(Sti\015e)i(the)f(history)h(list,)f(remem)o ! (b)q(ering)h(only)g(the)f(last)g Fh(max)j Fm(en)o(tries.)1650 ! 2409 y(F)l(unction)-1749 b Ff(int)20 b Fe(unsti\015e)p ! 358 2409 V 21 w(history)i Fd(\(\))195 2463 y Fm(Stop)e(sti\015ing)i (the)f(history)l(.)36 b(This)21 b(returns)g(the)f(previous)i(amoun)o(t) e(the)g(history)h(w)o(as)195 2518 y(sti\015ed.)g(The)15 b(v)m(alue)i(is)e(p)q(ositiv)o(e)i(if)e(the)g(history)h(w)o(as)e (sti\015ed,)i(negativ)o(e)f(if)h(it)f(w)o(asn't.)1650 ! 2606 y(F)l(unction)-1749 b Ff(int)20 b Fe(history)p 351 ! 2606 V 20 w(is)p 409 2606 V 21 w(sti\015ed)k Fd(\(\))195 ! 2661 y Fm(Returns)16 b(non-zero)f(if)h(the)f(history)g(is)h(sti\015ed,) g(zero)f(if)g(it)h(is)g(not.)p eop %%Page: 5 7 ! 5 6 bop 75 -58 a Fm(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g ! (History)889 b(5)75 183 y Fg(2.3.3)30 b(Information)19 ! b(Ab)r(out)i(the)f(History)h(List)137 279 y Fm(These)13 b(functions)h(return)f(information)g(ab)q(out)f(the)h(en)o(tire)h (history)e(list)i(or)e(individual)k(list)e(en)o(tries.)1650 ! 371 y(F)l(unction)-1749 b Ff(HIST_ENTRY)21 b(**)e Fe(history)p ! 605 371 18 3 v 21 w(list)24 b Fd(\(\))195 426 y Fm(Return)f(a)g ! Fl(NULL)f Fm(terminated)g(arra)o(y)g(of)g Fl(HIST_ENTRY)f ! Fm(whic)o(h)j(is)f(the)f(curren)o(t)h(input)195 481 y(history)l(.)j (Elemen)o(t)18 b(0)e(of)h(this)h(list)g(is)f(the)h(b)q(eginning)h(of)e (time.)26 b(If)17 b(there)g(is)h(no)f(history)l(,)195 ! 535 y(return)e Fl(NULL)p Fm(.)1650 627 y(F)l(unction)-1749 ! b Ff(int)20 b Fe(where)p 325 627 V 20 w(history)j Fd(\(\))195 ! 682 y Fm(Returns)16 b(the)f(o\013set)f(of)h(the)g(curren)o(t)g(history) ! g(elemen)o(t.)1650 773 y(F)l(unction)-1749 b Ff(HIST_ENTRY)21 ! b(*)e Fe(curren)n(t)p 587 773 V 21 w(history)k Fd(\(\))195 ! 828 y Fm(Return)g(the)f(history)g(en)o(try)g(at)f(the)h(curren)o(t)g(p) ! q(osition,)j(as)c(determined)j(b)o(y)e Fl(where_)195 ! 883 y(history)14 b(\(\))p Fm(.)20 b(If)15 b(there)g(is)h(no)f(en)o(try) ! g(there,)g(return)g(a)g Fl(NULL)g Fm(p)q(oin)o(ter.)1650 ! 975 y(F)l(unction)-1749 b Ff(HIST_ENTRY)21 b(*)e Fe(history)p ! 579 975 V 21 w(get)j Fd(\()p Fl(int)15 b(offset)p Fd(\))195 ! 1029 y Fm(Return)21 b(the)g(history)g(en)o(try)f(at)g(p)q(osition)i ! Fh(o\013set)p Fm(,)e(starting)g(from)g Fl(history_base)p ! Fm(.)35 b(If)195 1084 y(there)16 b(is)h(no)g(en)o(try)f(there,)g(or)g ! (if)g Fh(o\013set)h Fm(is)g(greater)e(than)h(the)h(history)f(length,)h ! (return)f(a)195 1139 y Fl(NULL)f Fm(p)q(oin)o(ter.)1650 ! 1231 y(F)l(unction)-1749 b Ff(int)20 b Fe(history)p 351 ! 1231 V 20 w(total)p 487 1231 V 22 w(b)n(ytes)j Fd(\(\))195 ! 1285 y Fm(Return)c(the)f(n)o(um)o(b)q(er)g(of)g(b)o(ytes)g(that)f(the)h (primary)h(history)f(en)o(tries)g(are)g(using.)29 b(This)195 1340 y(function)16 b(returns)f(the)g(sum)h(of)e(the)i(lengths)f(of)g (all)h(the)g(lines)g(in)g(the)g(history)l(.)75 1452 y ! Fg(2.3.4)30 b(Mo)n(ving)21 b(Around)f(the)h(History)g(List)137 ! 1548 y Fm(These)16 b(functions)g(allo)o(w)f(the)g(curren)o(t)h(index)g (in)o(to)f(the)h(history)f(list)h(to)e(b)q(e)i(set)f(or)g(c)o(hanged.) ! 1650 1640 y(F)l(unction)-1749 b Ff(int)20 b Fe(history)p ! 351 1640 V 20 w(set)p 442 1640 V 21 w(p)r(os)h Fd(\()p ! Fl(int)15 b(pos)p Fd(\))195 1694 y Fm(Set)g(the)h(p)q(osition)g(in)g ! (the)f(history)g(list)h(to)f Fh(p)q(os)p Fm(,)g(an)g(absolute)g(index)i (in)o(to)e(the)g(list.)1650 1786 y(F)l(unction)-1749 ! b Ff(HIST_ENTRY)21 b(*)e Fe(previous)p 615 1786 V 20 ! w(history)k Fd(\(\))195 1841 y Fm(Bac)o(k)17 b(up)h(the)f(curren)o(t)g (history)g(o\013set)f(to)h(the)g(previous)h(history)f(en)o(try)l(,)g (and)g(return)g(a)195 1896 y(p)q(oin)o(ter)f(to)e(that)h(en)o(try)l(.)k (If)d(there)f(is)h(no)f(previous)h(en)o(try)l(,)f(return)g(a)g ! Fl(NULL)f Fm(p)q(oin)o(ter.)1650 1987 y(F)l(unction)-1749 ! b Ff(HIST_ENTRY)21 b(*)e Fe(next)p 514 1987 V 21 w(history)k ! Fd(\(\))195 2042 y Fm(Mo)o(v)o(e)17 b(the)h(curren)o(t)g(history)f (o\013set)g(forw)o(ard)g(to)g(the)h(next)g(history)g(en)o(try)l(,)g (and)g(return)195 2097 y(the)d(a)g(p)q(oin)o(ter)h(to)e(that)h(en)o (try)l(.)20 b(If)15 b(there)g(is)h(no)f(next)g(en)o(try)l(,)g(return)g ! (a)g Fl(NULL)g Fm(p)q(oin)o(ter.)75 2208 y Fg(2.3.5)30 ! b(Searc)n(hing)21 b(the)f(History)h(List)137 2304 y Fm(These)14 b(functions)g(allo)o(w)g(searc)o(hing)g(of)e(the)i(history)f(list)h (for)f(en)o(tries)h(con)o(taining)g(a)f(sp)q(eci\014c)i(string.)75 --- 1682,1807 ---- (allocated)g(to)g(this)h(array.)f(*/)p 2057 2501 V 243 2543 a(int)g(flags;)195 2595 y(})h(HISTORY_STATE;)137 ! 2670 y Fo(If)16 b(the)f(\015ags)g(mem)o(b)q(er)g(includes)j ! Fn(HS_STIFLED)p Fo(,)13 b(the)i(history)h(has)f(b)q(een)h(sti\015ed.)p eop %%Page: 4 6 ! 4 5 bop 75 -58 a Fo(4)1347 b(GNU)15 b(History)g(Library)75 ! 183 y Fm(2.3)33 b(History)22 b(F)-6 b(unctions)137 278 ! y Fo(This)21 b(section)g(describ)q(es)h(the)f(calling)h(sequence)g(for) e(the)g(v)m(arious)h(functions)g(presen)o(t)g(in)g(GNU)75 ! 333 y(History)l(.)75 441 y Fi(2.3.1)30 b(Initializing)20 ! b(History)h(and)f(State)g(Managemen)n(t)137 536 y Fo(This)e(section)g (describ)q(es)h(functions)f(used)g(to)e(initialize)21 b(and)c(manage)g(the)g(state)g(of)g(the)g(History)75 591 y(library)f(when)g(y)o(ou)f(w)o(an)o(t)f(to)g(use)i(the)f(history)g (functions)h(in)g(y)o(our)f(program.)1650 679 y(F)l(unction)-1749 ! b Fh(void)20 b Fg(using)p 333 679 18 3 v 20 w(history)j ! Ff(\(\))195 734 y Fo(Begin)18 b(a)f(session)h(in)g(whic)o(h)g(the)g (history)f(functions)h(migh)o(t)f(b)q(e)h(used.)27 b(This)18 b(initializes)195 788 y(the)d(in)o(teractiv)o(e)h(v)m(ariables.)1650 ! 877 y(F)l(unction)-1749 b Fh(HISTORY_STATE)21 b(*)e Fg(history)p 657 877 V 21 w(get)p 755 877 V 21 w(history)p 951 877 ! V 21 w(state)j Ff(\(\))195 931 y Fo(Return)16 b(a)f(structure)g (describing)i(the)e(curren)o(t)g(state)f(of)h(the)g(input)i(history)l ! (.)1650 1019 y(F)l(unction)-1749 b Fh(void)20 b Fg(history)p 377 1019 V 20 w(set)p 468 1019 V 21 w(history)p 664 1019 ! V 21 w(state)j Ff(\()p Fn(HISTORY_STATE)13 b(*state)p ! Ff(\))195 1074 y Fo(Set)i(the)h(state)e(of)h(the)g(history)g(list)h ! (according)g(to)e Fj(state)p Fo(.)75 1182 y Fi(2.3.2)30 ! b(History)20 b(List)h(Managemen)n(t)137 1277 y Fo(These)11 b(functions)h(manage)e(individual)k(en)o(tries)d(on)g(the)g(history)f (list,)i(or)f(set)f(parameters)g(managing)75 1332 y(the)15 ! b(list)h(itself.)1650 1420 y(F)l(unction)-1749 b Fh(void)20 ! b Fg(add)p 294 1420 V 20 w(history)j Ff(\()p Fn(char)14 ! b(*string)p Ff(\))195 1475 y Fo(Place)i Fj(string)j Fo(at)c(the)g(end)i (of)d(the)i(history)f(list.)22 b(The)15 b(asso)q(ciated)h(data)f (\014eld)h(\(if)g(an)o(y\))e(is)195 1530 y(set)h(to)g ! Fn(NULL)p Fo(.)1650 1618 y(F)l(unction)-1749 b Fh(HIST_ENTRY)21 ! b(*)e Fg(remo)n(v)n(e)p 584 1618 V 20 w(history)k Ff(\()p ! Fn(int)14 b(which)p Ff(\))195 1673 y Fo(Remo)o(v)o(e)g(history)g(en)o ! (try)f(at)h(o\013set)f Fj(whic)o(h)h Fo(from)g(the)g(history)l(.)19 b(The)14 b(remo)o(v)o(ed)g(elemen)o(t)g(is)195 1727 y(returned)i(so)e (y)o(ou)h(can)h(free)f(the)g(line,)i(data,)d(and)h(con)o(taining)h ! (structure.)1650 1816 y(F)l(unction)-1749 b Fh(HIST_ENTRY)21 ! b(*)e Fg(replace)p 580 1816 V 22 w(history)p 777 1816 ! V 20 w(en)n(try)24 b Ff(\()p Fn(int)14 b(which,)g(char)283 ! 1870 y(*line,)g(char)g(*data)p Ff(\))195 1925 y Fo(Mak)o(e)f(the)h ! (history)f(en)o(try)g(at)g(o\013set)g Fj(whic)o(h)h Fo(ha)o(v)o(e)g ! Fj(line)k Fo(and)13 b Fj(data)p Fo(.)19 b(This)14 b(returns)g(the)f (old)195 1980 y(en)o(try)k(so)g(y)o(ou)g(can)g(disp)q(ose)i(of)d(the)i (data.)25 b(In)18 b(the)f(case)h(of)f(an)g(in)o(v)m(alid)i ! Fj(whic)o(h)p Fo(,)g(a)e Fn(NULL)195 2035 y Fo(p)q(oin)o(ter)f(is)f ! (returned.)1650 2123 y(F)l(unction)-1749 b Fh(void)20 ! b Fg(clear)p 320 2123 V 21 w(history)j Ff(\(\))195 2178 ! y Fo(Clear)15 b(the)h(history)f(list)h(b)o(y)f(deleting)i(all)f(the)f ! (en)o(tries.)1650 2266 y(F)l(unction)-1749 b Fh(void)20 ! b Fg(sti\015e)p 320 2266 V 21 w(history)j Ff(\()p Fn(int)14 ! b(max)p Ff(\))195 2321 y Fo(Sti\015e)i(the)f(history)h(list,)f(remem)o ! (b)q(ering)h(only)g(the)f(last)g Fj(max)j Fo(en)o(tries.)1650 ! 2409 y(F)l(unction)-1749 b Fh(int)20 b Fg(unsti\015e)p ! 358 2409 V 21 w(history)i Ff(\(\))195 2463 y Fo(Stop)e(sti\015ing)i (the)f(history)l(.)36 b(This)21 b(returns)g(the)f(previous)i(amoun)o(t) e(the)g(history)h(w)o(as)195 2518 y(sti\015ed.)g(The)15 b(v)m(alue)i(is)e(p)q(ositiv)o(e)i(if)e(the)g(history)h(w)o(as)e (sti\015ed,)i(negativ)o(e)f(if)h(it)f(w)o(asn't.)1650 ! 2606 y(F)l(unction)-1749 b Fh(int)20 b Fg(history)p 351 ! 2606 V 20 w(is)p 409 2606 V 21 w(sti\015ed)k Ff(\(\))195 ! 2661 y Fo(Returns)16 b(non-zero)f(if)h(the)f(history)g(is)h(sti\015ed,) g(zero)f(if)g(it)h(is)g(not.)p eop %%Page: 5 7 ! 5 6 bop 75 -58 a Fo(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g ! (History)889 b(5)75 183 y Fi(2.3.3)30 b(Information)19 ! b(Ab)r(out)i(the)f(History)h(List)137 279 y Fo(These)13 b(functions)h(return)f(information)g(ab)q(out)f(the)h(en)o(tire)h (history)e(list)i(or)e(individual)k(list)e(en)o(tries.)1650 ! 371 y(F)l(unction)-1749 b Fh(HIST_ENTRY)21 b(**)e Fg(history)p ! 605 371 18 3 v 21 w(list)24 b Ff(\(\))195 426 y Fo(Return)f(a)g ! Fn(NULL)f Fo(terminated)g(arra)o(y)g(of)g Fn(HIST_ENTRY)f ! Fo(whic)o(h)j(is)f(the)f(curren)o(t)h(input)195 481 y(history)l(.)j (Elemen)o(t)18 b(0)e(of)h(this)h(list)g(is)f(the)h(b)q(eginning)h(of)e (time.)26 b(If)17 b(there)g(is)h(no)f(history)l(,)195 ! 535 y(return)e Fn(NULL)p Fo(.)1650 627 y(F)l(unction)-1749 ! b Fh(int)20 b Fg(where)p 325 627 V 20 w(history)j Ff(\(\))195 ! 682 y Fo(Returns)16 b(the)f(o\013set)f(of)h(the)g(curren)o(t)g(history) ! g(elemen)o(t.)1650 773 y(F)l(unction)-1749 b Fh(HIST_ENTRY)21 ! b(*)e Fg(curren)n(t)p 587 773 V 21 w(history)k Ff(\(\))195 ! 828 y Fo(Return)g(the)f(history)g(en)o(try)g(at)f(the)h(curren)o(t)g(p) ! q(osition,)j(as)c(determined)j(b)o(y)e Fn(where_)195 ! 883 y(history)14 b(\(\))p Fo(.)20 b(If)15 b(there)g(is)h(no)f(en)o(try) ! g(there,)g(return)g(a)g Fn(NULL)g Fo(p)q(oin)o(ter.)1650 ! 975 y(F)l(unction)-1749 b Fh(HIST_ENTRY)21 b(*)e Fg(history)p ! 579 975 V 21 w(get)j Ff(\()p Fn(int)15 b(offset)p Ff(\))195 ! 1029 y Fo(Return)21 b(the)g(history)g(en)o(try)f(at)g(p)q(osition)i ! Fj(o\013set)p Fo(,)e(starting)g(from)g Fn(history_base)p ! Fo(.)35 b(If)195 1084 y(there)16 b(is)h(no)g(en)o(try)f(there,)g(or)g ! (if)g Fj(o\013set)h Fo(is)g(greater)e(than)h(the)h(history)f(length,)h ! (return)f(a)195 1139 y Fn(NULL)f Fo(p)q(oin)o(ter.)1650 ! 1231 y(F)l(unction)-1749 b Fh(int)20 b Fg(history)p 351 ! 1231 V 20 w(total)p 487 1231 V 22 w(b)n(ytes)j Ff(\(\))195 ! 1285 y Fo(Return)c(the)f(n)o(um)o(b)q(er)g(of)g(b)o(ytes)g(that)f(the)h (primary)h(history)f(en)o(tries)g(are)g(using.)29 b(This)195 1340 y(function)16 b(returns)f(the)g(sum)h(of)e(the)i(lengths)f(of)g (all)h(the)g(lines)g(in)g(the)g(history)l(.)75 1452 y ! Fi(2.3.4)30 b(Mo)n(ving)21 b(Around)f(the)h(History)g(List)137 ! 1548 y Fo(These)16 b(functions)g(allo)o(w)f(the)g(curren)o(t)h(index)g (in)o(to)f(the)h(history)f(list)h(to)e(b)q(e)i(set)f(or)g(c)o(hanged.) ! 1650 1640 y(F)l(unction)-1749 b Fh(int)20 b Fg(history)p ! 351 1640 V 20 w(set)p 442 1640 V 21 w(p)r(os)h Ff(\()p ! Fn(int)15 b(pos)p Ff(\))195 1694 y Fo(Set)g(the)h(p)q(osition)g(in)g ! (the)f(history)g(list)h(to)f Fj(p)q(os)p Fo(,)g(an)g(absolute)g(index)i (in)o(to)e(the)g(list.)1650 1786 y(F)l(unction)-1749 ! b Fh(HIST_ENTRY)21 b(*)e Fg(previous)p 615 1786 V 20 ! w(history)k Ff(\(\))195 1841 y Fo(Bac)o(k)17 b(up)h(the)f(curren)o(t)g (history)g(o\013set)f(to)h(the)g(previous)h(history)f(en)o(try)l(,)g (and)g(return)g(a)195 1896 y(p)q(oin)o(ter)f(to)e(that)h(en)o(try)l(.)k (If)d(there)f(is)h(no)f(previous)h(en)o(try)l(,)f(return)g(a)g ! Fn(NULL)f Fo(p)q(oin)o(ter.)1650 1987 y(F)l(unction)-1749 ! b Fh(HIST_ENTRY)21 b(*)e Fg(next)p 514 1987 V 21 w(history)k ! Ff(\(\))195 2042 y Fo(Mo)o(v)o(e)17 b(the)h(curren)o(t)g(history)f (o\013set)g(forw)o(ard)g(to)g(the)h(next)g(history)g(en)o(try)l(,)g (and)g(return)195 2097 y(the)d(a)g(p)q(oin)o(ter)h(to)e(that)h(en)o (try)l(.)20 b(If)15 b(there)g(is)h(no)f(next)g(en)o(try)l(,)g(return)g ! (a)g Fn(NULL)g Fo(p)q(oin)o(ter.)75 2208 y Fi(2.3.5)30 ! b(Searc)n(hing)21 b(the)f(History)h(List)137 2304 y Fo(These)14 b(functions)g(allo)o(w)g(searc)o(hing)g(of)e(the)i(history)f(list)h (for)f(en)o(tries)h(con)o(taining)g(a)f(sp)q(eci\014c)i(string.)75 *************** *** 1743,1908 **** (ard)e(and)i(bac)o(kw)o(ard)f(from)g(the)h(curren)o(t)g(history)f(p)q (osition.)75 2414 y(The)j(searc)o(h)f(ma)o(y)g(b)q(e)i ! Fh(anc)o(hored)p Fm(,)e(meaning)h(that)f(the)h(string)g(m)o(ust)f(matc) o(h)g(at)g(the)h(b)q(eginning)i(of)d(the)75 2469 y(history)g(en)o(try)l ! (.)1650 2560 y(F)l(unction)-1749 b Ff(int)20 b Fe(history)p ! 351 2560 V 20 w(searc)n(h)j Fd(\()p Fl(char)14 b(*string,)g(int)h ! (direction)p Fd(\))195 2615 y Fm(Searc)o(h)g(the)h(history)f(for)f ! Fh(string)p Fm(,)h(starting)f(at)h(the)g(curren)o(t)g(history)g ! (o\013set.)k(If)d Fh(direction)195 2670 y Fl(<)j Fm(0,)g(then)g(the)h (searc)o(h)e(is)i(through)e(previous)i(en)o(tries,)g(else)g(through)f (subsequen)o(t.)32 b(If)p eop %%Page: 6 8 ! 6 7 bop 75 -58 a Fm(6)1347 b(GNU)15 b(History)g(Library)195 ! 183 y Fh(string)k Fm(is)d(found,)f(then)h(the)f(curren)o(t)g(history)g (index)i(is)f(set)f(to)f(that)h(history)g(en)o(try)l(,)g(and)195 238 y(the)g(v)m(alue)h(returned)f(is)g(the)g(o\013set)f(in)h(the)g ! (line)h(of)e(the)h(en)o(try)g(where)g Fh(string)j Fm(w)o(as)c(found.) 195 293 y(Otherwise,)i(nothing)f(is)h(c)o(hanged,)f(and)h(a)e(-1)h(is)h ! (returned.)1650 396 y(F)l(unction)-1749 b Ff(int)20 b ! Fe(history)p 351 396 18 3 v 20 w(searc)n(h)p 527 396 ! V 21 w(pre\014x)i Fd(\()p Fl(char)15 b(*string,)f(int)g(direction)p ! Fd(\))195 451 y Fm(Searc)o(h)i(the)f(history)g(for)g ! Fh(string)p Fm(,)g(starting)g(at)g(the)g(curren)o(t)h(history)f (o\013set.)k(The)d(searc)o(h)195 506 y(is)h(anc)o(hored:)23 b(matc)o(hing)17 b(lines)h(m)o(ust)e(b)q(egin)i(with)f ! Fh(string)p Fm(.)25 b(If)17 b Fh(direction)h Fl(<)e Fm(0,)h(then)g(the) 195 560 y(searc)o(h)f(is)g(through)f(previous)i(en)o(tries,)f(else)g ! (through)g(subsequen)o(t.)22 b(If)16 b Fh(string)k Fm(is)c(found,)195 615 y(then)i(the)g(curren)o(t)g(history)g(index)h(is)g(set)e(to)h(that) f(en)o(try)l(,)h(and)g(the)g(return)g(v)m(alue)h(is)g(0.)195 670 y(Otherwise,)d(nothing)f(is)h(c)o(hanged,)f(and)h(a)e(-1)h(is)h ! (returned.)1650 773 y(F)l(unction)-1749 b Ff(int)20 b ! Fe(history)p 351 773 V 20 w(searc)n(h)p 527 773 V 21 ! w(p)r(os)h Fd(\()p Fl(char)15 b(*string,)f(int)g(direction,)g(int)283 ! 828 y(pos)p Fd(\))195 883 y Fm(Searc)o(h)h(for)g Fh(string)k ! Fm(in)d(the)f(history)g(list,)g(starting)g(at)f Fh(p)q(os)p ! Fm(,)h(an)g(absolute)g(index)i(in)o(to)e(the)195 937 ! y(list.)21 b(If)15 b Fh(direction)h Fm(is)g(negativ)o(e,)f(the)g(searc) ! o(h)g(pro)q(ceeds)g(bac)o(kw)o(ard)g(from)f Fh(p)q(os)p ! Fm(,)h(otherwise)195 992 y(forw)o(ard.)27 b(Returns)18 b(the)g(absolute)g(index)h(of)f(the)g(history)f(elemen)o(t)i(where)f ! Fh(string)k Fm(w)o(as)195 1047 y(found,)15 b(or)g(-1)g(otherwise.)75 ! 1170 y Fg(2.3.6)30 b(Managing)20 b(the)g(History)h(File)137 ! 1272 y Fm(The)16 b(History)g(library)h(can)e(read)h(the)g(history)g (from)f(and)h(write)g(it)g(to)f(a)h(\014le.)22 b(This)17 b(section)f(do)q(cu-)75 1327 y(men)o(ts)f(the)g(functions)h(for)f (managing)g(a)g(history)g(\014le.)1650 1430 y(F)l(unction)-1749 ! b Ff(int)20 b Fe(read)p 286 1430 V 20 w(history)i Fd(\()p ! Fl(char)15 b(*filename)p Fd(\))195 1485 y Fm(Add)h(the)f(con)o(ten)o ! (ts)f(of)h Fh(\014lename)j Fm(to)d(the)g(history)g(list,)g(a)g(line)h ! (at)f(a)f(time.)21 b(If)15 b Fh(\014lename)j Fm(is)195 ! 1539 y Fl(NULL)p Fm(,)c(then)i(read)f(from)f(`)p Fl(~/.history)p ! Fm('.)k(Returns)e(0)f(if)g(successful,)i(or)d(errno)h(if)h(not.)1650 ! 1643 y(F)l(unction)-1749 b Ff(int)20 b Fe(read)p 286 ! 1643 V 20 w(history)p 481 1643 V 20 w(range)i Fd(\()p ! Fl(char)15 b(*filename,)e(int)i(from,)g(int)f(to)p Fd(\))195 ! 1697 y Fm(Read)21 b(a)f(range)g(of)g(lines)i(from)e Fh(\014lename)p ! Fm(,)i(adding)f(them)g(to)f(the)g(history)h(list.)36 ! b(Start)195 1752 y(reading)15 b(at)e(line)j Fh(from)e ! Fm(and)g(end)h(at)e Fh(to)p Fm(.)19 b(If)c Fh(from)e ! Fm(is)i(zero,)f(start)f(at)g(the)h(b)q(eginning.)22 b(If)15 ! b Fh(to)195 1807 y Fm(is)i(less)g(than)f Fh(from)p Fm(,)g(then)h(read)f (un)o(til)i(the)e(end)h(of)f(the)h(\014le.)24 b(If)17 ! b Fh(\014lename)j Fm(is)d Fl(NULL)p Fm(,)f(then)195 1862 ! y(read)f(from)g(`)p Fl(~/.history)p Fm('.)i(Returns)f(0)f(if)h ! (successful,)g(or)e Fl(errno)h Fm(if)h(not.)1650 1965 ! y(F)l(unction)-1749 b Ff(int)20 b Fe(write)p 304 1965 ! V 22 w(history)i Fd(\()p Fl(char)15 b(*filename)p Fd(\))195 ! 2020 y Fm(W)l(rite)23 b(the)f(curren)o(t)g(history)h(to)f ! Fh(\014lename)p Fm(,)j(o)o(v)o(erwriting)d Fh(\014lename)k ! Fm(if)d(necessary)l(.)42 b(If)195 2074 y Fh(\014lename)20 ! b Fm(is)d Fl(NULL)p Fm(,)f(then)g(write)h(the)f(history)h(list)g(to)f ! (`)p Fl(~/.history)p Fm('.)21 b(V)l(alues)d(returned)195 ! 2129 y(are)d(as)g(in)h Fl(read_history)d(\(\))p Fm(.)1650 ! 2232 y(F)l(unction)-1749 b Ff(int)20 b Fe(app)r(end)p ! 360 2232 V 19 w(history)j Fd(\()p Fl(int)14 b(nelements,)g(char)h ! (*filename)p Fd(\))195 2287 y Fm(App)q(end)i(the)e(last)g ! Fh(nelemen)o(ts)j Fm(of)d(the)g(history)g(list)h(to)f ! Fh(\014lename)p Fm(.)1650 2390 y(F)l(unction)-1749 b ! Ff(int)20 b Fe(history)p 351 2390 V 20 w(truncate)p 582 ! 2390 V 21 w(\014le)k Fd(\()p Fl(char)14 b(*filename,)g(int)h(nlines)p ! Fd(\))195 2445 y Fm(T)l(runcate)g(the)h(history)f(\014le)h ! Fh(\014lename)p Fm(,)g(lea)o(ving)g(only)g(the)f(last)g ! Fh(nlines)k Fm(lines.)75 2568 y Fg(2.3.7)30 b(History)20 ! b(Expansion)137 2670 y Fm(These)c(functions)g(implemen)o(t)g ! Fl(csh)p Fm(-lik)o(e)g(history)g(expansion.)p eop %%Page: 7 9 ! 7 8 bop 75 -58 a Fm(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g ! (History)889 b(7)1650 183 y(F)l(unction)-1749 b Ff(int)20 ! b Fe(history)p 351 183 18 3 v 20 w(expand)j Fd(\()p Fl(char)14 ! b(*string,)g(char)h(**output)p Fd(\))195 238 y Fm(Expand)g ! Fh(string)p Fm(,)g(placing)h(the)f(result)h(in)o(to)f ! Fh(output)p Fm(,)f(a)h(p)q(oin)o(ter)g(to)g(a)f(string)h(\(see)g ! Fj(h)p Fm(unde-)195 293 y(\014ned)p Fj(i)h Fm([History)e(In)o ! (teraction],)h(page)g Fj(h)p Fm(unde\014ned)p Fj(i)p ! Fm(\).)21 b(Returns:)195 370 y Fl(0)216 b Fm(If)16 b(no)g(expansions)h ! (to)q(ok)e(place)i(\(or,)d(if)j(the)f(only)g(c)o(hange)g(in)h(the)e ! (text)h(w)o(as)435 425 y(the)f(de-slashifying)j(of)c(the)i(history)f ! (expansion)h(c)o(haracter\);)195 502 y Fl(1)216 b Fm(if)16 ! b(expansions)g(did)g(tak)o(e)e(place;)195 580 y Fl(-1)192 ! b Fm(if)16 b(there)f(w)o(as)f(an)h(error)g(in)h(expansion;)195 ! 657 y Fl(2)216 b Fm(if)16 b(the)g(returned)g(line)i(should)f(only)f(b)q ! (e)h(displa)o(y)o(ed,)f(but)g(not)g(executed,)g(as)435 ! 712 y(with)11 b(the)f Fl(:p)g Fm(mo)q(di\014er)h(\(see)g ! Fj(h)p Fm(unde\014ned)p Fj(i)g Fm([Mo)q(di\014ers],)g(page)f ! Fj(h)p Fm(unde\014ned)p Fj(i)p Fm(\).)195 789 y(If)15 ! b(an)g(error)f(o)q(curred)i(in)g(expansion,)f(then)h ! Fh(output)f Fm(con)o(tains)g(a)g(descriptiv)o(e)i(error)d(mes-)195 ! 844 y(sage.)1650 932 y(F)l(unction)-1749 b Ff(char)20 ! b(*)f Fe(history)p 422 932 V 21 w(arg)p 524 932 V 19 ! w(extract)24 b Fd(\()p Fl(int)14 b(first,)h(int)g(last,)f(char)283 ! 987 y(*string)p Fd(\))195 1042 y Fm(Extract)g(a)g(string)g(segmen)o(t)g ! (consisting)i(of)e(the)g Fh(\014rst)i Fm(through)e Fh(last)h ! Fm(argumen)o(ts)f(presen)o(t)195 1097 y(in)i Fh(string)p ! Fm(.)k(Argumen)o(ts)15 b(are)f(brok)o(en)i(up)f(as)g(in)h(Bash.)1650 ! 1185 y(F)l(unction)-1749 b Ff(char)20 b(*)f Fe(get)p 324 1185 V 21 w(history)p 520 1185 V 20 w(ev)n(en)n(t)25 ! b Fd(\()p Fl(char)14 b(*string,)g(int)h(*cindex,)f(int)283 ! 1240 y(qchar)p Fd(\))195 1295 y Fm(Returns)h(the)g(text)f(of)g(the)h ! (history)g(ev)o(en)o(t)f(b)q(eginning)j(at)d Fh(string)k ! Fl(+)d Fh(*cindex)p Fm(.)20 b Fh(*cindex)f Fm(is)195 1350 y(mo)q(di\014ed)e(to)e(p)q(oin)o(t)h(to)f(after)g(the)h(ev)o(en)o (t)f(sp)q(eci\014er.)23 b(A)o(t)16 b(function)g(en)o(try)l(,)f ! Fh(cindex)21 b Fm(p)q(oin)o(ts)195 1404 y(to)16 b(the)h(index)h(in)o ! (to)e Fh(string)21 b Fm(where)c(the)g(history)f(ev)o(en)o(t)h(sp)q ! (eci\014cation)h(b)q(egins.)26 b Fh(qc)o(har)19 b Fm(is)195 1459 y(a)h(c)o(haracter)g(that)g(is)h(allo)o(w)o(ed)f(to)g(end)h(the)g (ev)o(en)o(t)f(sp)q(eci\014cation)i(in)g(addition)f(to)f(the)195 1514 y(\\normal")15 b(terminating)g(c)o(haracters.)1650 ! 1602 y(F)l(unction)-1749 b Ff(char)20 b(**)f Fe(history)p ! 448 1602 V 21 w(tok)n(enize)25 b Fd(\()p Fl(char)14 b(*string)p ! Fd(\))195 1657 y Fm(Return)j(an)g(arra)o(y)f(of)g(tok)o(ens)g(parsed)h ! (out)g(of)f Fh(string)p Fm(,)h(m)o(uc)o(h)g(as)f(the)h(shell)h(migh)o (t.)25 b(The)195 1712 y(tok)o(ens)d(are)g(split)i(on)f(white)g(space)g ! (and)f(on)h(the)g(c)o(haracters)f Fl(\(\)<>;&|$)p Fm(,)h(and)f(shell) 195 1767 y(quoting)15 b(con)o(v)o(en)o(tions)h(are)e(ob)q(ey)o(ed.)75 ! 1892 y Fk(2.4)33 b(History)22 b(V)-6 b(ariables)137 1987 ! y Fm(This)23 b(section)f(describ)q(es)h(the)f(externally)h(visible)h(v) m(ariables)f(exp)q(orted)f(b)o(y)g(the)g(GNU)f(History)75 ! 2042 y(Library)l(.)1661 2130 y(V)l(ariable)-1749 b Ff(int)20 ! b Fe(history)p 351 2130 V 20 w(base)195 2185 y Fm(The)15 b(logical)i(o\013set)d(of)h(the)g(\014rst)g(en)o(try)g(in)h(the)f ! (history)g(list.)1661 2274 y(V)l(ariable)-1749 b Ff(int)20 ! b Fe(history)p 351 2274 V 20 w(length)195 2329 y Fm(The)15 b(n)o(um)o(b)q(er)h(of)f(en)o(tries)g(curren)o(tly)h(stored)f(in)h(the) ! f(history)g(list.)1661 2417 y(V)l(ariable)-1749 b Ff(int)20 ! b Fe(max)p 283 2417 V 19 w(input)p 435 2417 V 21 w(history)195 ! 2472 y Fm(The)14 b(maxim)o(um)f(n)o(um)o(b)q(er)h(of)e(history)i(en)o (tries.)19 b(This)14 b(m)o(ust)f(b)q(e)h(c)o(hanged)g(using)g ! Fl(stifle_)195 2527 y(history)g(\(\))p Fm(.)1661 2615 ! y(V)l(ariable)-1749 b Ff(char)20 b Fe(history)p 377 2615 V 20 w(expansion)p 644 2615 V 21 w(c)n(har)195 2670 y ! Fm(The)15 b(c)o(haracter)g(that)f(starts)g(a)h(history)g(ev)o(en)o(t.) ! 20 b(The)15 b(default)h(is)g(`)p Fl(!)p Fm('.)p eop %%Page: 8 10 ! 8 9 bop 75 -58 a Fm(8)1347 b(GNU)15 b(History)g(Library)1661 ! 183 y(V)l(ariable)-1749 b Ff(char)20 b Fe(history)p 377 183 18 3 v 20 w(subst)p 529 183 V 20 w(c)n(har)195 238 ! y Fm(The)13 b(c)o(haracter)e(that)h(in)o(v)o(ok)o(es)g(w)o(ord)g (substitution)h(if)g(found)g(at)e(the)i(start)e(of)h(a)g(line.)21 ! b(The)195 293 y(default)16 b(is)f(`)p Fl(^)p Fm('.)1661 ! 388 y(V)l(ariable)-1749 b Ff(char)20 b Fe(history)p 377 388 V 20 w(commen)n(t)p 627 388 V 19 w(c)n(har)195 443 ! y Fm(During)e(tok)o(enization,)h(if)f(this)h(c)o(haracter)e(is)i(seen)f (as)g(the)g(\014rst)g(c)o(haracter)f(of)g(a)h(w)o(ord,)195 498 y(then)e(it)g(and)g(all)h(subsequen)o(t)g(c)o(haracters)e(up)h(to)g --- 1809,1971 ---- (ard)e(and)i(bac)o(kw)o(ard)f(from)g(the)h(curren)o(t)g(history)f(p)q (osition.)75 2414 y(The)j(searc)o(h)f(ma)o(y)g(b)q(e)i ! Fj(anc)o(hored)p Fo(,)e(meaning)h(that)f(the)h(string)g(m)o(ust)f(matc) o(h)g(at)g(the)h(b)q(eginning)i(of)d(the)75 2469 y(history)g(en)o(try)l ! (.)1650 2560 y(F)l(unction)-1749 b Fh(int)20 b Fg(history)p ! 351 2560 V 20 w(searc)n(h)j Ff(\()p Fn(char)14 b(*string,)g(int)h ! (direction)p Ff(\))195 2615 y Fo(Searc)o(h)g(the)h(history)f(for)f ! Fj(string)p Fo(,)h(starting)f(at)h(the)g(curren)o(t)g(history)g ! (o\013set.)k(If)d Fj(direction)195 2670 y Fn(<)j Fo(0,)g(then)g(the)h (searc)o(h)e(is)i(through)e(previous)i(en)o(tries,)g(else)g(through)f (subsequen)o(t.)32 b(If)p eop %%Page: 6 8 ! 6 7 bop 75 -58 a Fo(6)1347 b(GNU)15 b(History)g(Library)195 ! 183 y Fj(string)k Fo(is)d(found,)f(then)h(the)f(curren)o(t)g(history)g (index)i(is)f(set)f(to)f(that)h(history)g(en)o(try)l(,)g(and)195 238 y(the)g(v)m(alue)h(returned)f(is)g(the)g(o\013set)f(in)h(the)g ! (line)h(of)e(the)h(en)o(try)g(where)g Fj(string)j Fo(w)o(as)c(found.) 195 293 y(Otherwise,)i(nothing)f(is)h(c)o(hanged,)f(and)h(a)e(-1)h(is)h ! (returned.)1650 396 y(F)l(unction)-1749 b Fh(int)20 b ! Fg(history)p 351 396 18 3 v 20 w(searc)n(h)p 527 396 ! V 21 w(pre\014x)i Ff(\()p Fn(char)15 b(*string,)f(int)g(direction)p ! Ff(\))195 451 y Fo(Searc)o(h)i(the)f(history)g(for)g ! Fj(string)p Fo(,)g(starting)g(at)g(the)g(curren)o(t)h(history)f (o\013set.)k(The)d(searc)o(h)195 506 y(is)h(anc)o(hored:)23 b(matc)o(hing)17 b(lines)h(m)o(ust)e(b)q(egin)i(with)f ! Fj(string)p Fo(.)25 b(If)17 b Fj(direction)h Fn(<)e Fo(0,)h(then)g(the) 195 560 y(searc)o(h)f(is)g(through)f(previous)i(en)o(tries,)f(else)g ! (through)g(subsequen)o(t.)22 b(If)16 b Fj(string)k Fo(is)c(found,)195 615 y(then)i(the)g(curren)o(t)g(history)g(index)h(is)g(set)e(to)h(that) f(en)o(try)l(,)h(and)g(the)g(return)g(v)m(alue)h(is)g(0.)195 670 y(Otherwise,)d(nothing)f(is)h(c)o(hanged,)f(and)h(a)e(-1)h(is)h ! (returned.)1650 773 y(F)l(unction)-1749 b Fh(int)20 b ! Fg(history)p 351 773 V 20 w(searc)n(h)p 527 773 V 21 ! w(p)r(os)h Ff(\()p Fn(char)15 b(*string,)f(int)g(direction,)g(int)283 ! 828 y(pos)p Ff(\))195 883 y Fo(Searc)o(h)h(for)g Fj(string)k ! Fo(in)d(the)f(history)g(list,)g(starting)g(at)f Fj(p)q(os)p ! Fo(,)h(an)g(absolute)g(index)i(in)o(to)e(the)195 937 ! y(list.)21 b(If)15 b Fj(direction)h Fo(is)g(negativ)o(e,)f(the)g(searc) ! o(h)g(pro)q(ceeds)g(bac)o(kw)o(ard)g(from)f Fj(p)q(os)p ! Fo(,)h(otherwise)195 992 y(forw)o(ard.)27 b(Returns)18 b(the)g(absolute)g(index)h(of)f(the)g(history)f(elemen)o(t)i(where)f ! Fj(string)k Fo(w)o(as)195 1047 y(found,)15 b(or)g(-1)g(otherwise.)75 ! 1170 y Fi(2.3.6)30 b(Managing)20 b(the)g(History)h(File)137 ! 1272 y Fo(The)16 b(History)g(library)h(can)e(read)h(the)g(history)g (from)f(and)h(write)g(it)g(to)f(a)h(\014le.)22 b(This)17 b(section)f(do)q(cu-)75 1327 y(men)o(ts)f(the)g(functions)h(for)f (managing)g(a)g(history)g(\014le.)1650 1430 y(F)l(unction)-1749 ! b Fh(int)20 b Fg(read)p 286 1430 V 20 w(history)i Ff(\()p ! Fn(char)15 b(*filename)p Ff(\))195 1485 y Fo(Add)h(the)f(con)o(ten)o ! (ts)f(of)h Fj(\014lename)j Fo(to)d(the)g(history)g(list,)g(a)g(line)h ! (at)f(a)f(time.)21 b(If)15 b Fj(\014lename)j Fo(is)195 ! 1539 y Fn(NULL)p Fo(,)c(then)i(read)f(from)f(`)p Fn(~/.history)p ! Fo('.)k(Returns)e(0)f(if)g(successful,)i(or)d(errno)h(if)h(not.)1650 ! 1643 y(F)l(unction)-1749 b Fh(int)20 b Fg(read)p 286 ! 1643 V 20 w(history)p 481 1643 V 20 w(range)i Ff(\()p ! Fn(char)15 b(*filename,)e(int)i(from,)g(int)f(to)p Ff(\))195 ! 1697 y Fo(Read)21 b(a)f(range)g(of)g(lines)i(from)e Fj(\014lename)p ! Fo(,)i(adding)f(them)g(to)f(the)g(history)h(list.)36 ! b(Start)195 1752 y(reading)15 b(at)e(line)j Fj(from)e ! Fo(and)g(end)h(at)e Fj(to)p Fo(.)19 b(If)c Fj(from)e ! Fo(is)i(zero,)f(start)f(at)g(the)h(b)q(eginning.)22 b(If)15 ! b Fj(to)195 1807 y Fo(is)i(less)g(than)f Fj(from)p Fo(,)g(then)h(read)f (un)o(til)i(the)e(end)h(of)f(the)h(\014le.)24 b(If)17 ! b Fj(\014lename)j Fo(is)d Fn(NULL)p Fo(,)f(then)195 1862 ! y(read)f(from)g(`)p Fn(~/.history)p Fo('.)i(Returns)f(0)f(if)h ! (successful,)g(or)e Fn(errno)h Fo(if)h(not.)1650 1965 ! y(F)l(unction)-1749 b Fh(int)20 b Fg(write)p 304 1965 ! V 22 w(history)i Ff(\()p Fn(char)15 b(*filename)p Ff(\))195 ! 2020 y Fo(W)l(rite)23 b(the)f(curren)o(t)g(history)h(to)f ! Fj(\014lename)p Fo(,)j(o)o(v)o(erwriting)d Fj(\014lename)k ! Fo(if)d(necessary)l(.)42 b(If)195 2074 y Fj(\014lename)20 ! b Fo(is)d Fn(NULL)p Fo(,)f(then)g(write)h(the)f(history)h(list)g(to)f ! (`)p Fn(~/.history)p Fo('.)21 b(V)l(alues)d(returned)195 ! 2129 y(are)d(as)g(in)h Fn(read_history)d(\(\))p Fo(.)1650 ! 2232 y(F)l(unction)-1749 b Fh(int)20 b Fg(app)r(end)p ! 360 2232 V 19 w(history)j Ff(\()p Fn(int)14 b(nelements,)g(char)h ! (*filename)p Ff(\))195 2287 y Fo(App)q(end)i(the)e(last)g ! Fj(nelemen)o(ts)j Fo(of)d(the)g(history)g(list)h(to)f ! Fj(\014lename)p Fo(.)1650 2390 y(F)l(unction)-1749 b ! Fh(int)20 b Fg(history)p 351 2390 V 20 w(truncate)p 582 ! 2390 V 21 w(\014le)k Ff(\()p Fn(char)14 b(*filename,)g(int)h(nlines)p ! Ff(\))195 2445 y Fo(T)l(runcate)g(the)h(history)f(\014le)h ! Fj(\014lename)p Fo(,)g(lea)o(ving)g(only)g(the)f(last)g ! Fj(nlines)k Fo(lines.)75 2568 y Fi(2.3.7)30 b(History)20 ! b(Expansion)137 2670 y Fo(These)c(functions)g(implemen)o(t)g ! Fn(csh)p Fo(-lik)o(e)g(history)g(expansion.)p eop %%Page: 7 9 ! 7 8 bop 75 -58 a Fo(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g ! (History)889 b(7)1650 183 y(F)l(unction)-1749 b Fh(int)20 ! b Fg(history)p 351 183 18 3 v 20 w(expand)j Ff(\()p Fn(char)14 ! b(*string,)g(char)h(**output)p Ff(\))195 238 y Fo(Expand)k ! Fj(string)p Fo(,)g(placing)h(the)e(result)h(in)o(to)g ! Fj(output)p Fo(,)g(a)f(p)q(oin)o(ter)h(to)f(a)g(string)h(\(see)f(Sec-) ! 195 293 y(tion)d(1.1)g([History)f(In)o(teraction],)h(page)g(1\).)k ! (Returns:)195 370 y Fn(0)216 b Fo(If)16 b(no)g(expansions)h(to)q(ok)e ! (place)i(\(or,)d(if)j(the)f(only)g(c)o(hange)g(in)h(the)e(text)h(w)o ! (as)435 425 y(the)f(de-slashifying)j(of)c(the)i(history)f(expansion)h ! (c)o(haracter\);)195 502 y Fn(1)216 b Fo(if)16 b(expansions)g(did)g ! (tak)o(e)e(place;)195 580 y Fn(-1)192 b Fo(if)16 b(there)f(w)o(as)f(an) ! h(error)g(in)h(expansion;)195 657 y Fn(2)216 b Fo(if)16 ! b(the)g(returned)g(line)i(should)f(only)f(b)q(e)h(displa)o(y)o(ed,)f ! (but)g(not)g(executed,)g(as)435 712 y(with)g(the)f Fn(:p)g ! Fo(mo)q(di\014er)h(\(see)f(Section)h(1.1.3)e([Mo)q(di\014ers],)g(page)i ! (2\).)195 789 y(If)f(an)g(error)f(o)q(curred)i(in)g(expansion,)f(then)h ! Fj(output)f Fo(con)o(tains)g(a)g(descriptiv)o(e)i(error)d(mes-)195 ! 844 y(sage.)1650 932 y(F)l(unction)-1749 b Fh(char)20 ! b(*)f Fg(history)p 422 932 V 21 w(arg)p 524 932 V 19 ! w(extract)24 b Ff(\()p Fn(int)14 b(first,)h(int)g(last,)f(char)283 ! 987 y(*string)p Ff(\))195 1042 y Fo(Extract)g(a)g(string)g(segmen)o(t)g ! (consisting)i(of)e(the)g Fj(\014rst)i Fo(through)e Fj(last)h ! Fo(argumen)o(ts)f(presen)o(t)195 1097 y(in)i Fj(string)p ! Fo(.)k(Argumen)o(ts)15 b(are)f(brok)o(en)i(up)f(as)g(in)h(Bash.)1650 ! 1185 y(F)l(unction)-1749 b Fh(char)20 b(*)f Fg(get)p 324 1185 V 21 w(history)p 520 1185 V 20 w(ev)n(en)n(t)25 ! b Ff(\()p Fn(char)14 b(*string,)g(int)h(*cindex,)f(int)283 ! 1240 y(qchar)p Ff(\))195 1295 y Fo(Returns)h(the)g(text)f(of)g(the)h ! (history)g(ev)o(en)o(t)f(b)q(eginning)j(at)d Fj(string)k ! Fn(+)d Fj(*cindex)p Fo(.)20 b Fj(*cindex)f Fo(is)195 1350 y(mo)q(di\014ed)e(to)e(p)q(oin)o(t)h(to)f(after)g(the)h(ev)o(en)o (t)f(sp)q(eci\014er.)23 b(A)o(t)16 b(function)g(en)o(try)l(,)f ! Fj(cindex)21 b Fo(p)q(oin)o(ts)195 1404 y(to)16 b(the)h(index)h(in)o ! (to)e Fj(string)21 b Fo(where)c(the)g(history)f(ev)o(en)o(t)h(sp)q ! (eci\014cation)h(b)q(egins.)26 b Fj(qc)o(har)19 b Fo(is)195 1459 y(a)h(c)o(haracter)g(that)g(is)h(allo)o(w)o(ed)f(to)g(end)h(the)g (ev)o(en)o(t)f(sp)q(eci\014cation)i(in)g(addition)f(to)f(the)195 1514 y(\\normal")15 b(terminating)g(c)o(haracters.)1650 ! 1602 y(F)l(unction)-1749 b Fh(char)20 b(**)f Fg(history)p ! 448 1602 V 21 w(tok)n(enize)25 b Ff(\()p Fn(char)14 b(*string)p ! Ff(\))195 1657 y Fo(Return)j(an)g(arra)o(y)f(of)g(tok)o(ens)g(parsed)h ! (out)g(of)f Fj(string)p Fo(,)h(m)o(uc)o(h)g(as)f(the)h(shell)h(migh)o (t.)25 b(The)195 1712 y(tok)o(ens)d(are)g(split)i(on)f(white)g(space)g ! (and)f(on)h(the)g(c)o(haracters)f Fn(\(\)<>;&|$)p Fo(,)h(and)f(shell) 195 1767 y(quoting)15 b(con)o(v)o(en)o(tions)h(are)e(ob)q(ey)o(ed.)75 ! 1892 y Fm(2.4)33 b(History)22 b(V)-6 b(ariables)137 1987 ! y Fo(This)23 b(section)f(describ)q(es)h(the)f(externally)h(visible)h(v) m(ariables)f(exp)q(orted)f(b)o(y)g(the)g(GNU)f(History)75 ! 2042 y(Library)l(.)1661 2130 y(V)l(ariable)-1749 b Fh(int)20 ! b Fg(history)p 351 2130 V 20 w(base)195 2185 y Fo(The)15 b(logical)i(o\013set)d(of)h(the)g(\014rst)g(en)o(try)g(in)h(the)f ! (history)g(list.)1661 2274 y(V)l(ariable)-1749 b Fh(int)20 ! b Fg(history)p 351 2274 V 20 w(length)195 2329 y Fo(The)15 b(n)o(um)o(b)q(er)h(of)f(en)o(tries)g(curren)o(tly)h(stored)f(in)h(the) ! f(history)g(list.)1661 2417 y(V)l(ariable)-1749 b Fh(int)20 ! b Fg(max)p 283 2417 V 19 w(input)p 435 2417 V 21 w(history)195 ! 2472 y Fo(The)14 b(maxim)o(um)f(n)o(um)o(b)q(er)h(of)e(history)i(en)o (tries.)19 b(This)14 b(m)o(ust)f(b)q(e)h(c)o(hanged)g(using)g ! Fn(stifle_)195 2527 y(history)g(\(\))p Fo(.)1661 2615 ! y(V)l(ariable)-1749 b Fh(char)20 b Fg(history)p 377 2615 V 20 w(expansion)p 644 2615 V 21 w(c)n(har)195 2670 y ! Fo(The)15 b(c)o(haracter)g(that)f(starts)g(a)h(history)g(ev)o(en)o(t.) ! 20 b(The)15 b(default)h(is)g(`)p Fn(!)p Fo('.)p eop %%Page: 8 10 ! 8 9 bop 75 -58 a Fo(8)1347 b(GNU)15 b(History)g(Library)1661 ! 183 y(V)l(ariable)-1749 b Fh(char)20 b Fg(history)p 377 183 18 3 v 20 w(subst)p 529 183 V 20 w(c)n(har)195 238 ! y Fo(The)13 b(c)o(haracter)e(that)h(in)o(v)o(ok)o(es)g(w)o(ord)g (substitution)h(if)g(found)g(at)e(the)i(start)e(of)h(a)g(line.)21 ! b(The)195 293 y(default)16 b(is)f(`)p Fn(^)p Fo('.)1661 ! 388 y(V)l(ariable)-1749 b Fh(char)20 b Fg(history)p 377 388 V 20 w(commen)n(t)p 627 388 V 19 w(c)n(har)195 443 ! y Fo(During)e(tok)o(enization,)h(if)f(this)h(c)o(haracter)e(is)i(seen)f (as)g(the)g(\014rst)g(c)o(haracter)f(of)g(a)h(w)o(ord,)195 498 y(then)e(it)g(and)g(all)h(subsequen)o(t)g(c)o(haracters)e(up)h(to)g *************** *** 1910,1941 **** (expansion)h(for)f(the)g(remainder)h(of)f(the)g(line.)22 b(This)15 b(is)h(disabled)h(b)o(y)e(default.)1661 648 ! y(V)l(ariable)-1749 b Ff(char)20 b(*)f Fe(history)p 422 648 V 21 w(no)p 504 648 V 20 w(expand)p 704 648 V 20 ! w(c)n(hars)195 703 y Fm(The)j(list)h(of)f(c)o(haracters)f(whic)o(h)i (inhibit)h(history)e(expansion)h(if)g(found)f(immediately)195 ! 758 y(follo)o(wing)16 b Fh(history)p 528 758 14 2 v 16 ! w(expansion)p 739 758 V 18 w(c)o(har)p Fm(.)j(The)d(default)f(is)h ! (whitespace)g(and)g(`)p Fl(=)p Fm('.)1661 853 y(V)l(ariable)-1749 ! b Ff(char)20 b(*)f Fe(history)p 422 853 18 3 v 21 w(searc)n(h)p 599 853 V 20 w(delimiter)p 843 853 V 23 w(c)n(hars)195 ! 908 y Fm(The)f(list)h(of)e(additional)i(c)o(haracters)e(whic)o(h)i(can) f(delimit)h(a)f(history)g(searc)o(h)f(string,)h(in)195 ! 963 y(addition)c(to)d(whitespace,)j(`)p Fl(:)p Fm(')d(and)i(`)p ! Fl(?)p Fm(')f(in)h(the)f(case)h(of)f(a)g(substring)h(searc)o(h.)19 b(The)12 b(default)195 1018 y(is)k(empt)o(y)l(.)1661 ! 1113 y(V)l(ariable)-1749 b Ff(int)20 b Fe(history)p 351 1113 V 20 w(quotes)p 533 1113 V 21 w(inhibit)p 717 1113 ! V 23 w(expansion)195 1168 y Fm(If)13 b(non-zero,)f(single-quoted)i(w)o (ords)e(are)g(not)g(scanned)h(for)f(the)g(history)h(expansion)g(c)o (har-)195 1223 y(acter.)19 b(The)d(default)g(v)m(alue)g(is)g(0.)1661 ! 1318 y(V)l(ariable)-1749 b Ff(Function)20 b(*)g Fe(history)p 527 1318 V 20 w(inhibit)p 710 1318 V 23 w(expansion)p ! 980 1318 V 21 w(function)195 1373 y Fm(This)12 b(should)g(b)q(e)g(set)f (to)f(the)i(address)f(of)g(a)g(function)h(that)e(tak)o(es)h(t)o(w)o(o)f ! (argumen)o(ts:)17 b(a)11 b Fl(char)195 1428 y(*)j Fm(\()p ! Fh(string)t Fm(\))f(and)i(an)f(in)o(teger)g(index)h(in)o(to)f(that)g ! (string)g(\()p Fh(i)r Fm(\).)20 b(It)14 b(should)h(return)f(a)g (non-zero)195 1482 y(v)m(alue)g(if)e(the)h(history)f(expansion)h ! (starting)f(at)g Fh(string[i])i Fm(should)f(not)f(b)q(e)h(p)q (erformed;)g(zero)195 1537 y(if)g(the)h(expansion)f(should)h(b)q(e)g (done.)20 b(It)13 b(is)g(in)o(tended)i(for)d(use)h(b)o(y)g --- 1973,2004 ---- (expansion)h(for)f(the)g(remainder)h(of)f(the)g(line.)22 b(This)15 b(is)h(disabled)h(b)o(y)e(default.)1661 648 ! y(V)l(ariable)-1749 b Fh(char)20 b(*)f Fg(history)p 422 648 V 21 w(no)p 504 648 V 20 w(expand)p 704 648 V 20 ! w(c)n(hars)195 703 y Fo(The)j(list)h(of)f(c)o(haracters)f(whic)o(h)i (inhibit)h(history)e(expansion)h(if)g(found)f(immediately)195 ! 758 y(follo)o(wing)16 b Fj(history)p 528 758 14 2 v 16 ! w(expansion)p 739 758 V 18 w(c)o(har)p Fo(.)j(The)d(default)f(is)h ! (whitespace)g(and)g(`)p Fn(=)p Fo('.)1661 853 y(V)l(ariable)-1749 ! b Fh(char)20 b(*)f Fg(history)p 422 853 18 3 v 21 w(searc)n(h)p 599 853 V 20 w(delimiter)p 843 853 V 23 w(c)n(hars)195 ! 908 y Fo(The)f(list)h(of)e(additional)i(c)o(haracters)e(whic)o(h)i(can) f(delimit)h(a)f(history)g(searc)o(h)f(string,)h(in)195 ! 963 y(addition)c(to)d(whitespace,)j(`)p Fn(:)p Fo(')d(and)i(`)p ! Fn(?)p Fo(')f(in)h(the)f(case)h(of)f(a)g(substring)h(searc)o(h.)19 b(The)12 b(default)195 1018 y(is)k(empt)o(y)l(.)1661 ! 1113 y(V)l(ariable)-1749 b Fh(int)20 b Fg(history)p 351 1113 V 20 w(quotes)p 533 1113 V 21 w(inhibit)p 717 1113 ! V 23 w(expansion)195 1168 y Fo(If)13 b(non-zero,)f(single-quoted)i(w)o (ords)e(are)g(not)g(scanned)h(for)f(the)g(history)h(expansion)g(c)o (har-)195 1223 y(acter.)19 b(The)d(default)g(v)m(alue)g(is)g(0.)1661 ! 1318 y(V)l(ariable)-1749 b Fh(Function)20 b(*)g Fg(history)p 527 1318 V 20 w(inhibit)p 710 1318 V 23 w(expansion)p ! 980 1318 V 21 w(function)195 1373 y Fo(This)12 b(should)g(b)q(e)g(set)f (to)f(the)i(address)f(of)g(a)g(function)h(that)e(tak)o(es)h(t)o(w)o(o)f ! (argumen)o(ts:)17 b(a)11 b Fn(char)195 1428 y(*)j Fo(\()p ! Fj(string)t Fo(\))f(and)i(an)f(in)o(teger)g(index)h(in)o(to)f(that)g ! (string)g(\()p Fj(i)r Fo(\).)20 b(It)14 b(should)h(return)f(a)g (non-zero)195 1482 y(v)m(alue)g(if)e(the)h(history)f(expansion)h ! (starting)f(at)g Fj(string[i])i Fo(should)f(not)f(b)q(e)h(p)q (erformed;)g(zero)195 1537 y(if)g(the)h(expansion)f(should)h(b)q(e)g (done.)20 b(It)13 b(is)g(in)o(tended)i(for)d(use)h(b)o(y)g *************** *** 1943,1950 **** (expansion)i(c)o(haracter)e(for)g(additional)i(purp)q(oses.)28 b(By)18 b(default,)195 1647 y(this)e(v)m(ariable)g(is)g(set)f(to)f ! (NULL.)75 1780 y Fk(2.5)33 b(History)22 b(Programming)h(Example)137 ! 1878 y Fm(The)16 b(follo)o(wing)g(program)e(demonstrates)g(simple)j (use)e(of)g(the)g(GNU)g(History)g(Library)l(.)195 1944 ! y Fl(main)23 b(\(\))195 1995 y({)243 2047 y(char)g(line[1024],)f(*t;) 243 2099 y(int)h(len,)g(done)h(=)g(0;)243 2203 y(line[0])f(=)g(0;)243 2307 y(using_history)f(\(\);)243 2359 y(while)h(\(!done\))290 --- 2006,2013 ---- (expansion)i(c)o(haracter)e(for)g(additional)i(purp)q(oses.)28 b(By)18 b(default,)195 1647 y(this)e(v)m(ariable)g(is)g(set)f(to)f ! (NULL.)75 1780 y Fm(2.5)33 b(History)22 b(Programming)h(Example)137 ! 1878 y Fo(The)16 b(follo)o(wing)g(program)e(demonstrates)g(simple)j (use)e(of)g(the)g(GNU)g(History)g(Library)l(.)195 1944 ! y Fn(main)23 b(\(\))195 1995 y({)243 2047 y(char)g(line[1024],)f(*t;) 243 2099 y(int)h(len,)g(done)h(=)g(0;)243 2203 y(line[0])f(=)g(0;)243 2307 y(using_history)f(\(\);)243 2359 y(while)h(\(!done\))290 *************** *** 1954,1959 **** 2670 y({)p eop %%Page: 9 11 ! 9 10 bop 75 -58 a Fm(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g ! (History)889 b(9)434 183 y Fl(len)23 b(=)h(strlen)f(\(t\);)434 235 y(if)g(\(t[len)g(-)h(1])g(==)f('\\n'\))481 287 y(t[len)h(-)f(1])h (=)g('\\0';)386 339 y(})338 443 y(if)g(\(!t\))386 495 --- 2017,2022 ---- 2670 y({)p eop %%Page: 9 11 ! 9 10 bop 75 -58 a Fo(Chapter)15 b(2:)k(Programming)c(with)g(GNU)g ! (History)889 b(9)434 183 y Fn(len)23 b(=)h(strlen)f(\(t\);)434 235 y(if)g(\(t[len)g(-)h(1])g(==)f('\\n'\))481 287 y(t[len)h(-)f(1])h (=)g('\\0';)386 339 y(})338 443 y(if)g(\(!t\))386 495 *************** *** 1982,1987 **** (+)h(6,)f("\045d",)h(&which\)\))e(==)i(1\))p eop %%Page: 10 12 ! 10 11 bop 75 -58 a Fm(10)1324 b(GNU)15 b(History)g(Library)481 ! 183 y Fl({)529 235 y(HIST_ENTRY)23 b(*entry)g(=)g(remove_history)f (\(which\);)529 287 y(if)i(\(!entry\))577 339 y(fprintf)f(\(stderr,)f ("No)i(such)f(entry)g(\045d\\n",)g(which\);)529 391 y(else)577 --- 2045,2050 ---- (+)h(6,)f("\045d",)h(&which\)\))e(==)i(1\))p eop %%Page: 10 12 ! 10 11 bop 75 -58 a Fo(10)1324 b(GNU)15 b(History)g(Library)481 ! 183 y Fn({)529 235 y(HIST_ENTRY)23 b(*entry)g(=)g(remove_history)f (\(which\);)529 287 y(if)i(\(!entry\))577 339 y(fprintf)f(\(stderr,)f ("No)i(such)f(entry)g(\045d\\n",)g(which\);)529 391 y(else)577 *************** *** 1992,2068 **** 1013 y(})p eop %%Page: 11 13 ! 11 12 bop 75 -58 a Fm(App)q(endix)17 b(A:)e(Concept)g(Index)1196 ! b(11)75 183 y Fi(App)r(endix)25 b(A)41 b(Concept)27 b(Index)137 ! 359 y Fc(\(Index)14 b(is)f(nonexisten)o(t\))p eop %%Page: 12 14 ! 12 13 bop 75 -58 a Fm(12)1324 b(GNU)15 b(History)g(Library)p eop %%Page: 13 15 ! 13 14 bop 75 -58 a Fm(App)q(endix)17 b(B:)e(F)l(unction)h(and)g(V)l ! (ariable)g(Index)919 b(13)75 183 y Fi(App)r(endix)25 b(B)41 b(F)-7 b(unction)26 b(and)h(V)-7 b(ariable)26 ! b(Index)137 359 y Fc(\(Index)14 b(is)f(nonexisten)o(t\))p ! eop %%Page: 14 16 ! 14 15 bop 75 -58 a Fm(14)1324 b(GNU)15 b(History)g(Library)p eop %%Page: -1 17 ! -1 16 bop 1862 -58 a Fm(i)75 183 y Fi(T)-7 b(able)27 ! b(of)f(Con)n(ten)n(ts)75 354 y Fk(1)67 b(Using)22 b(History)h(In)n (teractiv)n(ely)9 b Fb(.)k(.)d(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)h ! (.)f(.)g(.)g(.)h(.)31 b Fk(1)224 423 y Fm(1.1)45 b(History)15 b(Expansion)5 b Fa(.)j(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)g(.)f(.)h(.)f (.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) ! f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)19 b Fm(1)374 478 y(1.1.1)44 b(Ev)o(en)o(t)14 b(Designators)e Fa(.)7 b(.)h(.)f(.)h(.)f(.)h(.)f(.)h (.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.) ! f(.)h(.)f(.)h(.)26 b Fm(1)374 532 y(1.1.2)44 b(W)l(ord)15 b(Designators)5 b Fa(.)h(.)i(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h ! (.)19 b Fm(2)374 587 y(1.1.3)44 b(Mo)q(di\014ers)t Fa(.)8 b(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)g(.)f (.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) ! f(.)h(.)f(.)19 b Fm(2)75 708 y Fk(2)67 b(Programming)23 b(with)g(GNU)f(History)16 b Fb(.)10 b(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f ! (.)g(.)38 b Fk(3)224 777 y Fm(2.1)45 b(In)o(tro)q(duction)16 b(to)f(History)10 b Fa(.)d(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f (.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) ! f(.)h(.)f(.)h(.)24 b Fm(3)224 832 y(2.2)45 b(History)15 b(Storage)c Fa(.)d(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f (.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) ! g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)26 b Fm(3)224 886 y(2.3)45 b(History)15 b(F)l(unctions)d Fa(.)c(.)f(.)h(.)f(.)h(.)f(.)h (.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)26 ! b Fm(4)374 941 y(2.3.1)44 b(Initializing)18 b(History)d(and)h(State)e (Managemen)o(t)g Fa(.)7 b(.)h(.)g(.)f(.)h(.)f(.)29 b ! Fm(4)374 996 y(2.3.2)44 b(History)15 b(List)h(Managemen)o(t)d Fa(.)7 b(.)h(.)f(.)h(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.) ! h(.)f(.)h(.)f(.)h(.)f(.)29 b Fm(4)374 1051 y(2.3.3)44 b(Information)15 b(Ab)q(out)g(the)h(History)f(List)c Fa(.)d(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)26 ! b Fm(5)374 1106 y(2.3.4)44 b(Mo)o(ving)15 b(Around)g(the)g(History)g (List)c Fa(.)d(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f ! (.)h(.)25 b Fm(5)374 1160 y(2.3.5)44 b(Searc)o(hing)16 b(the)f(History)g(List)7 b Fa(.)h(.)g(.)f(.)h(.)g(.)f(.)h(.)f(.)h(.)f (.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)22 ! b Fm(5)374 1215 y(2.3.6)44 b(Managing)15 b(the)g(History)g(File)6 b Fa(.)i(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) ! f(.)h(.)f(.)h(.)f(.)h(.)20 b Fm(6)374 1270 y(2.3.7)44 b(History)15 b(Expansion)9 b Fa(.)f(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h (.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.) ! h(.)f(.)24 b Fm(6)224 1325 y(2.4)45 b(History)15 b(V)l(ariables)6 b Fa(.)j(.)e(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)g(.)f(.)h(.)f(.)h(.) f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h ! (.)f(.)h(.)f(.)h(.)f(.)21 b Fm(7)224 1380 y(2.5)45 b(History)15 b(Programming)f(Example)7 b Fa(.)i(.)e(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f (.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)22 ! b Fm(8)75 1501 y Fk(App)r(endix)i(A)67 b(Concept)22 b(Index)17 b Fb(.)10 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g ! (.)38 b Fk(11)75 1636 y(App)r(endix)24 b(B)67 b(F)-6 b(unction)25 b(and)e(V)-6 b(ariable)24 b(Index)16 b Fb(.)10 ! b(.)g(.)g(.)38 b Fk(13)p eop %%Page: -2 18 ! -2 17 bop 75 -58 a Fm(ii)1346 b(GNU)15 b(History)g(Library)p eop %%Trailer --- 2055,2262 ---- 1013 y(})p eop %%Page: 11 13 ! 11 12 bop 75 -58 a Fo(App)q(endix)17 b(A:)e(Concept)g(Index)1196 ! b(11)75 183 y Fk(App)r(endix)25 b(A)41 b(Concept)27 b(Index)75 ! 359 y Fm(A)75 417 y Fe(anc)o(hored)14 b(searc)o(h)s Fd(.)7 ! b(.)f(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)16 ! b Fe(5)75 517 y Fm(E)75 575 y Fe(ev)o(en)o(t)d(designators)c ! Fd(.)g(.)d(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)21 ! b Fe(1)1012 359 y Fm(H)1012 417 y Fe(history)15 b(ev)o(en)o(ts)s ! Fd(.)7 b(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.) ! g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g ! (.)16 b Fe(1)1012 467 y(history)f(expansion)6 b Fd(.)j(.)d(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)19 b Fe(1)1012 517 y(History)14 ! b(Searc)o(hing)5 b Fd(.)j(.)e(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)18 b Fe(5)p eop %%Page: 12 14 ! 12 13 bop 75 -58 a Fo(12)1324 b(GNU)15 b(History)g(Library)p eop %%Page: 13 15 ! 13 14 bop 75 -58 a Fo(App)q(endix)17 b(B:)e(F)l(unction)h(and)g(V)l ! (ariable)g(Index)919 b(13)75 183 y Fk(App)r(endix)25 b(B)41 b(F)-7 b(unction)26 b(and)h(V)-7 b(ariable)26 ! b(Index)75 359 y Fm(A)75 417 y Fc(add)p 137 417 12 2 ! v 13 w(history)6 b Fd(.)s(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)g(.)g(.)h(.)18 b Fe(4)75 467 y Fc(append)p ! 197 467 V 12 w(history)8 b Fd(.)e(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.) ! g(.)g(.)g(.)g(.)23 b Fe(6)75 567 y Fm(C)75 625 y Fc(clear)p ! 177 625 V 12 w(history)s Fd(.)t(.)6 b(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.) ! g(.)g(.)g(.)g(.)g(.)g(.)16 b Fe(4)75 675 y Fc(current)p ! 217 675 V 11 w(history)7 b Fd(.)f(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)22 b Fe(5)75 774 y Fm(G)75 832 y Fc(get)p ! 137 832 V 13 w(history)p 290 832 V 11 w(event)8 b Fd(.)e(.)g(.)g(.)g(.) ! g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h ! (.)f(.)g(.)g(.)g(.)g(.)g(.)22 b Fe(7)75 932 y Fm(H)75 ! 990 y Fc(history)p 217 990 V 11 w(arg)p 288 990 V 13 ! w(extract)7 b Fd(.)t(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.) ! g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)20 ! b Fe(7)75 1040 y Fc(history)p 217 1040 V 11 w(base)f ! Fd(.)6 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.) ! g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)19 ! b Fe(7)75 1090 y Fc(history_co)o(mm)o(ent)o(_c)o(har)h ! Fd(.)6 b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)g(.)g(.)h(.)f(.)23 b Fe(8)75 1139 y Fc(history)p ! 217 1139 V 11 w(expand)9 b Fd(.)d(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.) ! g(.)g(.)g(.)g(.)23 b Fe(7)75 1189 y Fc(history)p 217 ! 1189 V 11 w(expansion)p 408 1189 V 11 w(char)17 b Fd(.)6 ! b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)18 b Fe(7)75 1239 y Fc(history)p 217 ! 1239 V 11 w(get)6 b Fd(.)f(.)h(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)g(.)g(.)h(.)18 b Fe(5)75 1289 y Fc(history)p ! 217 1289 V 11 w(get)p 288 1289 V 13 w(history)p 441 1289 ! V 12 w(state)9 b Fd(.)d(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)h(.)f(.)g(.)g(.)g(.)g(.)23 b Fe(4)75 1339 y Fc(history_in)o(hi)o ! (bit)o(_e)o(xpa)o(nsi)o(on)o(_fu)o(nc)o(tio)o(n)d Fd(.)6 ! b(.)g(.)g(.)g(.)g(.)g(.)g(.)23 b Fe(8)75 1389 y Fc(history)p ! 217 1389 V 11 w(is)p 268 1389 V 14 w(stifled)8 b Fd(.)s(.)f(.)f(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)g(.)g(.)21 b Fe(4)75 1438 y Fc(history)p ! 217 1438 V 11 w(length)15 b Fd(.)6 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) ! g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)17 b Fe(7)75 1488 y Fc(history)p 217 ! 1488 V 11 w(list)5 b Fd(.)g(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.) ! f(.)g(.)g(.)g(.)g(.)17 b Fe(5)75 1538 y Fc(history_no)o(_e)o(xpa)o(nd)o ! (_ch)o(ars)f Fd(.)6 b(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)20 b Fe(8)75 1588 y Fc(history_qu)o(ot)o ! (es_)o(in)o(hib)o(it_)o(ex)o(pan)o(si)o(on)14 b Fd(.)6 ! b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)17 b Fe(8)75 ! 1638 y Fc(history)p 217 1638 V 11 w(search)9 b Fd(.)d(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)23 b Fe(5)75 1687 ! y Fc(history_se)o(ar)o(ch_)o(de)o(lim)o(ite)o(r_)o(cha)o(rs)16 ! b Fd(.)6 b(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)19 ! b Fe(8)75 1737 y Fc(history)p 217 1737 V 11 w(search)p ! 348 1737 V 12 w(pos)8 b Fd(.)d(.)i(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)21 ! b Fe(6)75 1787 y Fc(history)p 217 1787 V 11 w(search)p ! 348 1787 V 12 w(prefix)5 b Fd(.)t(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)17 ! b Fe(6)75 1837 y Fc(history)p 217 1837 V 11 w(set)p 288 ! 1837 V 13 w(history)p 441 1837 V 12 w(state)9 b Fd(.)d(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)23 ! b Fe(4)75 1887 y Fc(history)p 217 1887 V 11 w(set)p 288 ! 1887 V 13 w(pos)t Fd(.)5 b(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.) ! g(.)g(.)16 b Fe(5)1012 359 y Fc(history_sub)o(st)o(_ch)o(ar)e ! Fd(.)6 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)18 b Fe(8)1012 ! 409 y Fc(history)p 1154 409 V 12 w(tokenize)8 b Fd(.)s(.)e(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)h(.)f(.)g(.)g(.)g(.)21 b Fe(7)1012 459 y Fc(history)p ! 1154 459 V 12 w(total)p 1266 459 V 12 w(bytes)7 b Fd(.)t(.)f(.)g(.)g(.) ! g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f ! (.)g(.)g(.)g(.)g(.)20 b Fe(5)1012 509 y Fc(history)p ! 1154 509 V 12 w(truncate)p 1326 509 V 11 w(file)5 b Fd(.)t(.)h(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)18 b Fe(6)1012 612 y Fm(M)1012 670 y Fc(max)p ! 1074 670 V 13 w(input)p 1187 670 V 13 w(history)13 b ! Fd(.)6 b(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)16 b ! Fe(7)1012 773 y Fm(N)1012 831 y Fc(next)p 1094 831 V ! 13 w(history)5 b Fd(.)s(.)h(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)g(.)18 b Fe(5)1012 934 y Fm(P)1012 992 y ! Fc(previous)p 1174 992 V 11 w(history)8 b Fd(.)t(.)e(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)h(.)f(.)g(.)g(.)g(.)21 b Fe(5)1012 1096 y Fm(R)1012 ! 1154 y Fc(read)p 1094 1154 V 13 w(history)5 b Fd(.)s(.)h(.)g(.)g(.)g(.) ! g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)18 b Fe(6)1012 ! 1204 y Fc(read)p 1094 1204 V 13 w(history)p 1247 1204 ! V 11 w(range)8 b Fd(.)d(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)21 ! b Fe(6)1012 1253 y Fc(remove)p 1134 1253 V 12 w(history)8 ! b Fd(.)e(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)24 ! b Fe(4)1012 1303 y Fc(replace)p 1154 1303 V 12 w(history)p ! 1306 1303 V 11 w(entry)5 b Fd(.)t(.)h(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)18 ! b Fe(4)1012 1406 y Fm(S)1012 1464 y Fc(stifle)p 1134 ! 1464 V 12 w(history)8 b Fd(.)e(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)24 b Fe(4)1012 1568 y Fm(U)1012 1626 y Fc(unstifle)p ! 1174 1626 V 11 w(history)8 b Fd(.)t(.)e(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h ! (.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.) ! g(.)g(.)21 b Fe(4)1012 1676 y Fc(using)p 1114 1676 V ! 13 w(history)s Fd(.)s(.)6 b(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)17 b Fe(4)1012 1779 y Fm(W)1012 1837 y Fc(where)p ! 1114 1837 V 13 w(history)s Fd(.)s(.)6 b(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)g(.)g(.)g(.)17 b Fe(5)1012 1887 y Fc(write)p ! 1114 1887 V 13 w(history)s Fd(.)s(.)6 b(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g ! (.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.)g(.) ! g(.)g(.)g(.)g(.)g(.)g(.)17 b Fe(6)p eop %%Page: 14 16 ! 14 15 bop 75 -58 a Fo(14)1324 b(GNU)15 b(History)g(Library)p eop %%Page: -1 17 ! -1 16 bop 1862 -58 a Fo(i)75 183 y Fk(T)-7 b(able)27 ! b(of)f(Con)n(ten)n(ts)75 354 y Fm(1)67 b(Using)22 b(History)h(In)n (teractiv)n(ely)9 b Fb(.)k(.)d(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)h ! (.)f(.)g(.)g(.)h(.)31 b Fm(1)224 423 y Fo(1.1)45 b(History)15 b(Expansion)5 b Fa(.)j(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)g(.)f(.)h(.)f (.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) ! f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)19 b Fo(1)374 478 y(1.1.1)44 b(Ev)o(en)o(t)14 b(Designators)e Fa(.)7 b(.)h(.)f(.)h(.)f(.)h(.)f(.)h (.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.) ! f(.)h(.)f(.)h(.)26 b Fo(1)374 532 y(1.1.2)44 b(W)l(ord)15 b(Designators)5 b Fa(.)h(.)i(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h ! (.)19 b Fo(2)374 587 y(1.1.3)44 b(Mo)q(di\014ers)t Fa(.)8 b(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)g(.)f (.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) ! f(.)h(.)f(.)19 b Fo(2)75 708 y Fm(2)67 b(Programming)23 b(with)g(GNU)f(History)16 b Fb(.)10 b(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f ! (.)g(.)38 b Fm(3)224 777 y Fo(2.1)45 b(In)o(tro)q(duction)16 b(to)f(History)10 b Fa(.)d(.)g(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f (.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) ! f(.)h(.)f(.)h(.)24 b Fo(3)224 832 y(2.2)45 b(History)15 b(Storage)c Fa(.)d(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f (.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) ! g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)26 b Fo(3)224 886 y(2.3)45 b(History)15 b(F)l(unctions)d Fa(.)c(.)f(.)h(.)f(.)h(.)f(.)h (.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)26 ! b Fo(4)374 941 y(2.3.1)44 b(Initializing)18 b(History)d(and)h(State)e (Managemen)o(t)g Fa(.)7 b(.)h(.)g(.)f(.)h(.)f(.)29 b ! Fo(4)374 996 y(2.3.2)44 b(History)15 b(List)h(Managemen)o(t)d Fa(.)7 b(.)h(.)f(.)h(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.) ! h(.)f(.)h(.)f(.)h(.)f(.)29 b Fo(4)374 1051 y(2.3.3)44 b(Information)15 b(Ab)q(out)g(the)h(History)f(List)c Fa(.)d(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)26 ! b Fo(5)374 1106 y(2.3.4)44 b(Mo)o(ving)15 b(Around)g(the)g(History)g (List)c Fa(.)d(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f ! (.)h(.)25 b Fo(5)374 1160 y(2.3.5)44 b(Searc)o(hing)16 b(the)f(History)g(List)7 b Fa(.)h(.)g(.)f(.)h(.)g(.)f(.)h(.)f(.)h(.)f (.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)22 ! b Fo(5)374 1215 y(2.3.6)44 b(Managing)15 b(the)g(History)g(File)6 b Fa(.)i(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.) ! f(.)h(.)f(.)h(.)f(.)h(.)20 b Fo(6)374 1270 y(2.3.7)44 b(History)15 b(Expansion)9 b Fa(.)f(.)g(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h (.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.) ! h(.)f(.)24 b Fo(6)224 1325 y(2.4)45 b(History)15 b(V)l(ariables)6 b Fa(.)j(.)e(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)g(.)f(.)h(.)f(.)h(.) f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h ! (.)f(.)h(.)f(.)h(.)f(.)21 b Fo(7)224 1380 y(2.5)45 b(History)15 b(Programming)f(Example)7 b Fa(.)i(.)e(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f (.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)h(.)f(.)22 ! b Fo(8)75 1501 y Fm(App)r(endix)i(A)67 b(Concept)22 b(Index)17 b Fb(.)10 b(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g ! (.)38 b Fm(11)75 1636 y(App)r(endix)24 b(B)67 b(F)-6 b(unction)25 b(and)e(V)-6 b(ariable)24 b(Index)16 b Fb(.)10 ! b(.)g(.)g(.)38 b Fm(13)p eop %%Page: -2 18 ! -2 17 bop 75 -58 a Fo(ii)1346 b(GNU)15 b(History)g(Library)p eop %%Trailer diff -aNrc2 readline-2.2.1/doc/history_toc.html readline-4.0/doc/history_toc.html *** readline-2.2.1/doc/history_toc.html Thu Apr 2 14:45:29 1998 --- readline-4.0/doc/history_toc.html Wed Dec 31 19:00:00 1969 *************** *** 1,51 **** - - - - - GNU History Library - Table of Contents - - -

    GNU History Library

    -

    Edition 2.1, for History Library Version 2.1.

    -

    March 1996

    -
    Brian Fox, Free Software Foundation
    -
    Chet Ramey, Case Western Reserve University
    -

    -


    -

    -


    - This document was generated on 2 April 1998 using the - texi2html - translator version 1.51.

    - - --- 0 ---- diff -aNrc2 readline-2.2.1/doc/manvers.texinfo readline-4.0/doc/manvers.texinfo *** readline-2.2.1/doc/manvers.texinfo Wed Dec 31 19:00:00 1969 --- readline-4.0/doc/manvers.texinfo Thu Dec 31 10:50:36 1998 *************** *** 0 **** --- 1,6 ---- + @set EDITION 4.0 + @set VERSION 4.0 + @set UPDATED 31 December 1998 + @set UPDATE-MONTH December 1998 + + @set LASTCHANGE Thu Dec 31 10:17:05 EST 1998 diff -aNrc2 readline-2.2.1/doc/readline.0 readline-4.0/doc/readline.0 *** readline-2.2.1/doc/readline.0 Thu Apr 2 14:45:34 1998 --- readline-4.0/doc/readline.0 Thu Dec 31 10:26:57 1998 *************** *** 9,12 **** --- 9,13 ---- SSYYNNOOPPSSIISS + ##iinncclluuddee <> ##iinncclluuddee <> ##iinncclluuddee <> *************** *** 58,66 **** When a command is described as _k_i_l_l_i_n_g text, the text - deleted is saved for possible future retrieval (_y_a_n_k_i_n_g). ! GNU 1998 Feb 19 1 --- 59,66 ---- When a command is described as _k_i_l_l_i_n_g text, the text ! GNU 1998 Dec 31 1 *************** *** 71,74 **** --- 71,75 ---- + deleted is saved for possible future retrieval (_y_a_n_k_i_n_g). The killed text is saved in a _k_i_l_l _r_i_n_g. Consecutive kills cause the text to be accumulated into one unit, *************** *** 127,132 **** ! ! GNU 1998 Feb 19 2 --- 128,132 ---- ! GNU 1998 Dec 31 2 *************** *** 194,198 **** ! GNU 1998 Feb 19 3 --- 194,198 ---- ! GNU 1998 Dec 31 3 *************** *** 260,264 **** ! GNU 1998 Feb 19 4 --- 260,264 ---- ! GNU 1998 Dec 31 4 *************** *** 275,278 **** --- 275,290 ---- single screen line when it becomes longer than the screen width rather than wrapping to a new line. + iinnppuutt--mmeettaa ((OOffff)) + If set to OOnn, readline will enable eight-bit input + (that is, it will not strip the high bit from the + characters it reads), regardless of what the termi- + nal claims it can support. The name mmeettaa--ffllaagg is a + synonym for this variable. + iisseeaarrcchh--tteerrmmiinnaattoorrss ((````CC--[[CC--JJ'''')) + 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 _E_S_C and _C_-_J + will terminate an incremental search. kkeeyymmaapp ((eemmaaccss)) Set the current readline keymap. The set of legal *************** *** 289,330 **** If set to OOnn, history lines that have been modified are displayed with a preceding asterisk (**). - mmeettaa--ffllaagg ((OOffff)) - If set to OOnn, readline will enable eight-bit input - (that is, it will not strip the high bit from the - characters it reads), regardless of what the termi- - nal claims it can support. oouuttppuutt--mmeettaa ((OOffff)) If set to OOnn, readline will display characters with ! the eighth bit set directly rather than as a meta- prefixed escape sequence. pprriinntt--ccoommpplleettiioonnss--hhoorriizzoonnttaallllyy ((OOffff)) ! If set to OOnn, readline will display completions ! with matches sorted horizontally in alphabetical order, rather than down the screen. sshhooww--aallll--iiff--aammbbiigguuoouuss ((OOffff)) ! This alters the default behavior of the completion ! functions. If set to oonn, words which have more ! than one possible completion cause the matches to ! be listed immediately instead of ringing the bell. vviissiibbllee--ssttaattss ((OOffff)) If set to OOnn, a character denoting a file's type as ! reported by ssttaatt(2) is appended to the filename when listing possible completions. CCoonnddiittiioonnaall CCoonnssttrruuccttss ! 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 per- ! formed as the result of tests. There are four parser ! directives used. ! ! $$iiff The $$iiff 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 ! GNU 1998 Feb 19 5 --- 301,330 ---- If set to OOnn, history lines that have been modified are displayed with a preceding asterisk (**). oouuttppuutt--mmeettaa ((OOffff)) If set to OOnn, readline will display characters with ! the eighth bit set directly rather than as a meta- prefixed escape sequence. pprriinntt--ccoommpplleettiioonnss--hhoorriizzoonnttaallllyy ((OOffff)) ! If set to OOnn, readline will display completions ! with matches sorted horizontally in alphabetical order, rather than down the screen. sshhooww--aallll--iiff--aammbbiigguuoouuss ((OOffff)) ! This alters the default behavior of the completion ! functions. If set to oonn, words which have more ! than one possible completion cause the matches to ! be listed immediately instead of ringing the bell. vviissiibbllee--ssttaattss ((OOffff)) If set to OOnn, a character denoting a file's type as ! reported by ssttaatt(2) is appended to the filename when listing possible completions. CCoonnddiittiioonnaall CCoonnssttrruuccttss ! 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 ! GNU 1998 Dec 31 5 *************** *** 335,353 **** are required to isolate it. ! mmooddee The mmooddee== form of the $$iiff directive is used ! to test whether readline is in emacs or vi ! mode. This may be used in conjunction with the sseett kkeeyymmaapp command, for instance, to set ! bindings in the _e_m_a_c_s_-_s_t_a_n_d_a_r_d and _e_m_a_c_s_- ! _c_t_l_x keymaps only if readline is starting out in emacs mode. tteerrmm The tteerrmm== form may be used to include termi- ! nal-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 the full name of the terminal and the portion of the terminal name before the first --. This allows _s_u_n to --- 335,360 ---- + performed as the result of tests. There are four parser + directives used. + + $$iiff The $$iiff 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. ! mmooddee The mmooddee== form of the $$iiff directive is used ! to test whether readline is in emacs or vi ! mode. This may be used in conjunction with the sseett kkeeyymmaapp command, for instance, to set ! bindings in the _e_m_a_c_s_-_s_t_a_n_d_a_r_d and _e_m_a_c_s_- ! _c_t_l_x keymaps only if readline is starting out in emacs mode. tteerrmm The tteerrmm== form may be used to include termi- ! nal-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 the full name of the terminal and the portion of the terminal name before the first --. This allows _s_u_n to *************** *** 358,367 **** application-specific settings. Each program using the readline library sets the _a_p_p_l_i_c_a_- ! _t_i_o_n _n_a_m_e, and an initialization file can ! test for a particular value. This could be used to bind key sequences to functions use- ! ful for a specific program. For instance, ! the following command adds a key sequence ! that quotes the current or previous word in Bash: --- 365,374 ---- application-specific settings. Each program using the readline library sets the _a_p_p_l_i_c_a_- ! _t_i_o_n _n_a_m_e, and an initialization file can ! test for a particular value. This could be used to bind key sequences to functions use- ! ful for a specific program. For instance, ! the following command adds a key sequence ! that quotes the current or previous word in Bash: *************** *** 374,396 **** minates an $$iiff command. ! $$eellssee Commands in this branch of the $$iiff directive are executed if the test fails. $$iinncclluuddee ! This directive takes a single filename as an argu- ! ment and reads commands and bindings from that ! file. For example, the following directive would read _/_e_t_c_/_i_n_p_u_t_r_c: - $$iinncclluuddee _/_e_t_c_/_i_n_p_u_t_r_c - - SSEEAARRCCHHIINNGG - Readline provides commands for searching through the com- - mand history for lines containing a specified string. - There are two search modes: _i_n_c_r_e_m_e_n_t_a_l and _n_o_n_- - ! GNU 1998 Feb 19 6 --- 381,396 ---- minates an $$iiff command. ! $$eellssee Commands in this branch of the $$iiff directive are executed if the test fails. $$iinncclluuddee ! This directive takes a single filename as an argu- ! ment and reads commands and bindings from that ! file. For example, the following directive would read _/_e_t_c_/_i_n_p_u_t_r_c: ! GNU 1998 Dec 31 6 *************** *** 401,434 **** ! _i_n_c_r_e_m_e_n_t_a_l. ! 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. The Escape character is used ! to terminate an incremental search. Control-J will also ! terminate the search. Control-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 Control-S or Control-R as appro- ! priate. This will search backward or forward in the his- ! tory 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 _n_e_w_l_i_n_e will terminate the search and accept ! the line, thereby executing the command from the history ! list. ! 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. EEDDIITTIINNGG CCOOMMMMAANNDDSS ! The following is a list of the names of the commands and ! the default key sequences to which they are bound. Com- mand names without an accompanying key sequence are unbound by default. --- 401,442 ---- ! $$iinncclluuddee _/_e_t_c_/_i_n_p_u_t_r_c ! ! SSEEAARRCCHHIINNGG ! Readline provides commands for searching through the com- ! mand history for lines containing a specified string. ! There are two search modes: _i_n_c_r_e_m_e_n_t_a_l and _n_o_n_-_i_n_c_r_e_m_e_n_- ! _t_a_l. ! 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. The characters present in the ! value of the _i_s_e_a_r_c_h_-_t_e_r_m_i_n_a_t_o_r_s variable are used to ter- ! minate an incremental search. If that variable has not ! been assigned a value the Escape and Control-J characters ! will terminate an incremental search. Control-G will ! abort an incremental search and restore the original line. ! When the search is terminated, the history entry contain- ! ing the search string becomes the current line. To find ! other matching entries in the history list, type Control-S ! or Control-R 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 exe- ! cute that command. For instance, a _n_e_w_l_i_n_e will terminate ! the search and accept the line, thereby executing the com- ! mand from the history list. ! 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. EEDDIITTIINNGG CCOOMMMMAANNDDSS ! The following is a list of the names of the commands and ! the default key sequences to which they are bound. Com- mand names without an accompanying key sequence are unbound by default. *************** *** 444,462 **** Move back a character. ffoorrwwaarrdd--wwoorrdd ((MM--ff)) ! Move forward to the end of the next word. Words ! are composed of alphanumeric characters (letters and digits). - bbaacckkwwaarrdd--wwoorrdd ((MM--bb)) - Move back to the start of this, or the previous, - word. Words are composed of alphanumeric charac- - ters (letters and digits). - cclleeaarr--ssccrreeeenn ((CC--ll)) - Clear the screen leaving the current line at the - top of the screen. With an argument, refresh the - current line without clearing the screen. ! GNU 1998 Feb 19 7 --- 452,462 ---- Move back a character. ffoorrwwaarrdd--wwoorrdd ((MM--ff)) ! Move forward to the end of the next word. Words ! are composed of alphanumeric characters (letters and digits). ! GNU 1998 Dec 31 7 *************** *** 467,470 **** --- 467,478 ---- + bbaacckkwwaarrdd--wwoorrdd ((MM--bb)) + Move back to the start of this, or the previous, + word. Words are composed of alphanumeric charac- + ters (letters and digits). + cclleeaarr--ssccrreeeenn ((CC--ll)) + Clear the screen leaving the current line at the + top of the screen. With an argument, refresh the + current line without clearing the screen. rreeddrraaww--ccuurrrreenntt--lliinnee Refresh the current line. *************** *** 472,528 **** CCoommmmaannddss ffoorr MMaanniippuullaattiinngg tthhee HHiissttoorryy aacccceepptt--lliinnee ((NNeewwlliinnee,, RReettuurrnn)) ! Accept the line regardless of where the cursor is. ! If this line is non-empty, add it to the history ! list. If the line is a modified history line, then restore the history line to its original state. pprreevviioouuss--hhiissttoorryy ((CC--pp)) ! Fetch the previous command from the history list, moving back in the list. nneexxtt--hhiissttoorryy ((CC--nn)) ! Fetch the next command from the history list, mov- ing forward in the list. bbeeggiinnnniinngg--ooff--hhiissttoorryy ((MM--<<)) Move to the first line in the history. eenndd--ooff--hhiissttoorryy ((MM-->>)) ! Move to the end of the input history, i.e., the line currently being entered. rreevveerrssee--sseeaarrcchh--hhiissttoorryy ((CC--rr)) ! Search backward starting at the current line and moving `up' through the history as necessary. This is an incremental search. ffoorrwwaarrdd--sseeaarrcchh--hhiissttoorryy ((CC--ss)) ! Search forward starting at the current line and ! moving `down' through the history as necessary. This is an incremental search. nnoonn--iinnccrreemmeennttaall--rreevveerrssee--sseeaarrcchh--hhiissttoorryy ((MM--pp)) Search backward through the history starting at the ! current line using a non-incremental search for a string supplied by the user. nnoonn--iinnccrreemmeennttaall--ffoorrwwaarrdd--sseeaarrcchh--hhiissttoorryy ((MM--nn)) ! Search forward through the history using a non- ! incremental search for a string supplied by the user. hhiissttoorryy--sseeaarrcchh--ffoorrwwaarrdd ! Search forward through the history for the string of characters between the start of the current line ! and the current cursor position (the _p_o_i_n_t). This is a non-incremental search. hhiissttoorryy--sseeaarrcchh--bbaacckkwwaarrdd ! 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. - yyaannkk--nntthh--aarrgg ((MM--CC--yy)) - Insert the first argument to the previous command - (usually the second word on the previous line) at - point (the current cursor position). With an argu- - ment _n, insert the _nth word from the previous com- - mand (the words in the previous command begin with - word 0). A negative argument inserts the _nth word - from the end of the previous command. ! GNU 1998 Feb 19 8 --- 480,528 ---- CCoommmmaannddss ffoorr MMaanniippuullaattiinngg tthhee HHiissttoorryy aacccceepptt--lliinnee ((NNeewwlliinnee,, RReettuurrnn)) ! Accept the line regardless of where the cursor is. ! If this line is non-empty, add it to the history ! list. If the line is a modified history line, then restore the history line to its original state. pprreevviioouuss--hhiissttoorryy ((CC--pp)) ! Fetch the previous command from the history list, moving back in the list. nneexxtt--hhiissttoorryy ((CC--nn)) ! Fetch the next command from the history list, mov- ing forward in the list. bbeeggiinnnniinngg--ooff--hhiissttoorryy ((MM--<<)) Move to the first line in the history. eenndd--ooff--hhiissttoorryy ((MM-->>)) ! Move to the end of the input history, i.e., the line currently being entered. rreevveerrssee--sseeaarrcchh--hhiissttoorryy ((CC--rr)) ! Search backward starting at the current line and moving `up' through the history as necessary. This is an incremental search. ffoorrwwaarrdd--sseeaarrcchh--hhiissttoorryy ((CC--ss)) ! Search forward starting at the current line and ! moving `down' through the history as necessary. This is an incremental search. nnoonn--iinnccrreemmeennttaall--rreevveerrssee--sseeaarrcchh--hhiissttoorryy ((MM--pp)) Search backward through the history starting at the ! current line using a non-incremental search for a string supplied by the user. nnoonn--iinnccrreemmeennttaall--ffoorrwwaarrdd--sseeaarrcchh--hhiissttoorryy ((MM--nn)) ! Search forward through the history using a non- ! incremental search for a string supplied by the user. hhiissttoorryy--sseeaarrcchh--ffoorrwwaarrdd ! Search forward through the history for the string of characters between the start of the current line ! and the current cursor position (the _p_o_i_n_t). This is a non-incremental search. hhiissttoorryy--sseeaarrcchh--bbaacckkwwaarrdd ! 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. ! GNU 1998 Dec 31 8 *************** *** 533,542 **** yyaannkk--llaasstt--aarrgg ((MM--..,, MM--__)) ! Insert the last argument to the previous command ! (the last word of the previous history entry). With an argument, behave exactly like yyaannkk--nntthh--aarrgg. Successive calls to yyaannkk--llaasstt--aarrgg move back through ! the history list, inserting the last argument of each line in turn. --- 533,550 ---- + yyaannkk--nntthh--aarrgg ((MM--CC--yy)) + Insert the first argument to the previous command + (usually the second word on the previous line) at + point (the current cursor position). With an argu- + ment _n, insert the _nth word from the previous com- + mand (the words in the previous command begin with + word 0). A negative argument inserts the _nth word + from the end of the previous command. yyaannkk--llaasstt--aarrgg ((MM--..,, MM--__)) ! Insert the last argument to the previous command ! (the last word of the previous history entry). With an argument, behave exactly like yyaannkk--nntthh--aarrgg. Successive calls to yyaannkk--llaasstt--aarrgg move back through ! the history list, inserting the last argument of each line in turn. *************** *** 544,554 **** ddeelleettee--cchhaarr ((CC--dd)) Delete the character under the cursor. If point is ! at the beginning of the line, there are no charac- ! ters in the line, and the last character typed was not bound to BBddeelleettee--cchhaarr, then return EEOOFF. bbaacckkwwaarrdd--ddeelleettee--cchhaarr ((RRuubboouutt)) Delete the character behind the cursor. When given ! a numeric argument, save the deleted text on the kill ring. qquuootteedd--iinnsseerrtt ((CC--qq,, CC--vv)) Add the next character that you type to the line --- 552,567 ---- ddeelleettee--cchhaarr ((CC--dd)) Delete the character under the cursor. If point is ! at the beginning of the line, there are no charac- ! ters in the line, and the last character typed was not bound to BBddeelleettee--cchhaarr, then return EEOOFF. bbaacckkwwaarrdd--ddeelleettee--cchhaarr ((RRuubboouutt)) Delete the character behind the cursor. When given ! a numeric argument, save the deleted text on the kill ring. + ffoorrwwaarrdd--bbaacckkwwaarrdd--ddeelleettee--cchhaarr + 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. qquuootteedd--iinnsseerrtt ((CC--qq,, CC--vv)) Add the next character that you type to the line *************** *** 573,576 **** --- 586,602 ---- negative argument, uppercase the previous word, but do not move point. + + + + + GNU 1998 Dec 31 9 + + + + + + READLINE(3) READLINE(3) + + ddoowwnnccaassee--wwoorrdd ((MM--ll)) Lowercase the current (or following) word. With a *************** *** 586,602 **** Kill the text from the current cursor position to the end of the line. - - - - - GNU 1998 Feb 19 9 - - - - - - READLINE(3) READLINE(3) - - bbaacckkwwaarrdd--kkiillll--lliinnee ((CC--xx RRuubboouutt)) Kill backward to the beginning of the line. --- 612,615 ---- *************** *** 640,643 **** --- 653,668 ---- works following yyaannkk or yyaannkk--ppoopp. + + + + GNU 1998 Dec 31 10 + + + + + + READLINE(3) READLINE(3) + + NNuummeerriicc AArrgguummeennttss ddiiggiitt--aarrgguummeenntt ((MM--00,, MM--11,, ......,, MM----)) *************** *** 652,669 **** digits, executing uunniivveerrssaall--aarrgguummeenntt again ends the numeric argument, but is otherwise ignored. As a ! special case, if this command is immediately ! ! ! ! GNU 1998 Feb 19 10 ! ! ! ! ! ! READLINE(3) READLINE(3) ! ! ! 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 ini- --- 677,682 ---- digits, executing uunniivveerrssaall--aarrgguummeenntt again ends the numeric argument, but is otherwise ignored. As a ! special case, if this command is immediately fol- ! lowed 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 ini- *************** *** 706,733 **** TTAABB, but is unbound by default. - KKeeyybbooaarrdd MMaaccrrooss - ssttaarrtt--kkbbdd--mmaaccrroo ((CC--xx (()) - Begin saving the characters typed into the current - keyboard macro. - eenndd--kkbbdd--mmaaccrroo ((CC--xx )))) - Stop saving the characters typed into the current - keyboard macro and store the definition. - ccaallll--llaasstt--kkbbdd--mmaaccrroo ((CC--xx ee)) - Re-execute the last keyboard macro defined, by mak- - ing the characters in the macro appear as if typed - at the keyboard. - GNU 1998 Feb 19 11 ! READLINE(3) READLINE(3) MMiisscceellllaanneeoouuss --- 719,752 ---- TTAABB, but is unbound by default. + GNU 1998 Dec 31 11 + READLINE(3) READLINE(3) ! ddeelleettee--cchhaarr--oorr--lliisstt ! Deletes the character under the cursor if not at ! the beginning or end of the line (like ddeelleettee-- ! cchhaarr). If at the end of the line, behaves identi- ! cally to ppoossssiibbllee--ccoommpplleettiioonnss. This command is ! unbound by default. + KKeeyybbooaarrdd MMaaccrrooss + ssttaarrtt--kkbbdd--mmaaccrroo ((CC--xx (()) + Begin saving the characters typed into the current + keyboard macro. + eenndd--kkbbdd--mmaaccrroo ((CC--xx )))) + Stop saving the characters typed into the current + keyboard macro and store the definition. + ccaallll--llaasstt--kkbbdd--mmaaccrroo ((CC--xx ee)) + Re-execute the last keyboard macro defined, by mak- + ing the characters in the macro appear as if typed + at the keyboard. MMiisscceellllaanneeoouuss *************** *** 754,758 **** executing the uunnddoo command enough times to return the line to its initial state. ! ttiillddee--eexxppaanndd ((MM--~~)) Perform tilde expansion on the current word. sseett--mmaarrkk ((CC--@@,, MM--<>)) --- 773,777 ---- executing the uunnddoo command enough times to return the line to its initial state. ! ttiillddee--eexxppaanndd ((MM--&&)) Perform tilde expansion on the current word. sseett--mmaarrkk ((CC--@@,, MM--<>)) *************** *** 766,769 **** --- 785,800 ---- cchhaarraacctteerr--sseeaarrcchh ((CC--]])) A character is read and point is moved to the next + + + + GNU 1998 Dec 31 12 + + + + + + READLINE(3) READLINE(3) + + occurrence of that character. A negative count searches for previous occurrences. *************** *** 784,801 **** way that it can be made part of an _i_n_p_u_t_r_c file. dduummpp--vvaarriiaabblleess ! Print all of the settable variables and their ! ! ! ! GNU 1998 Feb 19 12 ! ! ! ! ! ! READLINE(3) READLINE(3) ! ! ! 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 _i_n_p_u_t_r_c --- 815,820 ---- way that it can be made part of an _i_n_p_u_t_r_c file. dduummpp--vvaarriiaabblleess ! Print all of the settable variables and their val- ! ues 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 _i_n_p_u_t_r_c *************** *** 831,834 **** --- 850,866 ---- able). + + + + + GNU 1998 Dec 31 13 + + + + + + READLINE(3) READLINE(3) + + EEmmaaccss MMooddee Emacs Standard bindings *************** *** 851,866 **** "C-Q" quoted-insert "C-R" reverse-search-history - - - - GNU 1998 Feb 19 13 - - - - - - READLINE(3) READLINE(3) - - "C-S" forward-search-history "C-T" transpose-chars --- 883,886 ---- *************** *** 897,900 **** --- 917,932 ---- "M-2" digit-argument "M-3" digit-argument + + + + GNU 1998 Dec 31 14 + + + + + + READLINE(3) READLINE(3) + + "M-4" digit-argument "M-5" digit-argument *************** *** 917,932 **** "M-T" transpose-words "M-U" upcase-word - - - - GNU 1998 Feb 19 14 - - - - - - READLINE(3) READLINE(3) - - "M-Y" yank-pop "M-\" delete-horizontal-space --- 949,952 ---- *************** *** 963,966 **** --- 983,998 ---- "C-Y" yank "C-[" vi-movement-mode + + + + GNU 1998 Dec 31 15 + + + + + + READLINE(3) READLINE(3) + + "C-_" undo " " to "~" self-insert *************** *** 983,998 **** "C-S" forward-search-history "C-T" transpose-chars - - - - GNU 1998 Feb 19 15 - - - - - - READLINE(3) READLINE(3) - - "C-U" unix-line-discard "C-V" quoted-insert --- 1015,1018 ---- *************** *** 1029,1032 **** --- 1049,1064 ---- "T" vi-char-search "U" revert-line + + + + GNU 1998 Dec 31 16 + + + + + + READLINE(3) READLINE(3) + + "W" vi-next-word "X" backward-delete-char *************** *** 1049,1064 **** "m" vi-set-mark "n" vi-search-again - - - - GNU 1998 Feb 19 16 - - - - - - READLINE(3) READLINE(3) - - "p" vi-put "r" vi-change-char --- 1081,1084 ---- *************** *** 1095,1098 **** --- 1115,1130 ---- Once you have determined that a bug actually exists, mail + + + + GNU 1998 Dec 31 17 + + + + + + READLINE(3) READLINE(3) + + a bug report to _b_u_g_-_r_e_a_d_l_i_n_e@_g_n_u_._o_r_g. If you have a fix, you are welcome to mail that as well! Suggestions and *************** *** 1118,1122 **** ! GNU 1998 Feb 19 17 --- 1150,1188 ---- ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! GNU 1998 Dec 31 18 diff -aNrc2 readline-2.2.1/doc/readline.3 readline-4.0/doc/readline.3 *** readline-2.2.1/doc/readline.3 Thu Feb 19 10:26:51 1998 --- readline-4.0/doc/readline.3 Thu Dec 31 10:16:52 1998 *************** *** 7,13 **** .\" chet@ins.CWRU.Edu .\" ! .\" Last Change: Thu Feb 19 10:26:47 EST 1998 .\" ! .TH READLINE 3 "1998 Feb 19" GNU .\" .\" File Name macro. This used to be `.PN', for Path Name, --- 7,13 ---- .\" chet@ins.CWRU.Edu .\" ! .\" Last Change: Thu Dec 31 10:16:30 EST 1998 .\" ! .TH READLINE 3 "1998 Dec 31" GNU .\" .\" File Name macro. This used to be `.PN', for Path Name, *************** *** 23,26 **** --- 23,27 ---- .nf .ft B + #include #include #include *************** *** 381,384 **** --- 382,398 ---- 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 strip the high bit from 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 *************** *** 401,409 **** with a preceding asterisk (\fB*\fP). .TP - .B meta\-flag (Off) - If set to \fBOn\fP, readline will enable eight-bit input (that is, - it will not strip the high bit from the characters it reads), - regardless of what the terminal claims it can support. - .TP .B output\-meta (Off) If set to \fBOn\fP, readline will display characters with the --- 415,418 ---- *************** *** 510,515 **** An incremental search requires only as many characters as needed to find the desired history entry. ! The Escape character is used to terminate an incremental search. ! Control-J will also terminate the search. Control-G will abort an incremental search and restore the original line. --- 519,526 ---- An incremental search requires only as many characters as needed to find the desired history entry. ! The characters present in the value of the \fIisearch-terminators\fP ! variable are used to terminate an incremental search. ! If that variable has not been assigned a value the Escape and ! Control-J characters will terminate an incremental search. Control-G will abort an incremental search and restore the original line. *************** *** 648,651 **** --- 659,667 ---- 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. By default, this is not bound to a key. + .TP .B quoted\-insert (C\-q, C\-v) Add the next character that you type to the line verbatim. This is *************** *** 799,802 **** --- 815,825 ---- This command is intended to be bound to \fBTAB\fP, but 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. + This command is unbound by default. .PD .SS Keyboard Macros *************** *** 848,852 **** command enough times to return the line to its initial state. .TP ! .B tilde\-expand (M\-~) Perform tilde expansion on the current word. .TP --- 871,875 ---- command enough times to return the line to its initial state. .TP ! .B tilde\-expand (M\-&) Perform tilde expansion on the current word. .TP diff -aNrc2 readline-2.2.1/doc/readline.dvi readline-4.0/doc/readline.dvi *** readline-2.2.1/doc/readline.dvi Thu Apr 2 14:44:20 1998 --- readline-4.0/doc/readline.dvi Thu Dec 31 12:53:15 1998 *************** *** 1,9 **** ! ÷ƒ’À;è TeX output 1998.04.02:1444‹ÿÿÿÿŸòŽ ƒ3Ú þ#¾ã‘GóZÂÖN ¼j cmbx12ëZGNU–ƧReadline“LibraryŽ‘GŸ 0‰±ž¸Ÿ šª’Ï€Úó2Kñ`y ó3 ! cmr10ÝEdition–¦f2.2,“for“ó3ßêÝ,›9and‘8©ž™š¸hŽ‘#uŸù@‰ffÐlŸÀ­T‘ÿJªABŽŽ‘#uŸÙš‰ffÐlŽ‘qSž™š¸iŽŽ‘"BÞÝall–8©stand“for“themselv²!es“when“seen“in“this“text,˜or“in“an“init“ le“(seeަ‘GSection–¦f1.3“[Readline“Init“File],“page“3).ŽŸ6‘GëH1.2‘™Readline‘f@InŒÌteractionŽŽ¤ãð‘!GÝOften–kduring“an“in•²!teractiv“e–ksession“yš²!ou“t˜ypMÞe“in“a“long“line“of“text,‘&jonly“to“notice“that“theަ‘G rst–ãÒwš²!ord“on“the“line“is“misspMÞelled.‘–"The“Readline“library“giv˜es“y˜ou“a“set“of“commands“forަ‘Gmanipulating–“¡the“text“as“yš²!ou“t˜ypMÞe“it“in,‘—ballo˜wing“y˜ou“to“just“ x“y˜our“t˜ypMÞo,‘—band“not“forcingަ‘Gyš²!ou–`ùto“ret˜ypMÞe“the“ma‘›»jorit˜y“of“the“line.‘ƹUsing“these“editing“commands,‘nÛy˜ou“mo˜v˜e“the“cursorަ‘Gto–the“place“that“needs“correction,‘;Zand“delete“or“insert“the“text“of“the“corrections.‘CZThen,ަ‘Gwhen–¼yš²!ou“are“satis ed“with“the“line,‘Â+y˜ou“simply“press“ž™š¸hŽ‘§iŸù@‰ff%(¬ŸÀ­RETURNŽŽ‘§iŸÙš‰ff%(¬Ž‘+M‡ž™š¸iŽŽ‘.æiÝ.‘ ƒY‘ÿeou“do“not“ha˜v˜e“to“bMÞe“atަ‘Gthe–óIend“of“the“line“to“press“ž™š¸hŽ‘ÞŸù@‰ff%(¬ŸÀ­RETURNŽŽ‘ÞŸÙš‰ff%(¬Ž‘+„3ž™š¸iŽŽ‘/Ý;‘ºthe“en²!tire“line“is“accepted“regardless“of“the“loMÞcationަ‘Gof–¦fthe“cursor“within“the“line.ŽŸ6‘GóQÂÖN  #× cmbx12ëQ1.2.1‘d(Readline–íMBare“Essen–átialsŽŽ¡‘!GÝIn–Äiorder“to“enš²!ter“c˜haracters“in˜to“the“line,‘ñ›simply“t˜ypMÞe“them.‘’‰The“t˜ypMÞed“c˜haracter“appMÞearsަ‘Gwhere–æNthe“cursor“wš²!as,‘öHand“then“the“cursor“mo˜v˜es“one“space“to“the“righ˜t.‘–If“y˜ou“mist˜ypMÞe“aަ‘Gc•²!haracter,›¦fy“ou˜can˜use˜y“our˜erase˜c“haracter˜to˜bac“k˜up˜and˜delete˜the˜mist“ypMÞed˜c“haracter.ޤãð‘!GSometimes–s9yš²!ou“ma˜y“miss“t˜yping“a“c˜haracter“that“y˜ou“w˜an˜ted“to“t˜ypMÞe,‘¦mand“not“noticeަ‘Gyš²!our–e¿error“un˜til“y˜ou“ha˜v˜e“t˜ypMÞed“sev˜eral“other“c˜haracters.‘ÈPIn“that“case,‘r­y˜ou“can“t˜ypMÞe“ž™š¸hŽ‘P‹Ÿù@‰ff ±ÔŸÀ­C-bŽŽ‘P‹ŸÙš‰ff ±ÔŽ‘Ñž™š¸iŽŽ‘~rÝtoަ‘Gmo•²!v“e–Ô9the“cursor“to“the“left,‘ß®and“then“correct“yš²!our“mistak˜e.‘gVAfterw˜ards,‘ß®y˜ou“can“mo˜v˜e“theަ‘Gcursor–¦fto“the“righ²!t“with“ž™š¸hŽ‘‘2Ÿù@‰ff ‘ÒŸÀ­C-fŽŽ‘‘2ŸÙš‰ff ‘ÒŽ‘ vž™š¸iŽŽ‘9XÝ.Ž¡‘!GWhen–é"yš²!ou“add“text“in“the“middle“of“a“line,‘ùÑy˜ou“will“notice“that“c˜haracters“to“the“righ˜tަ‘Gof–q”the“cursor“are“`pushed“o•²!v“er'–q”to“makš²!e“roMÞom“for“the“text“that“y˜ou“ha˜v˜e“inserted.‘ÌBLik˜ewise,ަ‘Gwhen–‚ùyš²!ou“delete“text“bMÞehind“the“cursor,‘ºc˜haracters“to“the“righ˜t“of“the“cursor“are“`pulledަ‘Gbacš²!k'–ÑÇto“ ll“in“the“blank“space“created“b˜y“the“remo˜v‘ÿdDal“of“the“text.‘`A‘Ѽlist“of“the“basic“bareަ‘Gessenš²!tials–¦ffor“editing“the“text“of“an“input“line“follo˜ws.ŽŸ”­‘Gž™š¸hŽ‘üŸù@‰ff ±ÔŸÀ­C-bŽŽ‘üŸÙš‰ff ±ÔŽ‘"+Yž™š¸iŽŽŽŽ‘Kâ:ÝMo•²!v“e›¦fbac“k˜one˜c“haracter.ŽŽŸŒ‹JŸò‘GÝ2’>‚ ! GNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGž™š¸hŽ‘üŸù@‰ff ‘ÒŸÀ­C-fŽŽ‘üŸÙš‰ff ‘ÒŽ‘ Wž™š¸iŽŽŽŽ‘Kâ:ÝMo•²!v“e›¦fforw“ard˜one˜c“haracter.ޤz‘Gž™š¸hŽ‘üŸù@‰ff“úŸÀ­DELŽŽ‘üŸÙš‰ff“úŽ‘& ž™š¸iŽŽŽŽ‘Kâ:ÝDelete–¦fthe“c²!haracter“to“the“left“of“the“cursor.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff ±ÔŸÀ­C-dŽŽ‘üŸÙš‰ff ±ÔŽ‘"+Yž™š¸iŽŽŽŽ‘Kâ:ÝDelete–¦fthe“c²!haracter“underneath“the“cursor.Ž¡‘GPrin•²!ting‘¦fc“haractersŽŽ© 33‘Kâ:Insert–¦fthe“cš²!haracter“in˜to“the“line“at“the“cursor.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff JŸÀ­C-‘‚މX.ŒÐŽŽŽ‘üŸÙš‰ff JŽ‘ Ïž™š¸iŽŽŽŽ‘Kâ:ÝUndo–jthe“last“editing“command.‘÷éY‘ÿeou“can“undo“all“the“w•²!a“y›jbac“k˜to˜an˜empt“yަ‘Kâ:line.ŽŸêL‘GëQ1.2.2‘d(Readline›íMMo•–áv“emen“t˜CommandsŽŽŸÖ¢‘!GÝThe›Ú abMÞo•²!v“e˜table˜describ•MÞes˜the˜most˜basic˜p“ossible˜k•²!eystrok“es˜that˜y“ou˜need˜in˜order˜toަ‘Gdo–bÍediting“of“the“input“line.‘ÇUF‘ÿeor“yš²!our“con˜v˜enience,‘pRman˜y“other“commands“ha˜v˜e“bMÞeen“addedަ‘Gin–Þaddition“to“ž™š¸hŽ‘ªŸù@‰ff ±ÔŸÀ­C-bŽŽ‘ªŸÙš‰ff ±ÔŽ‘1𞙚¸iŽŽ‘ÊÒÝ,‘4`ž™š¸hŽ‘,Ÿù@‰ff ‘ÒŸÀ­C-fŽŽ‘,ŸÙš‰ff ‘ÒŽ‘.pž™š¸iŽŽ‘ÇRÝ,‘4`ž™š¸hŽ‘,Ÿù@‰ff ±ÔŸÀ­C-dŽŽ‘,ŸÙš‰ff ±ÔŽ‘Nrž™š¸iŽŽ‘çTÝ,‘4`and“ž™š¸hŽ‘ªŸù@‰ff“úŸÀ­DELŽŽ‘ªŸÙš‰ff“úŽ‘ž™š¸iŽŽ‘¬øÝ.‘®[Here“are“some“commands“for“mo²!ving“more“rapidlyަ‘GabMÞout–¦fthe“line.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff 8ðŸÀ­C-aŽŽ‘üŸÙš‰ff 8ðŽ‘!²už™š¸iŽŽŽŽ‘Kâ:ÝMo•²!v“e–¦fto“the“start“of“the“line.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff À ŸÀ­C-eŽŽ‘üŸÙš‰ff À Ž‘!9‘ž™š¸iŽŽŽŽ‘Kâ:ÝMo•²!v“e–¦fto“the“end“of“the“line.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff 6ΟÀ­M-fŽŽ‘üŸÙš‰ff 6ÎŽ‘!°Sž™š¸iŽŽŽŽ‘Kâ:ÝMo•²!v“e›¦fforw“ard˜a˜w“ord,˜where˜a˜w“ord˜is˜compMÞosed˜of˜letters˜and˜digits.Ž¡‘Gž™š¸hŽ‘üŸù@‰ffVПÀ­M-bŽŽ‘üŸÙš‰ffVÐŽ‘#ÐUž™š¸iŽŽŽŽ‘Kâ:ÝMo•²!v“e›¦fbac“kw“ard˜a˜w“ord.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff U`ŸÀ­C-lŽŽ‘üŸÙš‰ff U`Ž‘Îåž™š¸iŽŽŽŽ‘Kâ:ÝClear–¦fthe“screen,“reprinš²!ting“the“curren˜t“line“at“the“top.Ž¡‘!GNotice–Íahoš²!w“ž™š¸hŽ‘¸-Ÿù@‰ff ‘ÒŸÀ­C-fŽŽ‘¸-ŸÙš‰ff ‘ÒŽ‘Çqž™š¸iŽŽ‘-´Ýmo˜v˜es“forw˜ard“a“c˜haracter,‘øÉwhile“ž™š¸hŽ‘¸-Ÿù@‰ff 6ΟÀ­M-fŽŽ‘¸-ŸÙš‰ff 6ÎŽ‘lmž™š¸iŽŽ‘Ò°Ýmo˜v˜es“forw˜ard“a“w˜ord.‘•†It“is“a“loMÞoseަ‘Gcon•²!v“en“tion–—†that“conš²!trol“k˜eystrok˜es“opMÞerate“on“c˜haracters“while“meta“k˜eystrok˜es“opMÞerate“onަ‘Gw²!ords.ŽŸêL‘GëQ1.2.3‘d(Readline–íMKilling“CommandsŽŽŸÖ¢‘!GáKilling‘lÝtext–{émeans“to“delete“the“text“from“the“line,‘±Jbut“to“sa•²!v“e–{éit“a•²!w“a“y–{éfor“later“use,ަ‘Gusually–fµbš²!y“áy˜anking‘VÍÝ(re-inserting)“it“bac˜k“in˜to“the“line.‘ÉIf“the“description“for“a“commandަ‘Gsaš²!ys–ñ¡that“it“`kills'“text,‘pthen“y˜ou“can“bMÞe“sure“that“y˜ou“can“get“the“text“bac˜k“in“a“di eren˜tަ‘G(or–¦fthe“same)“place“later.ޤÖ¢‘!GWhen–Ê›yš²!ou“use“a“kill“command,‘ö‘the“text“is“sa˜v˜ed“in“a“ákill-ringÝ.‘”šAn˜y“n˜um˜bMÞer“of“consecutiv˜eަ‘Gkills›¸$sa•²!v“e˜all˜of˜the˜killed˜text˜together,‘¼“so˜that˜when˜y“ou˜y“ank˜it˜bac“k,‘¼“y“ou˜get˜it˜all.‘Theަ‘Gkill–âèring“is“not“line“spMÞeci c;‘(the“text“that“yš²!ou“killed“on“a“previously“t˜ypMÞed“line“is“a˜v‘ÿdDailableަ‘Gto–¦fbMÞe“y•²!ank“ed›¦fbac“k˜later,˜when˜y“ou˜are˜t“yping˜another˜line.Ž¡‘!GHere–¦fis“the“list“of“commands“for“killing“text.ޤz‘Gž™š¸hŽ‘üŸù@‰ff ubŸÀ­C-kŽŽ‘üŸÙš‰ff ubŽ‘!îçž™š¸iŽŽŽŽ‘Kâ:ÝKill–¦fthe“text“from“the“curren²!t“cursor“pMÞosition“to“the“end“of“the“line.Ž¡‘Gž™š¸hŽ‘üŸù@‰ffVПÀ­M-dŽŽ‘üŸÙš‰ffVÐŽ‘#ÐUž™š¸iŽŽŽŽ‘Kâ:ÝKill–]from“the“cursor“to“the“end“of“the“currenš²!t“w˜ord,‘kÆor“if“bMÞet˜w˜een“w˜ords,‘kÆto“theަ‘Kâ:end–¦fof“the“next“w²!ord.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff1âŸÀ­M-DELŽŽ‘üŸÙš‰ff1⎑0«gž™š¸iŽŽŽŽ‘Kâ:ÝKill–€¡from“the“cursor“the“start“of“the“previous“wš²!ord,‘ˆ/or“if“bMÞet˜w˜een“w˜ords,‘ˆ/to“theަ‘Kâ:start–¦fof“the“previous“w²!ord.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff€ŸÀ­C-wŽŽ‘üŸÙš‰ff€Ž‘#–ž™š¸iŽŽŽŽ‘Kâ:ÝKill–Ð’from“the“cursor“to“the“previous“whitespace.‘\aThis“is“di eren²!t“than“ž™š¸hŽ‘»^Ÿù@‰ff1âŸÀ­M-DELŽŽ‘»^ŸÙš‰ff1⎑"j²ž™š¸iŽŽŽ¦‘Kâ:ÝbšMÞecause–¦fthe“w²!ord“b˜oundaries“di er.ŽŽŸŒ‹”Ÿò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’MH3ŽŽŽ ƒ3Ú ý¨ðБ!GHere–ýáis“hoš²!w“to“áy˜ank‘§åÝthe“text“bac˜k“in˜to“the“line.‘äNY‘ÿeanking“means“to“cop˜y“the“most-ޤ 33‘Grecen²!tly-killed–¦ftext“from“the“kill“bu er.ŽŸ =‘Gž™š¸hŽ‘üŸù@‰ff ubŸÀ­C-yŽŽ‘üŸÙš‰ff ubŽ‘!îçž™š¸iŽŽŽŽ‘Kâ:ÝY‘ÿeank–¦fthe“most“recenš²!tly“killed“text“bac˜k“in˜to“the“bu er“at“the“cursor.ŽŸ&‘Gž™š¸hŽ‘üŸù@‰ff^ŸÀ­M-yŽŽ‘üŸÙš‰ff^Ž‘#“ãž™š¸iŽŽŽŽ‘Kâ:ÝRotate–'!the“kill-ring,‘GPand“y²!ank“the“new“top.‘`Y‘ÿeou“can“only“do“this“if“the“priorŽ¡‘Kâ:command–¦fis“ž™š¸hŽ‘‘2Ÿù@‰ff ubŸÀ­C-yŽŽ‘‘2ŸÙš‰ff ubŽ‘„ž™š¸iŽŽ‘ÃNÝor“ž™š¸hŽ‘‘2Ÿù@‰ff^ŸÀ­M-yŽŽ‘‘2ŸÙš‰ff^Ž‘)ž™š¸iŽŽ‘ÁäÝ.Ž©湑GëQ1.2.4‘d(Readline‘íMArgumen–átsŽŽŸ&‘!GÝY‘ÿeou–‚Ücan“pass“nš²!umeric“argumen˜ts“to“Readline“commands.‘ÒSometimes“the“argumen˜t“actsŽ¡‘Gas–ÞDa“repMÞeat“counš²!t,‘,;other“times“it“is“the“ásign“Ýof“the“argumen˜t“that“is“signi can˜t.‘…wIf“y˜ouŽ¡‘Gpass–a“negativš²!e“argumen˜t“to“a“command“whic˜h“normally“acts“in“a“forw˜ard“direction,‘ìthatŽ¡‘Gcommand–=Üwill“act“in“a“bac•²!kw“ard–=Üdirection.‘¤?F‘ÿeor“example,‘c¹to“kill“text“bac²!k“to“the“start“ofŽ¡‘Gthe–¦fline,“yš²!ou“migh˜t“t˜ypMÞe“`ÞM--“C-kÝ'.ŽŸ&‘!GThe–bOgeneral“w•²!a“y–bOto“pass“nš²!umeric“argumen˜ts“to“a“command“is“to“t˜ypšMÞe“meta“digits“b˜eforeŽ¡‘Gthe–Ü_command.‘ÈIf“the“ rst“`digit'“tš²!ypMÞed“is“a“min˜us“sign“(ž™š¸hŽ‘êÌŸù@‰ffÕXŸÀ­-ŽŽ‘êÌŸÙš‰ffÕXŽ‘=–ž™š¸iŽŽ‘ÖxÝ),‘éÝthen“the“sign“of“the“argumen˜tŽ¡‘Gwill–dˆbMÞe“negativš²!e.‘ÇèOnce“y˜ou“ha˜v˜e“t˜ypMÞed“one“meta“digit“to“get“the“argumen˜t“started,‘q´y˜ou“canŽ¡‘Gt²!ypMÞe–±the“remainder“of“the“digits,›¶and“then“the“command.‘i½F‘ÿeor“example,˜to“giv²!e“the“ž™š¸hŽ‘j}Ÿù@‰ff ±ÔŸÀ­C-dŽŽ‘j}ŸÙš‰ff ±ÔŽ‘™Ãž™š¸iŽŽŽ¡‘GÝcommand–¦fan“argumenš²!t“of“10,“y˜ou“could“t˜ypMÞe“`ÞM-1“0“C-dÝ'.ަ‘GëQ1.2.5‘d(Searc–áhing–íMfor“Commands“in“the“HistoryŽŽŸ&‘!GÝReadline–àTproš²!vides“commands“for“searc˜hing“through“the“command“history“for“lines“con-Ž¡‘Gtaining–¦fa“spMÞeci ed“string.‘ÝÝThere“are“t•²!w“o›¦fsearc“h˜moMÞdes:‘ÝÝáincremen“tal‘¸Ýand˜ánon-incremen“talÝ.Ž©&‘!GIncremen•²!tal›¸searc“hes˜b•MÞegin˜b“efore˜the˜user˜has˜ nished˜t•²!yping˜the˜searc“h˜string.‘­£As˜eac“hŽ¡‘Gcš²!haracter–@|of“the“searc˜h“string“is“t˜ypMÞed,‘gReadline“displa˜ys“the“next“en˜try“from“the“historyŽ¡‘Gmatcš²!hing–Ýkthe“string“t˜ypMÞed“so“far.‘‚ìAn“incremen˜tal“searc˜h“requires“only“as“man˜y“c˜haractersŽ¡‘Gas–—needed“to“ nd“the“desired“history“enš²!try‘ÿe.‘¯æThe“ž™š¸hŽ‘àŸù@‰ff¤TŸÀ­ESCŽŽ‘àŸÙš‰ff¤TŽ‘£¦ž™š¸iŽŽ‘ÓœÝc˜haracter“is“used“to“terminate“anŽ¡‘Gincremen•²!tal›½ˆsearc“h.‘>ž™š¸hŽ‘{ ! Ÿù@‰ff ‘ÒŸÀ­C-jŽŽ‘{ ! ŸÙš‰ff ‘ÒŽ‘ŠNž™š¸iŽŽ‘à¸Ýwill˜also˜terminate˜the˜searc“h.‘>ž™š¸hŽ‘{ ! Ÿù@‰ff 8ðŸÀ­C-gŽŽ‘{ ! ŸÙš‰ff 8ðŽ‘1lž™š¸iŽŽ‘‡ÖÝwill˜abMÞort˜an˜incremen“tal˜searc“hŽ¡‘Gand–ø™restore“the“original“line.‘ÔvWhen“the“searcš²!h“is“terminated,‘ &the“history“en˜try“con˜tainingŽ¡‘Gthe–P=searcš²!h“string“bMÞecomes“the“curren˜t“line.‘ÛcT‘ÿeo“ nd“other“matc˜hing“en˜tries“in“the“historyŽ¡‘Glist,‘)êtš²!ypMÞe‘ž™š¸hŽ‘úiŸù@‰ff S?ŸÀ­C-sŽŽ‘úiŸÙš‰ff S?Ž‘Ëž™š¸iŽŽ‘s™Ýor‘ž™š¸hŽ‘úiŸù@‰ff HïŸÀ­C-rŽŽ‘úiŸÙš‰ff HÀÊž™š¸iŽŽ‘iIÝas–appropriate.‘This“will“searc˜h“bac˜kw˜ard“or“forw˜ard“in“the“historyŽ¡‘Gfor–¹¡the“next“enš²!try“matc˜hing“the“searc˜h“string“t˜ypMÞed“so“far.‘An˜y“other“k˜ey“sequence“bMÞoundŽ¡‘Gto–Üa“Readline“command“will“terminate“the“searc²!h“and“execute“that“command.‘¯ZF‘ÿeor“instance,Ž¡‘Ga‘e•ž™š¸hŽ‘PaŸù@‰ff,(ŸÀ­RETŽŽ‘PaŸÙš‰ff,(Ž‘ùûž™š¸iŽŽ‘ørÝwill–e•terminate“the“searcš²!h“and“accept“the“line,‘rŒthereb˜y“executing“the“command“fromŽ¡‘Gthe–¦fhistory“list.ަ‘!GNon-incremen•²!tal›–searc“hes˜read˜the˜en“tire˜searc“h˜string˜bMÞefore˜starting˜to˜searc“h˜forŽ¡‘Gmatcš²!hing–Àhistory“lines.‘ FêThe“searc˜h“string“ma˜y“bMÞe“t˜ypMÞed“b˜y“the“user“or“bMÞe“part“of“theŽ¡‘Gcon•²!ten“ts–¦fof“the“curren²!t“line.ŽŸ!`g‘GëH1.3‘™Readline–f@Init“FileŽŽŸ&‘!GÝAlthough–7the“Readline“library“comes“with“a“set“of“ÞemacsÝ-likš²!e“k˜eybindings“installed“b˜yŽ¡‘Gdefault,‘it–øKis“pMÞossible“to“use“a“di erenš²!t“set“of“k˜eybindings.‘£ÔAn˜y“user“can“customize“programsŽ¡‘Gthat–Zmuse“Readline“b²!y“putting“commands“in“an“áinputrc‘qÝ le“in“his“home“directory‘ÿe.‘ÄŠThe“nameŽŽŸŒ‹,ßò‘GÝ4’>‚ ! GNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGof–½Tthis“ le“is“takš²!en“from“the“v‘ÿdDalue“of“the“en˜vironmen˜t“v›ÿdDariable“ÞINPUTRCÝ.‘"¦If“that“v˜ariable“isޤ 33‘Gunset,–¦fthe“default“is“`Þ~/.inputrcÝ'.Ž©@´‘!GWhen–Ž\a“program“whic²!h“uses“the“Readline“library“starts“up,›“*the“init“ le“is“read,˜and“theŽ¡‘Gk²!ey–¦fbindings“are“set.ަ‘!GIn–8âaddition,›NÉthe“ÞC-x‘¦fC-r“Ýcommand“re-reads“this“init“ le,˜thš²!us“incorpMÞorating“an˜y“c˜hangesŽ¡‘Gthat–¦fyš²!ou“migh˜t“ha˜v˜e“made“to“it.ŽŸ‘GëQ1.3.1‘d(Readline–íMInit“File“Syn–átaxŽŽŸ@´‘!GÝThere– are“only“a“few“basic“constructs“allo•²!w“ed– in“the“Readline“init“ le.‘ RBlank“lines“areŽ¡‘Gignored.›­zLines–ëšbMÞeginning“with“a“`Þ#Ý'“are“commen²!ts.˜Lines“bMÞeginning“with“a“`Þ$Ý'“indicateŽ¡‘Gconditional–R¡constructs“(see“Section“1.3.2“[Conditional“Init“Constructs],‘cbpage“7).‘ÁñOther“linesŽ¡‘Gdenote–¦fv‘ÿdDariable“settings“and“k²!ey“bindings.ŽŸÇu‘GV‘ÿeariable‘¦fSettingsŽ¡‘Kâ:Y‘ÿeou–Ú½can“mošMÞdify“the“run-time“b˜ehaš²!vior“of“Readline“b˜y“altering“the“v‘ÿdDalues“ofŽ¡‘Kâ:v‘ÿdDariables–âÞin“Readline“using“the“Þset“Ýcommand“within“the“init“ le.‘œ°Here“is“ho²!w“toŽ¡‘Kâ:cš²!hange–rLfrom“the“default“Emacs-lik˜e“k˜ey“binding“to“use“Þvi“Ýline“editing“commands:ŽŸÁ‘hÊÞset–¿ªediting-mode“viŽŸ¹ô‘Kâ:ÝA–¦fgreat“deal“of“run-time“bMÞehaš²!vior“is“c˜hangeable“with“the“follo˜wing“v‘ÿdDariables.Ž©@µ‘Kâ:Þbell-styleŽ¡’…³-ÝConš²!trols–Fwhat“happMÞens“when“Readline“w˜an˜ts“to“ring“the“termi-Ž¡’…³-nal–xzbšMÞell.‘TIf“set“to“`ÞnoneÝ',‘¬þReadline“nev²!er“rings“the“b˜ell.‘TIf“set“toŽ¡’…³-`ÞvisibleÝ',‘ ! dReadline–öeuses“a“visible“bMÞell“if“one“is“a²!v‘ÿdDailable.‘ÍÙIf“set“toŽ¡’…³-`ÞaudibleÝ'–Ù(the“default),‘¶6Readline“attempts“to“ring“the“terminal'sŽ¡’…³-bMÞell.ަ‘Kâ:Þcomment-beginŽ¡’…³-ÝThe–‚÷string“to“insert“at“the“bMÞeginning“of“the“line“when“the“Þinsert-Ž¡’…³-comment–¦fÝcommand“is“executed.‘ÝÝThe“default“v‘ÿdDalue“is“Þ"#"Ý.ަ‘Kâ:Þcompletion-ignore-caseŽ¡’…³-ÝIf–IÓset“to“`ÞonÝ',‘\WReadline“pMÞerforms“ lename“matc²!hing“and“completionŽ¡’…³-in–¦fa“case-insensitiv²!e“fashion.‘ÝÝThe“default“v‘ÿdDalue“is“`ÞoffÝ'.ަ‘Kâ:Þcompletion-query-itemsŽ¡’…³-ÝThe›%Ðn•²!um“b•MÞer˜of˜p“ossible˜completions˜that˜determines˜when˜the˜userŽ¡’…³-is–çaskš²!ed“whether“he“w˜an˜ts“to“see“the“list“of“pMÞossibilities.‘ `If“theŽ¡’…³-n•²!um“bšMÞer–9of“p˜ossible“completions“is“greater“than“this“v‘ÿdDalue,‘NãReadlineŽ¡’…³-will–.ƒask“the“user“whether“or“not“he“wishes“to“view“them;‘Vzotherwise,Ž¡’…³-they–¦fare“simply“listed.‘ÝÝThe“default“limit“is“Þ100Ý.ަ‘Kâ:Þconvert-metaŽ¡’…³-ÝIf–¦set“to“`ÞonÝ',‘ÙÅReadline“will“con•²!v“ert›¦c“haracters˜with˜the˜eigh“th˜bit˜setŽ¡’…³-to–IÚŸò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’MH5ŽŽŽ ƒ3Ú ý¨ðБKâ:Þdisable-completionޤ 33’…³-ÝIf–gset“to“`ÞOnÝ',‘—@Readline“will“inhibit“w²!ord“completion.‘èCompletionŽ¡’…³-cš²!haracters–!Ÿwill“bMÞe“inserted“in˜to“the“line“as“if“they“had“bšMÞeen“mapp˜edŽ¡’…³-to–¦fÞself-insertÝ.‘ÝÝThe“default“is“`ÞoffÝ'.Ž©»‘Kâ:Þediting-modeŽ¡’…³-ÝThe–rÖÞediting-mode“Ýv‘ÿdDariable“conš²!trols“whic˜h“default“set“of“k˜ey“bind-Ž¡’…³-ings–?is“used.‘§%By“default,‘#Readline“starts“up“in“Emacs“editing“moMÞde,Ž¡’…³-where–~«the“k•²!eystrok“es–~«are“most“similar“to“Emacs.‘ПThis“v‘ÿdDariable“canŽ¡’…³-bMÞe–¦fset“to“either“`ÞemacsÝ'“or“`ÞviÝ'.ަ‘Kâ:Þenable-keypadŽ¡’…³-ÝWhen–Ìïset“to“`ÞonÝ',‘ømReadline“will“try“to“enable“the“application“k²!eypadŽ¡’…³-when–1Ûit“is“called.‘·Some“systems“need“this“to“enable“the“arroš²!w“k˜eys.Ž¡’…³-The–¦fdefault“is“`ÞoffÝ'.ަ‘Kâ:Þexpand-tildeŽ¡’…³-ÝIf–Pset“to“`ÞonÝ',‘a[tilde“expansion“is“pMÞerformed“when“Readline“attemptsŽ¡’…³-w²!ord–¦fcompletion.‘ÝÝThe“default“is“`ÞoffÝ'.ަ‘Kâ:Þhorizontal-scroll-modeŽ¡’…³-ÝThis–NËv‘ÿdDariable“can“bMÞe“set“to“either“`ÞonÝ'“or“`ÞoffÝ'.‘× Setting“it“to“`ÞonÝ'Ž¡’…³-means–$jthat“the“text“of“the“lines“bMÞeing“edited“will“scroll“horizon²!tallyŽ¡’…³-on–ÎÁa“single“screen“line“when“they“are“longer“than“the“width“of“theŽ¡’…³-screen,›:Åinstead–Ýof“wrapping“on²!to“a“new“screen“line.‘±By“default,˜thisŽ¡’…³-v‘ÿdDariable–¦fis“set“to“`ÞoffÝ'.ަ‘Kâ:ÞkeymapŽŽ’‰ïéÝSets–<¼Readline's“idea“of“the“currenš²!t“k˜eymap“for“k˜ey“binding“com-Ž¡’…³-mands.‘ ä™Acceptable–SOÞkeymap“Ýnames“are“ÞemacsÝ,‘¾‰Þemacs-standardÝ,Ž¡’…³-Þemacs-metaÝ,– ‡Þemacs-ctlxÝ,“ÞviÝ,“Þvi-commandÝ,“and–Þvi-insertÝ.‘ùÞvi“ÝisŽ¡’…³-equiv›ÿdDalen²!t–>to“Þvi-commandÝ;‘BLÞemacs“Ýis“equiv˜alen²!t“to“Þemacs-standardÝ.Ž¡’…³-The–¢rdefault“v›ÿdDalue“is“ÞemacsÝ.‘‡7The“v˜alue“of“the“Þediting-mode“Ýv˜ariableŽ¡’…³-also–¦fa ects“the“default“k²!eymap.ަ‘Kâ:Þmark-directoriesŽ¡’…³-ÝIf––¿set“to“`ÞonÝ',‘ÒÕcompleted“directory“names“ha•²!v“e––¿a“slash“appMÞended.Ž¡’…³-The–¦fdefault“is“`ÞonÝ'.ަ‘Kâ:Þmark-modified-linesŽ¡’…³-ÝThis–N”v‘ÿdDariable,›xŸwhen“set“to“`ÞonÝ',˜causes“Readline“to“displa²!y“an“as-Ž¡’…³-terisk– š(`Þ*Ý')“at“the“start“of“history“lines“whicš²!h“ha˜v˜e“bšMÞeen“mo˜di ed.Ž¡’…³-This–¦fv‘ÿdDariable“is“`ÞoffÝ'“b²!y“default.ަ‘Kâ:Þinput-metaŽ¡’…³-ÝIf–Ê=set“to“`ÞonÝ',‘Ó2Readline“will“enable“eigh²!t-bit“input“(it“will“not“stripŽ¡’…³-the–˜@eighš²!th“bit“from“the“c˜haracters“it“reads),‘›regardless“of“what“theŽ¡’…³-terminal–ÌÖclaims“it“can“suppMÞort.›Q-The“default“v‘ÿdDalue“is“`ÞoffÝ'.˜TheŽ¡’…³-name–¦fÞmeta-flag“Ýis“a“synon²!ym“for“this“v‘ÿdDariable.ŽŽŸŒ‹KŸò‘GÝ6’>‚ ! GNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБKâ:Þoutput-metaޤ 33’…³-ÝIf–Aset“to“`ÞonÝ',‘gªReadline“will“displaš²!y“c˜haracters“with“the“eigh˜th“bitŽ¡’…³-set–`!directly“rather“than“as“a“meta-pre xed“escapMÞe“sequence.‘ TheŽ¡’…³-default–¦fis“`ÞoffÝ'.Ž©õ‘Kâ:Þprint-completions-horizontallyŽ¡’…³-ÝIf–àset“to“`ÞonÝ',‘»Readline“will“displaš²!y“completions“with“matc˜hes“sortedŽ¡’…³-horizonš²!tally–8Ôin“alphabMÞetical“order,‘orather“than“do˜wn“the“screen.Ž¡’…³-The–¦fdefault“is“`ÞoffÝ'.ަ‘Kâ:Þshow-all-if-ambiguousŽ¡’…³-ÝThis–™]alters“the“default“bMÞeha²!vior“of“the“completion“functions.‘Ù…If“setŽ¡’…³-to–L`ÞonÝ',‘^.wš²!ords“whic˜h“ha˜v˜e“more“than“one“pMÞossible“completion“causeŽ¡’…³-the–­matc²!hes“to“bšMÞe“listed“immediately“instead“of“ringing“the“b˜ell.Ž¡’…³-The–¦fdefault“v‘ÿdDalue“is“`ÞoffÝ'.ަ‘Kâ:Þvisible-statsŽ¡’…³-ÝIf–Ôvset“to“`ÞonÝ',‘ßúa“cš²!haracter“denoting“a“ le's“t˜ypšMÞe“is“app˜ended“to“theŽ¡’…³- lename–¦fwhen“listing“pMÞossible“completions.‘ÝÝThe“default“is“`ÞoffÝ'.ަ‘GKey‘¦fBindingsŽ¡‘Kâ:The–Rþsynš²!tax“for“con˜trolling“k˜ey“bindings“in“the“init“ le“is“simple.‘ÂFirst“y˜ou“ha˜v˜eŽ¡‘Kâ:to–knoš²!w“the“name“of“the“command“that“y˜ou“w˜an˜t“to“c˜hange.‘ÁâThe“follo˜wingŽ¡‘Kâ:sections–Oconš²!tain“tables“of“the“command“name,‘yLthe“default“k˜eybinding,‘yLif“an˜y‘ÿe,Ž¡‘Kâ:and–¦fa“short“description“of“what“the“command“doMÞes.ŽŸ&‘Kâ:Once–0¿yš²!ou“kno˜w“the“name“of“the“command,‘STsimply“place“the“name“of“the“k˜eyŽ¡‘Kâ:y²!ou–=nwish“to“bind“the“command“to,›Rla“colon,˜and“then“the“name“of“the“commandŽ¡‘Kâ:on–¥Fa“line“in“the“init“ le.‘Ú~The“name“of“the“kš²!ey“can“bMÞe“expressed“in“di eren˜tŽ¡‘Kâ:w•²!a“ys,–¦fdepMÞending“on“whicš²!h“is“most“comfortable“for“y˜ou.ަ‘Kâ:ák²!eyname‘Ý:‘ÝÝáfunction-name‘CmÝor‘¦fámacroŽŽ¡’…³-kš²!eyname‘jÝis–tcthe“name“of“a“k˜ey“spMÞelled“out“in“English.‘Í1F‘ÿeor“example:ŽŸ`ó’¢›‚ÞControl-u:‘¿ªuniversal-argumentޤ €’¢›‚Meta-Rubout:‘¿ªbackward-kill-wordŽ¡’¢›‚Control-o:–¿ª">“output"ŽŸ&’…³-ÝIn–gïthe“abšMÞo•²!v“e–gïexample,‘˜Qž™š¸hŽ‘ƒŸù@‰ff ±ÔŸÀ­C-uŽŽ‘ƒŸÙš‰ff ±ÔŽ‘²cž™š¸iŽŽ‘³4Ýis“b˜ound“to“the“function“Þuniversal-ޤ 33’…³-argumentÝ,‘ðGand‘®Mž™š¸hŽ‘™Ÿù@‰ff 8ðŸÀ­C-oŽŽ‘™ŸÙš‰ff 8ðŽ‘O{ž™š¸iŽŽ‘–ªÝis–®MbMÞound“to“run“the“macro“expressed“on“theŽ¡’…³-righš²!t–E§hand“side“(that“is,‘Yto“insert“the“text“`Þ>‘¦foutputÝ'“in˜to“the“line).ަ‘Kâ:Þ"ák²!eyseq@æÞ"Ý:‘ÝÝáfunction-name‘CmÝor‘¦fámacroŽŽ¡’…³-kš²!eyseq‘ú«Ýdi ers–¹Åfrom“ák˜eyname‘VÌÝabMÞo˜v˜e“in“that“strings“denoting“an“en-Ž¡’…³-tire– hk²!ey“sequence“can“bšMÞe“sp˜eci ed,‘%èbš²!y“placing“the“k˜ey“sequence“inŽ¡’…³-double– quotes.‘­ðSome“GNU‘{Emacs“stš²!yle“k˜ey“escapšMÞes“can“b˜e“used,‘3aasŽ¡’…³-in–Ãthe“folloš²!wing“example,‘(Ùbut“the“spMÞecial“c˜haracter“names“are“notŽ¡’…³-recognized.ŽŸ`ó’¢›‚Þ"\C-u":‘¿ªuniversal-argumentޤ €’¢›‚"\C-x\C-r":‘¿ªre-read-init-fileŽ¡’¢›‚"\e[11~":–¿ª"Function“Key“1"ŽŽŸŒ‹UåŸò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’MH7ŽŽŽ ƒ3Ú ý¨ðÐ’…³-In–gïthe“abšMÞo•²!v“e–gïexample,‘˜Qž™š¸hŽ‘ƒŸù@‰ff ±ÔŸÀ­C-uŽŽ‘ƒŸÙš‰ff ±ÔŽ‘²cž™š¸iŽŽ‘³4Ýis“b˜ound“to“the“function“Þuniversal-ޤ 33’…³-argument–ŠÌÝ(just“as“it“w²!as“in“the“ rst“example),‘Ä`ž™š¸hŽ‘êÌŸù@‰ff ubŸÀ­C-xŽŽ‘êÌŸÙš‰ff ubŽ‘Ý ž™š¸iŽŽ‘èž™šhŽ‘´Ÿù@‰ff HïŸÀ­C-rŽŽ‘´ŸÙš‰ff H%Ξ™š¸iŽŽ‘)f÷Ý'“is“bMÞound“toŽ¡’…³-the–ð!function“Þre-read-init-fileÝ,‘and“`ž™š¸hŽ‘êÌŸù@‰ff¤TŸÀ­ESCŽŽ‘êÌŸÙš‰ff¤TŽ‘ ’ž™š¸iŽŽ‘KÚž™šhŽ‘6¦Ÿù@‰ff\tŸÀ­[ŽŽ‘6¦Ÿ‰ff\tŽ‘Œž™š¸iŽŽ‘&OÔž™šhŽ‘): Ÿù@‰ff@ŸÀ­1ŽŽ‘): ŸÙš‰ff@Ž‘,øž™š¸iŽŽ‘47^ž™šhŽ‘7"*Ÿù@‰ff@ŸÀ­1ŽŽ‘7"*ŸÙš‰ff@Ž‘:ß ž™š¸iŽŽ‘Bèž™šhŽ‘E ´Ÿù@‰ff¿ªŸÀÞ~ŽŽ‘E ´ŸÙš‰ff¿ªŽ‘JFО™š¸iŽŽ‘Mß²Ý'“is“bMÞoundŽ¡’…³-to–¦finsert“the“text“`ÞFunction“Key“1Ý'.Ž©ÿ‘Kâ:The–æfolloš²!wing“GNU‘ÃEmacs“st˜yle“escapMÞe“sequences“are“a˜v‘ÿdDailable“when“spMÞecifyingŽ¡‘Kâ:k²!ey‘¦fsequences:ަ‘Kâ:ó9ßê‚ ! GNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGÞ$ifŽŽ‘Kâ:ÝThe–ÃNÞ$if“Ýconstruct“allo²!ws“bindings“to“bšMÞe“made“based“on“the“editing“mo˜de,‘ʈtheޤ 33‘Kâ:terminal–’ŽbMÞeing“used,‘͘or“the“application“using“Readline.‘¢VThe“text“of“the“testŽ¡‘Kâ:extends–¦fto“the“end“of“the“line;“no“c²!haracters“are“required“to“isolate“it.Ž©33‘Kâ:ÞmodeŽŽ’…³-ÝThe–[Þmode=“Ýform“of“the“Þ$if“Ýdirectiv²!e“is“used“to“test“whether“ReadlineŽ¡’…³-is–‰›in“Þemacs“Ýor“Þvi“ÝmošMÞde.‘ÔDThis“ma²!y“b˜e“used“in“conjunction“with“theŽ¡’…³-`Þset‘¦fkeymapÝ'–N ! command,›_¶for“instance,˜to“set“bindings“in“the“Þemacs-Ž¡’…³-standard–_Ýand“Þemacs-ctlx“Ýk²!eymaps“only“if“Readline“is“starting“outŽ¡’…³-in–¦fÞemacs“ÝmoMÞde.ަ‘Kâ:ÞtermŽŽ’…³-ÝThe–<Þterm=“Ýform“ma²!y“bšMÞe“used“to“include“terminal-sp˜eci c“k²!ey“bind-Ž¡’…³-ings,‘ƒpMÞerhaps–Vîto“bind“the“kš²!ey“sequences“output“b˜y“the“terminal'sŽ¡’…³-function–Þ€kš²!eys.‘›;The“w˜ord“on“the“righ˜t“side“of“the“`Þ=Ý'“is“tested“againstŽ¡’…³-bšMÞoth–šPthe“full“name“of“the“terminal“and“the“p˜ortion“of“the“terminalŽ¡’…³-name–×bMÞefore“the“ rst“`Þ-Ý'.‘ÿ/This“alloš²!ws“Þsun“Ýto“matc˜h“bMÞoth“Þsun“ÝandŽ¡’…³-Þsun-cmdÝ,–¦ffor“instance.ަ‘Kâ:ÞapplicationŽ¡’…³-ÝThe–¢âáapplication“Ýconstruct“is“used“to“include“application-spMÞeci c“set-Ž¡’…³-tings.‘£mEac²!h–÷program“using“the“Readline“library“sets“the“áapplicationŽ¡’…³-nameÝ,‘rand–úpyš²!ou“can“test“for“it.‘ÙúThis“could“bMÞe“used“to“bind“k˜ey“se-Ž¡’…³-quences–Þ^to“functions“useful“for“a“spMÞeci c“program.‘›0F‘ÿeor“instance,‘`theŽ¡’…³-folloš²!wing–\¸command“adds“a“k˜ey“sequence“that“quotes“the“curren˜t“orŽ¡’…³-previous–¦fw²!ord“in“Bash:ŽŸ€’¢›‚Þ$if‘¿ªBashޤ €’¢›‚#–¿ªQuote“the“current“or“previous“wordŽ¡’¢›‚"\C-xq":‘¿ª"\eb\"\ef\""Ž¡’¢›‚$endifަ‘G$endifŽŽ‘Kâ:ÝThis–£™command,›¤(as“seen“in“the“previous“example,˜terminates“an“Þ$if“Ýcommand.ަ‘GÞ$elseŽŽ‘Kâ:ÝCommands–¦fin“this“brancš²!h“of“the“Þ$if“Ýdirectiv˜e“are“executed“if“the“test“fails.ަ‘GÞ$includeŽŽ‘Kâ:ÝThis–R)directivš²!e“tak˜es“a“single“ lename“as“an“argumen˜t“and“reads“commands“andޤ 33‘Kâ:bindings–¦ffrom“that“ le.ŽŸ€‘hÊÞ$include‘¿ª/etc/inputrcŽŸ‘GëQ1.3.3‘d(Sample–íMInit“FileŽŽŸ33‘!GÝHere–´is“an“example“of“an“inputrc“ le.‘øThis“illustrates“kš²!ey“binding,‘·‡v‘ÿdDariable“assignmen˜t,Ž¡‘Gand–¦fconditional“syn²!tax.ŽŽŸŒ‹ mПò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’MH9ŽŽŽ ƒ3Ú ýµpБ.ùœÞ#–¿ªThis“file“controls“the“behaviour“of“line“input“editing“forޤ €‘.ùœ#–¿ªprograms“that“use“the“Gnu“Readline“library.‘ TExisting“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:‘ Tbackward-kill-word–¿ªText“after“the“function“name“is“ignoredŸnï„ ަ‘.ùœ#Ž¡‘.ùœ#–¿ªArrow“keys“in“keypad“modeŽ¡‘.ùœ#Ž¡‘.ùœ#"\M-OD":‘-ýPbackward-charŽ¡‘.ùœ#"\M-OC":‘-ýPforward-charŽ¡‘.ùœ#"\M-OA":‘-ýPprevious-historyŽ¡‘.ùœ#"\M-OB":‘-ýPnext-historyŽ¡‘.ùœ#Ž¡‘.ùœ#–¿ªArrow“keys“in“ANSI“modeŽ¡‘.ùœ#Ž¡‘.ùœ"\M-[D":‘-ýPbackward-charŽ¡‘.ùœ"\M-[C":‘-ýPforward-charŽ¡‘.ùœ"\M-[A":‘-ýPprevious-historyŽ¡‘.ùœ"\M-[B":‘-ýPnext-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ŽŽŸŒ‹ ! woŸò‘GÝ10’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБ.ùœÞ#"\M-\C-[B":‘(=¦next-historyޤ‘.ùœC-q:‘¿ªquoted-insertŽ¡‘.ùœ$endifŽ¡‘.ùœ#–¿ªAn“old-style“binding.‘ TThis“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-?"ŽŽŸŒ‹ }^Ÿò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’ýÓ®11ŽŽŽ ƒ3Ú ý¨ðБ.ùœÞ"\M-.":‘¿ªyank-last-argŽŸ €‘.ùœ$endifŽŸ *q‘GëH1.4‘™Bindable–f@Readline“CommandsŽŽŸª“‘!GÝThis–¦fsection“describšMÞes“Readline“commands“that“ma²!y“b˜e“b˜ound“to“k²!ey“sequences.ŽŸîÁ‘GëQ1.4.1‘d(Commands–íMF‘þÄ£or“Mo–ávingŽŽŸæC‘GÞbeginning-of-line‘¦f(C-a)ޤ 33‘Kâ:ÝMo•²!v“e–¦fto“the“start“of“the“curren²!t“line.Ž©ª“‘GÞend-of-line‘¦f(C-e)Ž¡‘Kâ:ÝMo•²!v“e–¦fto“the“end“of“the“line.ަ‘GÞforward-char‘¦f(C-f)Ž¡‘Kâ:ÝMo•²!v“e›¦fforw“ard˜a˜c“haracter.ަ‘GÞbackward-char‘¦f(C-b)Ž¡‘Kâ:ÝMo•²!v“e›¦fbac“k˜a˜c“haracter.ަ‘GÞforward-word‘¦f(M-f)Ž¡‘Kâ:ÝMo•²!v“e›¢kforw“ard˜to˜the˜end˜of˜the˜next˜w“ord.‘܉W‘ÿeords˜are˜compMÞosed˜of˜letters˜andŽ¡‘Kâ:digits.ަ‘GÞbackward-word‘¦f(M-b)Ž¡‘Kâ:ÝMo•²!v“e›ã]bac“k˜to˜the˜start˜of˜this,–òšor˜the˜previous,“w²!ord.‘”ÁW‘ÿeords˜are˜compMÞosed˜ofŽ¡‘Kâ:letters–¦fand“digits.ަ‘GÞclear-screen‘¦f(C-l)Ž¡‘Kâ:ÝClear–2Ôthe“screen“and“redraš²!w“the“curren˜t“line,‘Iòlea˜ving“the“curren˜t“line“at“the“topŽ¡‘Kâ:of–¦fthe“screen.ަ‘GÞredraw-current-line‘¦f()Ž¡‘Kâ:ÝRefresh–¦fthe“currenš²!t“line.‘ÝÝBy“default,“this“is“un˜bMÞound.ŽŸîÁ‘GëQ1.4.2‘d(Commands–íMF‘þÄ£or“Manipulating“The“HistoryŽŽŸæC‘GÞaccept-line–¦f(Newline,“Return)Ž¡‘Kâ:ÝAccept–“‰the“line“regardless“of“where“the“cursor“is.‘דIf“this“line“is“non-empt²!y‘ÿe,‘—OaddŽ¡‘Kâ:it–\fto“the“history“list.‘Å2If“this“line“w²!as“a“history“line,‘k3then“restore“the“history“lineŽ¡‘Kâ:to–¦fits“original“state.ަ‘GÞprevious-history‘¦f(C-p)Ž¡‘Kâ:ÝMo•²!v“e–¦f`up'“through“the“history“list.ަ‘GÞnext-history‘¦f(C-n)Ž¡‘Kâ:ÝMo•²!v“e›¦f`do“wn'˜through˜the˜history˜list.ަ‘GÞbeginning-of-history‘¦f(M-<)Ž¡‘Kâ:ÝMo•²!v“e–¦fto“the“ rst“line“in“the“history‘ÿe.ŽŽŸŒ‹ ƒûŸò‘GÝ12’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGÞend-of-history‘¦f(M->)ޤ 33‘Kâ:ÝMo•²!v“e–¦fto“the“end“of“the“input“history‘ÿe,“i.e.,“the“line“currenš²!tly“bMÞeing“en˜tered.Ž©©-‘GÞreverse-search-history‘¦f(C-r)Ž¡‘Kâ:ÝSearc•²!h›½:bac“kw“ard˜starting˜at˜the˜curren“t˜line˜and˜mo“ving˜`up'˜through˜the˜his-Ž¡‘Kâ:tory–¦fas“necessary‘ÿe.‘ÝÝThis“is“an“incremenš²!tal“searc˜h.ަ‘GÞforward-search-history‘¦f(C-s)Ž¡‘Kâ:ÝSearc•²!h›‰÷forw“ard˜starting˜at˜the˜curren“t˜line˜and˜mo“ving˜`do“wn'˜through˜the˜theŽ¡‘Kâ:history–¦fas“necessary‘ÿe.‘ÝÝThis“is“an“incremenš²!tal“searc˜h.ަ‘GÞnon-incremental-reverse-search-history‘¦f(M-p)Ž¡‘Kâ:ÝSearc•²!h›½:bac“kw“ard˜starting˜at˜the˜curren“t˜line˜and˜mo“ving˜`up'˜through˜the˜his-Ž¡‘Kâ:tory–Ryas“necessary“using“a“non-incremenš²!tal“searc˜h“for“a“string“supplied“b˜y“theŽ¡‘Kâ:user.ަ‘GÞnon-incremental-forward-search-history‘¦f(M-n)Ž¡‘Kâ:ÝSearc•²!h›‰÷forw“ard˜starting˜at˜the˜curren“t˜line˜and˜mo“ving˜`do“wn'˜through˜the˜theŽ¡‘Kâ:history–3ªas“necessary“using“a“non-incremenš²!tal“searc˜h“for“a“string“supplied“b˜y“theŽ¡‘Kâ:user.ަ‘GÞhistory-search-forward‘¦f()Ž¡‘Kâ:ÝSearc•²!h›úOforw“ard˜through˜the˜history˜for˜the˜string˜of˜c“haracters˜bMÞet“w“een˜theŽ¡‘Kâ:start–ï‘of“the“currenš²!t“line“and“the“curren˜t“cursor“pšMÞosition“(the“áp˜oin²!t=Ý).‘¹_This“is“aŽ¡‘Kâ:non-incremen•²!tal›¦fsearc“h.‘ÝÝBy˜default,˜this˜command˜is˜un“bMÞound.ަ‘GÞhistory-search-backward‘¦f()Ž¡‘Kâ:ÝSearc•²!h›-»bac“kw“ard˜through˜the˜history˜for˜the˜string˜of˜c“haracters˜bMÞet“w“een˜theŽ¡‘Kâ:start–7®of“the“currenš²!t“line“and“the“pMÞoin˜t.‘‘¶This“is“a“non-incremen˜tal“searc˜h.‘‘¶ByŽ¡‘Kâ:default,–¦fthis“command“is“un²!bMÞound.ަ‘GÞyank-nth-arg‘¦f(M-C-y)Ž¡‘Kâ:ÝInsert–@the“ rst“argumenš²!t“to“the“previous“command“(usually“the“second“w˜ord“onŽ¡‘Kâ:the–uprevious“line).‘ÍnWith“an“argumenš²!t“ánÝ,‘~õinsert“the“ánÝth“w˜ord“from“the“previousŽ¡‘Kâ:command–Dø(the“wš²!ords“in“the“previous“command“bMÞegin“with“w˜ord“0).‘½cA‘Dßnegativ˜eŽ¡‘Kâ:argumenš²!t–¦finserts“the“ánÝth“w˜ord“from“the“end“of“the“previous“command.ަ‘GÞyank-last-arg–¦f(M-.,“M-_)Ž¡‘Kâ:ÝInsert–5Elast“argumenš²!t“to“the“previous“command“(the“last“w˜ord“of“the“previousŽ¡‘Kâ:history–¬fenš²!try).‘ïÜWith“an“argumen˜t,‘­æbMÞeha˜v˜e“exactly“lik˜e“Þyank-nth-argÝ.‘ïÜSucces-Ž¡‘Kâ:sivš²!e–&—calls“to“Þyank-last-arg“Ýmo˜v˜e“bac˜k“through“the“history“list,‘F£inserting“theŽ¡‘Kâ:last–¦fargumenš²!t“of“eac˜h“line“in“turn.ŽŸëõ‘GëQ1.4.3‘d(Commands–íMF›þÄ£or“Changing“T˜extŽŽŸd+‘GÞdelete-char‘¦f(C-d)Ž¡‘Kâ:ÝDelete–é)the“c²!haracter“under“the“cursor.‘¦&If“the“cursor“is“at“the“bMÞeginning“of“theŽ¡‘Kâ:line,›<6there–@are“no“c²!haracters“in“the“line,˜and“the“last“cš²!haracter“t˜ypMÞed“w˜as“notŽ¡‘Kâ:bMÞound–¦fto“Þdelete-charÝ,“then“return“ÞEOFÝ.ŽŽŸŒ‹ ‹DŸò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’ýÓ®13ŽŽŽ ƒ3Ú ý¨ðБGÞbackward-delete-char‘¦f(Rubout)ޤ 33‘Kâ:ÝDelete–Ÿ§the“cš²!haracter“bMÞehind“the“cursor.‘ÛA‘Ÿ¥n˜umeric“argumen˜t“means“to“kill“theŽ¡‘Kâ:c²!haracters–¦finstead“of“deleting“them.Ž©nƒ‘GÞquoted-insert–¦f(C-q,“C-v)Ž¡‘Kâ:ÝAdd–¸the“next“cš²!haracter“t˜ypMÞed“to“the“line“v˜erbatim.‘CÔThis“is“ho˜w“to“insert“k˜eyŽ¡‘Kâ:sequences–¦flik²!e“ž™š¸hŽ‘‘2Ÿù@‰ff ubŸÀ­C-qŽŽ‘‘2ŸÙš‰ff ubŽ‘„ž™š¸iŽŽ‘èÝ,“for“example.ަ‘GÞtab-insert‘¦f(M-TAB)Ž¡‘Kâ:ÝInsert–¦fa“tab“c²!haracter.ަ‘GÞself-insert–¦f(a,“b,“A,“1,“!,“...)Ž¡‘Kâ:ÝInsert‘¦fy²!ourself.ަ‘GÞtranspose-chars‘¦f(C-t)Ž¡‘Kâ:ÝDrag–Õãthe“cš²!haracter“bMÞefore“the“cursor“forw˜ard“o˜v˜er“the“c˜haracter“at“the“cursor,Ž¡‘Kâ:moš²!ving–C"the“cursor“forw˜ard“as“w˜ell.‘´If“the“insertion“pMÞoin˜t“is“at“the“end“of“theŽ¡‘Kâ:line,‘ÕÍthen–¡¦this“transpMÞoses“the“last“t•²!w“o›¡¦c“haracters˜of˜the˜line.‘†óNegativ“e˜argumen“tsŽ¡‘Kâ:don't‘¦fw²!ork.ަ‘GÞtranspose-words‘¦f(M-t)Ž¡‘Kâ:ÝDrag–the“wš²!ord“bMÞehind“the“cursor“past“the“w˜ord“in“fron˜t“of“the“cursor“mo˜vingŽ¡‘Kâ:the–¦fcursor“o•²!v“er–¦fthat“wš²!ord“as“w˜ell.ަ‘GÞupcase-word‘¦f(M-u)Ž¡‘Kâ:ÝUppMÞercase–ÖÓthe“currenš²!t“(or“follo˜wing)“w˜ord.‘o#With“a“negativ˜e“argumen˜t,‘âîuppMÞer-Ž¡‘Kâ:case–¦fthe“previous“wš²!ord,“but“do“not“mo˜v˜e“the“cursor.ަ‘GÞdowncase-word‘¦f(M-l)Ž¡‘Kâ:ÝLo•²!w“ercase–”ãthe“currenš²!t“(or“follo˜wing)“w˜ord.‘‚²With“a“negativ˜e“argumen˜t,‘Ë–lo˜w˜ercaseŽ¡‘Kâ:the–¦fprevious“wš²!ord,“but“do“not“mo˜v˜e“the“cursor.ަ‘GÞcapitalize-word‘¦f(M-c)Ž¡‘Kâ:ÝCapitalize–6the“currenš²!t“(or“follo˜wing)“w˜ord.‘€#With“a“negativ˜e“argumen˜t,‘ÅrcapitalizeŽ¡‘Kâ:the–¦fprevious“wš²!ord,“but“do“not“mo˜v˜e“the“cursor.ŽŸvŸ‘GëQ1.4.4‘d(Killing–íMAnd“Y‘þÄ£ankingŽŽŸ +‘GÞkill-line‘¦f(C-k)Ž¡‘Kâ:ÝKill–¦fthe“text“from“the“curren²!t“cursor“pMÞosition“to“the“end“of“the“line.ަ‘GÞbackward-kill-line–¦f(C-x“Rubout)Ž¡‘Kâ:ÝKill›¦fbac•²!kw“ard˜to˜the˜bMÞeginning˜of˜the˜line.ަ‘GÞunix-line-discard‘¦f(C-u)Ž¡‘Kâ:ÝKill›Ó¨bac•²!kw“ard˜from˜the˜cursor˜to˜the˜bMÞeginning˜of˜the˜curren“t˜line.‘e¢The˜killedŽ¡‘Kâ:text–¦fis“sa•²!v“ed–¦fon“the“kill-ring.ަ‘GÞkill-whole-line‘¦f()Ž¡‘Kâ:ÝKill–¼èall“cš²!haracters“on“the“curren˜t“line,‘ë›no“matter“where“the“cursor“is.‘By“default,Ž¡‘Kâ:this–¦fis“un²!bMÞound.ŽŽŸŒ‹–šŸò‘GÝ14’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGÞkill-word‘¦f(M-d)ޤ 33‘Kâ:ÝKill–]from“the“cursor“to“the“end“of“the“currenš²!t“w˜ord,‘kÆor“if“bMÞet˜w˜een“w˜ords,‘kÆto“theŽ¡‘Kâ:end–¦fof“the“next“w²!ord.‘ÝÝW‘ÿeord“bMÞoundaries“are“the“same“as“Þforward-wordÝ.Ž©ÿ+‘GÞbackward-kill-word‘¦f(M-DEL)Ž¡‘Kâ:ÝKill–·2the“w²!ord“bšMÞehind“the“cursor.‘BW‘ÿeord“b˜oundaries“are“the“same“as“Þbackward-Ž¡‘Kâ:wordÝ.ަ‘GÞunix-word-rubout‘¦f(C-w)Ž¡‘Kâ:ÝKill–6{the“wš²!ord“bMÞehind“the“cursor,‘Z€using“white“space“as“a“w˜ord“bMÞoundary‘ÿe.‘ŽTheŽ¡‘Kâ:killed–¦ftext“is“sa•²!v“ed–¦fon“the“kill-ring.ަ‘GÞdelete-horizontal-space‘¦f()Ž¡‘Kâ:ÝDelete–¦fall“spaces“and“tabs“around“pMÞoinš²!t.‘ÝÝBy“default,“this“is“un˜bMÞound.ަ‘GÞkill-region‘¦f()Ž¡‘Kâ:ÝKill–[the“text“bšMÞet•²!w“een–[the“p˜oinš²!t“and“the“ámark‘º_Ý(sa˜v˜ed“cursor“pMÞosition).‘«ÙThis“textŽ¡‘Kâ:is–¦freferred“to“as“the“áregionÝ.‘ÝÝBy“default,“this“command“is“un²!bMÞound.ަ‘GÞcopy-region-as-kill‘¦f()Ž¡‘Kâ:ÝCopš²!y–³the“text“in“the“region“to“the“kill“bu er,‘0Eso“it“can“bMÞe“y˜ank˜ed“righ˜t“a˜w˜a˜y‘ÿe.Ž¡‘Kâ:By–¦fdefault,“this“command“is“un²!bMÞound.ަ‘GÞcopy-backward-word‘¦f()Ž¡‘Kâ:ÝCopš²!y–žthe“w˜ord“bšMÞefore“p˜oinš²!t“to“the“kill“bu er.‘ÄÿThe“w˜ord“bMÞoundaries“are“theŽ¡‘Kâ:same–¦fas“Þbackward-wordÝ.‘ÝÝBy“default,“this“command“is“un²!bMÞound.ަ‘GÞcopy-forward-word‘¦f()Ž¡‘Kâ:ÝCopš²!y–º8the“w˜ord“follo˜wing“pMÞoin˜t“to“the“kill“bu er.‘SThe“w˜ord“bMÞoundaries“are“theŽ¡‘Kâ:same–¦fas“Þforward-wordÝ.‘ÝÝBy“default,“this“command“is“un²!bMÞound.ަ‘GÞyank‘¦f(C-y)Ž¡‘Kâ:ÝY‘ÿeank–¦fthe“top“of“the“kill“ring“inš²!to“the“bu er“at“the“curren˜t“cursor“pMÞosition.ަ‘GÞyank-pop‘¦f(M-y)Ž¡‘Kâ:ÝRotate–'!the“kill-ring,‘GPand“y²!ank“the“new“top.‘`Y‘ÿeou“can“only“do“this“if“the“priorŽ¡‘Kâ:command–¦fis“yš²!ank“or“y˜ank-pMÞop.ŽŸ±ô‘GëQ1.4.5‘d(Spiecifying–íMNumeric“Argumen–átsŽŽŸÿ+‘GÞdigit-argument–¦f(M-0,“M-1,“...“M--)Ž¡‘Kâ:ÝAdd–:Lthis“digit“to“the“argumenš²!t“already“accum˜ulating,‘Oëor“start“a“new“argumen˜t.Ž¡‘Kâ:ž™š¸hŽ‘NÍŸù@‰ff ”ŸÀ­M{ŽŽ‘NÍŸÙš‰ff ”Ž‘ZS ž™š¸iŽŽ‘a’TÝstarts–¦fa“negativš²!e“argumen˜t.ަ‘GÞuniversal-argument‘¦f()Ž¡‘Kâ:ÝThis–kis“another“w•²!a“y–kto“spMÞecify“an“argumenš²!t.‘«ßIf“this“command“is“follo˜w˜ed“b˜y“oneŽ¡‘Kâ:or–more“digits,›“³optionally“with“a“leading“min²!us“sign,˜those“digits“de ne“the“ar-Ž¡‘Kâ:gumenš²!t.‘ÐÚIf–\the“command“is“follo˜w˜ed“b˜y“digits,‘‡+executing“Þuniversal-argumentŽ¡‘Kâ:Ýagain–Ñ«ends“the“nš²!umeric“argumen˜t,‘Ü|but“is“otherwise“ignored.‘_«As“a“spMÞecial“case,Ž¡‘Kâ:if–ñúthis“command“is“immediately“follo•²!w“ed›ñúb“y˜a˜c“haracter˜that˜is˜neither˜a˜digitŽ¡‘Kâ:or–Zwminš²!us“sign,‘i§the“argumen˜t“coun˜t“for“the“next“command“is“m˜ultiplied“b˜y“four.Ž¡‘Kâ:The–{targumenš²!t“coun˜t“is“initially“one,‘°¸so“executing“this“function“the“ rst“timeŽŽŸŒ‹ 9Ÿò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’ýÓ®15ŽŽŽ ƒ3Ú ý¨ðБKâ:makš²!es–Ï2the“argumen˜t“coun˜t“four,‘Ùea“second“time“mak˜es“the“argumen˜t“coun˜t“six-ޤ 33‘Kâ:teen,–¦fand“so“on.‘ÝÝBy“default,“this“is“not“bMÞound“to“a“k²!ey‘ÿe.ŽŸå?‘GëQ1.4.6‘d(Letting–íMReadline“T–áypie“F›þÄ£or“Y˜ouŽŽŸÌ‘GÞcomplete‘¦f(TAB)Ž¡‘Kâ:ÝA²!ttempt–@to“do“completion“on“the“text“bMÞefore“the“cursor.‘ª±This“is“application-Ž¡‘Kâ:spMÞeci c.‘ÓÑGenerally‘ÿe,‘ŽJif–ˆByš²!ou“are“t˜yping“a“ lename“argumen˜t,‘ŽJy˜ou“can“do“ lenameŽ¡‘Kâ:completion;‘²æif–®»yš²!ou“are“t˜yping“a“command,‘°Ñy˜ou“can“do“command“completion;‘²æifŽ¡‘Kâ:yš²!ou–aare“t˜yping“in“a“sym˜bMÞol“to“GDB,“y˜ou“can“do“sym˜bMÞol“name“completion;‘¾vifŽ¡‘Kâ:yš²!ou–%­are“t˜yping“in“a“v‘ÿdDariable“to“Bash,‘?ly˜ou“can“do“v‘ÿdDariable“name“completion,‘?landŽ¡‘Kâ:so‘¦fon.Ž©Ì‘GÞpossible-completions‘¦f(M-?)Ž¡‘Kâ:ÝList–¦fthe“pšMÞossible“completions“of“the“text“b˜efore“the“cursor.ަ‘GÞinsert-completions‘¦f(M-*)Ž¡‘Kâ:ÝInsert–«µall“completions“of“the“text“bšMÞefore“p˜oinš²!t“that“w˜ould“ha˜v˜e“bMÞeen“generatedŽ¡‘Kâ:b²!y‘¦fÞpossible-completionsÝ.ަ‘GÞmenu-complete‘¦f()Ž¡‘Kâ:ÝSimilar–ÛVto“ÞcompleteÝ,‘óbut“replaces“the“wš²!ord“to“bMÞe“completed“with“a“single“matc˜hŽ¡‘Kâ:from–‹æthe“list“of“pšMÞossible“completions.‘Ž^Rep˜eated“execution“of“Þmenu-completeŽ¡‘Kâ:Ýsteps–Õ¯through“the“list“of“pMÞossible“completions,‘!inserting“eacš²!h“matc˜h“in“turn.Ž¡‘Kâ:A²!t–/ the“end“of“the“list“of“completions,‘Q7the“bMÞell“is“rung“and“the“original“text“isŽ¡‘Kâ:restored.‘`^An–' ó3 ! cmmi10å:–Ó1:“:Ž‘lÉÞ)ޤ 33‘Kâ:ÝIf–Qõthe“meta ed“cš²!haracter“áx‘TÝis“lo˜w˜ercase,‘bØrun“the“command“that“is“bMÞound“to“theŽ¡‘Kâ:corresp•MÞonding›¦fupp“ercase˜c²!haracter.Ž©#‘GÞprefix-meta‘¦f(ESC)Ž¡‘Kâ:ÝMakš²!e–[Cthe“next“c˜haracter“t˜ypšMÞed“b˜e“meta ed.‘üsThis“is“for“k²!eyb˜oards“without“aŽ¡‘Kâ:meta›¦fk•²!ey‘ÿe.‘ÝÝT“yping˜`ÞESC˜fÝ'˜is˜equiv‘ÿdDalen“t˜to˜t“yping˜`ÞM-fÝ'.ަ‘GÞundo–¦f(C-_,“C-x“C-u)Ž¡‘Kâ:ÝIncremenš²!tal–¦fundo,“separately“remem˜bMÞered“for“eac˜h“line.ަ‘GÞrevert-line‘¦f(M-r)Ž¡‘Kâ:ÝUndo–úall“cš²!hanges“made“to“this“line.‘ØäThis“is“lik˜e“executing“the“Þundo“ÝcommandŽ¡‘Kâ:enough–¦ftimes“to“get“bac²!k“to“the“bMÞeginning.ަ‘GÞtilde-expand‘¦f(M-~)Ž¡‘Kâ:ÝPš²!erform–¦ftilde“expansion“on“the“curren˜t“w˜ord.ަ‘GÞset-mark‘¦f(C-@)Ž¡‘Kâ:ÝSet–D®the“mark“to“the“currenš²!t“pMÞoin˜t.‘½JIf“a“n˜umeric“argumen˜t“is“supplied,‘X9the“markŽ¡‘Kâ:is–¦fset“to“that“pMÞosition.ަ‘GÞexchange-point-and-mark–¦f(C-x“C-x)Ž¡‘Kâ:ÝSwš²!ap–¾Òthe“pMÞoin˜t“with“the“mark.‘'!The“curren˜t“cursor“pMÞosition“is“set“to“the“sa˜v˜edŽ¡‘Kâ:pšMÞosition,–¦fand“the“old“cursor“p˜osition“is“sa•²!v“ed–¦fas“the“mark.ަ‘GÞcharacter-search‘¦f(C-])Ž¡‘Kâ:ÝA‘ü&cš²!haracter–üQis“read“and“pMÞoin˜t“is“mo˜v˜ed“to“the“next“oMÞccurrence“of“that“c˜haracter.Ž¡‘Kâ:A–¦fnegativš²!e“coun˜t“searc˜hes“for“previous“oMÞccurrences.ަ‘GÞcharacter-search-backward‘¦f(M-C-])Ž¡‘Kâ:ÝA‘c"cš²!haracter–c•is“read“and“pMÞoin˜t“is“mo˜v˜ed“to“the“previous“oMÞccurrence“of“thatŽ¡‘Kâ:c•²!haracter.‘ÝÝA›¦fnegativ“e˜coun“t˜searc“hes˜for˜subsequen“t˜oMÞccurrences.ަ‘GÞinsert-comment‘¦f(M-#)Ž¡‘Kâ:ÝThe–živ›ÿdDalue“of“the“Þcomment-begin“Ýv˜ariable“is“inserted“at“the“bMÞeginning“of“theŽ¡‘Kâ:currenš²!t–¦fline,“and“the“line“is“accepted“as“if“a“newline“had“bMÞeen“t˜ypMÞed.ަ‘GÞdump-functions‘¦f()Ž¡‘Kâ:ÝPrinš²!t–,Qall“of“the“functions“and“their“k˜ey“bindings“to“the“Readline“output“stream.Ž¡‘Kâ:If–Îïa“nš²!umeric“argumen˜t“is“supplied,‘Ùthe“output“is“formatted“in“suc˜h“a“w˜a˜y“thatŽ¡‘Kâ:it–¦fcan“bšMÞe“made“part“of“an“áinputrc‘PjÝ le.‘ÝÝThis“command“is“un²!b˜ound“b²!y“default.ަ‘GÞdump-variables‘¦f()Ž¡‘Kâ:ÝPrin²!t–ŽÉall“of“the“settable“v›ÿdDariables“and“their“v˜alues“to“the“Readline“output“stream.Ž¡‘Kâ:If–Îïa“nš²!umeric“argumen˜t“is“supplied,‘Ùthe“output“is“formatted“in“suc˜h“a“w˜a˜y“thatŽ¡‘Kâ:it–¦fcan“bšMÞe“made“part“of“an“áinputrc‘PjÝ le.‘ÝÝThis“command“is“un²!b˜ound“b²!y“default.ަ‘GÞdump-macros‘¦f()Ž¡‘Kâ:ÝPrinš²!t– ˆall“of“the“Readline“k˜ey“sequences“bMÞound“to“macros“and“the“strings“theyŽ¡‘Kâ:ouput.‘HþIf–tÆa“nš²!umeric“argumen˜t“is“supplied,‘¨^the“output“is“formatted“in“suc˜h“aŽ¡‘Kâ:w•²!a“y–šthat“it“can“bšMÞe“made“part“of“an“áinputrc‘DÝ le.‘ÙÃThis“command“is“un²!b˜ound“b²!yŽ¡‘Kâ:default.ŽŽŸŒ‹¶÷Ÿò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’ýÓ®17ŽŽŽ ƒ3Ú ý¨ðБGëH1.5‘™Readline–f@vi“Mos3deŽŽŸ33‘!GÝWhile–×Uthe“Readline“library“došMÞes“not“ha•²!v“e–×Ua“full“set“of“Þvi“Ýediting“functions,‘¿it“do˜es“con²!tainޤ 33‘Genough–to“allo²!w“simple“editing“of“the“line.‘.ƒThe“Readline“Þvi“ÝmošMÞde“b˜eha•²!v“es–as“sp˜eci ed“inŽ¡‘Gthe–¦fãPOSIX“Ý1003.2“standard.Ž©33‘!GIn–|Uorder“to“switcš²!h“in˜teractiv˜ely“bMÞet˜w˜een“Þemacs“Ýand“Þvi“Ýediting“moMÞdes,‘„¿use“the“commandŽ¡‘GM-C-j–¦f(toggle-editing-mošMÞde).‘ÝÝThe“Readline“default“is“Þemacs“Ýmo˜de.ަ‘!GWhen–›‰yš²!ou“en˜ter“a“line“in“Þvi“ÝmoMÞde,‘µy˜ou“are“already“placed“in“`insertion'“moMÞde,‘µas“if“y˜ouŽ¡‘Ghad–&Gtš²!ypMÞed“an“`ÞiÝ'.‘³(Pressing“ž™š¸hŽ‘Ÿù@‰ff¤TŸÀ­ESCŽŽ‘ŸÙš‰ff¤TŽ‘2Ùž™š¸iŽŽ‘òÝswitc˜hes“y˜ou“in˜to“`command'“moMÞde,‘?çwhere“y˜ou“can“edit“theŽ¡‘Gtext–of“the“line“with“the“standard“Þvi“Ýmo•²!v“emen“t›k“eys,‘)These“functions“allo˜w“y˜ou“to“c˜hange“whic˜hŽ¡‘Gkš²!eymap–¦fis“activ˜e.ަ’sF‘ÿeunctionŽŽ‘GèKeymap‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íget‘Óõ‰ˆŠ#ØŽ“kÞeymap‘yšâ()Ž¡‘.ùœÝReturns–¦fthe“currenš²!tly“activ˜e“k˜eymap.ŽŽŸŒ‹÷Ÿò‘GÝ24’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðÐ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íset‘Óõ‰ˆŠ#ØŽ“kÞeymap‘yšâ(ÞKeymap‘¦fkeymapâ)ޤ 33‘.ùœÝMak•²!es›¦fák“eymap‘ûgÝthe˜curren“tly˜activ“e˜k“eymap.Ž©¨ó’sF‘ÿeunctionŽŽ‘GèKeymap‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íget‘Óõ‰ˆŠ#ØŽ“kšÞeymap‘Óõ‰ˆŠ#ØŽ“b˜y‘Óõ‰ˆŠ#ØŽ“name‘yšâ(Þchar‘¦f*nameâ)Ž¡‘.ùœÝReturn–pÄthe“kš²!eymap“matc˜hing“ánameÝ.‘Ëüáname‘ ËÝis“one“whic˜h“w˜ould“bMÞe“supplied“in“aŽ¡‘.ùœÞset–¦fkeymap“Ýinputrc“line“(see“Section“1.3“[Readline“Init“File],“page“3).ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Íget‘Óõ‰ˆŠ#ØŽ“kÞeymap‘Óõ‰ˆŠ#ØŽ“name‘yšâ(ÞKeymap‘¦fkeymapâ)Ž¡‘.ùœÝReturn–pÄthe“name“matcš²!hing“ák˜eymapÝ.‘Ëüáname‘ ËÝis“one“whic˜h“w˜ould“bMÞe“supplied“in“aŽ¡‘.ùœÞset–¦fkeymap“Ýinputrc“line“(see“Section“1.3“[Readline“Init“File],“page“3).ŽŸu¿‘GëQ2.4.3‘d(Binding‘íMKeysŽŽŸî‘!GÝY‘ÿeou–]YassoMÞciate“kš²!eys“with“functions“through“the“k˜eymap.‘ ! ·Readline“has“sev˜eral“in˜ter-Ž¡‘Gnal‘Xk²!eymaps:‘«ÂÞemacs_standard_keymapÝ,–Þemacs_meta_keymapÝ,“Þemacs_ctlx_keymapÝ,“Þvi_Ž¡‘Gmovement_keymapÝ,‘qxand–¨Þvi_insertion_keymapÝ.‘ +¢Þemacs_standard_keymap“Ýis“the“default,Ž¡‘Gand–¦fthe“examples“in“this“man²!ual“assume“that.ŽŸî‘!GThese–¦ffunctions“manage“k²!ey“bindings.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íbind‘Óõ‰ˆŠ#ØŽ“kÞey‘yšâ(Þint–¦fkey,“Function“*functionâ)Ž¡‘.ùœÝBinds–Mákš²!ey‘eÝto“áfunction“Ýin“the“curren˜tly“activ˜e“k˜eymap.‘Ö*Returns“non-zero“in“theŽ¡‘.ùœcase–¦fof“an“inš²!v‘ÿdDalid“ák˜eyÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íbind‘Óõ‰ˆŠ#ØŽ“kÞey‘Óõ‰ˆŠ#ØŽ“in‘Óõ‰ˆŠ#ØŽ“map‘yšâ(Þint–¦fkey,“Function“*function,Ž¡‘DGKeymap‘¦fmapâ)Ž¡‘.ùœÝBind–¦fákš²!ey‘–~Ýto“áfunction“Ýin“ámapÝ.‘ÝÝReturns“non-zero“in“the“case“of“an“in˜v‘ÿdDalid“ák˜eyÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍunšÞbind‘Óõ‰ˆŠ#ØŽ“k˜ey‘yšâ(Þint‘¦fkeyâ)Ž¡‘.ùœÝBind–)žákš²!ey‘¶Ýto“the“n˜ull“function“in“the“curren˜tly“activ˜e“k˜eymap.‘´EReturns“non-zeroŽ¡‘.ùœin–¦fcase“of“error.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍunšÞbind‘Óõ‰ˆŠ#ØŽ“k˜ey‘Óõ‰ˆŠ#ØŽ“in‘Óõ‰ˆŠ#ØŽ“map‘yšâ(Þint–¦fkey,“Keymap“mapâ)Ž¡‘.ùœÝBind–¦fákš²!ey‘–~Ýto“the“n˜ull“function“in“ámapÝ.‘ÝÝReturns“non-zero“in“case“of“error.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍunÞbind‘Óõ‰ˆŠ#ØŽ“function‘Óõ‰ˆŠ#ØŽ“in‘Óõ‰ˆŠ#ØŽ“map‘yšâ(ÞFunction‘¦f*function,Ž¡‘DGKeymap‘¦fmapâ)Ž¡‘.ùœÝUnš²!bind–¦fall“k˜eys“that“execute“áfunction“Ýin“ámapÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍunÞbind‘Óõ‰ˆŠ#ØŽ“command‘Óõ‰ˆŠ#ØŽ“in‘Óõ‰ˆŠ#ØŽ“map‘yšâ(Þchar–¦f*command,“KeymapŽ¡‘DGmapâ)Ž¡‘.ùœÝUnš²!bind–¦fall“k˜eys“that“are“bMÞound“to“ácommand‘¸Ýin“ámapÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ígeneric‘Óõ‰ˆŠ#ØŽ“bind‘yšâ(Þint–¦ftype,“char“*keyseq,“char“*data,Ž¡‘DGKeymap‘¦fmapâ)Ž¡‘.ùœÝBind–"™the“kš²!ey“sequence“represen˜ted“b˜y“the“string“ák˜eyseq‘cÝto“the“arbitrary“pMÞoin˜terŽ¡‘.ùœádataÝ.‘Ì át•²!ypšMÞe‘ üÝsa“ys–põwhat“kind“of“data“is“p˜oinš²!ted“to“b˜y“ádataÝ;‘‚Åthis“can“bMÞe“a“functionŽ¡‘.ùœ(ÞISFUNCÝ),›œa–‹*macro“(ÞISMACRÝ),˜or“a“kš²!eymap“(ÞISKMAPÝ).‘ÔÉThis“mak˜es“new“k˜eymapsŽ¡‘.ùœas–¦fnecessary‘ÿe.‘ÝÝThe“initial“kš²!eymap“in“whic˜h“to“do“bindings“is“ámapÝ.ŽŽŸŒ‹Ÿò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—25ŽŽŽ ƒ3Ú ý¨ðÐ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íparse‘Óõ‰ˆŠ#ØŽ“and‘Óõ‰ˆŠ#ØŽ“bind‘yšâ(Þchar‘¦f*lineâ)ޤ 33‘.ùœÝP²!arse–„áline‘!¤Ýas“if“it“had“bšMÞeen“read“from“the“Þinputrc“Ý le“and“p˜erform“anš²!y“k˜eyŽ¡‘.ùœbindings–Týand“v‘ÿdDariable“assignmen²!ts“found“(see“Section“1.3“[Readline“Init“File],Ž¡‘.ùœpage‘¦f3).Ž©o)’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íread‘Óõ‰ˆŠ#ØŽ“init‘Óõ‰ˆŠ#ØŽ“ le‘yšâ(Þchar‘¦f*filenameâ)Ž¡‘.ùœÝRead–ñ ! kš²!eybindings“and“v‘ÿdDariable“assignmen˜ts“from“á lename‘ŽÝ(see“Section“1.3Ž¡‘.ùœ[Readline–¦fInit“File],“page“3).ŽŸ;÷‘GëQ2.4.4‘d(Assoiciating–íMF‘þÄ£unction“Names“and“BindingsŽŽŸQ.‘!GÝThese–ŒQfunctions“alloš²!w“y˜ou“to“ nd“out“what“k˜eys“in˜v˜ok˜e“named“functions“and“the“functionsŽ¡‘Gin•²!v“ok“ed›¦fb“y˜a˜particular˜k“ey˜sequence.ަ’sF‘ÿeunctionŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ínamed‘Óõ‰ˆŠ#ØŽ“function‘yšâ(Þchar‘¦f*nameâ)Ž¡‘.ùœÝReturn–¦fthe“function“with“name“ánameÝ.ަ’sF‘ÿeunctionŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ífunction‘Óõ‰ˆŠ#ØŽ“of‘Óõ‰ˆŠ#ØŽ“kÞeyseq‘yšâ(Þchar–¦f*keyseq,“KeymapŽ¡‘DGmap,–¦fint“*typeâ)Ž¡‘.ùœÝReturn–Qthe“function“in•²!v“ok“ed›Qb“y˜ák“eyseq‘R7Ýin˜k“eymap˜ámapÝ.‘ŸIf˜ámap‘fRÝis˜NULL,˜theŽ¡‘.ùœcurren•²!t›5ùk“eymap˜is˜used.‘¸cIf˜át“ypMÞe‘ÓÝis˜not˜NULL,˜the˜t“ypMÞe˜of˜the˜ob‘›»ject˜is˜returnedŽ¡‘.ùœin–¦fit“(one“of“ÞISFUNCÝ,“ÞISKMAPÝ,“or“ÞISMACRÝ).ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜**“çrl‘Óõ‰ˆŠ#ØŽ›÷Íin•Þv“oking‘Óõ‰ˆŠ#ØŽ˜k“eyseqs‘yšâ(ÞFunction‘¦f*functionâ)Ž¡‘.ùœÝReturn–®Tan“arraš²!y“of“strings“represen˜ting“the“k˜ey“sequences“used“to“in˜v˜ok˜e“áfunc-Ž¡‘.ùœtion–¦fÝin“the“currenš²!t“k˜eymap.ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜**“çrl‘Óõ‰ˆŠ#ØŽ›÷Íin•Þv“oking‘Óõ‰ˆŠ#ØŽ˜k“eyseqs‘Óõ‰ˆŠ#ØŽ˜in‘Óõ‰ˆŠ#ØŽ˜map‘yšâ(ÞFunction‘¦f*function,Ž¡‘DGKeymap‘¦fmapâ)Ž¡‘.ùœÝReturn–®Tan“arraš²!y“of“strings“represen˜ting“the“k˜ey“sequences“used“to“in˜v˜ok˜e“áfunc-Ž¡‘.ùœtion–¦fÝin“the“k²!eymap“ámapÝ.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ífunction‘Óõ‰ˆŠ#ØŽ“dumpb"er‘yšâ(Þint‘¦freadableâ)Ž¡‘.ùœÝPrinš²!t–žOthe“readline“function“names“and“the“k˜ey“sequences“curren˜tly“bMÞound“toŽ¡‘.ùœthem–Ãto“Þrl_outstreamÝ.‘3ÄIf“áreadable‘`Ýis“non-zero,‘Ê1the“list“is“formatted“in“suc²!h“aŽ¡‘.ùœw•²!a“y–¦fthat“it“can“bMÞe“made“part“of“an“Þinputrc“Ý le“and“re-read.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ílist‘Óõ‰ˆŠ#ØŽ“funmap‘Óõ‰ˆŠ#ØŽ“names‘yšâ()Ž¡‘.ùœÝPrin²!t–¦fthe“names“of“all“bindable“Readline“functions“to“Þrl_outstreamÝ.ŽŸ;÷‘GëQ2.4.5‘d(Allo–áwing‘íMUndoingŽŽŸQ.‘!GÝSuppMÞorting–&Œthe“undo“command“is“a“painless“thing,‘@and“makš²!es“y˜our“functions“m˜uc˜h“moreŽ¡‘Guseful.‘€:It–1Úis“certainly“easy“to“try“something“if“yš²!ou“kno˜w“y˜ou“can“undo“it.‘€:I‘1¶could“use“anŽ¡‘Gundo–¦ffunction“for“the“stoMÞcš²!k“mark˜et.ŽŸQ.‘!GIf–+ôy²!our“function“simply“inserts“text“once,›Dqor“deletes“text“once,˜and“uses“Þrl_insert_textŽ¡‘G()–¦fÝor“Þrl_delete_text“()“Ýto“do“it,“then“undoing“is“already“done“for“y²!ou“automatically‘ÿe.ŽŽŸŒ‹Οò‘GÝ26’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБ!GIf–u†yš²!ou“do“m˜ultiple“insertions“or“m˜ultiple“deletions,‘²€or“an˜y“com˜bination“of“these“opMÞerations,ޤ 33‘Gyš²!ou–‘should“group“them“together“in˜to“one“opMÞeration.‘œ]This“is“done“with“Þrl_begin_undo_Ž¡‘Ggroup–¦f()“Ýand“Þrl_end_undo_group“()Ý.ޤ9m‘!GThe–¦ftš²!ypMÞes“of“ev˜en˜ts“that“can“bMÞe“undone“are:ŽŸ†:‘.ùœÞenum–¿ªundo_code“{“UNDO_DELETE,“UNDO_INSERT,“UNDO_BEGIN,“UNDO_END“};Ž¡‘!GÝNotice–£¯that“ÞUNDO_DELETE“Ýmeans“to“insert“some“text,‘¤:and“ÞUNDO_INSERT“Ýmeans“to“deleteޤ 33‘Gsome–é°text.‘žöThat“is,›nthe“undo“coMÞde“tells“undo“what“to“undo,˜not“ho²!w“to“undo“it.‘žöÞUNDO_BEGINŽ¡‘GÝand–¦fÞUNDO_END“Ýare“tags“added“b²!y“Þrl_begin_undo_group“()“Ýand“Þrl_end_undo_group“()Ý.Ž©?§’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íbb"egin‘Óõ‰ˆŠ#ØŽ“undo‘Óõ‰ˆŠ#ØŽ“group‘yšâ()Ž¡‘.ùœÝBegins–o²sa²!ving“undo“information“in“a“group“construct.‘9ÀThe“undo“informationŽ¡‘.ùœusually–comes“from“calls“to“Þrl_insert_text›¦f()“Ýand“Þrl_delete_text˜()Ý,‘¸butŽ¡‘.ùœcould–¦fbMÞe“the“result“of“calls“to“Þrl_add_undo“()Ý.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íend‘Óõ‰ˆŠ#ØŽ“undo‘Óõ‰ˆŠ#ØŽ“group‘yšâ()Ž¡‘.ùœÝCloses–ƒthe“curren²!t“undo“group“started“with“Þrl_begin_undo_group‘¦f()Ý.‘14ThereŽ¡‘.ùœshould–ºbMÞe“one“call“to“Þrl_end_undo_group‘¦f()“Ýfor“eac²!h“call“to“Þrl_begin_undo_Ž¡‘.ùœgroup‘¦f()Ý.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íadd‘Óõ‰ˆŠ#ØŽ“undo‘yšâ(Þenum–¦fundo_code“what,“int“start,“int“end,Ž¡‘DGchar‘¦f*textâ)Ž¡‘.ùœÝRemem•²!bMÞer›ç°ho“w˜to˜undo˜an˜ev“en“t˜(according˜to˜áwhat=Ý).‘¡ºThe˜a ected˜text˜runsŽ¡‘.ùœfrom–¦fástart‘ãfÝto“áendÝ,“and“encompasses“átextÝ.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çfree‘Óõ‰ˆŠ#ØŽ–÷Íundo‘Óõ‰ˆŠ#ØŽ“list‘yšâ()Ž¡‘.ùœÝF‘ÿeree–¦fthe“existing“undo“list.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ído‘Óõ‰ˆŠ#ØŽ“undo‘yšâ()Ž¡‘.ùœÝUndo–Áûthe“ rst“thing“on“the“undo“list.‘0Returns“Þ0“Ýif“there“w²!as“nothing“to“undo,Ž¡‘.ùœnon-zero–¦fif“something“w²!as“undone.ަ‘!GFinally‘ÿe,›Á#if–»Êy²!ou“neither“insert“nor“delete“text,˜but“directly“moMÞdify“the“existing“text“(e.g.,Ž¡‘Gc²!hange–jÕits“case),››ñcall“Þrl_modifying‘¦f()“Ýonce,˜just“bšMÞefore“y²!ou“mo˜dify“the“text.‘++Y‘ÿeou“m²!ustŽ¡‘Gsupply–¦fthe“indices“of“the“text“range“that“y²!ou“are“going“to“moMÞdify‘ÿe.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷Ímob"difying‘yšâ(Þint–¦fstart,“int“endâ)Ž¡‘.ùœÝT‘ÿeell–ØmReadline“to“sa•²!v“e–Ømthe“text“bMÞet•²!w“een–Ømástart‘mÝand“áend‘F¿Ýas“a“single“undo“unit.‘sñItŽ¡‘.ùœis–¦fassumed“that“yš²!ou“will“subsequen˜tly“moMÞdify“that“text.ŽŸ t‘GëQ2.4.6‘d(Redispla–áyŽŽŸ?§’sÝF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷ÍredisplaÞy‘yšâ()Ž¡‘.ùœÝChange–‡what's“displa•²!y“ed–‡on“the“screen“to“re ect“the“currenš²!t“con˜ten˜ts“of“Þrl_Ž¡‘.ùœline_bufferÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íforced‘Óõ‰ˆŠ#ØŽ“upb"date‘Óõ‰ˆŠ#ØŽ“displaÞy‘yšâ()Ž¡‘.ùœÝF‘ÿeorce– Uthe“line“to“bšMÞe“up˜dated“and“redispla•²!y“ed,‘#Qwhether– ! Uor“not“Readline“thinksŽ¡‘.ùœthe–¦fscreen“displa²!y“is“correct.ŽŽŸŒ‹¯Ÿò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—27ŽŽŽ ƒ3Ú ý¨ðÐ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íon‘Óõ‰ˆŠ#ØŽ“new‘Óõ‰ˆŠ#ØŽ“line‘yšâ()ޤ 33‘.ùœÝT‘ÿeell–¾ the“upMÞdate“routines“that“wš²!e“ha˜v˜e“mo˜v˜ed“on˜to“a“new“(empt˜y)“line,‘ÃñusuallyŽ¡‘.ùœafter–¦fouputting“a“newline.Ž©銒sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íreset‘Óõ‰ˆŠ#ØŽ“line‘Óõ‰ˆŠ#ØŽ“state‘yšâ()Ž¡‘.ùœÝReset–äÒthe“displaš²!y“state“to“a“clean“state“and“redispla˜y“the“curren˜t“line“startingŽ¡‘.ùœon–¦fa“new“line.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷Ímessage‘yšâ(Þva_alistâ)Ž¡‘.ùœÝThe–ò“argumenš²!ts“are“a“string“as“w˜ould“bMÞe“supplied“to“ÞprintfÝ.‘ÂdThe“resultingŽ¡‘.ùœstring–C3is“displa•²!y“ed–C3in“the“áecš²!ho“areaÝ.‘ ´EThe“ec˜ho“area“is“also“used“to“displa˜yŽ¡‘.ùœn•²!umeric›¦fargumen“ts˜and˜searc“h˜strings.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íclear‘Óõ‰ˆŠ#ØŽ“message‘yšâ()Ž¡‘.ùœÝClear–¦fthe“message“in“the“ec²!ho“area.ŽŸ¶W‘GëQ2.4.7‘d(Moidifying‘íMT‘þÄ£extŽŽŸ銒sÝF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íinsert‘Óõ‰ˆŠ#ØŽ“text‘yšâ(Þchar‘¦f*textâ)Ž¡‘.ùœÝInsert–¦fátext‘ãfÝinš²!to“the“line“at“the“curren˜t“cursor“pMÞosition.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ídelete‘Óõ‰ˆŠ#ØŽ“text‘yšâ(Þint–¦fstart,“int“endâ)Ž¡‘.ùœÝDelete–¦fthe“text“bMÞet•²!w“een–¦fástart‘ãfÝand“áend‘¸Ýin“the“curren²!t“line.ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcopÞy‘Óõ‰ˆŠ#ØŽ“text‘yšâ(Þint–¦fstart,“int“endâ)Ž¡‘.ùœÝReturn–¦fa“copš²!y“of“the“text“bMÞet˜w˜een“ástart‘ãfÝand“áend‘¸Ýin“the“curren˜t“line.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íkill‘Óõ‰ˆŠ#ØŽ“text‘yšâ(Þint–¦fstart,“int“endâ)Ž¡‘.ùœÝCopš²!y–vSthe“text“bMÞet˜w˜een“ástart‘³SÝand“áend‘ä¥Ýin“the“curren˜t“line“to“the“kill“ring,‘ªNap-Ž¡‘.ùœpšMÞending–FLor“prep˜ending“to“the“last“kill“if“the“last“command“w²!as“a“kill“command.Ž¡‘.ùœThe–4¡text“is“deleted.‘ˆIf“ástart‘q¡Ýis“less“than“áendÝ,›X/the“text“is“appMÞended,˜otherwiseŽ¡‘.ùœprepMÞended.‘ÝÝIf–¦fthe“last“command“w²!as“not“a“kill,“a“new“kill“ring“slot“is“used.ŽŸ¶W‘GëQ2.4.8‘d(Utilit–áy‘íMF‘þÄ£unctionsŽŽŸ銒sÝF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íread‘Óõ‰ˆŠ#ØŽ“kÞey‘yšâ()Ž¡‘.ùœÝReturn–Dšthe“next“cš²!haracter“a˜v‘ÿdDailable.‘½DThis“handles“input“inserted“in˜to“the“inputŽ¡‘.ùœstream–r(via“ápMÞending“input‘¯(Ý(see“Section“2.3“[Readline“V‘ÿeariables],‘¥page“21)“andŽ¡‘.ùœÞrl_stuff_char–¦f()Ý,“macros,“and“cš²!haracters“read“from“the“k˜eybMÞoard.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷Ígetc‘yšâ(ÞFILE‘¦f*â)Ž¡‘.ùœÝReturn–¦fthe“next“cš²!haracter“a˜v‘ÿdDailable“from“the“k˜eybMÞoard.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ístu ‘Óõ‰ˆŠ#ØŽ“cÞhar‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝInsert–5gác‘ßkÝin²!to“the“Readline“input“stream.‘ ŠáIt“will“bšMÞe“Þ"ÝreadÞ"“Ýb˜efore“ReadlineŽ¡‘.ùœattempts–¦fto“read“c²!haracters“from“the“terminal“with“Þrl_read_key“()Ý.ަ’sF‘ÿeunctionŽŽ‘Gèrl_extend_line_buffer‘™˜ç(inÞt‘yšÞlenâ)Ž¡‘.ùœÝEnsure–6that“Þrl_line_buffer“Ýhas“enough“space“to“hold“álen“Ýc²!haracters,‘LîpMÞossiblyŽ¡‘.ùœrealloMÞcating–¦fit“if“necessary‘ÿe.ŽŽŸŒ‹+©Ÿò‘GÝ28’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðÐ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷Íinitialize‘yšâ()ޤ 33‘.ùœÝInitialize–¦for“re-initialize“Readline's“in²!ternal“state.Ž©š½’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íreset‘Óõ‰ˆŠ#ØŽ“terminal‘yšâ(Þchar‘¦f*terminal_nameâ)Ž¡‘.ùœÝReinitialize–CÜReadline's“idea“of“the“terminal“settings“using“áterminal‘¨/‰x³HøŽ‘ñ'name‘àãÝas“theŽ¡‘.ùœterminal–¦ft²!ypMÞe“(e.g.,“Þvt100Ý).ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çalphabb"etic‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝReturn–¦f1“if“ác‘PjÝis“an“alphabMÞetic“c²!haracter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çnÞumeric‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝReturn–¦f1“if“ác‘PjÝis“a“nš²!umeric“c˜haracter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çding‘yšâ()Ž¡‘.ùœÝRing–¦fthe“terminal“bšMÞell,“ob˜eying“the“setting“of“Þbell-styleÝ.ަ‘!GThe–¦ffolloš²!wing“are“implemen˜ted“as“macros,“de ned“in“Þchartypes.hÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çuppb"ercase‘Óõ‰ˆŠ#ØŽ‘÷Íp‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝReturn–¦f1“if“ác‘PjÝis“an“uppšMÞercase“alphab˜etic“c²!haracter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çlo•Þw“ercase‘Óõ‰ˆŠ#ØŽ‘÷Íp‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝReturn–¦f1“if“ác‘PjÝis“a“lo•²!w“ercase–¦falphabMÞetic“c²!haracter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çdigit‘Óõ‰ˆŠ#ØŽ‘÷Íp‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝReturn–¦f1“if“ác‘PjÝis“a“nš²!umeric“c˜haracter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çto‘Óõ‰ˆŠ#ØŽ‘÷Íuppb"er‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝIf–ò«ác‘œ¯Ýis“a“lo•²!w“ercase–ò«alphabšMÞetic“c²!haracter,‘E¼return“the“corresp˜onding“upp˜ercaseŽ¡‘.ùœc²!haracter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çto‘Óõ‰ˆŠ#ØŽ‘÷Ílo•Þw“er‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝIf–Z¼ác‘ÀÝis“an“uppšMÞercase“alphab˜etic“c²!haracter,‘‡Ñreturn“the“corresp˜onding“lo•²!w“ercaseŽ¡‘.ùœc²!haracter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çdigit‘Óõ‰ˆŠ#ØŽ‘÷Ív‘ÿ;¼alue‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝIf–¦fác‘PjÝis“a“n•²!um“bMÞer,–¦freturn“the“v‘ÿdDalue“it“represen²!ts.ŽŸg‹‘GëQ2.4.9‘d(Alternate‘íMIn–áterfaceŽŽŸa‘!GÝAn–_Âalternate“inš²!terface“is“a˜v‘ÿdDailable“to“plain“Þreadline()Ý.‘ ! ñSome“applications“need“toŽ¡‘Gin•²!terlea“v“e›|™k“eybMÞoard˜I/O‘|Žwith˜ le,–„õdevice,“or˜windo•²!w˜system˜I/O,˜t“ypically˜b“y˜using˜a˜mainŽ¡‘GlošMÞop–Seto“Þselect()“Ýon“v‘ÿdDarious“ le“descriptors.‘Â2T‘ÿeo“accomo˜date“this“need,‘cÿreadline“can“also“b˜eŽ¡‘Gin•²!v“ok“ed–¾=as“a“`callbacš²!k'“function“from“an“ev˜en˜t“loMÞop.‘%cThere“are“functions“a˜v‘ÿdDailable“to“mak˜eŽ¡‘Gthis‘¦feasy‘ÿe.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcallbacÞk‘Óõ‰ˆŠ#ØŽ“handler‘Óõ‰ˆŠ#ØŽ“install‘yšâ(Þchar–¦f*prompt,“VfunctionŽ¡‘DG*lhandlerâ)Ž¡‘.ùœÝSet–îiup“the“terminal“for“readline“I/O‘îVand“displa²!y“the“initial“expanded“v‘ÿdDalue“ofŽ¡‘.ùœápromptÝ.‘hSa•²!v“e–?the“v‘ÿdDalue“of“álhandler‘×hÝto“use“as“a“callbac²!k“when“a“complete“lineŽ¡‘.ùœof–¦finput“has“bMÞeen“en²!tered.ŽŽŸŒ‹8ÅŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—29ŽŽŽ ƒ3Ú ý¨ðÐ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcallbacšÞk‘Óõ‰ˆŠ#ØŽ“read‘Óõ‰ˆŠ#ØŽ“c˜har‘yšâ()ޤ 33‘.ùœÝWhenevš²!er–4'an“application“determines“that“k˜eybMÞoard“input“is“a˜v‘ÿdDailable,‘Kit“shouldŽ¡‘.ùœcall–„ÝÞrl_callback_read_char()Ý,‘¼zwhicš²!h“will“read“the“next“c˜haracter“from“theŽ¡‘.ùœcurrenš²!t–øoinput“source.‘ Ó÷If“that“c˜haracter“completes“the“line,‘ŒðÞrl_callback_Ž¡‘.ùœread_char–ÈçÝwill“in•²!v“ok“e–Èçthe“álhandler‘’Ýfunction“sa•²!v“ed›Èçb“y˜Þrl_callback_handler_Ž¡‘.ùœinstall–jÝto“proMÞcess“the“line.‘<éÞEOF“Ýis“indicated“b²!y“calling“álhandler‘ä“Ýwith“a“ÞNULLŽ¡‘.ùœÝline.ŽŸZg’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcallbacšÞk‘Óõ‰ˆŠ#ØŽ“handler‘Óõ‰ˆŠ#ØŽ“remo˜v˜e‘yšâ()Ž¡‘.ùœÝRestore–’Uthe“terminal“to“its“initial“state“and“remo•²!v“e–’Uthe“line“handler.‘×-This“ma²!yŽ¡‘.ùœbMÞe–¦fcalled“from“within“a“callbacš²!k“as“w˜ell“as“indepMÞenden˜tly‘ÿe.ŽŸ'3‘GëQ2.4.10‘d(An‘íMExampleŽŽŸÆÍ‘!GÝHere–¯½is“a“function“whicš²!h“c˜hanges“lo˜w˜ercase“c˜haracters“to“their“uppMÞercase“equiv‘ÿdDalen˜ts,Ž¡‘Gand–ž ! uppMÞercase“cš²!haracters“to“lo˜w˜ercase.‘ÄÈIf“this“function“w˜as“bMÞound“to“`ÞM-cÝ',‘Ûòthen“t˜ypingŽ¡‘G`ÞM-cÝ'–(Äwš²!ould“c˜hange“the“case“of“the“c˜haracter“under“pMÞoin˜t.‘³ýT˜yping“`ÞM-1–¦f0“M-cÝ'–(Äw˜ould“c˜hangeŽ¡‘Gthe–¦fcase“of“the“folloš²!wing“10“c˜haracters,“lea˜ving“the“cursor“on“the“last“c˜haracter“c˜hanged.ŽŸš‘.ùœÞ/*–¿ªInvert“the“case“of“the“COUNT“following“characters.“*/ޤ €‘.ùœintŽ¡‘.ùœinvert_case_line–¿ª(count,“key)Ž¡‘K·îint–¿ªcount,“key;Ž¡‘.ùœ{Ž¡‘:xðregister–¿ªint“start,“end,“i;ޤ‘:xðstart–¿ª=“rl_point;Ž¡‘:xðif–¿ª(rl_point“>=“rl_end)Ž© €‘EøDreturn‘¿ª(0);Ž¡‘:xðif–¿ª(count“<“0)ަ‘EøD{ަ‘Qw˜direction–¿ª=“-1;ަ‘Qw˜count–¿ª=“-count;ަ‘EøD}ަ‘:xðelseަ‘EøDdirection–¿ª=“1;Ž¡‘:xð/*–¿ªFind“the“end“of“the“range“to“modify.“*/ަ‘:xðend–¿ª=“start“+“(count“*“direction);Ž¡‘:xð/*–¿ªForce“it“to“be“within“range.“*/ަ‘:xðif–¿ª(end“>“rl_end)ަ‘EøDend–¿ª=“rl_end;ަ‘:xðelse–¿ªif“(end“<“0)ަ‘EøDend–¿ª=“0;Ž¡‘:xðif–¿ª(start“==“end)ŽŽŸŒ‹D}Ÿò‘GÝ30’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБEøDÞreturn‘¿ª(0);Ž©‘:xðif–¿ª(start“>“end)ޤ €‘EøD{Ž¡‘Qw˜int–¿ªtemp“=“start;Ž¡‘Qw˜start–¿ª=“end;Ž¡‘Qw˜end–¿ª=“temp;Ž¡‘EøD}ަ‘:xð/*–¿ªTell“readline“that“we“are“modifying“the“line,“so“it“will“saveŽ¡‘K·îthe–¿ªundo“information.“*/Ž¡‘:xðrl_modifying–¿ª(start,“end);ަ‘:xðfor–¿ª(i“=“start;“i“!=“end;“i++)Ž¡‘EøD{Ž¡‘Qw˜if–¿ª(uppercase_p“(rl_line_buffer[i]))Ž¡‘\öìrl_line_buffer[i]–¿ª=“to_lower“(rl_line_buffer[i]);Ž¡‘Qw˜else–¿ªif“(lowercase_p“(rl_line_buffer[i]))Ž¡‘\öìrl_line_buffer[i]–¿ª=“to_upper“(rl_line_buffer[i]);Ž¡‘EøD}Ž¡‘:xð/*–¿ªMove“point“to“on“top“of“the“last“character“changed.“*/Ž¡‘:xðrl_point–¿ª=“(direction“==“1)“?“end“-“1“:“start;Ž¡‘:xðreturn‘¿ª(0);Ž¡‘.ùœ}ŽŸíâ‘GëH2.5‘™Custom‘f@CompletersŽŽ©’Z‘!GÝTš²!ypically‘ÿe,‘ÿa–ýGprogram“that“reads“commands“from“the“user“has“a“w˜a˜y“of“disam˜biguatingޤ 33‘Gcommands–B and“data.‘± If“yš²!our“program“is“one“of“these,‘ithen“it“can“pro˜vide“completion“forŽ¡‘Gcommands,–ˆÃdata,“or–[bšMÞoth.‘Ñ„The“follo²!wing“sections“describ˜e“hoš²!w“y˜our“program“and“ReadlineŽ¡‘Gco•MÞop“erate–¦fto“pro²!vide“this“service.ŽŸ¾N‘GëQ2.5.1‘d(Ho–áw–íMCompleting“W‘þÄ£orksŽŽ¦‘!GÝIn–úorder“to“complete“some“text,‘;ßthe“full“list“of“pšMÞossible“completions“m²!ust“b˜e“a²!v‘ÿdDailable.Ž¡‘GThat–is,‘3&it“is“not“pMÞossible“to“accurately“expand“a“partial“wš²!ord“without“kno˜wing“all“of“theŽ¡‘GpMÞossible–3—wš²!ords“whic˜h“mak˜e“sense“in“that“con˜text.‘…pThe“Readline“library“pro˜vides“the“userŽ¡‘Ginš²!terface–ÿ!to“completion,‘Pand“t˜w˜o“of“the“most“common“completion“functions:‘S lename“andŽ¡‘Gusername.‘„F‘ÿeor–˜Úcompleting“other“tš²!ypMÞes“of“text,‘ÎÂy˜ou“m˜ust“write“y˜our“o˜wn“completion“function.Ž¡‘GThis–¦fsection“describMÞes“exactly“what“sucš²!h“functions“m˜ust“do,“and“pro˜vides“an“example.ޤ’Z‘!GThere–¦fare“three“ma‘›»jor“functions“used“to“pMÞerform“completion:Ž¡‘-1.Ž‘'¿«The–èbuser-in²!terface“function“Þrl_complete‘¦f()Ý.‘£ÒThis“function“is“called“with“the“sameޤ 33‘'¿«argumenš²!ts– &as“other“Readline“functions“in˜tended“for“in˜teractiv˜e“use:‘«]ácoun˜t‘J&Ýand“áin˜v˜ok-Ž¡‘'¿«ing‘¨/‰x³HøŽ‘ñ'kš²!eyÝ.‘HKIt–Éàisolates“the“w˜ord“to“bMÞe“completed“and“calls“Þcompletion_matches‘¦f()“ÝtoŽ¡‘'¿«generate–†¥a“list“of“pšMÞossible“completions.‘~™It“then“either“lists“the“p˜ossible“completions,Ž¡‘'¿«inserts–¯Gthe“pšMÞossible“completions,‘ñor“actually“p˜erforms“the“completion,‘ñdep˜ending“onŽ¡‘'¿«whic•²!h›¦fbMÞeha“vior˜is˜desired.ŽŽŸŒ‹M?Ÿò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—31ŽŽŽ ƒ3Ú ý¨ðБ-2.Ž‘'¿«The–~Øinš²!ternal“function“Þcompletion_matches‘¦f()“Ýuses“y˜our“ágenerator‘HÝfunction“to“generateޤ 33‘'¿«the–Ü¢list“of“pMÞossible“matcš²!hes,‘ê1and“then“returns“the“arra˜y“of“these“matc˜hes.‘€‘Y‘ÿeou“shouldŽ¡‘'¿«place–¦fthe“address“of“y²!our“generator“function“in“Þrl_completion_entry_functionÝ.ŽŸ3Ü‘-3.Ž‘'¿«The–q‰generator“function“is“called“repMÞeatedly“from“Þcompletion_matches‘¦f()Ý,‘¤QreturningŽ¡‘'¿«a–ñÒstring“eacš²!h“time.‘À The“argumen˜ts“to“the“generator“function“are“átext‘.ÒÝand“ástateÝ.‘À átextŽ¡‘'¿«Ýis–Ùâthe“partial“w²!ord“to“bMÞe“completed.‘xQástate‘véÝis“zero“the“ rst“time“the“function“is“called,Ž¡‘'¿«alloš²!wing–Šithe“generator“to“pMÞerform“an˜y“necessary“initialization,‘and“a“pMÞositiv˜e“non-zeroŽ¡‘'¿«inš²!teger–6–for“eac˜h“subsequen˜t“call.‘ŽmWhen“the“generator“function“returns“Þ(char‘¦f*)NULLŽ¡‘'¿«Ýthis–Ñ_signals“Þcompletion_matches‘¦f()“Ýthat“there“are“no“more“pMÞossibilities“left.‘^ÈUsuallyŽ¡‘'¿«the–§^generator“function“computes“the“list“of“pMÞossible“completions“when“ástate‘DeÝis“zero,Ž¡‘'¿«and–jreturns“them“one“at“a“time“on“subsequenš²!t“calls.‘«ßEac˜h“string“the“generator“functionŽ¡‘'¿«returns–Ô¨as“a“matcš²!h“m˜ust“bšMÞe“allo˜cated“with“Þmalloc()Ý;‘ëÉReadline“frees“the“strings“whenŽ¡‘'¿«it–¦fhas“ nished“with“them.Ž©5/’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷Ícomplete‘yšâ(Þint–¦fignore,“int“invoking_keyâ)Ž¡‘.ùœÝComplete–¼žthe“w²!ord“at“or“bšMÞefore“p˜oinš²!t.‘ „Y‘ÿeou“ha˜v˜e“supplied“the“function“thatŽ¡‘.ùœdoMÞes–ƒœthe“initial“simple“matc²!hing“selection“algorithm“(see“Þcompletion_matchesŽ¡‘.ùœ()Ý).‘ÝÝThe–¦fdefault“is“to“do“ lename“completion.ަ’‰V‘ÿeariableŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“enÞtry‘Óõ‰ˆŠ#ØŽ“functionŽ¡‘.ùœÝThis–œÍis“a“pMÞoin²!ter“to“the“generator“function“for“Þcompletion_matches‘¦f()Ý.‘ÚªIf“theŽ¡‘.ùœv‘ÿdDalue–¸eof“Þrl_completion_entry_function“Ýis“Þ(Function‘¦f*)NULL“Ýthen“the“de-Ž¡‘.ùœfault–O lename“generator“function,–Ç Þfilename_completion_function‘¦f()Ý,“is‘Oused.ŽŸü‘GëQ2.5.2‘d(Completion‘íMF‘þÄ£unctionsŽŽŸ3Ü‘!GÝHere–¦fis“the“complete“list“of“callable“completion“functions“presen²!t“in“Readline.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ícomplete‘Óõ‰ˆŠ#ØŽ“inÞternal‘yšâ(Þint‘¦fwhat_to_doâ)Ž¡‘.ùœÝComplete–l%the“w²!ord“at“or“bšMÞefore“p˜oinš²!t.‘/áwhat‘¨/‰x³HøŽ–ñ'to‘¨/‰x³HøŽ“do‘øõÝsa˜ys–l%what“to“do“with“theŽ¡‘.ùœcompletion.›µŠA‘˜·v‘ÿdDalue–˜õof“`Þ?Ý'“means“list“the“pMÞossible“completions.˜`ÞTABÝ'“meansŽ¡‘.ùœdo–bóstandard“completion.›…`Þ*Ý'“means“insert“all“of“the“pMÞossible“completions.˜`Þ!Ý'Ž¡‘.ùœmeans– to“displa²!y“all“of“the“pMÞossible“completions,›%jif“there“is“more“than“one,˜asŽ¡‘.ùœw²!ell–¦fas“pMÞerforming“partial“completion.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷Ícomplete‘yšâ(Þint–¦fignore,“int“invoking_keyâ)Ž¡‘.ùœÝComplete–¼žthe“w²!ord“at“or“bšMÞefore“p˜oinš²!t.‘ „Y‘ÿeou“ha˜v˜e“supplied“the“function“thatŽ¡‘.ùœdoMÞes–ƒœthe“initial“simple“matc²!hing“selection“algorithm“(see“Þcompletion_matchesŽ¡‘.ùœ()–½öÝand“Þrl_completion_entry_functionÝ).‘$The“default“is“to“do“ lename“com-Ž¡‘.ùœpletion.‘ÌøThis–s·calls“Þrl_complete_internal‘¦f()“Ýwith“an“argumen²!t“depMÞending“onŽ¡‘.ùœáin•²!v“oking‘¨/‰x³HøŽ‘ñ'k“eyÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘Z çrl‘Óõ‰ˆŠ#ØŽ–÷Ípb"ossible‘Óõ‰ˆŠ#ØŽ“completions‘yšâ(Þint–¦fcount,“int“invoking_keyâ))Ž¡‘.ùœÝList–Y the“pMÞossible“completions.›õËSee“description“of“Þrl_complete‘¦f()Ý.˜This“callsŽ¡‘.ùœÞrl_complete_internal–¦f()“Ýwith“an“argumen²!t“of“`Þ?Ý'.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íinsert‘Óõ‰ˆŠ#ØŽ“completions‘yšâ(Þint–¦fcount,“int“invoking_keyâ))Ž¡‘.ùœÝInsert–Ëlthe“list“of“pMÞossible“completions“in²!to“the“line,‘T­deleting“the“partially-Ž¡‘.ùœcompleted–‘²w²!ord.›ÖöSee“description“of“Þrl_complete‘¦f()Ý.˜This“calls“Þrl_complete_Ž¡‘.ùœinternal–¦f()“Ýwith“an“argumen²!t“of“`Þ*Ý'.ŽŽŸŒ‹ W‡Ÿò‘GÝ32’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðÐ’sF‘ÿeunctionŽŽ‘Gèchar–™˜**“çcompletion‘Óõ‰ˆŠ#ØŽ‘÷ÍmatcÞhes‘yšâ(Þchar–¦f*text,“CPFunctionޤ 33‘DG*entry_funcâ)Ž¡‘.ùœÝReturns–úPan“arraš²!y“of“Þ(char‘¦f*)“Ýwhic˜h“is“a“list“of“completions“for“átextÝ.‘¤If“there“areŽ¡‘.ùœno–ûcompletions,‘Ereturns“Þ(char‘¦f**)NULLÝ.‘ÛôThe“ rst“enš²!try“in“the“returned“arra˜yŽ¡‘.ùœis–©the“substitution“for“átextÝ.‘¯ôThe“remaining“en²!tries“are“the“pMÞossible“completions.Ž¡‘.ùœThe–¦farraš²!y“is“terminated“with“a“ÞNULL“ÝpMÞoin˜ter.ŽŸŸÊ‘.ùœáenš²!try‘¨/‰x³HøŽ‘ñ'func‘m¿Ýis–ûa“function“of“t˜w˜o“args,‘ñand“returns“a“Þ(char‘¦f*)Ý.‘’OThe“ rst“argumen˜tŽ¡‘.ùœis–<ÃátextÝ.‘º§The“second“is“a“state“argumen²!t;‘_úit“is“zero“on“the“ rst“call,‘Qäand“non-zeroŽ¡‘.ùœon–Vsubsequenš²!t“calls.‘Ã@áen˜try‘¨/‰x³HøŽ‘ñ'func‘“Ýreturns“a“ÞNULL“ÝpMÞoin˜ter“to“the“caller“when“thereŽ¡‘.ùœare–¦fno“more“matc²!hes.Ž©xø’sF‘ÿeunctionŽŽ‘Gèchar–™˜*“ç lename‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“function‘yšâ(Þchar–¦f*text,“intŽ¡‘DGstateâ)Ž¡‘.ùœÝA‘§@generator–§‚function“for“ lename“completion“in“the“general“case.‘á1Note“thatŽ¡‘.ùœcompletion–±éin“Bash“is“a“little“di erenš²!t“bMÞecause“of“all“the“pathnames“that“m˜ustŽ¡‘.ùœbMÞe›ÿƒfollo•²!w“ed˜when˜loMÞoking˜up˜completions˜for˜a˜command.‘é3The˜Bash˜source˜isŽ¡‘.ùœa–¦fuseful“reference“for“writing“custom“completion“functions.ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜*“çusername‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“function‘yšâ(Þchar–¦f*text,“intŽ¡‘DGstateâ)Ž¡‘.ùœÝA‘= completion–=4generator“for“usernames.‘¢Fátext‘z4Ýcon²!tains“a“partial“username“pre-Ž¡‘.ùœceded–Ùqbš²!y“a“random“c˜haracter“(usually“`Þ~Ý').‘vÿAs“with“all“completion“generators,Ž¡‘.ùœástate‘CmÝis–¦fzero“on“the“ rst“call“and“non-zero“for“subsequen²!t“calls.ŽŸEÅ‘GëQ2.5.3‘d(Completion‘íMV‘þÄ£ariablesŽŽŸxø’‰ÝV‘ÿeariableŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“enÞtry‘Óõ‰ˆŠ#ØŽ“functionŽ¡‘.ùœÝA‘áKpMÞoin²!ter–áZto“the“generator“function“for“Þcompletion_matches‘¦f()Ý.‘ޏÞNULL“ÝmeansŽ¡‘.ùœto–¦fuse“Þfilename_entry_function“()Ý,“the“default“ lename“completer.ަ’‰V‘ÿeariableŽŽ‘GèCPPFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Íattempted‘Óõ‰ˆŠ#ØŽ“completion‘Óõ‰ˆŠ#ØŽ“functionŽ¡‘.ùœÝA‘í¥pMÞoinš²!ter–í¸to“an“alternativ˜e“function“to“create“matc˜hes.‘³ÒThe“function“is“calledŽ¡‘.ùœwith›œšátextÝ,–žástartÝ,“and˜áendÝ.‘Ú™ástart‘ÙšÝand˜áend‘ ìÝare˜indices˜in˜Þrl_line_buffer˜Ýsa²!yingŽ¡‘.ùœwhat–r–the“bMÞoundaries“of“átext‘¯–Ýare.‘ ! BmIf“this“function“exists“and“returns“ÞNULLÝ,Ž¡‘.ùœor–´zif“this“v›ÿdDariable“is“set“to“ÞNULLÝ,‘÷ÿthen“Þrl_complete‘¦f()“Ýwill“call“the“v˜alue“ofŽ¡‘.ùœÞrl_completion_entry_function–"6Ýto“generate“matcš²!hes,‘A*otherwise“the“arra˜y“ofŽ¡‘.ùœstrings–¦freturned“will“bMÞe“used.ަ’‰V‘ÿeariableŽŽ‘GèCPFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Í lename‘Óõ‰ˆŠ#ØŽ“quoting‘Óõ‰ˆŠ#ØŽ“functionŽ¡‘.ùœÝA‘…$pšMÞoin²!ter–…]to“a“function“that“will“quote“a“ lename“in“an“application-“sp˜eci cŽ¡‘.ùœfashion.‘ésThis–ªCis“called“if“ lename“completion“is“bMÞeing“attempted“and“one“ofŽ¡‘.ùœthe– c²!haracters“in“Þrl_filename_quote_characters“ÝappMÞears“in“a“completed“ le-Ž¡‘.ùœname.‘zThe–^šfunction“is“called“with“átextÝ,›Œ§ámatc•²!h‘¨/‰x³HøŽ‘ñ't“yp•MÞeÝ,˜and‘^šáquote‘¨/‰x³HøŽ‘ñ'p“oin²!terÝ.‘zTheŽ¡‘.ùœátext‘HKÝis– Kthe“ lename“to“bšMÞe“quoted.‘ The“ámatc•²!h‘¨/‰x³HøŽ‘ñ't“yp˜e‘¨RÝis– Keither“ÞSINGLE_MATCHÝ,‘$…ifŽ¡‘.ùœthere–Nis“only“one“completion“matc²!h,‘wïor“ÞMULT_MATCHÝ.‘Ô¿Some“functions“use“thisŽ¡‘.ùœto–Jdecide“whether“or“not“to“insert“a“closing“quote“cš²!haracter.‘¿The“áquote‘¨/‰x³HøŽ‘ñ'pMÞoin˜terŽ¡‘.ùœÝis–¹Öa“pMÞoinš²!ter“to“an˜y“opMÞening“quote“c˜haracter“the“user“t˜ypMÞed.‘,Some“functionsŽ¡‘.ùœcš²!hoMÞose–¦fto“reset“this“c˜haracter.ŽŽŸŒ‹!gìŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—33ŽŽŽ ƒ3Ú ý¨ðÐ’‰V‘ÿeariableŽŽ‘GèCPFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Í lename‘Óõ‰ˆŠ#ØŽ“dequoting‘Óõ‰ˆŠ#ØŽ“functionޤ 33‘.ùœÝA‘>êpMÞoinš²!ter–?to“a“function“that“will“remo˜v˜e“application-spMÞeci c“quoting“c˜haractersŽ¡‘.ùœfrom–ca“ lename“bMÞefore“completion“is“attempted,‘|aso“those“c²!haracters“do“notŽ¡‘.ùœinš²!terfere–eKwith“matc˜hing“the“text“against“names“in“the“ lesystem.‘ŒIt“is“calledŽ¡‘.ùœwith–UwátextÝ,›:the“text“of“the“w²!ord“to“bMÞe“dequoted,˜and“áquote‘¨/‰x³HøŽ‘ñ'c•²!harÝ,˜whic“h–Uwis“theŽ¡‘.ùœquoting–cš²!haracter“that“delimits“the“ lename“(usually“`Þ'Ý'“or“`Þ"Ý').‘ê¹If“áquote‘¨/‰x³HøŽ‘ñ'c˜harŽ¡‘.ùœÝis–¦fzero,“the“ lename“wš²!as“not“in“an“em˜bMÞedded“string.Ž©»’‰V‘ÿeariableŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcÞhar‘Óõ‰ˆŠ#ØŽ“is‘Óõ‰ˆŠ#ØŽ“quoted‘Óõ‰ˆŠ#ØŽ“pŽ¡‘.ùœÝA‘Ë2pšMÞoin²!ter–Ë;to“a“function“to“call“that“determines“whether“or“not“a“sp˜eci c“c²!har-Ž¡‘.ùœacter–üin“the“line“bu er“is“quoted,‘6according“to“whatevš²!er“quoting“mec˜hanism“theŽ¡‘.ùœprogram–2+calling“readline“uses.‘·The“function“is“called“with“t•²!w“o‘2+argumen“ts:‘£ÀátextÝ,Ž¡‘.ùœthe–­¹text“of“the“line,›ßuand“áindexÝ,˜the“index“of“the“c²!haracter“in“the“line.‘ŠùIt“is“used“toŽ¡‘.ùœdecide–dBwhether“a“c²!haracter“found“in“Þrl_completer_word_break_charactersŽ¡‘.ùœÝshould–¦fbMÞe“used“to“break“w²!ords“for“the“completer.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“query‘Óõ‰ˆŠ#ØŽ“itemsŽ¡‘.ùœÝUp–ìŸto“this“manš²!y“items“will“bMÞe“displa˜y˜ed“in“respšMÞonse“to“a“p˜ossible-completionsŽ¡‘.ùœcall.‘…After–óthat,‘ Vwš²!e“ask“the“user“if“she“is“sure“she“w˜an˜ts“to“see“them“all.‘…TheŽ¡‘.ùœdefault–¦fv‘ÿdDalue“is“100.ަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Íbasic‘Óõ‰ˆŠ#ØŽ“wšÞord‘Óõ‰ˆŠ#ØŽ“break‘Óõ‰ˆŠ#ØŽ“c˜haractersŽ¡‘.ùœÝThe–-basic“list“of“cš²!haracters“that“signal“a“break“bMÞet˜w˜een“w˜ords“for“the“completerŽ¡‘.ùœroutine.‘ßåThe–§default“v›ÿdDalue“of“this“v˜ariable“is“the“cš²!haracters“whic˜h“break“w˜ordsŽ¡‘.ùœfor–¦fcompletion“in“Bash,“i.e.,“Þ"“\t\n\"\\'`@$><=;|&{("Ý.ަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Íbasic‘Óõ‰ˆŠ#ØŽ“quote‘Óõ‰ˆŠ#ØŽ“cÞharactersŽ¡‘.ùœÝList–¦fof“quote“cš²!haracters“whic˜h“can“cause“a“w˜ord“break.ަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompleter‘Óõ‰ˆŠ#ØŽ“wšÞord‘Óõ‰ˆŠ#ØŽ“break‘Óõ‰ˆŠ#ØŽ“c˜haractersŽ¡‘.ùœÝThe–.½list“of“cš²!haracters“that“signal“a“break“bMÞet˜w˜een“w˜ords“for“Þrl_complete_Ž¡‘.ùœinternal‘¦f()Ý.‘v The–nïdefault“list“is“the“v‘ÿdDalue“of“Þrl_basic_word_break_charactersÝ.‘èUŸ ! ¯„¥Yަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompleter‘Óõ‰ˆŠ#ØŽ“quote‘Óõ‰ˆŠ#ØŽ“cÞharactersŽ¡‘.ùœÝList–˜"of“cš²!haracters“whic˜h“can“bMÞe“used“to“quote“a“substring“of“the“line.‘ƒÇCompletionŽ¡‘.ùœoMÞccurs–Çron“the“en²!tire“substring,‘ϵand“within“the“substring“Þrl_completer_word_Ž¡‘.ùœbreak_characters–ŒaÝare“treated“as“anš²!y“other“c˜haracter,‘‘•unless“they“also“appMÞearŽ¡‘.ùœwithin–¦fthis“list.ަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Í lename‘Óõ‰ˆŠ#ØŽ“quote‘Óõ‰ˆŠ#ØŽ“cÞharactersŽ¡‘.ùœÝA‘Å£list–Å«of“cš²!haracters“that“cause“a“ lename“to“bMÞe“quoted“b˜y“the“completer“whenŽ¡‘.ùœthey–¦fappMÞear“in“a“completed“ lename.‘ÝÝThe“default“is“the“n²!ull“string.ަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Íspb"ecial‘Óõ‰ˆŠ#ØŽ“pre xesŽ¡‘.ùœÝThe–L>list“of“cš²!haracters“that“are“w˜ord“break“c˜haracters,‘^Fbut“should“bMÞe“left“in“átextŽ¡‘.ùœÝwhen–nãit“is“passed“to“the“completion“function.‘7UPrograms“can“use“this“to“helpŽ¡‘.ùœdetermine–„úwhat“kind“of“completing“to“do.‘Ò¹F‘ÿeor“instance,‘‹ªBash“sets“this“v‘ÿdDariableŽ¡‘.ùœto–¦fÞ"Ý$Þ@"“Ýso“that“it“can“complete“shell“v‘ÿdDariables“and“hostnames.ŽŽŸŒ‹"wŽŸò‘GÝ34’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðÐ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“appb"end‘Óõ‰ˆŠ#ØŽ“cÞharacterޤ 33‘.ùœÝWhen–e¦a“single“completion“alternativš²!e“matc˜hes“at“the“end“of“the“command“line,Ž¡‘.ùœthis–xc²!haracter“is“appMÞended“to“the“inserted“completion“text.‘ÃThe“default“is“aŽ¡‘.ùœspace–P©cš²!haracter“(`‘¦f').‘ÁISetting“this“to“the“n˜ull“c˜haracter“(`Þ\0Ý')“prev˜en˜ts“an˜ythingŽ¡‘.ùœb•MÞeing›e9app“ended˜automatically‘ÿe.‘ ! WThis˜can˜b“e˜c²!hanged˜in˜custom˜completionŽ¡‘.ùœfunctions–^îto“proš²!vide“the“\most“sensible“w˜ord“separator“c˜haracter"“according“toŽ¡‘.ùœan–¦fapplication-spšMÞeci c“command“line“syn²!tax“sp˜eci cation.Ž©ý‘’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íignore‘Óõ‰ˆŠ#ØŽ“completion‘Óõ‰ˆŠ#ØŽ“duplicatesŽ¡‘.ùœÝIf–¦fnon-zero,“then“disalloš²!w“duplicates“in“the“matc˜hes.‘ÝÝDefault“is“1.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Í lename‘Óõ‰ˆŠ#ØŽ“completion‘Óõ‰ˆŠ#ØŽ“desiredŽ¡‘.ùœÝNon-zero–¥îmeans“that“the“results“of“the“matc²!hes“are“to“bMÞe“treated“as“ lenames.Ž¡‘.ùœThis–ÐÄis“áalw•²!a“ys‘DFÝzero–ÐÄon“enš²!try‘ÿe,‘û~and“can“only“bMÞe“c˜hanged“within“a“completion“en˜tryŽ¡‘.ùœgenerator–/ófunction.‘¶aIf“it“is“set“to“a“non-zero“v‘ÿdDalue,‘G¤directory“names“ha•²!v“e–/óa“slashŽ¡‘.ùœappMÞended–³and“Readline“attempts“to“quote“completed“ lenames“if“they“con²!tainŽ¡‘.ùœan•²!y›¦fem“bMÞedded˜w“ord˜break˜c“haracters.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Í lename‘Óõ‰ˆŠ#ØŽ“quoting‘Óõ‰ˆŠ#ØŽ“desiredŽ¡‘.ùœÝNon-zero–Å­means“that“the“results“of“the“matc²!hes“are“to“bMÞe“quoted“using“doubleŽ¡‘.ùœquotes–Õ6(or“an“application-spMÞeci c“quoting“mec²!hanism)“if“the“completed“ lenameŽ¡‘.ùœcon•²!tains›ò[an“y˜c“haracters˜in˜Þrl_filename_quote_charsÝ.‘¡ÙThis˜is˜áalw“a“ys‘eÝÝnon-zeroŽ¡‘.ùœon–¬renš²!try‘ÿe,‘Þoand“can“only“bMÞe“c˜hanged“within“a“completion“en˜try“generator“function.Ž¡‘.ùœThe–åpquoting“is“e ected“via“a“call“to“the“function“pMÞoinš²!ted“to“b˜y“Þrl_filename_Ž¡‘.ùœquoting_functionÝ.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íinhibit‘Óõ‰ˆŠ#ØŽ“completionŽ¡‘.ùœÝIf–pthis“v‘ÿdDariable“is“non-zero,‘zæcompletion“is“inhibitÞ<Ýed.‘˽The“completion“c²!haracterŽ¡‘.ùœwill–¦fbšMÞe“inserted“as“an²!y“other“b˜ound“to“Þself-insertÝ.ަ’‰V‘ÿeariableŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Íignore‘Óõ‰ˆŠ#ØŽ“some‘Óõ‰ˆŠ#ØŽ“completions‘Óõ‰ˆŠ#ØŽ“functionŽ¡‘.ùœÝThis–ivfunction,›u¦if“de ned,˜is“called“b²!y“the“completer“when“real“ lename“comple-Ž¡‘.ùœtion–ydis“done,‘®#after“all“the“matcš²!hing“names“ha˜v˜e“bMÞeen“generated.‘VÖIt“is“passedŽ¡‘.ùœa–ËrÞNULL“Ýterminated“arraš²!y“of“matc˜hes.‘MThe“ rst“elemen˜t“(Þmatches[0]Ý)“is“theŽ¡‘.ùœmaximal–dªsubstring“common“to“all“matc²!hes.‘©This“function“can“re-arrange“theŽ¡‘.ùœlist–L@of“matcš²!hes“as“required,‘u·but“eac˜h“elemen˜t“deleted“from“the“arra˜y“m˜ust“bMÞeŽ¡‘.ùœfreed.ަ’‰V‘ÿeariableŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ídirectory‘Óõ‰ˆŠ#ØŽ“completion‘Óõ‰ˆŠ#ØŽ“hob"okŽ¡‘.ùœÝThis–åfunction,›3˜if“de ned,˜is“allo•²!w“ed–åto“mošMÞdify“the“directory“p˜ortion“of“ lenamesŽ¡‘.ùœReadline–ƒÐcompletes.‘ÒVIt“is“called“with“the“address“of“a“string“(the“curren²!t“direc-Ž¡‘.ùœtory–Š~name)“as“an“argumenš²!t.‘ÔIt“could“bMÞe“used“to“expand“sym˜bMÞolic“links“or“shellŽ¡‘.ùœv‘ÿdDariables–¦fin“pathnames.ŽŸÊ^‘GëQ2.5.4‘d(A–íMShort“Completion“ExampleŽŽŸËý‘!GÝHere–q}is“a“small“application“demonstrating“the“use“of“the“GNU‘q/Readline“library‘ÿe.‘våIt“is“calledŽ¡‘GÞfilemanÝ,‘lGand–D´the“source“coMÞde“resides“in“`Þexamples/fileman.cÝ'.‘¸ÆThis“sample“applicationŽ¡‘Gpro²!vides–#þcompletion“of“command“names,›>line“editing“features,˜and“access“to“the“history“list.ŽŽŸŒ‹#‡`Ÿò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—35ŽŽŽ ƒ3Ú ý¨ðБ.ùœÞ/*–¿ªfileman.c“--“A“tiny“application“which“demonstrates“how“to“use“theޤ €‘@8šGNU–¿ªReadline“library.‘ TThis“application“interactively“allows“usersŽ¡‘@8što–¿ªmanipulate“files“and“their“modes.“*/Ž©‘.ùœ#include‘¿ªŽ¡‘.ùœ#include‘¿ªŽ¡‘.ùœ#include‘¿ªŽ¡‘.ùœ#include‘¿ªŽ¡‘.ùœ#include‘¿ªŽ¦‘.ùœ#include‘¿ªŽ¡‘.ùœ#include‘¿ªŽ¦‘.ùœextern–¿ªchar“*getwd“();Ž¡‘.ùœextern–¿ªchar“*xmalloc“();ަ‘.ùœ/*–¿ªThe“names“of“functions“that“actually“do“the“manipulation.“*/Ž¡‘.ùœint–¿ªcom_list“(),“com_view“(),“com_rename“(),“com_stat“(),“com_pwd“();Ž¡‘.ùœint–¿ªcom_delete“(),“com_help“(),“com_cd“(),“com_quit“();ަ‘.ùœ/*–¿ªA“structure“which“contains“information“on“the“commands“this“programŽ¡‘@8šcan–¿ªunderstand.“*/ަ‘.ùœtypedef–¿ªstruct“{Ž¡‘:xðchar–¿ª*name;“/*“User“printable“name“of“the“function.“*/Ž¡‘:xðFunction–¿ª*func;“/*“Function“to“call“to“do“the“job.“*/Ž¡‘:xðchar–¿ª*doc;“/*“Documentation“for“this“function.‘ T*/Ž¡‘.ùœ}‘¿ªCOMMAND;ަ‘.ùœCOMMAND–¿ªcommands[]“=“{Ž¡‘:xð{–¿ª"cd",“com_cd,“"Change“to“directory“DIR"“},Ž¡‘:xð{–¿ª"delete",“com_delete,“"Delete“FILE"“},Ž¡‘:xð{–¿ª"help",“com_help,“"Display“this“text"“},Ž¡‘:xð{–¿ª"?",“com_help,“"Synonym“for“`help'"“},Ž¡‘:xð{–¿ª"list",“com_list,“"List“files“in“DIR"“},Ž¡‘:xð{–¿ª"ls",“com_list,“"Synonym“for“`list'"“},Ž¡‘:xð{–¿ª"pwd",“com_pwd,“"Print“the“current“working“directory"“},Ž¡‘:xð{–¿ª"quit",“com_quit,“"Quit“using“Fileman"“},Ž¡‘:xð{–¿ª"rename",“com_rename,“"Rename“FILE“to“NEWNAME"“},Ž¡‘:xð{–¿ª"stat",“com_stat,“"Print“out“statistics“on“FILE"“},Ž¡‘:xð{–¿ª"view",“com_view,“"View“the“contents“of“FILE"“},Ž¡‘:xð{–¿ª(char“*)NULL,“(Function“*)NULL,“(char“*)NULL“}Ž¡‘.ùœ};ަ‘.ùœ/*–¿ªForward“declarations.“*/Ž¡‘.ùœchar–¿ª*stripwhite“();Ž¡‘.ùœCOMMAND–¿ª*find_command“();ŽŽŸŒ‹$–¼Ÿò‘GÝ36’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБ.ùœÞ/*–¿ª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.“*/Ÿnï„ ! ™Ž¡‘.ùœint‘¿ªdone;ަ‘.ùœchar‘¿ª*Ž¡‘.ùœdupstr‘¿ª(s)Ž¡‘K·îint‘¿ªs;Ž¡‘.ùœ{Ž¡‘:xðchar‘¿ª*r;ަ‘:xðr–¿ª=“xmalloc“(strlen“(s)“+“1);Ž¡‘:xðstrcpy–¿ª(r,“s);Ž¡‘:xðreturn‘¿ª(r);Ž¡‘.ùœ}ަ‘.ùœmain–¿ª(argc,“argv)Ž¡‘K·îint‘¿ªargc;Ž¡‘K·îchar‘¿ª**argv;Ž¡‘.ùœ{Ž¡‘:xðchar–¿ª*line,“*s;ަ‘:xðprogname–¿ª=“argv[0];ަ‘:xðinitialize_readline–¿ª();“/*“Bind“our“completer.“*/ަ‘:xð/*–¿ªLoop“reading“and“executing“lines“until“the“user“quits.“*/Ž¡‘:xðfor–¿ª(“;“done“==“0;“)Ž¡‘EøD{Ž¡‘Qw˜line–¿ª=“readline“("FileMan:“");ަ‘Qw˜if‘¿ª(!line)Ž¡‘\öìbreak;ަ‘Qw˜/*–¿ªRemove“leading“and“trailing“whitespace“from“the“line.Ž¡‘b¶–Then,–¿ªif“there“is“anything“left,“add“it“to“the“history“listŽ¡‘b¶–and–¿ªexecute“it.“*/Ž¡‘Qw˜s–¿ª=“stripwhite“(line);ަ‘Qw˜if‘¿ª(*s)Ž¡‘\öì{Ž¡‘hv@add_history‘¿ª(s);Ž¡‘hv@execute_line‘¿ª(s);Ž¡‘\öì}ަ‘Qw˜free‘¿ª(line);Ž¡‘EøD}ŽŽŸŒ‹%ž›Ÿò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—37ŽŽŽ ƒ3Ú ý¨ðБ:xðÞexit‘¿ª(0);ޤ €‘.ùœ}Ž©‘.ùœ/*–¿ªExecute“a“command“line.“*/Ž¡‘.ùœintŽ¡‘.ùœexecute_line‘¿ª(line)Ž¡‘K·îchar‘¿ª*line;Ž¡‘.ùœ{Ž¡‘:xðregister–¿ªint“i;Ž¡‘:xðCOMMAND‘¿ª*command;Ž¡‘:xðchar‘¿ª*word;ަ‘:xð/*–¿ªIsolate“the“command“word.“*/Ž¡‘:xði–¿ª=“0;Ž¡‘:xðwhile–¿ª(line[i]“&&“whitespace“(line[i]))Ž¡‘EøDi++;Ž¡‘:xðword–¿ª=“line“+“i;ަ‘:xðwhile–¿ª(line[i]“&&“!whitespace“(line[i]))Ž¡‘EøDi++;ަ‘:xðif‘¿ª(line[i])Ž¡‘EøDline[i++]–¿ª=“'\0';ަ‘:xðcommand–¿ª=“find_command“(word);ަ‘:xðif‘¿ª(!command)Ž¡‘EøD{Ž¡‘Qw˜fprintf–¿ª(stderr,“"%s:“No“such“command“for“FileMan.\n",“word);Ž¡‘Qw˜return‘¿ª(-1);Ž¡‘EøD}ަ‘:xð/*–¿ªGet“argument“to“command,“if“any.“*/Ž¡‘:xðwhile–¿ª(whitespace“(line[i]))Ž¡‘EøDi++;ަ‘:xðword–¿ª=“line“+“i;ަ‘:xð/*–¿ªCall“the“function.“*/Ž¡‘:xðreturn–¿ª((*(command->func))“(word));Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªLook“up“NAME“as“the“name“of“a“command,“and“return“a“pointer“to“thatŽ¡‘@8šcommand.‘ TReturn–¿ªa“NULL“pointer“if“NAME“isn't“a“command“name.“*/Ž¡‘.ùœCOMMAND‘¿ª*Ž¡‘.ùœfind_command‘¿ª(name)Ž¡‘K·îchar‘¿ª*name;Ž¡‘.ùœ{ŽŽŸŒ‹&£-Ÿò‘GÝ38’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБ:xðÞregister–¿ªint“i;Ž©‘:xðfor–¿ª(i“=“0;“commands[i].name;“i++)ޤ €‘EøDif–¿ª(strcmp“(name,“commands[i].name)“==“0)Ž¡‘Qw˜return‘¿ª(&commands[i]);ަ‘:xðreturn–¿ª((COMMAND“*)NULL);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªStrip“whitespace“from“the“start“and“end“of“STRING.‘ TReturn“a“pointerŽ¡‘@8šinto–¿ªSTRING.“*/Ž¡‘.ùœchar‘¿ª*Ž¡‘.ùœstripwhite‘¿ª(string)Ž¡‘K·îchar‘¿ª*string;Ž¡‘.ùœ{Ž¡‘:xðregister–¿ªchar“*s,“*t;ަ‘:xðfor–¿ª(s“=“string;“whitespace“(*s);“s++)Ž¡‘EøD;ަ‘:xðif–¿ª(*s“==“0)Ž¡‘EøDreturn‘¿ª(s);ަ‘:xðt–¿ª=“s“+“strlen“(s)“-“1;Ž¡‘:xðwhile–¿ª(t“>“s“&&“whitespace“(*t))Ž¡‘EøDt--;Ž¡‘:xð*++t–¿ª=“'\0';ަ‘:xðreturn‘¿ªs;Ž¡‘.ùœ}ަ‘.ùœ/*–¿ª****************************************************************“*/Ž¡‘.ùœ/*’{iÔ*/Ž¡‘.ùœ/*‘gyôInterface–¿ªto“Readline“Completion‘[ú */Ž¡‘.ùœ/*’{iÔ*/Ž¡‘.ùœ/*–¿ª****************************************************************“*/ަ‘.ùœchar–¿ª*command_generator“();Ž¡‘.ùœchar–¿ª**fileman_completion“();ަ‘.ùœ/*–¿ªTell“the“GNU“Readline“library“how“to“complete.‘ TWe“want“to“try“to“completeŸnï„ ! ™Ž¡‘@8šon–¿ªcommand“names“if“this“is“the“first“word“in“the“line,“or“on“filenamesŸ…T„6eŽ¡‘@8šif–¿ªnot.“*/Ž¡‘.ùœinitialize_readline‘¿ª()Ž¡‘.ùœ{Ž¡‘:xð/*–¿ªAllow“conditional“parsing“of“the“~/.inputrc“file.“*/Ž¡‘:xðrl_readline_name–¿ª=“"FileMan";ŽŽŸŒ‹'§èŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—39ŽŽŽ ƒ3Ú ý¨ðБ:xðÞ/*–¿ªTell“the“completer“that“we“want“a“crack“first.“*/ޤ €‘:xðrl_attempted_completion_function–¿ª=“(CPPFunction“*)fileman_completion;Ž¡‘.ùœ}Ž©‘.ùœ/*–¿ªAttempt“to“complete“on“the“contents“of“TEXT.‘ TSTART“and“END“bound“theŽ¡‘@8šregion–¿ªof“rl_line_buffer“that“contains“the“word“to“complete.‘ TTEXT“isŽ¡‘@8šthe–¿ªword“to“complete.‘ TWe“can“use“the“entire“contents“of“rl_line_bufferŸnï„ Ž¡‘@8šin–¿ªcase“we“want“to“do“some“simple“parsing.‘ TReturn“the“array“of“matches,Ÿnï„ Ž¡‘@8šor–¿ªNULL“if“there“aren't“any.“*/Ž¡‘.ùœchar‘¿ª**Ž¡‘.ùœfileman_completion–¿ª(text,“start,“end)Ž¡‘K·îchar‘¿ª*text;Ž¡‘K·îint–¿ªstart,“end;Ž¡‘.ùœ{Ž¡‘:xðchar‘¿ª**matches;ަ‘:xðmatches–¿ª=“(char“**)NULL;ަ‘:xð/*–¿ªIf“this“word“is“at“the“start“of“the“line,“then“it“is“a“commandŽ¡‘K·îto–¿ªcomplete.‘ TOtherwise“it“is“the“name“of“a“file“in“the“currentŽ¡‘K·îdirectory.‘¿ª*/Ž¡‘:xðif–¿ª(start“==“0)Ž¡‘EøDmatches–¿ª=“completion_matches“(text,“command_generator);ަ‘:xðreturn‘¿ª(matches);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªGenerator“function“for“command“completion.‘ TSTATE“lets“us“know“whetherŸnï„ ™Ž¡‘@8što–¿ªstart“from“scratch;“without“any“state“(i.e.“STATE“==“0),“then“weŽ¡‘@8šstart–¿ªat“the“top“of“the“list.“*/Ž¡‘.ùœchar‘¿ª*Ž¡‘.ùœcommand_generator–¿ª(text,“state)Ž¡‘K·îchar‘¿ª*text;Ž¡‘K·îint‘¿ªstate;Ž¡‘.ùœ{Ž¡‘:xðstatic–¿ªint“list_index,“len;Ž¡‘:xðchar‘¿ª*name;ަ‘:xð/*–¿ªIf“this“is“a“new“word“to“complete,“initialize“now.‘ TThis“includesŽ¡‘K·îsaving–¿ªthe“length“of“TEXT“for“efficiency,“and“initializing“the“indexŸnï„ Ž¡‘K·îvariable–¿ªto“0.“*/Ž¡‘:xðif‘¿ª(!state)Ž¡‘EøD{Ž¡‘Qw˜list_index–¿ª=“0;Ž¡‘Qw˜len–¿ª=“strlen“(text);Ž¡‘EøD}ަ‘:xð/*–¿ªReturn“the“next“name“which“partially“matches“from“the“command“list.“*/Ÿnï„ ! ™ŽŽŸŒ‹(­‡Ÿò‘GÝ40’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБ:xðÞwhile–¿ª(name“=“commands[list_index].name)ޤ €‘EøD{Ž¡‘Qw˜list_index++;Ž©‘Qw˜if–¿ª(strncmp“(name,“text,“len)“==“0)Ž¡‘\öìreturn‘¿ª(dupstr(name));Ž¡‘EøD}ަ‘:xð/*–¿ªIf“no“names“matched,“then“return“NULL.“*/Ž¡‘:xðreturn–¿ª((char“*)NULL);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ª****************************************************************“*/Ž¡‘.ùœ/*’{iÔ*/Ž¡‘.ùœ/*’„8FFileMan‘¿ªCommands’›6î*/Ž¡‘.ùœ/*’{iÔ*/Ž¡‘.ùœ/*–¿ª****************************************************************“*/ަ‘.ùœ/*–¿ªString“to“pass“to“system“().‘ TThis“is“for“the“LIST,“VIEW“and“RENAMEŽ¡‘@8šcommands.‘¿ª*/Ž¡‘.ùœstatic–¿ªchar“syscom[1024];ަ‘.ùœ/*–¿ªList“the“file(s)“named“in“arg.“*/Ž¡‘.ùœcom_list‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðif‘¿ª(!arg)Ž¡‘EøDarg–¿ª=“"";ަ‘:xðsprintf–¿ª(syscom,“"ls“-FClg“%s",“arg);Ž¡‘:xðreturn–¿ª(system“(syscom));Ž¡‘.ùœ}ަ‘.ùœcom_view‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðif–¿ª(!valid_argument“("view",“arg))Ž¡‘EøDreturn‘¿ª1;ަ‘:xðsprintf–¿ª(syscom,“"more“%s",“arg);Ž¡‘:xðreturn–¿ª(system“(syscom));Ž¡‘.ùœ}ަ‘.ùœcom_rename‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðtoo_dangerous‘¿ª("rename");Ž¡‘:xðreturn‘¿ª(1);ŽŽŸŒ‹)µ Ÿò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—41ŽŽŽ ƒ3Ú ý¨ðБ.ùœÞ}Ž©‘.ùœcom_stat‘¿ª(arg)ޤ €‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðstruct–¿ªstat“finfo;ަ‘:xðif–¿ª(!valid_argument“("stat",“arg))Ž¡‘EøDreturn‘¿ª(1);ަ‘:xðif–¿ª(stat“(arg,“&finfo)“==“-1)Ž¡‘EøD{Ž¡‘Qw˜perror‘¿ª(arg);Ž¡‘Qw˜return‘¿ª(1);Ž¡‘EøD}ަ‘:xðprintf–¿ª("Statistics“for“`%s':\n",“arg);ަ‘:xðprintf–¿ª("%s“has“%d“link%s,“and“is“%d“byte%s“in“length.\n",“arg,Ž¡‘hv@finfo.st_nlink,Ž¡‘hv@(finfo.st_nlink–¿ª==“1)“?“""“:“"s",Ž¡‘hv@finfo.st_size,Ž¡‘hv@(finfo.st_size–¿ª==“1)“?“""“:“"s");Ž¡‘:xðprintf–¿ª("Inode“Last“Change“at:“%s",“ctime“(&finfo.st_ctime));Ž¡‘:xðprintf–¿ª("‘"}üLast“access“at:“%s",“ctime“(&finfo.st_atime));Ž¡‘:xðprintf–¿ª("‘þ¨Last“modified“at:“%s",“ctime“(&finfo.st_mtime));Ž¡‘:xðreturn‘¿ª(0);Ž¡‘.ùœ}ަ‘.ùœcom_delete‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðtoo_dangerous‘¿ª("delete");Ž¡‘:xðreturn‘¿ª(1);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªPrint“out“help“for“ARG,“or“for“all“of“the“commands“if“ARG“isŽ¡‘@8šnot–¿ªpresent.“*/Ž¡‘.ùœcom_help‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðregister–¿ªint“i;Ž¡‘:xðint–¿ªprinted“=“0;ަ‘:xðfor–¿ª(i“=“0;“commands[i].name;“i++)Ž¡‘EøD{Ž¡‘Qw˜if–¿ª(!*arg“||“(strcmp“(arg,“commands[i].name)“==“0))Ž¡‘\öì{ŽŽŸŒ‹*º Ÿò‘GÝ42’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБhv@Þprintf–¿ª("%s\t\t%s.\n",“commands[i].name,“commands[i].doc);ޤ €‘hv@printed++;Ž¡‘\öì}Ž¡‘EøD}Ž©‘:xðif‘¿ª(!printed)Ž¡‘EøD{Ž¡‘Qw˜printf–¿ª("No“commands“match“`%s'.‘ TPossibilties“are:\n",“arg);ަ‘Qw˜for–¿ª(i“=“0;“commands[i].name;“i++)Ž¡‘\öì{Ž¡‘hv@/*–¿ªPrint“in“six“columns.“*/Ž¡‘hv@if–¿ª(printed“==“6)Ž¡‘sõ”{Ž¡‘tèprinted–¿ª=“0;Ž¡‘tèprintf‘¿ª("\n");Ž¡‘sõ”}ަ‘hv@printf–¿ª("%s\t",“commands[i].name);Ž¡‘hv@printed++;Ž¡‘\öì}ަ‘Qw˜if‘¿ª(printed)Ž¡‘\öìprintf‘¿ª("\n");Ž¡‘EøD}Ž¡‘:xðreturn‘¿ª(0);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªChange“to“the“directory“ARG.“*/Ž¡‘.ùœcom_cd‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðif–¿ª(chdir“(arg)“==“-1)Ž¡‘EøD{Ž¡‘Qw˜perror‘¿ª(arg);Ž¡‘Qw˜return‘¿ª1;Ž¡‘EøD}ަ‘:xðcom_pwd‘¿ª("");Ž¡‘:xðreturn‘¿ª(0);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªPrint“out“the“current“working“directory.“*/Ž¡‘.ùœcom_pwd‘¿ª(ignore)Ž¡‘K·îchar‘¿ª*ignore;Ž¡‘.ùœ{Ž¡‘:xðchar–¿ªdir[1024],“*s;ŽŽŸŒ‹+¿2Ÿò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—43ŽŽŽ ƒ3Ú ý¨ðБ:xðÞs–¿ª=“getwd“(dir);ޤ €‘:xðif–¿ª(s“==“0)Ž¡‘EøD{Ž¡‘Qw˜printf–¿ª("Error“getting“pwd:“%s\n",“dir);Ž¡‘Qw˜return‘¿ª1;Ž¡‘EøD}Ž©‘:xðprintf–¿ª("Current“directory“is“%s\n",“dir);Ž¡‘:xðreturn‘¿ª0;Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªThe“user“wishes“to“quit“using“this“program.‘ TJust“set“DONE“non-zero.“*/Ÿnï„ ™Ž¡‘.ùœcom_quit‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðdone–¿ª=“1;Ž¡‘:xðreturn‘¿ª(0);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªFunction“which“tells“you“that“you“can't“do“this.“*/Ž¡‘.ùœtoo_dangerous‘¿ª(caller)Ž¡‘K·îchar‘¿ª*caller;Ž¡‘.ùœ{Ž¡‘:xðfprintf‘¿ª(stderr,Ž¡‘n5ê"%s:–¿ªToo“dangerous“for“me“to“distribute.‘ TWrite“it“yourself.\n",Ÿnï„ ! ™Ž¡‘n5êcaller);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªReturn“non-zero“if“ARG“is“a“valid“argument“for“CALLER,“else“printŽ¡‘@8šan–¿ªerror“message“and“return“zero.“*/Ž¡‘.ùœintŽ¡‘.ùœvalid_argument–¿ª(caller,“arg)Ž¡‘K·îchar–¿ª*caller,“*arg;Ž¡‘.ùœ{Ž¡‘:xðif–¿ª(!arg“||“!*arg)Ž¡‘EøD{Ž¡‘Qw˜fprintf–¿ª(stderr,“"%s:“Argument“required.\n",“caller);Ž¡‘Qw˜return‘¿ª(0);Ž¡‘EøD}ަ‘:xðreturn‘¿ª(1);Ž¡‘.ùœ}ŽŽŸŒ‹,Ã4Ÿò‘GÝ44’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3ÚŸŒ‹-ÇÍŸò‘GÝConcept‘¦fIndex’`¶)45ŽŽŽ ƒ3Ú ý¨ðБGêConcept‘z³IndexŽŽ ¶\( ÿt‘GëHCޤ‘Góo´‹Ç cmr9¬command‘Tediting‘ar‘ÅUó"”q[˜ cmsl9Í.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘“,¬1Ž©‘GëHEŽ¡‘G¬editing–Tcommand“lines‘¥‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘J`¬1ަ‘GëHIŽ¡‘G¬initialization–T le,“readline‘‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Mج3ŽŸ ‘Gin¾9teraction,‘Treadline‘ÿ«‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ 1f¬1ަ‘GëHKŽ¡‘G¬kill‘Tring‘ª‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ 5e¬2ŽŽ ÿt’óáðkilling‘Ttext‘å‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ º¬2ޤ ª«’óáðëHNŽ©’óáð¬notation,‘Treadline‘™‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Ê»¬1Ž¡’óáðëHRަ’óáð¬readline,‘Tfunction‘¹ä‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘러19Ž¡’óáðëHYަ’óáð¬y¾9anking‘Ttext‘œ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Í׬2ŽŽŽŽŸŒ‹.È1Ÿò‘GÝ46’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3ÚŸŒ‹/ÓŸò‘GÝF›ÿeunction–¦fand“V˜ariable“Index’œÃ47ŽŽŽ ƒ3Ú ý¨ðБGêF›þaGunction–z³and“V˜ariable“IndexŽŽ W0 ýÏðБGëH(ޤ‘GóߤN cmtt9É(int‘ô‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ %ì27Ž©ƒÌ‘GëHAŽ¡‘GÉabort‘T(C-g)‘ $‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Ñ߬15ޤ ‘GÉaccept-line–T(Newline,“Return)_‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘:¬11Ž¡‘GÉalphabetic–‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘NQ¬28ަ‘GëHBŽŸ‘GÉbackward-char‘T(C-b)9Ä‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘k¬11Ž¡‘GÉbackward-delete-char‘T(Rubout)‘Dv‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘v1¬12Ž¡‘GÉbackward-kill-line–T(C-x“Rubout)‘yq‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘«,¬13Ž¡‘GÉbackward-kill-word‘T(M-DEL)!÷‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘S²¬14Ž¡‘GÉbackward-word‘T(M-b)9Ä‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘k¬11Ž¡‘GÉbeginning-of-history‘T(M-<)!÷‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘S²¬11Ž¡‘GÉbeginning-of-line‘T(C-a)‘ °‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘?k¬11Ž¡‘GbAÇell-st¾9yle‘½‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘îѬ4ަ‘GëHCŽŸ‘GÉcall-last-kbd-macro–T(C-x“e)‘¥…‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘×@¬15Ž¡‘GÉcapitalize-word‘T(M-c)‘ªÖ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.ޑܑ¬13Ž¡‘GÉcharacter-search‘T(C-])‘\C‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘þ¬16Ž¡‘GÉcharacter-search-backward‘T(M-C-]) ! *‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘;å¬16Ž¡‘GÉclear-screen‘T(C-l)‘ˆW‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘º¬11Ž¡‘Gcommen¾9t-bAÇegin‘a‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘’»¬4Ž¡‘GÉcomplete‘T(TAB)‘£‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ô^¬15Ž¡‘Gcompletion-query-items‘WP‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘‰ ¬4Ž¡‘GÉcompletion‘‘$‰c4ÕÂŽ‘fæmatches_Ž‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘‘I¬32Ž¡‘Gcon•¾9v“ert-meta‘Á‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ò»¬4Ž¡‘GÉcopy-backward-word‘T()‘ªÖ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.ޑܑ¬14Ž¡‘GÉcopy-forward-word‘T()‘ùi‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ +$¬14Ž¡‘GÉcopy-region-as-kill‘T()‘\C‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘þ¬14ަ‘GëHDŽŸ‘GÉdelete-char‘T(C-d)‘Öê‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥¬12Ž¡‘GÉdelete-horizontal-space‘T()!÷‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘S²¬14Ž¡‘GÉdigit-argument–T(M-0,“M-1,“...“M--)#‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘U}¬14Ž¡‘GÉdigit‘‘$‰c4ÕÂŽ‘fæp‘±§‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ãb¬28Ž¡‘GÉdigit‘‘$‰c4ÕÂŽ‘fævaluew[‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘©¬28Ž¡‘GÉding‘ô‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ %ì28Ž¡‘Gdisable-completion‘ÖÞ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘™¬5Ž¡‘GÉdo-uppercase-version–T(M-a,“M-b,“M-ÍxÉ,“ó5ùž" cmmi9²:–Šª:“:Ž‘ ßúÉ)‘¨ì‘ÅUÍ.Ž‘p‘ÅU.Ž‘Ú¦¬16Ž¡‘GÉdowncase-word‘T(M-l)9Ä‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘k¬13Ž¡‘GÉdump-functions‘T()‘Öê‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥¬16Ž¡‘GÉdump-macros‘T()‘£‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ô^¬16Ž¡‘GÉdump-variables‘T()‘Öê‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥¬16ŽŽ ýÏðÐ’óáðëHEŽ©’óáð¬editing-moAÇde‘ë‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘õe¬5ޤ ’óáðenable-k¾9eypad‘r‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘³-¬5Ž¡’óáðÉend-kbd-macro–T(C-x“))n¿‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ z¬15Ž¡’óáðÉend-of-history‘T(M->)‘ùi‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ +$¬12Ž¡’óáðÉend-of-line‘T(C-e)‘Öê‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥¬11Ž¡’óáðÉexchange-point-and-mark–T(C-x“C-x)‘ÜK‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¬16Ž¡’óáðexpand-tilde‘þV‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘0¬5ŽŸKP’óáðëHFަ’óáðÉfilename‘‘$‰c4ÕÂŽ–fæcompletion‘‘$‰c4ÕÂŽ“function`‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘7¬32Ž¡’óáðÉforward-char‘T(C-f)‘ˆW‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘º¬11Ž¡’óáðÉforward-search-history‘T(C-s)‘“ ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ÄĬ12Ž¡’óáðÉforward-word‘T(M-f)‘ˆW‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘º¬11Ž¡’óáðÉfree‘‘$‰c4ÕÂŽ–fæundo‘‘$‰c4ÕÂŽ“list4ú‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘fµ¬26ŽŸKP’óáðëHHަ’óáðÉhistory-search-backward‘T()!÷‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘S²¬12Ž¡’óáðÉhistory-search-forward‘T()pŠ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¢E¬12Ž¡’óáðhorizon¾9tal-scroll-moAÇde‘Ù‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ ! Ѭ5ŽŸKP’óáðëHIަ’óáð¬input-meta‘£9‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Ôó¬5Ž¡’óáðÉinsert-comment‘T(M-#)‘ùi‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ +$¬16Ž¡’óáðÉinsert-completions‘T(M-*)‘¿‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ðج15ŽŸKP’óáðëHKަ’óáð¬k¾9eymap9r‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘k-¬5Ž¡’óáðÉkill-line‘T(C-k)‘t‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥Ë¬13Ž¡’óáðÉkill-region‘T()‘£‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ô^¬14Ž¡’óáðÉkill-whole-line‘T()‘ˆW‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘º¬13Ž¡’óáðÉkill-word‘T(M-d)‘t‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥Ë¬14ޤKP’óáðëHLަ’óáðÉlowercase‘‘$‰c4ÕÂŽ‘fæpw[‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘©¬28Ž¡’óáðëHMަ’óáð¬mark-moAÇdi ed-lines‘’m‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Ä'¬5ޤ ’óáðÉmenu-complete‘T()‘%}‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘W8¬15Ž¡’óáðmeta- ag‘«‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Qe¬5ŽŸKP’óáðëHNަ’óáðÉnext-history‘T(C-n)‘ˆW‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘º¬11Ž¡’óáðÉnon-incremental-forward-search-history‘T(M-n)Ž¡’zè‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘J»¬12ŽŽŽŽŸŒ‹0ÓñŸò‘GÝ48’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGÉnon-incremental-reverse-search-history‘T(M-p)ޤ ‘$ª?‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘J»¬12Ž¡‘GÉnumeric‘O‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘: ! ¬28ޤÃÌ‘GëHOŽ©‘G¬output-meta‘Ýä‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ž¬6Ž¡‘GëHPަ‘GÉpossible-completions‘T(M-?)!÷‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘S²¬15ޤ ‘GÉprefix-meta‘T(ESC)‘Öê‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥¬16Ž¡‘GÉprevious-history‘T(C-p)‘\C‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘þ¬11ޤÃÌ‘GëHQަ‘GÉquoted-insert–T(C-q,“C-v)‘‘>‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Âù¬13Ž¡‘GëHRަ‘GÉre-read-init-file–T(C-x“C-r)‘¥…‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘×@¬15ޤ ‘GÉreadline‘¹¼‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ëw¬19Ž¡‘GÉredraw-current-line‘T()‘\C‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘þ¬11Ž¡‘GÉreverse-search-history‘T(C-r)‘“ ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ÄĬ12Ž¡‘GÉrevert-line‘T(M-r)‘Öê‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥¬16Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæadd‘‘$‰c4ÕÂŽ“defun‘Ò ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Û¬23Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæadd‘‘$‰c4ÕÂŽ“undo‘ ³‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Rn¬26Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæattempted‘‘$‰c4ÕÂŽ“completion‘‘$‰c4ÕÂŽ“function‘†‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ 7í¬32Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæbasic‘‘$‰c4ÕÂŽ“quote‘‘$‰c4ÕÂŽ“characters‘%‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘A‚¬33Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæbasic‘‘$‰c4ÕÂŽ“word‘‘$‰c4ÕÂŽ“break‘‘$‰c4ÕÂŽ“characters‘SÌ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘p3¬33Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæbegin‘‘$‰c4ÕÂŽ“undo‘‘$‰c4ÕÂŽ“group‘c«‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘•f¬26Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæbind‘‘$‰c4ÕÂŽ“key‘ ³‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Rn¬24Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæbind‘‘$‰c4ÕÂŽ“key‘‘$‰c4ÕÂŽ“in‘‘$‰c4ÕÂŽ“mapM^‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¬24Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæbinding‘‘$‰c4ÕÂŽ“keymap‘ð[‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ ¬22Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcallback‘‘$‰c4ÕÂŽ“handler‘‘$‰c4ÕÂŽ“install‘ýK‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘/¬28Ž¡‘GÉrl_callback_handler_remove‘^‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ɬ29Ž¡‘GÉrl_callback_read_char‘ص‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ ! p¬29Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæchar‘‘$‰c4ÕÂŽ“is‘‘$‰c4ÕÂŽ“quoted‘‘$‰c4ÕÂŽ“p‘—­‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘´¬33Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæclear‘‘$‰c4ÕÂŽ“message‘¦ ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘×Ǭ27Ž¡‘GÉrl‘‘$‰c4ÕÂŽ‘fæcompletew[‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘©¬31Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcomplete‘‘$‰c4ÕÂŽ“internalkÀ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘{¬31Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcompleter‘‘$‰c4ÕÂŽ“quote‘‘$‰c4ÕÂŽ“characters‘ù‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘n¬33Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcompleter‘‘$‰c4ÕÂŽ“word‘‘$‰c4ÕÂŽ“break‘‘$‰c4ÕÂŽ“characters‘€‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘5ç¬33Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcompletion‘‘$‰c4ÕÂŽ“append‘‘$‰c4ÕÂŽ“character‘ªt‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ÆÛ¬34Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcompletion‘‘$‰c4ÕÂŽ“entry‘‘$‰c4ÕÂŽ“function‘ ï‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ )V¬31,‘T32Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcompletion‘‘$‰c4ÕÂŽ“query‘‘$‰c4ÕÂŽ“items‘%‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘A‚¬33Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcopy‘‘$‰c4ÕÂŽ“keymap4ú‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘fµ¬23Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcopy‘‘$‰c4ÕÂŽ“text‘Ò ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Û¬27Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fædelete‘‘$‰c4ÕÂŽ“text4ú‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘fµ¬27Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fædirectory‘‘$‰c4ÕÂŽ“completion‘‘$‰c4ÕÂŽ“hook‘Gš‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘d¬34Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fædiscard‘‘$‰c4ÕÂŽ“keymap‘Wy‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘‰4¬23Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fædo‘‘$‰c4ÕÂŽ“undo‘oF‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¡¬26Ž¡‘GÉrl‘‘$‰c4ÕÂŽ‘fædone‘‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ãù¬24Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ‘fægetc‘±§‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ãb¬27Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fægetc‘‘$‰c4ÕÂŽ“function‘0¶‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘M¬22Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæignore‘‘$‰c4ÕÂŽ“completion‘‘$‰c4ÕÂŽ“duplicates‘[á‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘xH¬34Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæignore‘‘$‰c4ÕÂŽ“some‘‘$‰c4ÕÂŽ“completions‘‘$‰c4ÕÂŽ“function‘Ù%‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘õŒ¬34Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæinhibit‘‘$‰c4ÕÂŽ“completion‘¶‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Òv¬34Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ‘fæinitialize‘èm‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ (¬28Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæinsert‘‘$‰c4ÕÂŽ“completions-‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Nè¬31Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæinsert‘‘$‰c4ÕÂŽ“text4ú‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘fµ¬27Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ‘fæinstream‘=‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘,¤¬22Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæinvoking‘‘$‰c4ÕÂŽ“keyseqs‘ºS‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ì¬25Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæinvoking‘‘$‰c4ÕÂŽ“keyseqs‘‘$‰c4ÕÂŽ“in‘‘$‰c4ÕÂŽ“map‘õ6‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ &ñ¬25Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fækill‘‘$‰c4ÕÂŽ“text‘Ò ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Û¬27Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fælibrary‘‘$‰c4ÕÂŽ“version‘¡È‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¾/¬22Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæline‘‘$‰c4ÕÂŽ“buffer‘ÍÜ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘êC¬21Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fælist‘‘$‰c4ÕÂŽ“funmap‘‘$‰c4ÕÂŽ“names‘‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘FÓ¬25Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæmake‘‘$‰c4ÕÂŽ“bare‘‘$‰c4ÕÂŽ“keymap‘c«‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘•f¬23Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæmake‘‘$‰c4ÕÂŽ“keymap4ú‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘fµ¬23Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ‘fæmark‘Ý,›9and‘8©ž™š¸hŽ‘#uŸù@‰ffÐlŸÀ­T‘ÿJªABŽŽ‘#uŸÙš‰ffÐlŽ‘qSž™š¸iŽŽ‘"BÞÝall–8©stand“for“themselv²!es“when“seen“in“this“text,˜or“in“an“init“ le“(seeަ‘GSection–¦f1.3“[Readline“Init“File],“page“3).ŽŸ6‘GëH1.2‘™Readline‘f@InŒÌteractionŽŽ¤ãð‘!GÝOften–kduring“an“in•²!teractiv“e–ksession“yš²!ou“t˜ypMÞe“in“a“long“line“of“text,‘&jonly“to“notice“that“theަ‘G rst–ãÒwš²!ord“on“the“line“is“misspMÞelled.‘–"The“Readline“library“giv˜es“y˜ou“a“set“of“commands“forަ‘Gmanipulating–“¡the“text“as“yš²!ou“t˜ypMÞe“it“in,‘—ballo˜wing“y˜ou“to“just“ x“y˜our“t˜ypMÞo,‘—band“not“forcingަ‘Gyš²!ou–`ùto“ret˜ypMÞe“the“ma‘›»jorit˜y“of“the“line.‘ƹUsing“these“editing“commands,‘nÛy˜ou“mo˜v˜e“the“cursorަ‘Gto–the“place“that“needs“correction,‘;Zand“delete“or“insert“the“text“of“the“corrections.‘CZThen,ަ‘Gwhen–¼yš²!ou“are“satis ed“with“the“line,‘Â+y˜ou“simply“press“ž™š¸hŽ‘§iŸù@‰ff%(¬ŸÀ­RETURNŽŽ‘§iŸÙš‰ff%(¬Ž‘+M‡ž™š¸iŽŽ‘.æiÝ.‘ ƒY‘ÿeou“do“not“ha˜v˜e“to“bMÞe“atަ‘Gthe–óIend“of“the“line“to“press“ž™š¸hŽ‘ÞŸù@‰ff%(¬ŸÀ­RETURNŽŽ‘ÞŸÙš‰ff%(¬Ž‘+„3ž™š¸iŽŽ‘/Ý;‘ºthe“en²!tire“line“is“accepted“regardless“of“the“loMÞcationަ‘Gof–¦fthe“cursor“within“the“line.ŽŸ6‘GóQÂÖN  #× cmbx12ëQ1.2.1‘d(Readline–íMBare“Essen–átialsŽŽ¡‘!GÝIn–Äiorder“to“enš²!ter“c˜haracters“in˜to“the“line,‘ñ›simply“t˜ypMÞe“them.‘’‰The“t˜ypMÞed“c˜haracter“appMÞearsަ‘Gwhere–æNthe“cursor“wš²!as,‘öHand“then“the“cursor“mo˜v˜es“one“space“to“the“righ˜t.‘–If“y˜ou“mist˜ypMÞe“aަ‘Gc•²!haracter,›¦fy“ou˜can˜use˜y“our˜erase˜c“haracter˜to˜bac“k˜up˜and˜delete˜the˜mist“ypMÞed˜c“haracter.ޤãð‘!GSometimes–s9yš²!ou“ma˜y“miss“t˜yping“a“c˜haracter“that“y˜ou“w˜an˜ted“to“t˜ypMÞe,‘¦mand“not“noticeަ‘Gyš²!our–e¿error“un˜til“y˜ou“ha˜v˜e“t˜ypMÞed“sev˜eral“other“c˜haracters.‘ÈPIn“that“case,‘r­y˜ou“can“t˜ypMÞe“ž™š¸hŽ‘P‹Ÿù@‰ff ±ÔŸÀ­C-bŽŽ‘P‹ŸÙš‰ff ±ÔŽ‘Ñž™š¸iŽŽ‘~rÝtoަ‘Gmo•²!v“e–Ô9the“cursor“to“the“left,‘ß®and“then“correct“yš²!our“mistak˜e.‘gVAfterw˜ards,‘ß®y˜ou“can“mo˜v˜e“theަ‘Gcursor–¦fto“the“righ²!t“with“ž™š¸hŽ‘‘2Ÿù@‰ff ‘ÒŸÀ­C-fŽŽ‘‘2ŸÙš‰ff ‘ÒŽ‘ vž™š¸iŽŽ‘9XÝ.Ž¡‘!GWhen–é"yš²!ou“add“text“in“the“middle“of“a“line,‘ùÑy˜ou“will“notice“that“c˜haracters“to“the“righ˜tަ‘Gof–q”the“cursor“are“`pushed“o•²!v“er'–q”to“makš²!e“roMÞom“for“the“text“that“y˜ou“ha˜v˜e“inserted.‘ÌBLik˜ewise,ަ‘Gwhen–‚ùyš²!ou“delete“text“bMÞehind“the“cursor,‘ºc˜haracters“to“the“righ˜t“of“the“cursor“are“`pulledަ‘Gbacš²!k'–ÑÇto“ ll“in“the“blank“space“created“b˜y“the“remo˜v‘ÿdDal“of“the“text.‘`A‘Ѽlist“of“the“basic“bareަ‘Gessenš²!tials–¦ffor“editing“the“text“of“an“input“line“follo˜ws.ŽŸ”­‘Gž™š¸hŽ‘üŸù@‰ff ±ÔŸÀ­C-bŽŽ‘üŸÙš‰ff ±ÔŽ‘"+Yž™š¸iŽŽŽŽ‘Kâ:ÝMo•²!v“e›¦fbac“k˜one˜c“haracter.ŽŽŸŒ‹\Ÿò‘GÝ2’>‚ ! GNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGž™š¸hŽ‘üŸù@‰ff ‘ÒŸÀ­C-fŽŽ‘üŸÙš‰ff ‘ÒŽ‘ Wž™š¸iŽŽŽŽ‘Kâ:ÝMo•²!v“e›¦fforw“ard˜one˜c“haracter.ޤz‘Gž™š¸hŽ‘üŸù@‰ff“úŸÀ­DELŽŽ‘üŸÙš‰ff“úŽ‘& ž™š¸iŽŽŽŽ‘Kâ:ÝDelete–¦fthe“c²!haracter“to“the“left“of“the“cursor.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff ±ÔŸÀ­C-dŽŽ‘üŸÙš‰ff ±ÔŽ‘"+Yž™š¸iŽŽŽŽ‘Kâ:ÝDelete–¦fthe“c²!haracter“underneath“the“cursor.Ž¡‘GPrin•²!ting‘¦fc“haractersŽŽ© 33‘Kâ:Insert–¦fthe“cš²!haracter“in˜to“the“line“at“the“cursor.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff JŸÀ­C-‘‚މX.ŒÐŽŽŽ‘üŸÙš‰ff JŽ‘ Ïž™š¸iŽŽŽŽ‘Kâ:ÝUndo–jthe“last“editing“command.‘÷éY‘ÿeou“can“undo“all“the“w•²!a“y›jbac“k˜to˜an˜empt“yަ‘Kâ:line.ŽŸêL‘GëQ1.2.2‘d(Readline›íMMo•–áv“emen“t˜CommandsŽŽŸÖ¢‘!GÝThe›Ú abMÞo•²!v“e˜table˜describ•MÞes˜the˜most˜basic˜p“ossible˜k•²!eystrok“es˜that˜y“ou˜need˜in˜order˜toަ‘Gdo–bÍediting“of“the“input“line.‘ÇUF‘ÿeor“yš²!our“con˜v˜enience,‘pRman˜y“other“commands“ha˜v˜e“bMÞeen“addedަ‘Gin–Þaddition“to“ž™š¸hŽ‘ªŸù@‰ff ±ÔŸÀ­C-bŽŽ‘ªŸÙš‰ff ±ÔŽ‘1𞙚¸iŽŽ‘ÊÒÝ,‘4`ž™š¸hŽ‘,Ÿù@‰ff ‘ÒŸÀ­C-fŽŽ‘,ŸÙš‰ff ‘ÒŽ‘.pž™š¸iŽŽ‘ÇRÝ,‘4`ž™š¸hŽ‘,Ÿù@‰ff ±ÔŸÀ­C-dŽŽ‘,ŸÙš‰ff ±ÔŽ‘Nrž™š¸iŽŽ‘çTÝ,‘4`and“ž™š¸hŽ‘ªŸù@‰ff“úŸÀ­DELŽŽ‘ªŸÙš‰ff“úŽ‘ž™š¸iŽŽ‘¬øÝ.‘®[Here“are“some“commands“for“mo²!ving“more“rapidlyަ‘GabMÞout–¦fthe“line.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff 8ðŸÀ­C-aŽŽ‘üŸÙš‰ff 8ðŽ‘!²už™š¸iŽŽŽŽ‘Kâ:ÝMo•²!v“e–¦fto“the“start“of“the“line.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff À ŸÀ­C-eŽŽ‘üŸÙš‰ff À Ž‘!9‘ž™š¸iŽŽŽŽ‘Kâ:ÝMo•²!v“e–¦fto“the“end“of“the“line.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff 6ΟÀ­M-fŽŽ‘üŸÙš‰ff 6ÎŽ‘!°Sž™š¸iŽŽŽŽ‘Kâ:ÝMo•²!v“e›¦fforw“ard˜a˜w“ord,˜where˜a˜w“ord˜is˜compMÞosed˜of˜letters˜and˜digits.Ž¡‘Gž™š¸hŽ‘üŸù@‰ffVПÀ­M-bŽŽ‘üŸÙš‰ffVÐŽ‘#ÐUž™š¸iŽŽŽŽ‘Kâ:ÝMo•²!v“e›¦fbac“kw“ard˜a˜w“ord.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff U`ŸÀ­C-lŽŽ‘üŸÙš‰ff U`Ž‘Îåž™š¸iŽŽŽŽ‘Kâ:ÝClear–¦fthe“screen,“reprinš²!ting“the“curren˜t“line“at“the“top.Ž¡‘!GNotice–Íahoš²!w“ž™š¸hŽ‘¸-Ÿù@‰ff ‘ÒŸÀ­C-fŽŽ‘¸-ŸÙš‰ff ‘ÒŽ‘Çqž™š¸iŽŽ‘-´Ýmo˜v˜es“forw˜ard“a“c˜haracter,‘øÉwhile“ž™š¸hŽ‘¸-Ÿù@‰ff 6ΟÀ­M-fŽŽ‘¸-ŸÙš‰ff 6ÎŽ‘lmž™š¸iŽŽ‘Ò°Ýmo˜v˜es“forw˜ard“a“w˜ord.‘•†It“is“a“loMÞoseަ‘Gcon•²!v“en“tion–—†that“conš²!trol“k˜eystrok˜es“opMÞerate“on“c˜haracters“while“meta“k˜eystrok˜es“opMÞerate“onަ‘Gw²!ords.ŽŸêL‘GëQ1.2.3‘d(Readline–íMKilling“CommandsŽŽŸÖ¢‘!GáKilling‘lÝtext–{émeans“to“delete“the“text“from“the“line,‘±Jbut“to“sa•²!v“e–{éit“a•²!w“a“y–{éfor“later“use,ަ‘Gusually–fµbš²!y“áy˜anking‘VÍÝ(re-inserting)“it“bac˜k“in˜to“the“line.‘ÉIf“the“description“for“a“commandަ‘Gsaš²!ys–ñ¡that“it“`kills'“text,‘pthen“y˜ou“can“bMÞe“sure“that“y˜ou“can“get“the“text“bac˜k“in“a“di eren˜tަ‘G(or–¦fthe“same)“place“later.ޤÖ¢‘!GWhen–Ê›yš²!ou“use“a“kill“command,‘ö‘the“text“is“sa˜v˜ed“in“a“ákill-ringÝ.‘”šAn˜y“n˜um˜bMÞer“of“consecutiv˜eަ‘Gkills›¸$sa•²!v“e˜all˜of˜the˜killed˜text˜together,‘¼“so˜that˜when˜y“ou˜y“ank˜it˜bac“k,‘¼“y“ou˜get˜it˜all.‘Theަ‘Gkill–âèring“is“not“line“spMÞeci c;‘(the“text“that“yš²!ou“killed“on“a“previously“t˜ypMÞed“line“is“a˜v‘ÿdDailableަ‘Gto–¦fbMÞe“y•²!ank“ed›¦fbac“k˜later,˜when˜y“ou˜are˜t“yping˜another˜line.Ž¡‘!GHere–¦fis“the“list“of“commands“for“killing“text.ޤz‘Gž™š¸hŽ‘üŸù@‰ff ubŸÀ­C-kŽŽ‘üŸÙš‰ff ubŽ‘!îçž™š¸iŽŽŽŽ‘Kâ:ÝKill–¦fthe“text“from“the“curren²!t“cursor“pMÞosition“to“the“end“of“the“line.Ž¡‘Gž™š¸hŽ‘üŸù@‰ffVПÀ­M-dŽŽ‘üŸÙš‰ffVÐŽ‘#ÐUž™š¸iŽŽŽŽ‘Kâ:ÝKill–]from“the“cursor“to“the“end“of“the“currenš²!t“w˜ord,‘kÆor“if“bMÞet˜w˜een“w˜ords,‘kÆto“theަ‘Kâ:end–¦fof“the“next“w²!ord.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff1âŸÀ­M-DELŽŽ‘üŸÙš‰ff1⎑0«gž™š¸iŽŽŽŽ‘Kâ:ÝKill–€¡from“the“cursor“the“start“of“the“previous“wš²!ord,‘ˆ/or“if“bMÞet˜w˜een“w˜ords,‘ˆ/to“theަ‘Kâ:start–¦fof“the“previous“w²!ord.Ž¡‘Gž™š¸hŽ‘üŸù@‰ff€ŸÀ­C-wŽŽ‘üŸÙš‰ff€Ž‘#–ž™š¸iŽŽŽŽ‘Kâ:ÝKill–Ð’from“the“cursor“to“the“previous“whitespace.‘\aThis“is“di eren²!t“than“ž™š¸hŽ‘»^Ÿù@‰ff1âŸÀ­M-DELŽŽ‘»^ŸÙš‰ff1⎑"j²ž™š¸iŽŽŽ¦‘Kâ:ÝbšMÞecause–¦fthe“w²!ord“b˜oundaries“di er.ŽŽŸŒ‹¦Ÿò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’MH3ŽŽŽ ƒ3Ú ý¨ðБ!GHere–ýáis“hoš²!w“to“áy˜ank‘§åÝthe“text“bac˜k“in˜to“the“line.‘äNY‘ÿeanking“means“to“cop˜y“the“most-ޤ 33‘Grecen²!tly-killed–¦ftext“from“the“kill“bu er.ŽŸNR‘Gž™š¸hŽ‘üŸù@‰ff ubŸÀ­C-yŽŽ‘üŸÙš‰ff ubŽ‘!îçž™š¸iŽŽŽŽ‘Kâ:ÝY‘ÿeank–¦fthe“most“recenš²!tly“killed“text“bac˜k“in˜to“the“bu er“at“the“cursor.ŽŸEG‘Gž™š¸hŽ‘üŸù@‰ff^ŸÀ­M-yŽŽ‘üŸÙš‰ff^Ž‘#“ãž™š¸iŽŽŽŽ‘Kâ:ÝRotate–'!the“kill-ring,‘GPand“y²!ank“the“new“top.‘`Y‘ÿeou“can“only“do“this“if“the“priorŽ¡‘Kâ:command–¦fis“ž™š¸hŽ‘‘2Ÿù@‰ff ubŸÀ­C-yŽŽ‘‘2ŸÙš‰ff ubŽ‘„ž™š¸iŽŽ‘ÃNÝor“ž™š¸hŽ‘‘2Ÿù@‰ff^ŸÀ­M-yŽŽ‘‘2ŸÙš‰ff^Ž‘)ž™š¸iŽŽ‘ÁäÝ.Ž©$)‘GëQ1.2.4‘d(Readline‘íMArgumen–átsŽŽŸEH‘!GÝY‘ÿeou–‚Ücan“pass“nš²!umeric“argumen˜ts“to“Readline“commands.‘ÒSometimes“the“argumen˜t“actsŽ¡‘Gas–ÞDa“repMÞeat“counš²!t,‘,;other“times“it“is“the“ásign“Ýof“the“argumen˜t“that“is“signi can˜t.‘…wIf“y˜ouŽ¡‘Gpass–a“negativš²!e“argumen˜t“to“a“command“whic˜h“normally“acts“in“a“forw˜ard“direction,‘ìthatŽ¡‘Gcommand–=Üwill“act“in“a“bac•²!kw“ard–=Üdirection.‘¤?F‘ÿeor“example,‘c¹to“kill“text“bac²!k“to“the“start“ofŽ¡‘Gthe–¦fline,“yš²!ou“migh˜t“t˜ypMÞe“`ÞM--“C-kÝ'.ŽŸEH‘!GThe–bOgeneral“w•²!a“y–bOto“pass“nš²!umeric“argumen˜ts“to“a“command“is“to“t˜ypšMÞe“meta“digits“b˜eforeŽ¡‘Gthe–Ü_command.‘ÈIf“the“ rst“`digit'“tš²!ypMÞed“is“a“min˜us“sign“(ž™š¸hŽ‘êÌŸù@‰ffÕXŸÀ­-ŽŽ‘êÌŸÙš‰ffÕXŽ‘=–ž™š¸iŽŽ‘ÖxÝ),‘éÝthen“the“sign“of“the“argumen˜tŽ¡‘Gwill–dˆbMÞe“negativš²!e.‘ÇèOnce“y˜ou“ha˜v˜e“t˜ypMÞed“one“meta“digit“to“get“the“argumen˜t“started,‘q´y˜ou“canŽ¡‘Gt²!ypMÞe–±the“remainder“of“the“digits,›¶and“then“the“command.‘i½F‘ÿeor“example,˜to“giv²!e“the“ž™š¸hŽ‘j}Ÿù@‰ff ±ÔŸÀ­C-dŽŽ‘j}ŸÙš‰ff ±ÔŽ‘™Ãž™š¸iŽŽŽ¡‘GÝcommand–¦fan“argumenš²!t“of“10,“y˜ou“could“t˜ypMÞe“`ÞM-1“0“C-dÝ'.ަ‘GëQ1.2.5‘d(Searc–áhing–íMfor“Commands“in“the“HistoryŽŽŸEH‘!GÝReadline–àTproš²!vides“commands“for“searc˜hing“through“the“command“history“for“lines“con-Ž¡‘Gtaining–¦fa“spMÞeci ed“string.‘ÝÝThere“are“t•²!w“o›¦fsearc“h˜moMÞdes:‘ÝÝáincremen“tal‘¸Ýand˜ánon-incremen“talÝ.Ž©EH‘!GIncremen•²!tal›¸searc“hes˜b•MÞegin˜b“efore˜the˜user˜has˜ nished˜t•²!yping˜the˜searc“h˜string.‘­£As˜eac“hŽ¡‘Gcš²!haracter–@|of“the“searc˜h“string“is“t˜ypMÞed,‘gReadline“displa˜ys“the“next“en˜try“from“the“historyŽ¡‘Gmatcš²!hing–Ýkthe“string“t˜ypMÞed“so“far.‘‚ìAn“incremen˜tal“searc˜h“requires“only“as“man˜y“c˜haractersŽ¡‘Gas–needed“to“ nd“the“desired“history“enš²!try‘ÿe.‘ò-The“c˜haracters“presen˜t“in“the“v‘ÿdDalue“of“theŽ¡‘Gáisearcš²!h-terminators‘Ž3Ýv‘ÿdDariable–±are“used“to“terminate“an“incremen˜tal“searc˜h.‘:½If“that“v‘ÿdDariableŽ¡‘Ghas–ɬ“bMÞeen“assigned“a“v‘ÿdDalue,‘ÑÖthe“ž™š¸hŽ‘³òŸù@‰ff¤TŸÀ­ESCŽŽ‘³òŸÙš‰ff¤TޑՏž™š¸iŽŽ‘7ÀÝand“ž™š¸hŽ‘³òŸù@‰ff VŸÀ­C-JŽŽ‘³òŸÙš‰ff VŽ‘‡|ž™š¸iŽŽ‘é„Ýcš²!haracters“will“terminate“an“incremen˜talŽ¡‘Gsearcš²!h.‘¶ž™š¸hŽ‘¡KŸù@‰ff 8ðŸÀ­C-gŽŽ‘¡KŸÙš‰ff 8ðŽ‘W­ž™š¸iŽŽ‘ ÚÝwill–0KabMÞort“an“incremen˜tal“searc˜h“and“restore“the“original“line.‘¶When“the“searc˜hŽ¡‘Gis–÷”terminated,‘ ßthe“history“enš²!try“con˜taining“the“searc˜h“string“bMÞecomes“the“curren˜t“line.‘ÑfT‘ÿeoŽ¡‘G nd–5other“matcš²!hing“en˜tries“in“the“history“list,‘X¿t˜ypMÞe“ž™š¸hŽ‘àŸù@‰ff S?ŸÀ­C-sŽŽ‘àŸÙš‰ff S?Ž‘𑞙š¸iŽŽ‘¾‡Ýor“ž™š¸hŽ‘àŸù@‰ff HïŸÀ­C-rŽŽ‘àŸÙš‰ff HæAž™š¸iŽŽ‘´7Ýas“appropriate.‘‰æThis“willŽ¡‘Gsearc•²!h›”qbac“kw“ard˜or˜forw“ard˜in˜the˜history˜for˜the˜next˜en“try˜matc“hing˜the˜searc“h˜stringŽ¡‘Gtš²!ypMÞed–ˆ5so“far.‘ƒIAn˜y“other“k˜ey“sequence“bMÞound“to“a“Readline“command“will“terminate“theŽ¡‘Gsearcš²!h–ë5and“execute“that“command.‘¬KF‘ÿeor“instance,‘‚ ! GNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGof–½Tthis“ le“is“takš²!en“from“the“v‘ÿdDalue“of“the“en˜vironmen˜t“v›ÿdDariable“ÞINPUTRCÝ.‘"¦If“that“v˜ariable“isޤ 33‘Gunset,–¦fthe“default“is“`Þ~/.inputrcÝ'.Ž©@´‘!GWhen–Ž\a“program“whic²!h“uses“the“Readline“library“starts“up,›“*the“init“ le“is“read,˜and“theŽ¡‘Gk²!ey–¦fbindings“are“set.ަ‘!GIn–8âaddition,›NÉthe“ÞC-x‘¦fC-r“Ýcommand“re-reads“this“init“ le,˜thš²!us“incorpMÞorating“an˜y“c˜hangesŽ¡‘Gthat–¦fyš²!ou“migh˜t“ha˜v˜e“made“to“it.ŽŸ‘GëQ1.3.1‘d(Readline–íMInit“File“Syn–átaxŽŽŸ@´‘!GÝThere– are“only“a“few“basic“constructs“allo•²!w“ed– in“the“Readline“init“ le.‘ RBlank“lines“areŽ¡‘Gignored.›­zLines–ëšbMÞeginning“with“a“`Þ#Ý'“are“commen²!ts.˜Lines“bMÞeginning“with“a“`Þ$Ý'“indicateŽ¡‘Gconditional–R¡constructs“(see“Section“1.3.2“[Conditional“Init“Constructs],‘cbpage“8).‘ÁñOther“linesŽ¡‘Gdenote–¦fv‘ÿdDariable“settings“and“k²!ey“bindings.ŽŸÇu‘GV‘ÿeariable‘¦fSettingsŽ¡‘Kâ:Y‘ÿeou–Ú½can“mošMÞdify“the“run-time“b˜ehaš²!vior“of“Readline“b˜y“altering“the“v‘ÿdDalues“ofŽ¡‘Kâ:v‘ÿdDariables–âÞin“Readline“using“the“Þset“Ýcommand“within“the“init“ le.‘œ°Here“is“ho²!w“toŽ¡‘Kâ:cš²!hange–rLfrom“the“default“Emacs-lik˜e“k˜ey“binding“to“use“Þvi“Ýline“editing“commands:ŽŸÁ‘hÊÞset–¿ªediting-mode“viŽŸ¹ô‘Kâ:ÝA–¦fgreat“deal“of“run-time“bMÞehaš²!vior“is“c˜hangeable“with“the“follo˜wing“v‘ÿdDariables.Ž©@µ‘Kâ:Þbell-styleŽ¡’…³-ÝConš²!trols–Fwhat“happMÞens“when“Readline“w˜an˜ts“to“ring“the“termi-Ž¡’…³-nal–xzbšMÞell.‘TIf“set“to“`ÞnoneÝ',‘¬þReadline“nev²!er“rings“the“b˜ell.‘TIf“set“toŽ¡’…³-`ÞvisibleÝ',‘ ! dReadline–öeuses“a“visible“bMÞell“if“one“is“a²!v‘ÿdDailable.‘ÍÙIf“set“toŽ¡’…³-`ÞaudibleÝ'–Ù(the“default),‘¶6Readline“attempts“to“ring“the“terminal'sŽ¡’…³-bMÞell.ަ‘Kâ:Þcomment-beginŽ¡’…³-ÝThe–‚÷string“to“insert“at“the“bMÞeginning“of“the“line“when“the“Þinsert-Ž¡’…³-comment–¦fÝcommand“is“executed.‘ÝÝThe“default“v‘ÿdDalue“is“Þ"#"Ý.ަ‘Kâ:Þcompletion-ignore-caseŽ¡’…³-ÝIf–IÓset“to“`ÞonÝ',‘\WReadline“pMÞerforms“ lename“matc²!hing“and“completionŽ¡’…³-in–¦fa“case-insensitiv²!e“fashion.‘ÝÝThe“default“v‘ÿdDalue“is“`ÞoffÝ'.ަ‘Kâ:Þcompletion-query-itemsŽ¡’…³-ÝThe›%Ðn•²!um“b•MÞer˜of˜p“ossible˜completions˜that˜determines˜when˜the˜userŽ¡’…³-is–çaskš²!ed“whether“he“w˜an˜ts“to“see“the“list“of“pMÞossibilities.‘ `If“theŽ¡’…³-n•²!um“bšMÞer–9of“p˜ossible“completions“is“greater“than“this“v‘ÿdDalue,‘NãReadlineŽ¡’…³-will–.ƒask“the“user“whether“or“not“he“wishes“to“view“them;‘Vzotherwise,Ž¡’…³-they–¦fare“simply“listed.‘ÝÝThe“default“limit“is“Þ100Ý.ަ‘Kâ:Þconvert-metaŽ¡’…³-ÝIf–¦set“to“`ÞonÝ',‘ÙÅReadline“will“con•²!v“ert›¦c“haracters˜with˜the˜eigh“th˜bit˜setŽ¡’…³-to–IIf“this“v‘ÿdDariable“hasŽ¡’…³-not–2ObMÞeen“givš²!en“a“v‘ÿdDalue,‘I‡the“c˜haracters“ž™š¸hŽ‘Ÿù@‰ff¤TŸÀ­ESCŽŽ‘ŸÙš‰ff¤TŽ‘>áž™š¸iŽŽ‘ ! Ýand“ž™š¸hŽ‘Ÿù@‰ff VŸÀ­C-JŽŽ‘ŸÙš‰ff VŽ‘𥞙š¸iŽŽ‘»ÖÝwill“terminateŽ¡’…³-an–¦fincremenš²!tal“searc˜h.ަ‘Kâ:ÞkeymapŽŽ’‰ïéÝSets–<¼Readline's“idea“of“the“currenš²!t“k˜eymap“for“k˜ey“binding“com-Ž¡’…³-mands.‘ ä™Acceptable–SOÞkeymap“Ýnames“are“ÞemacsÝ,‘¾‰Þemacs-standardÝ,Ž¡’…³-Þemacs-metaÝ,– ‡Þemacs-ctlxÝ,“ÞviÝ,“Þvi-commandÝ,“and–Þvi-insertÝ.‘ùÞvi“ÝisŽ¡’…³-equiv›ÿdDalen²!t–>to“Þvi-commandÝ;‘BLÞemacs“Ýis“equiv˜alen²!t“to“Þemacs-standardÝ.Ž¡’…³-The–¢rdefault“v›ÿdDalue“is“ÞemacsÝ.‘‡7The“v˜alue“of“the“Þediting-mode“Ýv˜ariableŽ¡’…³-also–¦fa ects“the“default“k²!eymap.ަ‘Kâ:Þmark-directoriesŽ¡’…³-ÝIf––¿set“to“`ÞonÝ',‘ÒÕcompleted“directory“names“ha•²!v“e––¿a“slash“appMÞended.Ž¡’…³-The–¦fdefault“is“`ÞonÝ'.ŽŽŸŒ‹KÁŸò‘GÝ6’>‚ ! GNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБKâ:Þmark-modified-linesޤ 33’…³-ÝThis–N”v‘ÿdDariable,›xŸwhen“set“to“`ÞonÝ',˜causes“Readline“to“displa²!y“an“as-Ž¡’…³-terisk– š(`Þ*Ý')“at“the“start“of“history“lines“whicš²!h“ha˜v˜e“bšMÞeen“mo˜di ed.Ž¡’…³-This–¦fv‘ÿdDariable“is“`ÞoffÝ'“b²!y“default.Ž©³{‘Kâ:Þoutput-metaŽ¡’…³-ÝIf–Aset“to“`ÞonÝ',‘gªReadline“will“displaš²!y“c˜haracters“with“the“eigh˜th“bitŽ¡’…³-set–`!directly“rather“than“as“a“meta-pre xed“escapMÞe“sequence.‘ TheŽ¡’…³-default–¦fis“`ÞoffÝ'.ަ‘Kâ:Þprint-completions-horizontallyŽ¡’…³-ÝIf–àset“to“`ÞonÝ',‘»Readline“will“displaš²!y“completions“with“matc˜hes“sortedŽ¡’…³-horizonš²!tally–8Ôin“alphabMÞetical“order,‘orather“than“do˜wn“the“screen.Ž¡’…³-The–¦fdefault“is“`ÞoffÝ'.ަ‘Kâ:Þshow-all-if-ambiguousŽ¡’…³-ÝThis–™]alters“the“default“bMÞeha²!vior“of“the“completion“functions.‘Ù…If“setŽ¡’…³-to–L`ÞonÝ',‘^.wš²!ords“whic˜h“ha˜v˜e“more“than“one“pMÞossible“completion“causeŽ¡’…³-the–­matc²!hes“to“bšMÞe“listed“immediately“instead“of“ringing“the“b˜ell.Ž¡’…³-The–¦fdefault“v‘ÿdDalue“is“`ÞoffÝ'.ަ‘Kâ:Þvisible-statsŽ¡’…³-ÝIf–Ôvset“to“`ÞonÝ',‘ßúa“cš²!haracter“denoting“a“ le's“t˜ypšMÞe“is“app˜ended“to“theŽ¡’…³- lename–¦fwhen“listing“pMÞossible“completions.‘ÝÝThe“default“is“`ÞoffÝ'.ަ‘GKey‘¦fBindingsŽ¡‘Kâ:The–Rþsynš²!tax“for“con˜trolling“k˜ey“bindings“in“the“init“ le“is“simple.‘ÂFirst“y˜ou“ha˜v˜eŽ¡‘Kâ:to–knoš²!w“the“name“of“the“command“that“y˜ou“w˜an˜t“to“c˜hange.‘ÁâThe“follo˜wingŽ¡‘Kâ:sections–Oconš²!tain“tables“of“the“command“name,‘yLthe“default“k˜eybinding,‘yLif“an˜y‘ÿe,Ž¡‘Kâ:and–¦fa“short“description“of“what“the“command“doMÞes.ŽŸóW‘Kâ:Once–0¿yš²!ou“kno˜w“the“name“of“the“command,‘STsimply“place“the“name“of“the“k˜eyŽ¡‘Kâ:y²!ou–=nwish“to“bind“the“command“to,›Rla“colon,˜and“then“the“name“of“the“commandŽ¡‘Kâ:on–¥Fa“line“in“the“init“ le.‘Ú~The“name“of“the“kš²!ey“can“bMÞe“expressed“in“di eren˜tŽ¡‘Kâ:w•²!a“ys,–¦fdepMÞending“on“whicš²!h“is“most“comfortable“for“y˜ou.ަ‘Kâ:ák²!eyname‘Ý:‘ÝÝáfunction-name‘CmÝor‘¦fámacroŽŽ¡’…³-kš²!eyname‘jÝis–tcthe“name“of“a“k˜ey“spMÞelled“out“in“English.‘Í1F‘ÿeor“example:ŽŸ@$’¢›‚ÞControl-u:‘¿ªuniversal-argumentޤ €’¢›‚Meta-Rubout:‘¿ªbackward-kill-wordŽ¡’¢›‚Control-o:–¿ª">“output"ŽŸóW’…³-ÝIn–gïthe“abšMÞo•²!v“e–gïexample,‘˜Qž™š¸hŽ‘ƒŸù@‰ff ±ÔŸÀ­C-uŽŽ‘ƒŸÙš‰ff ±ÔŽ‘²cž™š¸iŽŽ‘³4Ýis“b˜ound“to“the“function“Þuniversal-ޤ 33’…³-argumentÝ,‘ðGand‘®Mž™š¸hŽ‘™Ÿù@‰ff 8ðŸÀ­C-oŽŽ‘™ŸÙš‰ff 8ðŽ‘O{ž™š¸iŽŽ‘–ªÝis–®MbMÞound“to“run“the“macro“expressed“on“theŽ¡’…³-righš²!t–E§hand“side“(that“is,‘Yto“insert“the“text“`Þ>‘¦foutputÝ'“in˜to“the“line).ަ‘Kâ:Þ"ák²!eyseq@æÞ"Ý:‘ÝÝáfunction-name‘CmÝor‘¦fámacroŽŽ¡’…³-kš²!eyseq‘ú«Ýdi ers–¹Åfrom“ák˜eyname‘VÌÝabMÞo˜v˜e“in“that“strings“denoting“an“en-Ž¡’…³-tire– hk²!ey“sequence“can“bšMÞe“sp˜eci ed,‘%èbš²!y“placing“the“k˜ey“sequence“inŽ¡’…³-double– quotes.‘­ðSome“GNU‘{Emacs“stš²!yle“k˜ey“escapšMÞes“can“b˜e“used,‘3aasŽ¡’…³-in–Ãthe“folloš²!wing“example,‘(Ùbut“the“spMÞecial“c˜haracter“names“are“notŽ¡’…³-recognized.ŽŽŸŒ‹W²Ÿò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’MH7ŽŽŽ ƒ3Ú ý¨ðÐ’¢›‚Þ"\C-u":‘¿ªuniversal-argumentޤ €’¢›‚"\C-x\C-r":‘¿ªre-read-init-fileŽ¡’¢›‚"\e[11~":–¿ª"Function“Key“1"ŽŸüv’…³-ÝIn–gïthe“abšMÞo•²!v“e–gïexample,‘˜Qž™š¸hŽ‘ƒŸù@‰ff ±ÔŸÀ­C-uŽŽ‘ƒŸÙš‰ff ±ÔŽ‘²cž™š¸iŽŽ‘³4Ýis“b˜ound“to“the“function“Þuniversal-ޤ 33’…³-argument–ŠÌÝ(just“as“it“w²!as“in“the“ rst“example),‘Ä`ž™š¸hŽ‘êÌŸù@‰ff ubŸÀ­C-xŽŽ‘êÌŸÙš‰ff ubŽ‘Ý ž™š¸iŽŽ‘èž™šhŽ‘´Ÿù@‰ff HïŸÀ­C-rŽŽ‘´ŸÙš‰ff H%Ξ™š¸iŽŽ‘)f÷Ý'“is“bMÞound“toŽ¡’…³-the–ð!function“Þre-read-init-fileÝ,‘and“`ž™š¸hŽ‘êÌŸù@‰ff¤TŸÀ­ESCŽŽ‘êÌŸÙš‰ff¤TŽ‘ ’ž™š¸iŽŽ‘KÚž™šhŽ‘6¦Ÿù@‰ff\tŸÀ­[ŽŽ‘6¦Ÿ‰ff\tŽ‘Œž™š¸iŽŽ‘&OÔž™šhŽ‘): Ÿù@‰ff@ŸÀ­1ŽŽ‘): ŸÙš‰ff@Ž‘,øž™š¸iŽŽ‘47^ž™šhŽ‘7"*Ÿù@‰ff@ŸÀ­1ŽŽ‘7"*ŸÙš‰ff@Ž‘:ß ž™š¸iŽŽ‘Bèž™šhŽ‘E ´Ÿù@‰ff¿ªŸÀÞ~ŽŽ‘E ´ŸÙš‰ff¿ªŽ‘JFО™š¸iŽŽ‘Mß²Ý'“is“bMÞoundŽ¡’…³-to–¦finsert“the“text“`ÞFunction“Key“1Ý'.ީʑKâ:The–æfolloš²!wing“GNU‘ÃEmacs“st˜yle“escapMÞe“sequences“are“a˜v‘ÿdDailable“when“spMÞecifyingŽ¡‘Kâ:k²!ey‘¦fsequences:ަ‘Kâ:ó9ßê‚ ! GNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGëQ1.3.2‘d(Conditional–íMInit“ConstructsŽŽŸ33‘!GÝReadline–?äimplemenš²!ts“a“facilit˜y“similar“in“spirit“to“the“conditional“compilation“featuresޤ 33‘Gof–$the“C‘#ùpreproMÞcessor“whicš²!h“allo˜ws“k˜ey“bindings“and“v‘ÿdDariable“settings“to“bšMÞe“p˜erformed“asŽ¡‘Gthe–¦fresult“of“tests.‘ÝÝThere“are“four“parser“directiv²!es“used.Ž©33‘GÞ$ifŽŽ‘Kâ:ÝThe–ÃNÞ$if“Ýconstruct“allo²!ws“bindings“to“bšMÞe“made“based“on“the“editing“mo˜de,‘ʈtheŽ¡‘Kâ:terminal–’ŽbMÞeing“used,‘͘or“the“application“using“Readline.‘¢VThe“text“of“the“testŽ¡‘Kâ:extends–¦fto“the“end“of“the“line;“no“c²!haracters“are“required“to“isolate“it.ަ‘Kâ:ÞmodeŽŽ’…³-ÝThe–[Þmode=“Ýform“of“the“Þ$if“Ýdirectiv²!e“is“used“to“test“whether“ReadlineŽ¡’…³-is–‰›in“Þemacs“Ýor“Þvi“ÝmošMÞde.‘ÔDThis“ma²!y“b˜e“used“in“conjunction“with“theŽ¡’…³-`Þset‘¦fkeymapÝ'–N ! command,›_¶for“instance,˜to“set“bindings“in“the“Þemacs-Ž¡’…³-standard–_Ýand“Þemacs-ctlx“Ýk²!eymaps“only“if“Readline“is“starting“outŽ¡’…³-in–¦fÞemacs“ÝmoMÞde.ަ‘Kâ:ÞtermŽŽ’…³-ÝThe–<Þterm=“Ýform“ma²!y“bšMÞe“used“to“include“terminal-sp˜eci c“k²!ey“bind-Ž¡’…³-ings,‘ƒpMÞerhaps–Vîto“bind“the“kš²!ey“sequences“output“b˜y“the“terminal'sŽ¡’…³-function–Þ€kš²!eys.‘›;The“w˜ord“on“the“righ˜t“side“of“the“`Þ=Ý'“is“tested“againstŽ¡’…³-bšMÞoth–šPthe“full“name“of“the“terminal“and“the“p˜ortion“of“the“terminalŽ¡’…³-name–×bMÞefore“the“ rst“`Þ-Ý'.‘ÿ/This“alloš²!ws“Þsun“Ýto“matc˜h“bMÞoth“Þsun“ÝandŽ¡’…³-Þsun-cmdÝ,–¦ffor“instance.ަ‘Kâ:ÞapplicationŽ¡’…³-ÝThe–¢âáapplication“Ýconstruct“is“used“to“include“application-spMÞeci c“set-Ž¡’…³-tings.‘£mEac²!h–÷program“using“the“Readline“library“sets“the“áapplicationŽ¡’…³-nameÝ,‘rand–úpyš²!ou“can“test“for“it.‘ÙúThis“could“bMÞe“used“to“bind“k˜ey“se-Ž¡’…³-quences–Þ^to“functions“useful“for“a“spMÞeci c“program.‘›0F‘ÿeor“instance,‘`theŽ¡’…³-folloš²!wing–\¸command“adds“a“k˜ey“sequence“that“quotes“the“curren˜t“orŽ¡’…³-previous–¦fw²!ord“in“Bash:ŽŸ€’¢›‚Þ$if‘¿ªBashޤ €’¢›‚#–¿ªQuote“the“current“or“previous“wordŽ¡’¢›‚"\C-xq":‘¿ª"\eb\"\ef\""Ž¡’¢›‚$endifަ‘G$endifŽŽ‘Kâ:ÝThis–£™command,›¤(as“seen“in“the“previous“example,˜terminates“an“Þ$if“Ýcommand.ަ‘GÞ$elseŽŽ‘Kâ:ÝCommands–¦fin“this“brancš²!h“of“the“Þ$if“Ýdirectiv˜e“are“executed“if“the“test“fails.ަ‘GÞ$includeŽŽ‘Kâ:ÝThis–R)directivš²!e“tak˜es“a“single“ lename“as“an“argumen˜t“and“reads“commands“andޤ 33‘Kâ:bindings–¦ffrom“that“ le.ŽŸ€‘hÊÞ$include‘¿ª/etc/inputrcŽŸ‘GëQ1.3.3‘d(Sample–íMInit“FileŽŽŸ33‘!GÝHere–´is“an“example“of“an“inputrc“ le.‘øThis“illustrates“kš²!ey“binding,‘·‡v‘ÿdDariable“assignmen˜t,Ž¡‘Gand–¦fconditional“syn²!tax.ŽŽŸŒ‹ oCŸò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’MH9ŽŽŽ ƒ3Ú ýµpБ.ùœÞ#–¿ªThis“file“controls“the“behaviour“of“line“input“editing“forޤ €‘.ùœ#–¿ªprograms“that“use“the“Gnu“Readline“library.‘ TExisting“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:‘ Tbackward-kill-word–¿ªText“after“the“function“name“is“ignoredŸnï„ ަ‘.ùœ#Ž¡‘.ùœ#–¿ªArrow“keys“in“keypad“modeŽ¡‘.ùœ#Ž¡‘.ùœ#"\M-OD":‘-ýPbackward-charŽ¡‘.ùœ#"\M-OC":‘-ýPforward-charŽ¡‘.ùœ#"\M-OA":‘-ýPprevious-historyŽ¡‘.ùœ#"\M-OB":‘-ýPnext-historyŽ¡‘.ùœ#Ž¡‘.ùœ#–¿ªArrow“keys“in“ANSI“modeŽ¡‘.ùœ#Ž¡‘.ùœ"\M-[D":‘-ýPbackward-charŽ¡‘.ùœ"\M-[C":‘-ýPforward-charŽ¡‘.ùœ"\M-[A":‘-ýPprevious-historyŽ¡‘.ùœ"\M-[B":‘-ýPnext-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ŽŽŸŒ‹ ! z>Ÿò‘GÝ10’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБ.ùœÞ#"\M-\C-[B":‘(=¦next-historyޤ‘.ùœC-q:‘¿ªquoted-insertŽ¡‘.ùœ$endifŽ¡‘.ùœ#–¿ªAn“old-style“binding.‘ TThis“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-?"ŽŽŸŒ‹ €-Ÿò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’ýÓ®11ŽŽŽ ƒ3Ú ý¨ðБ.ùœÞ"\M-.":‘¿ªyank-last-argŽŸ €‘.ùœ$endifŽŸ *q‘GëH1.4‘™Bindable–f@Readline“CommandsŽŽŸª“‘!GÝThis–¦fsection“describšMÞes“Readline“commands“that“ma²!y“b˜e“b˜ound“to“k²!ey“sequences.ŽŸîÁ‘GëQ1.4.1‘d(Commands–íMF‘þÄ£or“Mo–ávingŽŽŸæC‘GÞbeginning-of-line‘¦f(C-a)ޤ 33‘Kâ:ÝMo•²!v“e–¦fto“the“start“of“the“curren²!t“line.Ž©ª“‘GÞend-of-line‘¦f(C-e)Ž¡‘Kâ:ÝMo•²!v“e–¦fto“the“end“of“the“line.ަ‘GÞforward-char‘¦f(C-f)Ž¡‘Kâ:ÝMo•²!v“e›¦fforw“ard˜a˜c“haracter.ަ‘GÞbackward-char‘¦f(C-b)Ž¡‘Kâ:ÝMo•²!v“e›¦fbac“k˜a˜c“haracter.ަ‘GÞforward-word‘¦f(M-f)Ž¡‘Kâ:ÝMo•²!v“e›¢kforw“ard˜to˜the˜end˜of˜the˜next˜w“ord.‘܉W‘ÿeords˜are˜compMÞosed˜of˜letters˜andŽ¡‘Kâ:digits.ަ‘GÞbackward-word‘¦f(M-b)Ž¡‘Kâ:ÝMo•²!v“e›ã]bac“k˜to˜the˜start˜of˜this,–òšor˜the˜previous,“w²!ord.‘”ÁW‘ÿeords˜are˜compMÞosed˜ofŽ¡‘Kâ:letters–¦fand“digits.ަ‘GÞclear-screen‘¦f(C-l)Ž¡‘Kâ:ÝClear–2Ôthe“screen“and“redraš²!w“the“curren˜t“line,‘Iòlea˜ving“the“curren˜t“line“at“the“topŽ¡‘Kâ:of–¦fthe“screen.ަ‘GÞredraw-current-line‘¦f()Ž¡‘Kâ:ÝRefresh–¦fthe“currenš²!t“line.‘ÝÝBy“default,“this“is“un˜bMÞound.ŽŸîÁ‘GëQ1.4.2‘d(Commands–íMF‘þÄ£or“Manipulating“The“HistoryŽŽŸæC‘GÞaccept-line–¦f(Newline,“Return)Ž¡‘Kâ:ÝAccept–“‰the“line“regardless“of“where“the“cursor“is.‘דIf“this“line“is“non-empt²!y‘ÿe,‘—OaddŽ¡‘Kâ:it–\fto“the“history“list.‘Å2If“this“line“w²!as“a“history“line,‘k3then“restore“the“history“lineŽ¡‘Kâ:to–¦fits“original“state.ަ‘GÞprevious-history‘¦f(C-p)Ž¡‘Kâ:ÝMo•²!v“e–¦f`up'“through“the“history“list.ަ‘GÞnext-history‘¦f(C-n)Ž¡‘Kâ:ÝMo•²!v“e›¦f`do“wn'˜through˜the˜history˜list.ަ‘GÞbeginning-of-history‘¦f(M-<)Ž¡‘Kâ:ÝMo•²!v“e–¦fto“the“ rst“line“in“the“history‘ÿe.ŽŽŸŒ‹ †ÊŸò‘GÝ12’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGÞend-of-history‘¦f(M->)ޤ 33‘Kâ:ÝMo•²!v“e–¦fto“the“end“of“the“input“history‘ÿe,“i.e.,“the“line“currenš²!tly“bMÞeing“en˜tered.Ž©©-‘GÞreverse-search-history‘¦f(C-r)Ž¡‘Kâ:ÝSearc•²!h›½:bac“kw“ard˜starting˜at˜the˜curren“t˜line˜and˜mo“ving˜`up'˜through˜the˜his-Ž¡‘Kâ:tory–¦fas“necessary‘ÿe.‘ÝÝThis“is“an“incremenš²!tal“searc˜h.ަ‘GÞforward-search-history‘¦f(C-s)Ž¡‘Kâ:ÝSearc•²!h›‰÷forw“ard˜starting˜at˜the˜curren“t˜line˜and˜mo“ving˜`do“wn'˜through˜the˜theŽ¡‘Kâ:history–¦fas“necessary‘ÿe.‘ÝÝThis“is“an“incremenš²!tal“searc˜h.ަ‘GÞnon-incremental-reverse-search-history‘¦f(M-p)Ž¡‘Kâ:ÝSearc•²!h›½:bac“kw“ard˜starting˜at˜the˜curren“t˜line˜and˜mo“ving˜`up'˜through˜the˜his-Ž¡‘Kâ:tory–Ryas“necessary“using“a“non-incremenš²!tal“searc˜h“for“a“string“supplied“b˜y“theŽ¡‘Kâ:user.ަ‘GÞnon-incremental-forward-search-history‘¦f(M-n)Ž¡‘Kâ:ÝSearc•²!h›‰÷forw“ard˜starting˜at˜the˜curren“t˜line˜and˜mo“ving˜`do“wn'˜through˜the˜theŽ¡‘Kâ:history–3ªas“necessary“using“a“non-incremenš²!tal“searc˜h“for“a“string“supplied“b˜y“theŽ¡‘Kâ:user.ަ‘GÞhistory-search-forward‘¦f()Ž¡‘Kâ:ÝSearc•²!h›úOforw“ard˜through˜the˜history˜for˜the˜string˜of˜c“haracters˜bMÞet“w“een˜theŽ¡‘Kâ:start–ï‘of“the“currenš²!t“line“and“the“curren˜t“cursor“pšMÞosition“(the“áp˜oin²!t=Ý).‘¹_This“is“aŽ¡‘Kâ:non-incremen•²!tal›¦fsearc“h.‘ÝÝBy˜default,˜this˜command˜is˜un“bMÞound.ަ‘GÞhistory-search-backward‘¦f()Ž¡‘Kâ:ÝSearc•²!h›-»bac“kw“ard˜through˜the˜history˜for˜the˜string˜of˜c“haracters˜bMÞet“w“een˜theŽ¡‘Kâ:start–7®of“the“currenš²!t“line“and“the“pMÞoin˜t.‘‘¶This“is“a“non-incremen˜tal“searc˜h.‘‘¶ByŽ¡‘Kâ:default,–¦fthis“command“is“un²!bMÞound.ަ‘GÞyank-nth-arg‘¦f(M-C-y)Ž¡‘Kâ:ÝInsert–@the“ rst“argumenš²!t“to“the“previous“command“(usually“the“second“w˜ord“onŽ¡‘Kâ:the–uprevious“line).‘ÍnWith“an“argumenš²!t“ánÝ,‘~õinsert“the“ánÝth“w˜ord“from“the“previousŽ¡‘Kâ:command–Dø(the“wš²!ords“in“the“previous“command“bMÞegin“with“w˜ord“0).‘½cA‘Dßnegativ˜eŽ¡‘Kâ:argumenš²!t–¦finserts“the“ánÝth“w˜ord“from“the“end“of“the“previous“command.ަ‘GÞyank-last-arg–¦f(M-.,“M-_)Ž¡‘Kâ:ÝInsert–5Elast“argumenš²!t“to“the“previous“command“(the“last“w˜ord“of“the“previousŽ¡‘Kâ:history–¬fenš²!try).‘ïÜWith“an“argumen˜t,‘­æbMÞeha˜v˜e“exactly“lik˜e“Þyank-nth-argÝ.‘ïÜSucces-Ž¡‘Kâ:sivš²!e–&—calls“to“Þyank-last-arg“Ýmo˜v˜e“bac˜k“through“the“history“list,‘F£inserting“theŽ¡‘Kâ:last–¦fargumenš²!t“of“eac˜h“line“in“turn.ŽŸëõ‘GëQ1.4.3‘d(Commands–íMF›þÄ£or“Changing“T˜extŽŽŸd+‘GÞdelete-char‘¦f(C-d)Ž¡‘Kâ:ÝDelete–é)the“c²!haracter“under“the“cursor.‘¦&If“the“cursor“is“at“the“bMÞeginning“of“theŽ¡‘Kâ:line,›<6there–@are“no“c²!haracters“in“the“line,˜and“the“last“cš²!haracter“t˜ypMÞed“w˜as“notŽ¡‘Kâ:bMÞound–¦fto“Þdelete-charÝ,“then“return“ÞEOFÝ.ŽŽŸŒ‹ ŽŸò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’ýÓ®13ŽŽŽ ƒ3Ú ý¨ðБGÞbackward-delete-char‘¦f(Rubout)ޤ 33‘Kâ:ÝDelete–Ÿ§the“cš²!haracter“bMÞehind“the“cursor.‘ÛA‘Ÿ¥n˜umeric“argumen˜t“means“to“kill“theŽ¡‘Kâ:c²!haracters–¦finstead“of“deleting“them.Ž©…w‘GÞforward-backward-delete-char‘¦f()Ž¡‘Kâ:ÝDelete–˜‘the“c²!haracter“under“the“cursor,‘Õunless“the“cursor“is“at“the“end“of“theŽ¡‘Kâ:line,‘×~in–Í­whicš²!h“case“the“c˜haracter“bMÞehind“the“cursor“is“deleted.‘S±By“default,‘×~thisŽ¡‘Kâ:is–¦fnot“bMÞound“to“a“k²!ey‘ÿe.ަ‘GÞquoted-insert–¦f(C-q,“C-v)Ž¡‘Kâ:ÝAdd–¸the“next“cš²!haracter“t˜ypMÞed“to“the“line“v˜erbatim.‘CÔThis“is“ho˜w“to“insert“k˜eyŽ¡‘Kâ:sequences–¦flik²!e“ž™š¸hŽ‘‘2Ÿù@‰ff ubŸÀ­C-qŽŽ‘‘2ŸÙš‰ff ubŽ‘„ž™š¸iŽŽ‘èÝ,“for“example.ަ‘GÞtab-insert‘¦f(M-TAB)Ž¡‘Kâ:ÝInsert–¦fa“tab“c²!haracter.ަ‘GÞself-insert–¦f(a,“b,“A,“1,“!,“...)Ž¡‘Kâ:ÝInsert‘¦fy²!ourself.ަ‘GÞtranspose-chars‘¦f(C-t)Ž¡‘Kâ:ÝDrag–Õãthe“cš²!haracter“bMÞefore“the“cursor“forw˜ard“o˜v˜er“the“c˜haracter“at“the“cursor,Ž¡‘Kâ:moš²!ving–C"the“cursor“forw˜ard“as“w˜ell.‘´If“the“insertion“pMÞoin˜t“is“at“the“end“of“theŽ¡‘Kâ:line,‘ÕÍthen–¡¦this“transpMÞoses“the“last“t•²!w“o›¡¦c“haracters˜of˜the˜line.‘†óNegativ“e˜argumen“tsŽ¡‘Kâ:don't‘¦fw²!ork.ަ‘GÞtranspose-words‘¦f(M-t)Ž¡‘Kâ:ÝDrag–the“wš²!ord“bMÞehind“the“cursor“past“the“w˜ord“in“fron˜t“of“the“cursor“mo˜vingŽ¡‘Kâ:the–¦fcursor“o•²!v“er–¦fthat“wš²!ord“as“w˜ell.ަ‘GÞupcase-word‘¦f(M-u)Ž¡‘Kâ:ÝUppMÞercase–ÖÓthe“currenš²!t“(or“follo˜wing)“w˜ord.‘o#With“a“negativ˜e“argumen˜t,‘âîuppMÞer-Ž¡‘Kâ:case–¦fthe“previous“wš²!ord,“but“do“not“mo˜v˜e“the“cursor.ަ‘GÞdowncase-word‘¦f(M-l)Ž¡‘Kâ:ÝLo•²!w“ercase–”ãthe“currenš²!t“(or“follo˜wing)“w˜ord.‘‚²With“a“negativ˜e“argumen˜t,‘Ë–lo˜w˜ercaseŽ¡‘Kâ:the–¦fprevious“wš²!ord,“but“do“not“mo˜v˜e“the“cursor.ަ‘GÞcapitalize-word‘¦f(M-c)Ž¡‘Kâ:ÝCapitalize–6the“currenš²!t“(or“follo˜wing)“w˜ord.‘€#With“a“negativ˜e“argumen˜t,‘ÅrcapitalizeŽ¡‘Kâ:the–¦fprevious“wš²!ord,“but“do“not“mo˜v˜e“the“cursor.ŽŸ¤‡‘GëQ1.4.4‘d(Killing–íMAnd“Y‘þÄ£ankingŽŽŸ®˜‘GÞkill-line‘¦f(C-k)Ž¡‘Kâ:ÝKill–¦fthe“text“from“the“curren²!t“cursor“pMÞosition“to“the“end“of“the“line.ަ‘GÞbackward-kill-line–¦f(C-x“Rubout)Ž¡‘Kâ:ÝKill›¦fbac•²!kw“ard˜to˜the˜bMÞeginning˜of˜the˜line.ަ‘GÞunix-line-discard‘¦f(C-u)Ž¡‘Kâ:ÝKill›Ó¨bac•²!kw“ard˜from˜the˜cursor˜to˜the˜bMÞeginning˜of˜the˜curren“t˜line.‘e¢The˜killedŽ¡‘Kâ:text–¦fis“sa•²!v“ed–¦fon“the“kill-ring.ŽŽŸŒ‹™iŸò‘GÝ14’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGÞkill-whole-line‘¦f()ޤ 33‘Kâ:ÝKill–¼èall“cš²!haracters“on“the“curren˜t“line,‘ë›no“matter“where“the“cursor“is.‘By“default,Ž¡‘Kâ:this–¦fis“un²!bMÞound.Ž©…w‘GÞkill-word‘¦f(M-d)Ž¡‘Kâ:ÝKill–]from“the“cursor“to“the“end“of“the“currenš²!t“w˜ord,‘kÆor“if“bMÞet˜w˜een“w˜ords,‘kÆto“theŽ¡‘Kâ:end–¦fof“the“next“w²!ord.‘ÝÝW‘ÿeord“bMÞoundaries“are“the“same“as“Þforward-wordÝ.ަ‘GÞbackward-kill-word‘¦f(M-DEL)Ž¡‘Kâ:ÝKill–·2the“w²!ord“bšMÞehind“the“cursor.‘BW‘ÿeord“b˜oundaries“are“the“same“as“Þbackward-Ž¡‘Kâ:wordÝ.ަ‘GÞunix-word-rubout‘¦f(C-w)Ž¡‘Kâ:ÝKill–6{the“wš²!ord“bMÞehind“the“cursor,‘Z€using“white“space“as“a“w˜ord“bMÞoundary‘ÿe.‘ŽTheŽ¡‘Kâ:killed–¦ftext“is“sa•²!v“ed–¦fon“the“kill-ring.ަ‘GÞdelete-horizontal-space‘¦f()Ž¡‘Kâ:ÝDelete–¦fall“spaces“and“tabs“around“pMÞoinš²!t.‘ÝÝBy“default,“this“is“un˜bMÞound.ަ‘GÞkill-region‘¦f()Ž¡‘Kâ:ÝKill–[the“text“bšMÞet•²!w“een–[the“p˜oinš²!t“and“the“ámark‘º_Ý(sa˜v˜ed“cursor“pMÞosition).‘«ÙThis“textŽ¡‘Kâ:is–¦freferred“to“as“the“áregionÝ.‘ÝÝBy“default,“this“command“is“un²!bMÞound.ަ‘GÞcopy-region-as-kill‘¦f()Ž¡‘Kâ:ÝCopš²!y–³the“text“in“the“region“to“the“kill“bu er,‘0Eso“it“can“bMÞe“y˜ank˜ed“righ˜t“a˜w˜a˜y‘ÿe.Ž¡‘Kâ:By–¦fdefault,“this“command“is“un²!bMÞound.ަ‘GÞcopy-backward-word‘¦f()Ž¡‘Kâ:ÝCopš²!y–žthe“w˜ord“bšMÞefore“p˜oinš²!t“to“the“kill“bu er.‘ÄÿThe“w˜ord“bMÞoundaries“are“theŽ¡‘Kâ:same–¦fas“Þbackward-wordÝ.‘ÝÝBy“default,“this“command“is“un²!bMÞound.ަ‘GÞcopy-forward-word‘¦f()Ž¡‘Kâ:ÝCopš²!y–º8the“w˜ord“follo˜wing“pMÞoin˜t“to“the“kill“bu er.‘SThe“w˜ord“bMÞoundaries“are“theŽ¡‘Kâ:same–¦fas“Þforward-wordÝ.‘ÝÝBy“default,“this“command“is“un²!bMÞound.ަ‘GÞyank‘¦f(C-y)Ž¡‘Kâ:ÝY‘ÿeank–¦fthe“top“of“the“kill“ring“inš²!to“the“bu er“at“the“curren˜t“cursor“pMÞosition.ަ‘GÞyank-pop‘¦f(M-y)Ž¡‘Kâ:ÝRotate–'!the“kill-ring,‘GPand“y²!ank“the“new“top.‘`Y‘ÿeou“can“only“do“this“if“the“priorŽ¡‘Kâ:command–¦fis“yš²!ank“or“y˜ank-pMÞop.ŽŸ¤‡‘GëQ1.4.5‘d(Spiecifying–íMNumeric“Argumen–átsŽŽŸ®˜‘GÞdigit-argument–¦f(M-0,“M-1,“...“M--)Ž¡‘Kâ:ÝAdd–:Lthis“digit“to“the“argumenš²!t“already“accum˜ulating,‘Oëor“start“a“new“argumen˜t.Ž¡‘Kâ:ž™š¸hŽ‘NÍŸù@‰ff ”ŸÀ­M{ŽŽ‘NÍŸÙš‰ff ”Ž‘ZS ž™š¸iŽŽ‘a’TÝstarts–¦fa“negativš²!e“argumen˜t.ަ‘GÞuniversal-argument‘¦f()Ž¡‘Kâ:ÝThis–kis“another“w•²!a“y–kto“spMÞecify“an“argumenš²!t.‘«ßIf“this“command“is“follo˜w˜ed“b˜y“oneŽ¡‘Kâ:or–more“digits,›“³optionally“with“a“leading“min²!us“sign,˜those“digits“de ne“the“ar-Ž¡‘Kâ:gumenš²!t.‘ÐÚIf–\the“command“is“follo˜w˜ed“b˜y“digits,‘‡+executing“Þuniversal-argumentŽŽŸŒ‹£Ÿò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’ýÓ®15ŽŽŽ ƒ3Ú ý¨ðБKâ:again–Ñ«ends“the“nš²!umeric“argumen˜t,‘Ü|but“is“otherwise“ignored.‘_«As“a“spMÞecial“case,ޤ 33‘Kâ:if–ñúthis“command“is“immediately“follo•²!w“ed›ñúb“y˜a˜c“haracter˜that˜is˜neither˜a˜digitŽ¡‘Kâ:or–Zwminš²!us“sign,‘i§the“argumen˜t“coun˜t“for“the“next“command“is“m˜ultiplied“b˜y“four.Ž¡‘Kâ:The–{targumenš²!t“coun˜t“is“initially“one,‘°¸so“executing“this“function“the“ rst“timeŽ¡‘Kâ:makš²!es–Ï2the“argumen˜t“coun˜t“four,‘Ùea“second“time“mak˜es“the“argumen˜t“coun˜t“six-Ž¡‘Kâ:teen,–¦fand“so“on.‘ÝÝBy“default,“this“is“not“bMÞound“to“a“k²!ey‘ÿe.ŽŸû=‘GëQ1.4.6‘d(Letting–íMReadline“T–áypie“F›þÄ£or“Y˜ouŽŽŸ…[‘GÞcomplete‘¦f(TAB)Ž¡‘Kâ:ÝA²!ttempt–@to“do“completion“on“the“text“bMÞefore“the“cursor.‘ª±This“is“application-Ž¡‘Kâ:spMÞeci c.‘ÓÑGenerally‘ÿe,‘ŽJif–ˆByš²!ou“are“t˜yping“a“ lename“argumen˜t,‘ŽJy˜ou“can“do“ lenameŽ¡‘Kâ:completion;‘²æif–®»yš²!ou“are“t˜yping“a“command,‘°Ñy˜ou“can“do“command“completion;‘²æifŽ¡‘Kâ:yš²!ou–aare“t˜yping“in“a“sym˜bMÞol“to“GDB,“y˜ou“can“do“sym˜bMÞol“name“completion;‘¾vifŽ¡‘Kâ:yš²!ou–%­are“t˜yping“in“a“v‘ÿdDariable“to“Bash,‘?ly˜ou“can“do“v‘ÿdDariable“name“completion,‘?landŽ¡‘Kâ:so‘¦fon.Ž©…[‘GÞpossible-completions‘¦f(M-?)Ž¡‘Kâ:ÝList–¦fthe“pšMÞossible“completions“of“the“text“b˜efore“the“cursor.ަ‘GÞinsert-completions‘¦f(M-*)Ž¡‘Kâ:ÝInsert–«µall“completions“of“the“text“bšMÞefore“p˜oinš²!t“that“w˜ould“ha˜v˜e“bMÞeen“generatedŽ¡‘Kâ:b²!y‘¦fÞpossible-completionsÝ.ަ‘GÞmenu-complete‘¦f()Ž¡‘Kâ:ÝSimilar–ÛVto“ÞcompleteÝ,‘óbut“replaces“the“wš²!ord“to“bMÞe“completed“with“a“single“matc˜hŽ¡‘Kâ:from–‹æthe“list“of“pšMÞossible“completions.‘Ž^Rep˜eated“execution“of“Þmenu-completeŽ¡‘Kâ:Ýsteps–Õ¯through“the“list“of“pMÞossible“completions,‘!inserting“eacš²!h“matc˜h“in“turn.Ž¡‘Kâ:A²!t–/ the“end“of“the“list“of“completions,‘Q7the“bMÞell“is“rung“and“the“original“text“isŽ¡‘Kâ:restored.‘`^An–' ó3 ! cmmi10å:–Ó1:“:Ž‘lÉÞ)Ž¡‘Kâ:ÝIf–Qõthe“meta ed“cš²!haracter“áx‘TÝis“lo˜w˜ercase,‘bØrun“the“command“that“is“bMÞound“to“theŽ¡‘Kâ:corresp•MÞonding›¦fupp“ercase˜c²!haracter.ަ‘GÞprefix-meta‘¦f(ESC)Ž¡‘Kâ:ÝMakš²!e–[Cthe“next“c˜haracter“t˜ypšMÞed“b˜e“meta ed.‘üsThis“is“for“k²!eyb˜oards“without“aŽ¡‘Kâ:meta›¦fk•²!ey‘ÿe.‘ÝÝT“yping˜`ÞESC˜fÝ'˜is˜equiv‘ÿdDalen“t˜to˜t“yping˜`ÞM-fÝ'.ަ‘GÞundo–¦f(C-_,“C-x“C-u)Ž¡‘Kâ:ÝIncremenš²!tal–¦fundo,“separately“remem˜bMÞered“for“eac˜h“line.ަ‘GÞrevert-line‘¦f(M-r)Ž¡‘Kâ:ÝUndo–úall“cš²!hanges“made“to“this“line.‘ØäThis“is“lik˜e“executing“the“Þundo“ÝcommandŽ¡‘Kâ:enough–¦ftimes“to“get“bac²!k“to“the“bMÞeginning.ަ‘GÞtilde-expand‘¦f(M-~)Ž¡‘Kâ:ÝPš²!erform–¦ftilde“expansion“on“the“curren˜t“w˜ord.ަ‘GÞset-mark‘¦f(C-@)Ž¡‘Kâ:ÝSet–D®the“mark“to“the“currenš²!t“pMÞoin˜t.‘½JIf“a“n˜umeric“argumen˜t“is“supplied,‘X9the“markŽ¡‘Kâ:is–¦fset“to“that“pMÞosition.ަ‘GÞexchange-point-and-mark–¦f(C-x“C-x)Ž¡‘Kâ:ÝSwš²!ap–¾Òthe“pMÞoin˜t“with“the“mark.‘'!The“curren˜t“cursor“pMÞosition“is“set“to“the“sa˜v˜edŽ¡‘Kâ:pšMÞosition,–¦fand“the“old“cursor“p˜osition“is“sa•²!v“ed–¦fas“the“mark.ަ‘GÞcharacter-search‘¦f(C-])Ž¡‘Kâ:ÝA‘ü&cš²!haracter–üQis“read“and“pMÞoin˜t“is“mo˜v˜ed“to“the“next“oMÞccurrence“of“that“c˜haracter.Ž¡‘Kâ:A–¦fnegativš²!e“coun˜t“searc˜hes“for“previous“oMÞccurrences.ަ‘GÞcharacter-search-backward‘¦f(M-C-])Ž¡‘Kâ:ÝA‘c"cš²!haracter–c•is“read“and“pMÞoin˜t“is“mo˜v˜ed“to“the“previous“oMÞccurrence“of“thatŽ¡‘Kâ:c•²!haracter.‘ÝÝA›¦fnegativ“e˜coun“t˜searc“hes˜for˜subsequen“t˜oMÞccurrences.ަ‘GÞinsert-comment‘¦f(M-#)Ž¡‘Kâ:ÝThe–živ›ÿdDalue“of“the“Þcomment-begin“Ýv˜ariable“is“inserted“at“the“bMÞeginning“of“theŽ¡‘Kâ:currenš²!t–¦fline,“and“the“line“is“accepted“as“if“a“newline“had“bMÞeen“t˜ypMÞed.ަ‘GÞdump-functions‘¦f()Ž¡‘Kâ:ÝPrinš²!t–,Qall“of“the“functions“and“their“k˜ey“bindings“to“the“Readline“output“stream.Ž¡‘Kâ:If–Îïa“nš²!umeric“argumen˜t“is“supplied,‘Ùthe“output“is“formatted“in“suc˜h“a“w˜a˜y“thatŽ¡‘Kâ:it–¦fcan“bšMÞe“made“part“of“an“áinputrc‘PjÝ le.‘ÝÝThis“command“is“un²!b˜ound“b²!y“default.ŽŽŸŒ‹º„Ÿò‘GÝChapter–¦f1:‘ÝÝCommand“Line“Editing’ýÓ®17ŽŽŽ ƒ3Ú ý¨ðБGÞdump-variables‘¦f()ޤ 33‘Kâ:ÝPrin²!t–ŽÉall“of“the“settable“v›ÿdDariables“and“their“v˜alues“to“the“Readline“output“stream.Ž¡‘Kâ:If–Îïa“nš²!umeric“argumen˜t“is“supplied,‘Ùthe“output“is“formatted“in“suc˜h“a“w˜a˜y“thatŽ¡‘Kâ:it–¦fcan“bšMÞe“made“part“of“an“áinputrc‘PjÝ le.‘ÝÝThis“command“is“un²!b˜ound“b²!y“default.ŽŸ33‘GÞdump-macros‘¦f()Ž¡‘Kâ:ÝPrinš²!t– ˆall“of“the“Readline“k˜ey“sequences“bMÞound“to“macros“and“the“strings“theyŽ¡‘Kâ:ouput.‘HþIf–tÆa“nš²!umeric“argumen˜t“is“supplied,‘¨^the“output“is“formatted“in“suc˜h“aŽ¡‘Kâ:w•²!a“y–šthat“it“can“bšMÞe“made“part“of“an“áinputrc‘DÝ le.‘ÙÃThis“command“is“un²!b˜ound“b²!yŽ¡‘Kâ:default.ŽŸ‘GëH1.5‘™Readline–f@vi“Mos3deŽŽŸ33‘!GÝWhile–×Uthe“Readline“library“došMÞes“not“ha•²!v“e–×Ua“full“set“of“Þvi“Ýediting“functions,‘¿it“do˜es“con²!tainŽ¡‘Genough–to“allo²!w“simple“editing“of“the“line.‘.ƒThe“Readline“Þvi“ÝmošMÞde“b˜eha•²!v“es–as“sp˜eci ed“inŽ¡‘Gthe–¦fãPOSIX“Ý1003.2“standard.Ž©33‘!GIn–|Uorder“to“switcš²!h“in˜teractiv˜ely“bMÞet˜w˜een“Þemacs“Ýand“Þvi“Ýediting“moMÞdes,‘„¿use“the“commandŽ¡‘GM-C-j–¦f(toggle-editing-mošMÞde).‘ÝÝThe“Readline“default“is“Þemacs“Ýmo˜de.ަ‘!GWhen–›‰yš²!ou“en˜ter“a“line“in“Þvi“ÝmoMÞde,‘µy˜ou“are“already“placed“in“`insertion'“moMÞde,‘µas“if“y˜ouŽ¡‘Ghad–&Gtš²!ypMÞed“an“`ÞiÝ'.‘³(Pressing“ž™š¸hŽ‘Ÿù@‰ff¤TŸÀ­ESCŽŽ‘ŸÙš‰ff¤TŽ‘2Ùž™š¸iŽŽ‘òÝswitc˜hes“y˜ou“in˜to“`command'“moMÞde,‘?çwhere“y˜ou“can“edit“theŽ¡‘Gtext–of“the“line“with“the“standard“Þvi“Ýmo•²!v“emen“t›k“eys,‘)These“functions“allo˜w“y˜ou“to“c˜hange“whic˜hŽ¡‘Gkš²!eymap–¦fis“activ˜e.ަ’sF‘ÿeunctionŽŽ‘GèKeymap‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íget‘Óõ‰ˆŠ#ØŽ“kÞeymap‘yšâ()Ž¡‘.ùœÝReturns–¦fthe“currenš²!tly“activ˜e“k˜eymap.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íset‘Óõ‰ˆŠ#ØŽ“kÞeymap‘yšâ(ÞKeymap‘¦fkeymapâ)Ž¡‘.ùœÝMak•²!es›¦fák“eymap‘ûgÝthe˜curren“tly˜activ“e˜k“eymap.ަ’sF‘ÿeunctionŽŽ‘GèKeymap‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íget‘Óõ‰ˆŠ#ØŽ“kšÞeymap‘Óõ‰ˆŠ#ØŽ“b˜y‘Óõ‰ˆŠ#ØŽ“name‘yšâ(Þchar‘¦f*nameâ)Ž¡‘.ùœÝReturn–pÄthe“kš²!eymap“matc˜hing“ánameÝ.‘Ëüáname‘ ËÝis“one“whic˜h“w˜ould“bMÞe“supplied“in“aŽ¡‘.ùœÞset–¦fkeymap“Ýinputrc“line“(see“Section“1.3“[Readline“Init“File],“page“3).ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Íget‘Óõ‰ˆŠ#ØŽ“kÞeymap‘Óõ‰ˆŠ#ØŽ“name‘yšâ(ÞKeymap‘¦fkeymapâ)Ž¡‘.ùœÝReturn–pÄthe“name“matcš²!hing“ák˜eymapÝ.‘Ëüáname‘ ËÝis“one“whic˜h“w˜ould“bMÞe“supplied“in“aŽ¡‘.ùœÞset–¦fkeymap“Ýinputrc“line“(see“Section“1.3“[Readline“Init“File],“page“3).ŽŸØÈ‘GëQ2.4.3‘d(Binding‘íMKeysŽŽŸ& ‘!GÝY‘ÿeou–]YassoMÞciate“kš²!eys“with“functions“through“the“k˜eymap.‘ ! ·Readline“has“sev˜eral“in˜ter-Ž¡‘Gnal‘Xk²!eymaps:‘«ÂÞemacs_standard_keymapÝ,–Þemacs_meta_keymapÝ,“Þemacs_ctlx_keymapÝ,“Þvi_Ž¡‘Gmovement_keymapÝ,‘qxand–¨Þvi_insertion_keymapÝ.‘ +¢Þemacs_standard_keymap“Ýis“the“default,Ž¡‘Gand–¦fthe“examples“in“this“man²!ual“assume“that.ŽŸ& ‘!GThese–¦ffunctions“manage“k²!ey“bindings.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íbind‘Óõ‰ˆŠ#ØŽ“kÞey‘yšâ(Þint–¦fkey,“Function“*functionâ)Ž¡‘.ùœÝBinds–Mákš²!ey‘eÝto“áfunction“Ýin“the“curren˜tly“activ˜e“k˜eymap.‘Ö*Returns“non-zero“in“theŽ¡‘.ùœcase–¦fof“an“inš²!v‘ÿdDalid“ák˜eyÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íbind‘Óõ‰ˆŠ#ØŽ“kÞey‘Óõ‰ˆŠ#ØŽ“in‘Óõ‰ˆŠ#ØŽ“map‘yšâ(Þint–¦fkey,“Function“*function,Ž¡‘DGKeymap‘¦fmapâ)Ž¡‘.ùœÝBind–¦fákš²!ey‘–~Ýto“áfunction“Ýin“ámapÝ.‘ÝÝReturns“non-zero“in“the“case“of“an“in˜v‘ÿdDalid“ák˜eyÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍunšÞbind‘Óõ‰ˆŠ#ØŽ“k˜ey‘yšâ(Þint‘¦fkeyâ)Ž¡‘.ùœÝBind–)žákš²!ey‘¶Ýto“the“n˜ull“function“in“the“curren˜tly“activ˜e“k˜eymap.‘´EReturns“non-zeroŽ¡‘.ùœin–¦fcase“of“error.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍunšÞbind‘Óõ‰ˆŠ#ØŽ“k˜ey‘Óõ‰ˆŠ#ØŽ“in‘Óõ‰ˆŠ#ØŽ“map‘yšâ(Þint–¦fkey,“Keymap“mapâ)Ž¡‘.ùœÝBind–¦fákš²!ey‘–~Ýto“the“n˜ull“function“in“ámapÝ.‘ÝÝReturns“non-zero“in“case“of“error.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍunÞbind‘Óõ‰ˆŠ#ØŽ“function‘Óõ‰ˆŠ#ØŽ“in‘Óõ‰ˆŠ#ØŽ“map‘yšâ(ÞFunction‘¦f*function,Ž¡‘DGKeymap‘¦fmapâ)Ž¡‘.ùœÝUnš²!bind–¦fall“k˜eys“that“execute“áfunction“Ýin“ámapÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍunÞbind‘Óõ‰ˆŠ#ØŽ“command‘Óõ‰ˆŠ#ØŽ“in‘Óõ‰ˆŠ#ØŽ“map‘yšâ(Þchar–¦f*command,“KeymapŽ¡‘DGmapâ)Ž¡‘.ùœÝUnš²!bind–¦fall“k˜eys“that“are“bMÞound“to“ácommand‘¸Ýin“ámapÝ.ŽŽŸŒ‹ ! IŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—25ŽŽŽ ƒ3Ú ý¨ðÐ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ígeneric‘Óõ‰ˆŠ#ØŽ“bind‘yšâ(Þint–¦ftype,“char“*keyseq,“char“*data,ޤ 33‘DGKeymap‘¦fmapâ)Ž¡‘.ùœÝBind–"™the“kš²!ey“sequence“represen˜ted“b˜y“the“string“ák˜eyseq‘cÝto“the“arbitrary“pMÞoin˜terŽ¡‘.ùœádataÝ.‘Ì át•²!ypšMÞe‘ üÝsa“ys–põwhat“kind“of“data“is“p˜oinš²!ted“to“b˜y“ádataÝ;‘‚Åthis“can“bMÞe“a“functionŽ¡‘.ùœ(ÞISFUNCÝ),›œa–‹*macro“(ÞISMACRÝ),˜or“a“kš²!eymap“(ÞISKMAPÝ).‘ÔÉThis“mak˜es“new“k˜eymapsŽ¡‘.ùœas–¦fnecessary‘ÿe.‘ÝÝThe“initial“kš²!eymap“in“whic˜h“to“do“bindings“is“ámapÝ.Ž©nõ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íparse‘Óõ‰ˆŠ#ØŽ“and‘Óõ‰ˆŠ#ØŽ“bind‘yšâ(Þchar‘¦f*lineâ)Ž¡‘.ùœÝP²!arse–„áline‘!¤Ýas“if“it“had“bšMÞeen“read“from“the“Þinputrc“Ý le“and“p˜erform“anš²!y“k˜eyŽ¡‘.ùœbindings–Týand“v‘ÿdDariable“assignmen²!ts“found“(see“Section“1.3“[Readline“Init“File],Ž¡‘.ùœpage‘¦f3).ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íread‘Óõ‰ˆŠ#ØŽ“init‘Óõ‰ˆŠ#ØŽ“ le‘yšâ(Þchar‘¦f*filenameâ)Ž¡‘.ùœÝRead–ñ ! kš²!eybindings“and“v‘ÿdDariable“assignmen˜ts“from“á lename‘ŽÝ(see“Section“1.3Ž¡‘.ùœ[Readline–¦fInit“File],“page“3).ŽŸ;ÑGëQ2.4.4‘d(Assoiciating–íMF‘þÄ£unction“Names“and“BindingsŽŽŸQ‘!GÝThese–ŒQfunctions“alloš²!w“y˜ou“to“ nd“out“what“k˜eys“in˜v˜ok˜e“named“functions“and“the“functionsŽ¡‘Gin•²!v“ok“ed›¦fb“y˜a˜particular˜k“ey˜sequence.ަ’sF‘ÿeunctionŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ínamed‘Óõ‰ˆŠ#ØŽ“function‘yšâ(Þchar‘¦f*nameâ)Ž¡‘.ùœÝReturn–¦fthe“function“with“name“ánameÝ.ަ’sF‘ÿeunctionŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ífunction‘Óõ‰ˆŠ#ØŽ“of‘Óõ‰ˆŠ#ØŽ“kÞeyseq‘yšâ(Þchar–¦f*keyseq,“KeymapŽ¡‘DGmap,–¦fint“*typeâ)Ž¡‘.ùœÝReturn–Qthe“function“in•²!v“ok“ed›Qb“y˜ák“eyseq‘R7Ýin˜k“eymap˜ámapÝ.‘ŸIf˜ámap‘fRÝis˜NULL,˜theŽ¡‘.ùœcurren•²!t›5ùk“eymap˜is˜used.‘¸cIf˜át“ypMÞe‘ÓÝis˜not˜NULL,˜the˜t“ypMÞe˜of˜the˜ob‘›»ject˜is˜returnedŽ¡‘.ùœin–¦fit“(one“of“ÞISFUNCÝ,“ÞISKMAPÝ,“or“ÞISMACRÝ).ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜**“çrl‘Óõ‰ˆŠ#ØŽ›÷Íin•Þv“oking‘Óõ‰ˆŠ#ØŽ˜k“eyseqs‘yšâ(ÞFunction‘¦f*functionâ)Ž¡‘.ùœÝReturn–®Tan“arraš²!y“of“strings“represen˜ting“the“k˜ey“sequences“used“to“in˜v˜ok˜e“áfunc-Ž¡‘.ùœtion–¦fÝin“the“currenš²!t“k˜eymap.ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜**“çrl‘Óõ‰ˆŠ#ØŽ›÷Íin•Þv“oking‘Óõ‰ˆŠ#ØŽ˜k“eyseqs‘Óõ‰ˆŠ#ØŽ˜in‘Óõ‰ˆŠ#ØŽ˜map‘yšâ(ÞFunction‘¦f*function,Ž¡‘DGKeymap‘¦fmapâ)Ž¡‘.ùœÝReturn–®Tan“arraš²!y“of“strings“represen˜ting“the“k˜ey“sequences“used“to“in˜v˜ok˜e“áfunc-Ž¡‘.ùœtion–¦fÝin“the“k²!eymap“ámapÝ.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ífunction‘Óõ‰ˆŠ#ØŽ“dumpb"er‘yšâ(Þint‘¦freadableâ)Ž¡‘.ùœÝPrinš²!t–žOthe“readline“function“names“and“the“k˜ey“sequences“curren˜tly“bMÞound“toŽ¡‘.ùœthem–Ãto“Þrl_outstreamÝ.‘3ÄIf“áreadable‘`Ýis“non-zero,‘Ê1the“list“is“formatted“in“suc²!h“aŽ¡‘.ùœw•²!a“y–¦fthat“it“can“bMÞe“made“part“of“an“Þinputrc“Ý le“and“re-read.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ílist‘Óõ‰ˆŠ#ØŽ“funmap‘Óõ‰ˆŠ#ØŽ“names‘yšâ()Ž¡‘.ùœÝPrin²!t–¦fthe“names“of“all“bindable“Readline“functions“to“Þrl_outstreamÝ.ŽŽŸŒ‹“Ÿò‘GÝ26’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGëQ2.4.5‘d(Allo–áwing‘íMUndoingŽŽŸëè‘!GÝSuppMÞorting–&Œthe“undo“command“is“a“painless“thing,‘@and“makš²!es“y˜our“functions“m˜uc˜h“moreޤ 33‘Guseful.‘€:It–1Úis“certainly“easy“to“try“something“if“yš²!ou“kno˜w“y˜ou“can“undo“it.‘€:I‘1¶could“use“anŽ¡‘Gundo–¦ffunction“for“the“stoMÞcš²!k“mark˜et.Ž©ëè‘!GIf–+ôy²!our“function“simply“inserts“text“once,›Dqor“deletes“text“once,˜and“uses“Þrl_insert_textŽ¡‘G()–¦fÝor“Þrl_delete_text“()“Ýto“do“it,“then“undoing“is“already“done“for“y²!ou“automatically‘ÿe.ަ‘!GIf–u†yš²!ou“do“m˜ultiple“insertions“or“m˜ultiple“deletions,‘²€or“an˜y“com˜bination“of“these“opMÞerations,Ž¡‘Gyš²!ou–‘should“group“them“together“in˜to“one“opMÞeration.‘œ]This“is“done“with“Þrl_begin_undo_Ž¡‘Ggroup–¦f()“Ýand“Þrl_end_undo_group“()Ý.ަ‘!GThe–¦ftš²!ypMÞes“of“ev˜en˜ts“that“can“bMÞe“undone“are:ŽŸ8µ‘.ùœÞenum–¿ªundo_code“{“UNDO_DELETE,“UNDO_INSERT,“UNDO_BEGIN,“UNDO_END“};ަ‘!GÝNotice–£¯that“ÞUNDO_DELETE“Ýmeans“to“insert“some“text,‘¤:and“ÞUNDO_INSERT“Ýmeans“to“deleteŽ¡‘Gsome–é°text.‘žöThat“is,›nthe“undo“coMÞde“tells“undo“what“to“undo,˜not“ho²!w“to“undo“it.‘žöÞUNDO_BEGINŽ¡‘GÝand–¦fÞUNDO_END“Ýare“tags“added“b²!y“Þrl_begin_undo_group“()“Ýand“Þrl_end_undo_group“()Ý.Ž©¤’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íbb"egin‘Óõ‰ˆŠ#ØŽ“undo‘Óõ‰ˆŠ#ØŽ“group‘yšâ()Ž¡‘.ùœÝBegins–o²sa²!ving“undo“information“in“a“group“construct.‘9ÀThe“undo“informationŽ¡‘.ùœusually–comes“from“calls“to“Þrl_insert_text›¦f()“Ýand“Þrl_delete_text˜()Ý,‘¸butŽ¡‘.ùœcould–¦fbMÞe“the“result“of“calls“to“Þrl_add_undo“()Ý.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íend‘Óõ‰ˆŠ#ØŽ“undo‘Óõ‰ˆŠ#ØŽ“group‘yšâ()Ž¡‘.ùœÝCloses–ƒthe“curren²!t“undo“group“started“with“Þrl_begin_undo_group‘¦f()Ý.‘14ThereŽ¡‘.ùœshould–ºbMÞe“one“call“to“Þrl_end_undo_group‘¦f()“Ýfor“eac²!h“call“to“Þrl_begin_undo_Ž¡‘.ùœgroup‘¦f()Ý.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íadd‘Óõ‰ˆŠ#ØŽ“undo‘yšâ(Þenum–¦fundo_code“what,“int“start,“int“end,Ž¡‘DGchar‘¦f*textâ)Ž¡‘.ùœÝRemem•²!bMÞer›ç°ho“w˜to˜undo˜an˜ev“en“t˜(according˜to˜áwhat=Ý).‘¡ºThe˜a ected˜text˜runsŽ¡‘.ùœfrom–¦fástart‘ãfÝto“áendÝ,“and“encompasses“átextÝ.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çfree‘Óõ‰ˆŠ#ØŽ–÷Íundo‘Óõ‰ˆŠ#ØŽ“list‘yšâ()Ž¡‘.ùœÝF‘ÿeree–¦fthe“existing“undo“list.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ído‘Óõ‰ˆŠ#ØŽ“undo‘yšâ()Ž¡‘.ùœÝUndo–Áûthe“ rst“thing“on“the“undo“list.‘0Returns“Þ0“Ýif“there“w²!as“nothing“to“undo,Ž¡‘.ùœnon-zero–¦fif“something“w²!as“undone.ަ‘!GFinally‘ÿe,›Á#if–»Êy²!ou“neither“insert“nor“delete“text,˜but“directly“moMÞdify“the“existing“text“(e.g.,Ž¡‘Gc²!hange–jÕits“case),››ñcall“Þrl_modifying‘¦f()“Ýonce,˜just“bšMÞefore“y²!ou“mo˜dify“the“text.‘++Y‘ÿeou“m²!ustŽ¡‘Gsupply–¦fthe“indices“of“the“text“range“that“y²!ou“are“going“to“moMÞdify‘ÿe.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷Ímob"difying‘yšâ(Þint–¦fstart,“int“endâ)Ž¡‘.ùœÝT‘ÿeell–ØmReadline“to“sa•²!v“e–Ømthe“text“bMÞet•²!w“een–Ømástart‘mÝand“áend‘F¿Ýas“a“single“undo“unit.‘sñItŽ¡‘.ùœis–¦fassumed“that“yš²!ou“will“subsequen˜tly“moMÞdify“that“text.ŽŽŸŒ‹$’Ÿò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—27ŽŽŽ ƒ3Ú ý¨ðБGëQ2.4.6‘d(Redispla–áyŽŽŸ"’sÝF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷ÍredisplaÞy‘yšâ()ޤ 33‘.ùœÝChange–‡what's“displa•²!y“ed–‡on“the“screen“to“re ect“the“currenš²!t“con˜ten˜ts“of“Þrl_Ž¡‘.ùœline_bufferÝ.Ž©"’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íforced‘Óõ‰ˆŠ#ØŽ“upb"date‘Óõ‰ˆŠ#ØŽ“displaÞy‘yšâ()Ž¡‘.ùœÝF‘ÿeorce– Uthe“line“to“bšMÞe“up˜dated“and“redispla•²!y“ed,‘#Qwhether– ! Uor“not“Readline“thinksŽ¡‘.ùœthe–¦fscreen“displa²!y“is“correct.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íon‘Óõ‰ˆŠ#ØŽ“new‘Óõ‰ˆŠ#ØŽ“line‘yšâ()Ž¡‘.ùœÝT‘ÿeell–¾ the“upMÞdate“routines“that“wš²!e“ha˜v˜e“mo˜v˜ed“on˜to“a“new“(empt˜y)“line,‘ÃñusuallyŽ¡‘.ùœafter–¦fouputting“a“newline.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íreset‘Óõ‰ˆŠ#ØŽ“line‘Óõ‰ˆŠ#ØŽ“state‘yšâ()Ž¡‘.ùœÝReset–äÒthe“displaš²!y“state“to“a“clean“state“and“redispla˜y“the“curren˜t“line“startingŽ¡‘.ùœon–¦fa“new“line.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷Ímessage‘yšâ(Þva_alistâ)Ž¡‘.ùœÝThe–ò“argumenš²!ts“are“a“string“as“w˜ould“bMÞe“supplied“to“ÞprintfÝ.‘ÂdThe“resultingŽ¡‘.ùœstring–C3is“displa•²!y“ed–C3in“the“áecš²!ho“areaÝ.‘ ´EThe“ec˜ho“area“is“also“used“to“displa˜yŽ¡‘.ùœn•²!umeric›¦fargumen“ts˜and˜searc“h˜strings.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íclear‘Óõ‰ˆŠ#ØŽ“message‘yšâ()Ž¡‘.ùœÝClear–¦fthe“message“in“the“ec²!ho“area.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ›÷Ísa•Þv“e‘Óõ‰ˆŠ#ØŽ˜prompt‘yšâ()Ž¡‘.ùœÝSa•²!v“e–º the“loMÞcal“Readline“prompt“displaš²!y“state“in“preparation“for“displa˜ying“aŽ¡‘.ùœnew–¦fmessage“in“the“message“area“with“Þrl_messageÝ.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Írestore‘Óõ‰ˆŠ#ØŽ“prompt‘yšâ()Ž¡‘.ùœÝRestore–õ´the“loMÞcal“Readline“prompt“displaš²!y“state“sa˜v˜ed“b˜y“the“most“recen˜t“callŽ¡‘.ùœto‘¦fÞrl_save_promptÝ.ŽŸêï‘GëQ2.4.7‘d(Moidifying‘íMT‘þÄ£extŽŽŸ"’sÝF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íinsert‘Óõ‰ˆŠ#ØŽ“text‘yšâ(Þchar‘¦f*textâ)Ž¡‘.ùœÝInsert–¦fátext‘ãfÝinš²!to“the“line“at“the“curren˜t“cursor“pMÞosition.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ídelete‘Óõ‰ˆŠ#ØŽ“text‘yšâ(Þint–¦fstart,“int“endâ)Ž¡‘.ùœÝDelete–¦fthe“text“bMÞet•²!w“een–¦fástart‘ãfÝand“áend‘¸Ýin“the“curren²!t“line.ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcopÞy‘Óõ‰ˆŠ#ØŽ“text‘yšâ(Þint–¦fstart,“int“endâ)Ž¡‘.ùœÝReturn–¦fa“copš²!y“of“the“text“bMÞet˜w˜een“ástart‘ãfÝand“áend‘¸Ýin“the“curren˜t“line.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íkill‘Óõ‰ˆŠ#ØŽ“text‘yšâ(Þint–¦fstart,“int“endâ)Ž¡‘.ùœÝCopš²!y–vSthe“text“bMÞet˜w˜een“ástart‘³SÝand“áend‘ä¥Ýin“the“curren˜t“line“to“the“kill“ring,‘ªNap-Ž¡‘.ùœpšMÞending–FLor“prep˜ending“to“the“last“kill“if“the“last“command“w²!as“a“kill“command.Ž¡‘.ùœThe–4¡text“is“deleted.‘ˆIf“ástart‘q¡Ýis“less“than“áendÝ,›X/the“text“is“appMÞended,˜otherwiseŽ¡‘.ùœprepMÞended.‘ÝÝIf–¦fthe“last“command“w²!as“not“a“kill,“a“new“kill“ring“slot“is“used.ŽŽŸŒ‹1Ÿò‘GÝ28’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGëQ2.4.8‘d(Utilit–áy‘íMF‘þÄ£unctionsŽŽŸ0o’sÝF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íread‘Óõ‰ˆŠ#ØŽ“kÞey‘yšâ()ޤ 33‘.ùœÝReturn–Dšthe“next“cš²!haracter“a˜v‘ÿdDailable.‘½DThis“handles“input“inserted“in˜to“the“inputŽ¡‘.ùœstream–r(via“ápMÞending“input‘¯(Ý(see“Section“2.3“[Readline“V‘ÿeariables],‘¥page“21)“andŽ¡‘.ùœÞrl_stuff_char–¦f()Ý,“macros,“and“cš²!haracters“read“from“the“k˜eybMÞoard.Ž©0o’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷Ígetc‘yšâ(ÞFILE‘¦f*â)Ž¡‘.ùœÝReturn–¦fthe“next“cš²!haracter“a˜v‘ÿdDailable“from“the“k˜eybMÞoard.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ístu ‘Óõ‰ˆŠ#ØŽ“cÞhar‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝInsert–5gác‘ßkÝin²!to“the“Readline“input“stream.‘ ŠáIt“will“bšMÞe“Þ"ÝreadÞ"“Ýb˜efore“ReadlineŽ¡‘.ùœattempts–¦fto“read“c²!haracters“from“the“terminal“with“Þrl_read_key“()Ý.ަ’sF‘ÿeunctionŽŽ‘Gèrl_extend_line_buffer‘™˜ç(inÞt‘yšÞlenâ)Ž¡‘.ùœÝEnsure–6that“Þrl_line_buffer“Ýhas“enough“space“to“hold“álen“Ýc²!haracters,‘LîpMÞossiblyŽ¡‘.ùœrealloMÞcating–¦fit“if“necessary‘ÿe.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷Íinitialize‘yšâ()Ž¡‘.ùœÝInitialize–¦for“re-initialize“Readline's“in²!ternal“state.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íreset‘Óõ‰ˆŠ#ØŽ“terminal‘yšâ(Þchar‘¦f*terminal_nameâ)Ž¡‘.ùœÝReinitialize–CÜReadline's“idea“of“the“terminal“settings“using“áterminal‘¨/‰x³HøŽ‘ñ'name‘àãÝas“theŽ¡‘.ùœterminal–¦ft²!ypMÞe“(e.g.,“Þvt100Ý).ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çalphabb"etic‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝReturn–¦f1“if“ác‘PjÝis“an“alphabMÞetic“c²!haracter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çnÞumeric‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝReturn–¦f1“if“ác‘PjÝis“a“nš²!umeric“c˜haracter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çding‘yšâ()Ž¡‘.ùœÝRing–¦fthe“terminal“bšMÞell,“ob˜eying“the“setting“of“Þbell-styleÝ.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍdisplašÞy‘Óõ‰ˆŠ#ØŽ“matc˜h‘Óõ‰ˆŠ#ØŽ“list‘yšâ(Þchar–¦f**matches,“int“len,“intŽ¡‘DGmaxâ)Ž¡‘.ùœÝA‘jùcon•²!v“enience–k+function“for“displa²!ying“a“list“of“strings“in“columnar“format“onŽ¡‘.ùœReadline's–‘output“stream.‘¯–Þmatches“Ýis“the“list“of“strings,›7Uin“argv“format,˜suc²!h“asŽ¡‘.ùœa–bõlist“of“completion“matcš²!hes.‘ÇbÞlen“Ýis“the“n˜um˜bMÞer“of“strings“in“ÞmatchesÝ,‘prand“ÞmaxŽ¡‘.ùœÝis–Kthe“length“of“the“longest“string“in“ÞmatchesÝ.‘ËçThis“function“uses“the“settingŽ¡‘.ùœof–VÝÞprint-completions-horizontally“Ýto“select“hoš²!w“the“matc˜hes“are“displa˜y˜edŽ¡‘.ùœ(see–¦fSection“1.3.1“[Readline“Init“File“Syn²!tax],“page“4).ަ‘!GThe–¦ffolloš²!wing“are“implemen˜ted“as“macros,“de ned“in“Þchartypes.hÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çuppb"ercase‘Óõ‰ˆŠ#ØŽ‘÷Íp‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝReturn–¦f1“if“ác‘PjÝis“an“uppšMÞercase“alphab˜etic“c²!haracter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çlo•Þw“ercase‘Óõ‰ˆŠ#ØŽ‘÷Íp‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝReturn–¦f1“if“ác‘PjÝis“a“lo•²!w“ercase–¦falphabMÞetic“c²!haracter.ŽŽŸŒ‹>HŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—29ŽŽŽ ƒ3Ú ý¨ðÐ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çdigit‘Óõ‰ˆŠ#ØŽ‘÷Íp‘yšâ(Þint‘¦fcâ)ޤ 33‘.ùœÝReturn–¦f1“if“ác‘PjÝis“a“nš²!umeric“c˜haracter.Ž©£Ò’sF‘ÿeunctionŽŽ‘Gèint‘™˜çto‘Óõ‰ˆŠ#ØŽ‘÷Íuppb"er‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝIf–ò«ác‘œ¯Ýis“a“lo•²!w“ercase–ò«alphabšMÞetic“c²!haracter,‘E¼return“the“corresp˜onding“upp˜ercaseŽ¡‘.ùœc²!haracter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çto‘Óõ‰ˆŠ#ØŽ‘÷Ílo•Þw“er‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝIf–Z¼ác‘ÀÝis“an“uppšMÞercase“alphab˜etic“c²!haracter,‘‡Ñreturn“the“corresp˜onding“lo•²!w“ercaseŽ¡‘.ùœc²!haracter.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çdigit‘Óõ‰ˆŠ#ØŽ‘÷Ív‘ÿ;¼alue‘yšâ(Þint‘¦fcâ)Ž¡‘.ùœÝIf–¦fác‘PjÝis“a“n•²!um“bMÞer,–¦freturn“the“v‘ÿdDalue“it“represen²!ts.ŽŸp ‘GëQ2.4.9‘d(Alternate‘íMIn–áterfaceŽŽŸh‘!GÝAn–_Âalternate“inš²!terface“is“a˜v‘ÿdDailable“to“plain“Þreadline()Ý.‘ ! ñSome“applications“need“toŽ¡‘Gin•²!terlea“v“e›|™k“eybMÞoard˜I/O‘|Žwith˜ le,–„õdevice,“or˜windo•²!w˜system˜I/O,˜t“ypically˜b“y˜using˜a˜mainŽ¡‘GlošMÞop–Seto“Þselect()“Ýon“v‘ÿdDarious“ le“descriptors.‘Â2T‘ÿeo“accomo˜date“this“need,‘cÿreadline“can“also“b˜eŽ¡‘Gin•²!v“ok“ed–¾=as“a“`callbacš²!k'“function“from“an“ev˜en˜t“loMÞop.‘%cThere“are“functions“a˜v‘ÿdDailable“to“mak˜eŽ¡‘Gthis‘¦feasy‘ÿe.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcallbacÞk‘Óõ‰ˆŠ#ØŽ“handler‘Óõ‰ˆŠ#ØŽ“install‘yšâ(Þchar–¦f*prompt,“VfunctionŽ¡‘DG*lhandlerâ)Ž¡‘.ùœÝSet–îiup“the“terminal“for“readline“I/O‘îVand“displa²!y“the“initial“expanded“v‘ÿdDalue“ofŽ¡‘.ùœápromptÝ.‘hSa•²!v“e–?the“v‘ÿdDalue“of“álhandler‘×hÝto“use“as“a“callbac²!k“when“a“complete“lineŽ¡‘.ùœof–¦finput“has“bMÞeen“en²!tered.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcallbacšÞk‘Óõ‰ˆŠ#ØŽ“read‘Óõ‰ˆŠ#ØŽ“c˜har‘yšâ()Ž¡‘.ùœÝWhenevš²!er–4'an“application“determines“that“k˜eybMÞoard“input“is“a˜v‘ÿdDailable,‘Kit“shouldŽ¡‘.ùœcall–„ÝÞrl_callback_read_char()Ý,‘¼zwhicš²!h“will“read“the“next“c˜haracter“from“theŽ¡‘.ùœcurrenš²!t–øoinput“source.‘ Ó÷If“that“c˜haracter“completes“the“line,‘ŒðÞrl_callback_Ž¡‘.ùœread_char–ÈçÝwill“in•²!v“ok“e–Èçthe“álhandler‘’Ýfunction“sa•²!v“ed›Èçb“y˜Þrl_callback_handler_Ž¡‘.ùœinstall–jÝto“proMÞcess“the“line.‘<éÞEOF“Ýis“indicated“b²!y“calling“álhandler‘ä“Ýwith“a“ÞNULLŽ¡‘.ùœÝline.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcallbacšÞk‘Óõ‰ˆŠ#ØŽ“handler‘Óõ‰ˆŠ#ØŽ“remo˜v˜e‘yšâ()Ž¡‘.ùœÝRestore–’Uthe“terminal“to“its“initial“state“and“remo•²!v“e–’Uthe“line“handler.‘×-This“ma²!yŽ¡‘.ùœbMÞe–¦fcalled“from“within“a“callbacš²!k“as“w˜ell“as“indepMÞenden˜tly‘ÿe.ŽŸp ‘GëQ2.4.10‘d(An‘íMExampleŽŽŸh‘!GÝHere–¯½is“a“function“whicš²!h“c˜hanges“lo˜w˜ercase“c˜haracters“to“their“uppMÞercase“equiv‘ÿdDalen˜ts,Ž¡‘Gand–ž ! uppMÞercase“cš²!haracters“to“lo˜w˜ercase.‘ÄÈIf“this“function“w˜as“bMÞound“to“`ÞM-cÝ',‘Ûòthen“t˜ypingŽ¡‘G`ÞM-cÝ'–(Äwš²!ould“c˜hange“the“case“of“the“c˜haracter“under“pMÞoin˜t.‘³ýT˜yping“`ÞM-1–¦f0“M-cÝ'–(Äw˜ould“c˜hangeŽ¡‘Gthe–¦fcase“of“the“folloš²!wing“10“c˜haracters,“lea˜ving“the“cursor“on“the“last“c˜haracter“c˜hanged.ŽŸP5‘.ùœÞ/*–¿ªInvert“the“case“of“the“COUNT“following“characters.“*/ޤ €‘.ùœintŽ¡‘.ùœinvert_case_line–¿ª(count,“key)ŽŽŸŒ‹J|Ÿò‘GÝ30’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБK·îÞint–¿ªcount,“key;ޤ €‘.ùœ{Ž¡‘:xðregister–¿ªint“start,“end,“i;ޤ‘:xðstart–¿ª=“rl_point;Ž¡‘:xðif–¿ª(rl_point“>=“rl_end)Ž© €‘EøDreturn‘¿ª(0);Ž¡‘:xðif–¿ª(count“<“0)ަ‘EøD{ަ‘Qw˜direction–¿ª=“-1;ަ‘Qw˜count–¿ª=“-count;ަ‘EøD}ަ‘:xðelseަ‘EøDdirection–¿ª=“1;Ž¡‘:xð/*–¿ªFind“the“end“of“the“range“to“modify.“*/ަ‘:xðend–¿ª=“start“+“(count“*“direction);Ž¡‘:xð/*–¿ªForce“it“to“be“within“range.“*/ަ‘:xðif–¿ª(end“>“rl_end)ަ‘EøDend–¿ª=“rl_end;ަ‘:xðelse–¿ªif“(end“<“0)ަ‘EøDend–¿ª=“0;Ž¡‘:xðif–¿ª(start“==“end)ަ‘EøDreturn‘¿ª(0);Ž¡‘:xðif–¿ª(start“>“end)ަ‘EøD{ަ‘Qw˜int–¿ªtemp“=“start;ަ‘Qw˜start–¿ª=“end;ަ‘Qw˜end–¿ª=“temp;ަ‘EøD}Ž¡‘:xð/*–¿ªTell“readline“that“we“are“modifying“the“line,“so“it“will“saveަ‘K·îthe–¿ªundo“information.“*/ަ‘:xðrl_modifying–¿ª(start,“end);Ž¡‘:xðfor–¿ª(i“=“start;“i“!=“end;“i++)ަ‘EøD{ަ‘Qw˜if–¿ª(uppercase_p“(rl_line_buffer[i]))ަ‘\öìrl_line_buffer[i]–¿ª=“to_lower“(rl_line_buffer[i]);ަ‘Qw˜else–¿ªif“(lowercase_p“(rl_line_buffer[i]))ަ‘\öìrl_line_buffer[i]–¿ª=“to_upper“(rl_line_buffer[i]);ަ‘EøD}ަ‘:xð/*–¿ªMove“point“to“on“top“of“the“last“character“changed.“*/ŽŽŸŒ‹W¶Ÿò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—31ŽŽŽ ƒ3Ú ý¨ðБ:xðÞrl_point–¿ª=“(direction“==“1)“?“end“-“1“:“start;ޤ €‘:xðreturn‘¿ª(0);Ž¡‘.ùœ}ŽŸ>E‘GëH2.5‘™Readline–f@Signal“HandlingŽŽŸJ‘!GÝSignals–žare“asyncš²!hronous“ev˜en˜ts“sen˜t“to“a“proMÞcess“b˜y“the“Unix“k˜ernel,‘Xlsometimes“onޤ 33‘GbšMÞehalf–Æ_of“another“pro˜cess.‘=ÈThey“are“inš²!tended“to“indicate“exceptional“ev˜en˜ts,‘]lik˜e“a“userŽ¡‘Gpressing–šˆthe“inš²!terrupt“k˜ey“on“his“terminal,‘œèor“a“net˜w˜ork“connection“bMÞeing“brok˜en.‘ÙèThere“isŽ¡‘Ga–*Çclass“of“signals“that“can“bšMÞe“sen²!t“to“the“pro˜cess“currenš²!tly“reading“input“from“the“k˜eybMÞoard.Ž¡‘GSince–3ÙReadline“c²!hanges“the“terminal“attributes“when“it“is“called,‘JÂit“needs“to“pšMÞerform“sp˜ecialŽ¡‘GproMÞcessing–^when“a“signal“is“receivš²!ed“to“restore“the“terminal“to“a“sane“state,‘h[or“pro˜videŽ¡‘Gapplication–¦fwriters“with“functions“to“do“so“man²!ually‘ÿe.Ž©J‘!GReadline–Øúconš²!tains“an“in˜ternal“signal“handler“that“is“installed“for“a“n˜um˜bMÞer“of“signalsŽ¡‘G(ÞSIGINTÝ,–h]ÞSIGQUITÝ,“ÞSIGTERMÝ,“ÞSIGALRMÝ,“ÞSIGTSTPÝ,“ÞSIGTTINÝ,“and–_ÞSIGTTOUÝ).‘ ÈWhen“one“ofŽ¡‘Gthese–Ï_signals“is“receiv²!ed,‘Ùžthe“signal“handler“will“reset“the“terminal“attributes“to“those“thatŽ¡‘Gwš²!ere–Mäin“e ect“bMÞefore“Þreadline‘¦f()“Ýw˜as“called,‘·Ãreset“the“signal“handling“to“what“it“w˜asŽ¡‘GbMÞefore–çÞreadline‘¦f()“Ýw²!as“called,‘7:and“resend“the“signal“to“the“calling“application.‘ŸÚIf“andŽ¡‘Gwhen–lµthe“calling“application's“signal“handler“returns,‘x?Readline“will“reinitialize“the“terminalŽ¡‘Gand› Ucon•²!tin“ue˜to˜accept˜input.‘ ©When˜a˜ÞSIGINT˜Ýis˜receiv“ed,‘eÐthe˜Readline˜signal˜handlerŽ¡‘GpMÞerforms–Tsome“additional“w•²!ork,‘€whic“h–Twill“cause“anš²!y“partially-en˜tered“line“to“bšMÞe“ab˜ortedŽ¡‘G(see–¦fthe“description“of“Þrl_free_line_state“()Ý).ަ‘!GThere––>is“an“additional“Readline“signal“handler,›™yfor“ÞSIGWINCHÝ,˜whicš²!h“the“k˜ernel“sends“toŽ¡‘Ga–€mproMÞcess“whenevš²!er“the“terminal's“size“c˜hanges“(for“example,‘¶îif“a“user“resizes“an“ÞxtermÝ).Ž¡‘GThe–ÛReadline“ÞSIGWINCH“Ýhandler“upMÞdates“Readline's“in²!ternal“screen“size“state,‘zwand“thenŽ¡‘Gcalls–÷an²!y“ÞSIGWINCH“Ýsignal“handler“the“calling“application“has“installed.‘Readline“calls“theŽ¡‘Gapplication's–;ÞSIGWINCH“Ýsignal“handler“without“resetting“the“terminal“to“its“original“state.Ž¡‘GIf–Ö«the“application's“signal“handler“došMÞes“more“than“up˜date“its“idea“of“the“terminal“size“andŽ¡‘Greturn–“ (for“example,‘–êa“Þlongjmp“Ýbac²!k“to“a“main“prošMÞcessing“lo˜op),‘–êit“ám²!ust‘Ð Ýcall“Þrl_cleanup_Ž¡‘Gafter_signal–¦f()“Ý(describšMÞed“b˜elo²!w),“to“restore“the“terminal“state.ަ‘!GReadline–o#proš²!vides“t˜w˜o“v‘ÿdDariables“that“allo˜w“application“writers“to“con˜trol“whether“or“notŽ¡‘Git–û.will“catcš²!h“certain“signals“and“act“on“them“when“they“are“receiv˜ed.‘Ü6It“is“impMÞortan˜t“thatŽ¡‘Gapplications– c²!hange“the“v›ÿdDalues“of“these“v˜ariables“only“when“calling“Þreadline‘¦f()Ý,‘>wnot“in“aŽ¡‘Gsignal–¦fhandler,“so“Readline's“in²!ternal“signal“state“is“not“corrupted.ŽŸqx’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcatcÞh‘Óõ‰ˆŠ#ØŽ“signalsŽ¡‘.ùœÝIf–Üthis“v‘ÿdDariable“is“non-zero,‘j9Readline“will“install“signal“handlers“for“ÞSIGINTÝ,Ž¡‘.ùœÞSIGQUITÝ,–¦fÞSIGTERMÝ,“ÞSIGALRMÝ,“ÞSIGTSTPÝ,“ÞSIGTTINÝ,“and“ÞSIGTTOUÝ.ަ‘.ùœThe–¦fdefault“v‘ÿdDalue“of“Þrl_catch_signals“Ýis“1.ŽŸqx’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcatcšÞh‘Óõ‰ˆŠ#ØŽ“sigwinc˜hŽ¡‘.ùœÝIf–Qthis“v‘ÿdDariable“is“non-zero,‘Ÿ"Readline“will“install“a“signal“handler“for“ÞSIGWINCHÝ.ަ‘.ùœThe–¦fdefault“v‘ÿdDalue“of“Þrl_catch_sigwinch“Ýis“1.ŽŸqx‘!GIf–¸0an“application“doMÞes“not“wish“to“ha•²!v“e–¸0Readline“catcš²!h“an˜y“signals,‘¼¢or“to“handle“signalsŽ¡‘Gother–¤Ãthan“those“Readline“catc²!hes“(ÞSIGHUPÝ,›äZfor“example),˜Readline“proš²!vides“con˜v˜enienceŽ¡‘Gfunctions–¦fto“do“the“necessary“terminal“and“inš²!ternal“state“clean˜up“upMÞon“receipt“of“a“signal.ŽŽŸŒ‹ \«Ÿò‘GÝ32’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðÐ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcleanÞup‘Óõ‰ˆŠ#ØŽ“after‘Óõ‰ˆŠ#ØŽ“signal‘yšâ(Þvoidâ)ޤ 33‘.ùœÝThis–ÔJfunction“will“reset“the“state“of“the“terminal“to“what“it“w²!as“bMÞefore“ÞreadlineŽ¡‘.ùœ()–¦ÌÝwš²!as“called,‘Ùëand“remo˜v˜e“the“Readline“signal“handlers“for“all“signals,‘ÙëdepMÞendingŽ¡‘.ùœon–¦fthe“v‘ÿdDalues“of“Þrl_catch_signals“Ýand“Þrl_catch_sigwinchÝ.Ž©…’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ífree‘Óõ‰ˆŠ#ØŽ“line‘Óõ‰ˆŠ#ØŽ“state‘yšâ(Þvoidâ)Ž¡‘.ùœÝThis–Ùwwill“free“anš²!y“partial“state“assoMÞciated“with“the“curren˜t“input“line“(undoŽ¡‘.ùœinformation,‘œ×anš²!y–kpartial“history“en˜try‘ÿe,‘œ×an˜y“partially-en˜tered“k˜eybMÞoard“macro,Ž¡‘.ùœand–9Kanš²!y“partially-en˜tered“n˜umeric“argumen˜t).‘¹This“should“bšMÞe“called“b˜efore“Þrl_Ž¡‘.ùœcleanup_after_signal‘¦f()Ý.‘™gThe–äéReadline“signal“handler“for“ÞSIGINT“Ýcalls“thisŽ¡‘.ùœto–¦fabMÞort“the“curren²!t“input“line.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íreset‘Óõ‰ˆŠ#ØŽ“after‘Óõ‰ˆŠ#ØŽ“signal‘yšâ(Þvoidâ)Ž¡‘.ùœÝThis–­Âwill“reinitialize“the“terminal“and“reinstall“an²!y“Readline“signal“handlers,Ž¡‘.ùœdepMÞending–¦fon“the“v‘ÿdDalues“of“Þrl_catch_signals“Ýand“Þrl_catch_sigwinchÝ.ަ‘!GIf–»µan“application“doMÞes“not“wish“Readline“to“catcš²!h“ÞSIGWINCHÝ,‘ it“ma˜y“call“Þrl_resize_Ž¡‘Gterminal‘¦f()–ôÌÝto“force“Readline“to“upMÞdate“its“idea“of“the“terminal“size“when“a“ÞSIGWINCH“ÝisŽ¡‘Greceiv²!ed.ަ’sF‘ÿeunctionŽŽ‘Gèvoid‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íresize‘Óõ‰ˆŠ#ØŽ“terminal‘yšâ(Þvoidâ)Ž¡‘.ùœÝUpMÞdate–¦fReadline's“in²!ternal“screen“size.ަ‘!GThe–¦ffolloš²!wing“functions“install“and“remo˜v˜e“Readline's“signal“handlers.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íset‘Óõ‰ˆŠ#ØŽ“signals‘yšâ(Þvoidâ)Ž¡‘.ùœÝInstall–[âReadline's“signal“handler“for“ÞSIGINTÝ,– @ÞSIGQUITÝ,“ÞSIGTERMÝ,“ÞSIGALRMÝ,Ž¡‘.ùœÞSIGTSTPÝ,–+ÞSIGTTINÝ,“ÞSIGTTOUÝ,“and›¾7ÞSIGWINCHÝ,“depMÞending˜on˜the˜v‘ÿdDalues˜of˜Þrl_Ž¡‘.ùœcatch_signals–¦fÝand“Þrl_catch_sigwinchÝ.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íclear‘Óõ‰ˆŠ#ØŽ“signals‘yšâ(Þvoidâ)Ž¡‘.ùœÝRemo•²!v“e–¦fall“of“the“Readline“signal“handlers“installed“b²!y“Þrl_set_signals“()Ý.ŽŸNR‘GëH2.6‘™Custom‘f@CompletersŽŽ©÷ù‘!GÝTš²!ypically‘ÿe,‘ÿa–ýGprogram“that“reads“commands“from“the“user“has“a“w˜a˜y“of“disam˜biguatingŽ¡‘Gcommands–B and“data.‘± If“yš²!our“program“is“one“of“these,‘ithen“it“can“pro˜vide“completion“forŽ¡‘Gcommands,–ˆÃdata,“or–[bšMÞoth.‘Ñ„The“follo²!wing“sections“describ˜e“hoš²!w“y˜our“program“and“ReadlineŽ¡‘Gco•MÞop“erate–¦fto“pro²!vide“this“service.ŽŸNR‘GëQ2.6.1‘d(Ho–áw–íMCompleting“W‘þÄ£orksŽŽ¦‘!GÝIn–úorder“to“complete“some“text,‘;ßthe“full“list“of“pšMÞossible“completions“m²!ust“b˜e“a²!v‘ÿdDailable.Ž¡‘GThat–is,‘3&it“is“not“pMÞossible“to“accurately“expand“a“partial“wš²!ord“without“kno˜wing“all“of“theŽ¡‘GpMÞossible–3—wš²!ords“whic˜h“mak˜e“sense“in“that“con˜text.‘…pThe“Readline“library“pro˜vides“the“userŽ¡‘Ginš²!terface–ÿ!to“completion,‘Pand“t˜w˜o“of“the“most“common“completion“functions:‘S lename“andŽ¡‘Gusername.‘„F‘ÿeor–˜Úcompleting“other“tš²!ypMÞes“of“text,‘ÎÂy˜ou“m˜ust“write“y˜our“o˜wn“completion“function.Ž¡‘GThis–¦fsection“describMÞes“exactly“what“sucš²!h“functions“m˜ust“do,“and“pro˜vides“an“example.ŽŸ÷ù‘!GThere–¦fare“three“ma‘›»jor“functions“used“to“pMÞerform“completion:ŽŽŸŒ‹!lÚŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—33ŽŽŽ ƒ3Ú ý¨ðБ-1.Ž‘'¿«The–èbuser-in²!terface“function“Þrl_complete‘¦f()Ý.‘£ÒThis“function“is“called“with“the“sameޤ 33‘'¿«argumenš²!ts– &as“other“Readline“functions“in˜tended“for“in˜teractiv˜e“use:‘«]ácoun˜t‘J&Ýand“áin˜v˜ok-Ž¡‘'¿«ing‘¨/‰x³HøŽ‘ñ'kš²!eyÝ.‘HKIt–Éàisolates“the“w˜ord“to“bMÞe“completed“and“calls“Þcompletion_matches‘¦f()“ÝtoŽ¡‘'¿«generate–†¥a“list“of“pšMÞossible“completions.‘~™It“then“either“lists“the“p˜ossible“completions,Ž¡‘'¿«inserts–¯Gthe“pšMÞossible“completions,‘ñor“actually“p˜erforms“the“completion,‘ñdep˜ending“onŽ¡‘'¿«whic•²!h›¦fbMÞeha“vior˜is˜desired.Ž©kM‘-2.Ž‘'¿«The–~Øinš²!ternal“function“Þcompletion_matches‘¦f()“Ýuses“y˜our“ágenerator‘HÝfunction“to“generateŽ¡‘'¿«the–Ü¢list“of“pMÞossible“matcš²!hes,‘ê1and“then“returns“the“arra˜y“of“these“matc˜hes.‘€‘Y‘ÿeou“shouldŽ¡‘'¿«place–¦fthe“address“of“y²!our“generator“function“in“Þrl_completion_entry_functionÝ.ަ‘-3.Ž‘'¿«The–q‰generator“function“is“called“repMÞeatedly“from“Þcompletion_matches‘¦f()Ý,‘¤QreturningŽ¡‘'¿«a–ñÒstring“eacš²!h“time.‘À The“argumen˜ts“to“the“generator“function“are“átext‘.ÒÝand“ástateÝ.‘À átextŽ¡‘'¿«Ýis–Ùâthe“partial“w²!ord“to“bMÞe“completed.‘xQástate‘véÝis“zero“the“ rst“time“the“function“is“called,Ž¡‘'¿«alloš²!wing–Šithe“generator“to“pMÞerform“an˜y“necessary“initialization,‘and“a“pMÞositiv˜e“non-zeroŽ¡‘'¿«inš²!teger–6–for“eac˜h“subsequen˜t“call.‘ŽmWhen“the“generator“function“returns“Þ(char‘¦f*)NULLŽ¡‘'¿«Ýthis–Ñ_signals“Þcompletion_matches‘¦f()“Ýthat“there“are“no“more“pMÞossibilities“left.‘^ÈUsuallyŽ¡‘'¿«the–§^generator“function“computes“the“list“of“pMÞossible“completions“when“ástate‘DeÝis“zero,Ž¡‘'¿«and–jreturns“them“one“at“a“time“on“subsequenš²!t“calls.‘«ßEac˜h“string“the“generator“functionŽ¡‘'¿«returns–Ô¨as“a“matcš²!h“m˜ust“bšMÞe“allo˜cated“with“Þmalloc()Ý;‘ëÉReadline“frees“the“strings“whenŽ¡‘'¿«it–¦fhas“ nished“with“them.Ž©›’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷Ícomplete‘yšâ(Þint–¦fignore,“int“invoking_keyâ)Ž¡‘.ùœÝComplete–¼žthe“w²!ord“at“or“bšMÞefore“p˜oinš²!t.‘ „Y‘ÿeou“ha˜v˜e“supplied“the“function“thatŽ¡‘.ùœdoMÞes–ƒœthe“initial“simple“matc²!hing“selection“algorithm“(see“Þcompletion_matchesŽ¡‘.ùœ()Ý).‘ÝÝThe–¦fdefault“is“to“do“ lename“completion.ަ’‰V‘ÿeariableŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“enÞtry‘Óõ‰ˆŠ#ØŽ“functionŽ¡‘.ùœÝThis–œÍis“a“pMÞoin²!ter“to“the“generator“function“for“Þcompletion_matches‘¦f()Ý.‘ÚªIf“theŽ¡‘.ùœv‘ÿdDalue–¸eof“Þrl_completion_entry_function“Ýis“Þ(Function‘¦f*)NULL“Ýthen“the“de-Ž¡‘.ùœfault–O lename“generator“function,–Ç Þfilename_completion_function‘¦f()Ý,“is‘Oused.ŽŸàg‘GëQ2.6.2‘d(Completion‘íMF‘þÄ£unctionsŽŽŸ£g‘!GÝHere–¦fis“the“complete“list“of“callable“completion“functions“presen²!t“in“Readline.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ícomplete‘Óõ‰ˆŠ#ØŽ“inÞternal‘yšâ(Þint‘¦fwhat_to_doâ)Ž¡‘.ùœÝComplete–l%the“w²!ord“at“or“bšMÞefore“p˜oinš²!t.‘/áwhat‘¨/‰x³HøŽ–ñ'to‘¨/‰x³HøŽ“do‘øõÝsa˜ys–l%what“to“do“with“theŽ¡‘.ùœcompletion.›µŠA‘˜·v‘ÿdDalue–˜õof“`Þ?Ý'“means“list“the“pMÞossible“completions.˜`ÞTABÝ'“meansŽ¡‘.ùœdo–bóstandard“completion.›…`Þ*Ý'“means“insert“all“of“the“pMÞossible“completions.˜`Þ!Ý'Ž¡‘.ùœmeans– to“displa²!y“all“of“the“pMÞossible“completions,›%jif“there“is“more“than“one,˜asŽ¡‘.ùœw²!ell–¦fas“pMÞerforming“partial“completion.ަ’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ‘÷Ícomplete‘yšâ(Þint–¦fignore,“int“invoking_keyâ)Ž¡‘.ùœÝComplete–¼žthe“w²!ord“at“or“bšMÞefore“p˜oinš²!t.‘ „Y‘ÿeou“ha˜v˜e“supplied“the“function“thatŽ¡‘.ùœdoMÞes–ƒœthe“initial“simple“matc²!hing“selection“algorithm“(see“Þcompletion_matchesŽ¡‘.ùœ()–½öÝand“Þrl_completion_entry_functionÝ).‘$The“default“is“to“do“ lename“com-Ž¡‘.ùœpletion.‘ÌøThis–s·calls“Þrl_complete_internal‘¦f()“Ýwith“an“argumen²!t“depMÞending“onŽ¡‘.ùœáin•²!v“oking‘¨/‰x³HøŽ‘ñ'k“eyÝ.ŽŽŸŒ‹"zêŸò‘GÝ34’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðÐ’sF‘ÿeunctionŽŽ‘Gèint‘Z çrl‘Óõ‰ˆŠ#ØŽ–÷Ípb"ossible‘Óõ‰ˆŠ#ØŽ“completions‘yšâ(Þint–¦fcount,“int“invoking_keyâ))ޤ 33‘.ùœÝList–Y the“pMÞossible“completions.›õËSee“description“of“Þrl_complete‘¦f()Ý.˜This“callsŽ¡‘.ùœÞrl_complete_internal–¦f()“Ýwith“an“argumen²!t“of“`Þ?Ý'.Ž©Ò=’sF‘ÿeunctionŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íinsert‘Óõ‰ˆŠ#ØŽ“completions‘yšâ(Þint–¦fcount,“int“invoking_keyâ))Ž¡‘.ùœÝInsert–Ëlthe“list“of“pMÞossible“completions“in²!to“the“line,‘T­deleting“the“partially-Ž¡‘.ùœcompleted–‘²w²!ord.›ÖöSee“description“of“Þrl_complete‘¦f()Ý.˜This“calls“Þrl_complete_Ž¡‘.ùœinternal–¦f()“Ýwith“an“argumen²!t“of“`Þ*Ý'.ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜**“çcompletion‘Óõ‰ˆŠ#ØŽ‘÷ÍmatcÞhes‘yšâ(Þchar–¦f*text,“CPFunctionŽ¡‘DG*entry_funcâ)Ž¡‘.ùœÝReturns–úPan“arraš²!y“of“Þ(char‘¦f*)“Ýwhic˜h“is“a“list“of“completions“for“átextÝ.‘¤If“there“areŽ¡‘.ùœno–ûcompletions,‘Ereturns“Þ(char‘¦f**)NULLÝ.‘ÛôThe“ rst“enš²!try“in“the“returned“arra˜yŽ¡‘.ùœis–©the“substitution“for“átextÝ.‘¯ôThe“remaining“en²!tries“are“the“pMÞossible“completions.Ž¡‘.ùœThe–¦farraš²!y“is“terminated“with“a“ÞNULL“ÝpMÞoin˜ter.ŽŸ‚¸‘.ùœáenš²!try‘¨/‰x³HøŽ‘ñ'func‘m¿Ýis–ûa“function“of“t˜w˜o“args,‘ñand“returns“a“Þ(char‘¦f*)Ý.‘’OThe“ rst“argumen˜tŽ¡‘.ùœis–<ÃátextÝ.‘º§The“second“is“a“state“argumen²!t;‘_úit“is“zero“on“the“ rst“call,‘Qäand“non-zeroŽ¡‘.ùœon–Vsubsequenš²!t“calls.‘Ã@áen˜try‘¨/‰x³HøŽ‘ñ'func‘“Ýreturns“a“ÞNULL“ÝpMÞoin˜ter“to“the“caller“when“thereŽ¡‘.ùœare–¦fno“more“matc²!hes.ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜*“ç lename‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“function‘yšâ(Þchar–¦f*text,“intŽ¡‘DGstateâ)Ž¡‘.ùœÝA‘§@generator–§‚function“for“ lename“completion“in“the“general“case.‘á1Note“thatŽ¡‘.ùœcompletion–±éin“Bash“is“a“little“di erenš²!t“bMÞecause“of“all“the“pathnames“that“m˜ustŽ¡‘.ùœbMÞe›ÿƒfollo•²!w“ed˜when˜loMÞoking˜up˜completions˜for˜a˜command.‘é3The˜Bash˜source˜isŽ¡‘.ùœa–¦fuseful“reference“for“writing“custom“completion“functions.ަ’sF‘ÿeunctionŽŽ‘Gèchar–™˜*“çusername‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“function‘yšâ(Þchar–¦f*text,“intŽ¡‘DGstateâ)Ž¡‘.ùœÝA‘= completion–=4generator“for“usernames.‘¢Fátext‘z4Ýcon²!tains“a“partial“username“pre-Ž¡‘.ùœceded–Ùqbš²!y“a“random“c˜haracter“(usually“`Þ~Ý').‘vÿAs“with“all“completion“generators,Ž¡‘.ùœástate‘CmÝis–¦fzero“on“the“ rst“call“and“non-zero“for“subsequen²!t“calls.ŽŸŸ ‘GëQ2.6.3‘d(Completion‘íMV‘þÄ£ariablesŽŽŸÒ=’‰ÝV‘ÿeariableŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“enÞtry‘Óõ‰ˆŠ#ØŽ“functionŽ¡‘.ùœÝA‘áKpMÞoin²!ter–áZto“the“generator“function“for“Þcompletion_matches‘¦f()Ý.‘ޏÞNULL“ÝmeansŽ¡‘.ùœto–¦fuse“Þfilename_entry_function“()Ý,“the“default“ lename“completer.ަ’‰V‘ÿeariableŽŽ‘GèCPPFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Íattempted‘Óõ‰ˆŠ#ØŽ“completion‘Óõ‰ˆŠ#ØŽ“functionŽ¡‘.ùœÝA‘í¥pMÞoinš²!ter–í¸to“an“alternativ˜e“function“to“create“matc˜hes.‘³ÒThe“function“is“calledŽ¡‘.ùœwith›œšátextÝ,–žástartÝ,“and˜áendÝ.‘Ú™ástart‘ÙšÝand˜áend‘ ìÝare˜indices˜in˜Þrl_line_buffer˜Ýsa²!yingŽ¡‘.ùœwhat–r–the“bMÞoundaries“of“átext‘¯–Ýare.‘ ! BmIf“this“function“exists“and“returns“ÞNULLÝ,Ž¡‘.ùœor–´zif“this“v›ÿdDariable“is“set“to“ÞNULLÝ,‘÷ÿthen“Þrl_complete‘¦f()“Ýwill“call“the“v˜alue“ofŽ¡‘.ùœÞrl_completion_entry_function–"6Ýto“generate“matcš²!hes,‘A*otherwise“the“arra˜y“ofŽ¡‘.ùœstrings–¦freturned“will“bMÞe“used.ŽŽŸŒ‹#‹Ÿò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—35ŽŽŽ ƒ3Ú ý¨ðÐ’‰V‘ÿeariableŽŽ‘GèCPFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Í lename‘Óõ‰ˆŠ#ØŽ“quoting‘Óõ‰ˆŠ#ØŽ“functionޤ 33‘.ùœÝA‘…$pšMÞoin²!ter–…]to“a“function“that“will“quote“a“ lename“in“an“application-“sp˜eci cŽ¡‘.ùœfashion.‘ésThis–ªCis“called“if“ lename“completion“is“bMÞeing“attempted“and“one“ofŽ¡‘.ùœthe– c²!haracters“in“Þrl_filename_quote_characters“ÝappMÞears“in“a“completed“ le-Ž¡‘.ùœname.‘zThe–^šfunction“is“called“with“átextÝ,›Œ§ámatc•²!h‘¨/‰x³HøŽ‘ñ't“yp•MÞeÝ,˜and‘^šáquote‘¨/‰x³HøŽ‘ñ'p“oin²!terÝ.‘zTheŽ¡‘.ùœátext‘HKÝis– Kthe“ lename“to“bšMÞe“quoted.‘ The“ámatc•²!h‘¨/‰x³HøŽ‘ñ't“yp˜e‘¨RÝis– Keither“ÞSINGLE_MATCHÝ,‘$…ifŽ¡‘.ùœthere–Nis“only“one“completion“matc²!h,‘wïor“ÞMULT_MATCHÝ.‘Ô¿Some“functions“use“thisŽ¡‘.ùœto–Jdecide“whether“or“not“to“insert“a“closing“quote“cš²!haracter.‘¿The“áquote‘¨/‰x³HøŽ‘ñ'pMÞoin˜terŽ¡‘.ùœÝis–¹Öa“pMÞoinš²!ter“to“an˜y“opMÞening“quote“c˜haracter“the“user“t˜ypMÞed.‘,Some“functionsŽ¡‘.ùœcš²!hoMÞose–¦fto“reset“this“c˜haracter.Ž©w4’‰V‘ÿeariableŽŽ‘GèCPFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Í lename‘Óõ‰ˆŠ#ØŽ“dequoting‘Óõ‰ˆŠ#ØŽ“functionŽ¡‘.ùœÝA‘>êpMÞoinš²!ter–?to“a“function“that“will“remo˜v˜e“application-spMÞeci c“quoting“c˜haractersŽ¡‘.ùœfrom–ca“ lename“bMÞefore“completion“is“attempted,‘|aso“those“c²!haracters“do“notŽ¡‘.ùœinš²!terfere–eKwith“matc˜hing“the“text“against“names“in“the“ lesystem.‘ŒIt“is“calledŽ¡‘.ùœwith–UwátextÝ,›:the“text“of“the“w²!ord“to“bMÞe“dequoted,˜and“áquote‘¨/‰x³HøŽ‘ñ'c•²!harÝ,˜whic“h–Uwis“theŽ¡‘.ùœquoting–cš²!haracter“that“delimits“the“ lename“(usually“`Þ'Ý'“or“`Þ"Ý').‘ê¹If“áquote‘¨/‰x³HøŽ‘ñ'c˜harŽ¡‘.ùœÝis–¦fzero,“the“ lename“wš²!as“not“in“an“em˜bMÞedded“string.ަ’‰V‘ÿeariableŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷ÍcÞhar‘Óõ‰ˆŠ#ØŽ“is‘Óõ‰ˆŠ#ØŽ“quoted‘Óõ‰ˆŠ#ØŽ“pŽ¡‘.ùœÝA‘Ë2pšMÞoin²!ter–Ë;to“a“function“to“call“that“determines“whether“or“not“a“sp˜eci c“c²!har-Ž¡‘.ùœacter–üin“the“line“bu er“is“quoted,‘6according“to“whatevš²!er“quoting“mec˜hanism“theŽ¡‘.ùœprogram–2+calling“readline“uses.‘·The“function“is“called“with“t•²!w“o‘2+argumen“ts:‘£ÀátextÝ,Ž¡‘.ùœthe–­¹text“of“the“line,›ßuand“áindexÝ,˜the“index“of“the“c²!haracter“in“the“line.‘ŠùIt“is“used“toŽ¡‘.ùœdecide–dBwhether“a“c²!haracter“found“in“Þrl_completer_word_break_charactersŽ¡‘.ùœÝshould–¦fbMÞe“used“to“break“w²!ords“for“the“completer.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“query‘Óõ‰ˆŠ#ØŽ“itemsŽ¡‘.ùœÝUp–ìŸto“this“manš²!y“items“will“bMÞe“displa˜y˜ed“in“respšMÞonse“to“a“p˜ossible-completionsŽ¡‘.ùœcall.‘…After–óthat,‘ Vwš²!e“ask“the“user“if“she“is“sure“she“w˜an˜ts“to“see“them“all.‘…TheŽ¡‘.ùœdefault–¦fv‘ÿdDalue“is“100.ަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Íbasic‘Óõ‰ˆŠ#ØŽ“wšÞord‘Óõ‰ˆŠ#ØŽ“break‘Óõ‰ˆŠ#ØŽ“c˜haractersŽ¡‘.ùœÝThe–-basic“list“of“cš²!haracters“that“signal“a“break“bMÞet˜w˜een“w˜ords“for“the“completerŽ¡‘.ùœroutine.‘ßåThe–§default“v›ÿdDalue“of“this“v˜ariable“is“the“cš²!haracters“whic˜h“break“w˜ordsŽ¡‘.ùœfor–¦fcompletion“in“Bash,“i.e.,“Þ"“\t\n\"\\'`@$><=;|&{("Ý.ަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Íbasic‘Óõ‰ˆŠ#ØŽ“quote‘Óõ‰ˆŠ#ØŽ“cÞharactersŽ¡‘.ùœÝList–¦fof“quote“cš²!haracters“whic˜h“can“cause“a“w˜ord“break.ަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompleter‘Óõ‰ˆŠ#ØŽ“wšÞord‘Óõ‰ˆŠ#ØŽ“break‘Óõ‰ˆŠ#ØŽ“c˜haractersŽ¡‘.ùœÝThe–.½list“of“cš²!haracters“that“signal“a“break“bMÞet˜w˜een“w˜ords“for“Þrl_complete_Ž¡‘.ùœinternal‘¦f()Ý.‘v The–nïdefault“list“is“the“v‘ÿdDalue“of“Þrl_basic_word_break_charactersÝ.‘èUŸ ! ¯„¥Yަ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompleter‘Óõ‰ˆŠ#ØŽ“quote‘Óõ‰ˆŠ#ØŽ“cÞharactersŽ¡‘.ùœÝList–˜"of“cš²!haracters“whic˜h“can“bMÞe“used“to“quote“a“substring“of“the“line.‘ƒÇCompletionŽ¡‘.ùœoMÞccurs–Çron“the“en²!tire“substring,‘ϵand“within“the“substring“Þrl_completer_word_Ž¡‘.ùœbreak_characters–ŒaÝare“treated“as“anš²!y“other“c˜haracter,‘‘•unless“they“also“appMÞearŽ¡‘.ùœwithin–¦fthis“list.ŽŽŸŒ‹$™0Ÿò‘GÝ36’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðÐ’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Í lename‘Óõ‰ˆŠ#ØŽ“quote‘Óõ‰ˆŠ#ØŽ“cÞharactersޤ 33‘.ùœÝA‘Å£list–Å«of“cš²!haracters“that“cause“a“ lename“to“bMÞe“quoted“b˜y“the“completer“whenŽ¡‘.ùœthey–¦fappMÞear“in“a“completed“ lename.‘ÝÝThe“default“is“the“n²!ull“string.Ž©<±’‰V‘ÿeariableŽŽ‘Gèchar–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Íspb"ecial‘Óõ‰ˆŠ#ØŽ“pre xesŽ¡‘.ùœÝThe–L>list“of“cš²!haracters“that“are“w˜ord“break“c˜haracters,‘^Fbut“should“bMÞe“left“in“átextŽ¡‘.ùœÝwhen–nãit“is“passed“to“the“completion“function.‘7UPrograms“can“use“this“to“helpŽ¡‘.ùœdetermine–„úwhat“kind“of“completing“to“do.‘Ò¹F‘ÿeor“instance,‘‹ªBash“sets“this“v‘ÿdDariableŽ¡‘.ùœto–¦fÞ"Ý$Þ@"“Ýso“that“it“can“complete“shell“v‘ÿdDariables“and“hostnames.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“appb"end‘Óõ‰ˆŠ#ØŽ“cÞharacterŽ¡‘.ùœÝWhen–e¦a“single“completion“alternativš²!e“matc˜hes“at“the“end“of“the“command“line,Ž¡‘.ùœthis–xc²!haracter“is“appMÞended“to“the“inserted“completion“text.‘ÃThe“default“is“aŽ¡‘.ùœspace–P©cš²!haracter“(`‘¦f').‘ÁISetting“this“to“the“n˜ull“c˜haracter“(`Þ\0Ý')“prev˜en˜ts“an˜ythingŽ¡‘.ùœb•MÞeing›e9app“ended˜automatically‘ÿe.‘ ! WThis˜can˜b“e˜c²!hanged˜in˜custom˜completionŽ¡‘.ùœfunctions–^îto“proš²!vide“the“\most“sensible“w˜ord“separator“c˜haracter"“according“toŽ¡‘.ùœan–¦fapplication-spšMÞeci c“command“line“syn²!tax“sp˜eci cation.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íignore‘Óõ‰ˆŠ#ØŽ“completion‘Óõ‰ˆŠ#ØŽ“duplicatesŽ¡‘.ùœÝIf–¦fnon-zero,“then“disalloš²!w“duplicates“in“the“matc˜hes.‘ÝÝDefault“is“1.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Í lename‘Óõ‰ˆŠ#ØŽ“completion‘Óõ‰ˆŠ#ØŽ“desiredŽ¡‘.ùœÝNon-zero–¥îmeans“that“the“results“of“the“matc²!hes“are“to“bMÞe“treated“as“ lenames.Ž¡‘.ùœThis–ÐÄis“áalw•²!a“ys‘DFÝzero–ÐÄon“enš²!try‘ÿe,‘û~and“can“only“bMÞe“c˜hanged“within“a“completion“en˜tryŽ¡‘.ùœgenerator–/ófunction.‘¶aIf“it“is“set“to“a“non-zero“v‘ÿdDalue,‘G¤directory“names“ha•²!v“e–/óa“slashŽ¡‘.ùœappMÞended–³and“Readline“attempts“to“quote“completed“ lenames“if“they“con²!tainŽ¡‘.ùœan•²!y›¦fem“bMÞedded˜w“ord˜break˜c“haracters.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Í lename‘Óõ‰ˆŠ#ØŽ“quoting‘Óõ‰ˆŠ#ØŽ“desiredŽ¡‘.ùœÝNon-zero–Å­means“that“the“results“of“the“matc²!hes“are“to“bMÞe“quoted“using“doubleŽ¡‘.ùœquotes–Õ6(or“an“application-spMÞeci c“quoting“mec²!hanism)“if“the“completed“ lenameŽ¡‘.ùœcon•²!tains›ò[an“y˜c“haracters˜in˜Þrl_filename_quote_charsÝ.‘¡ÙThis˜is˜áalw“a“ys‘eÝÝnon-zeroŽ¡‘.ùœon–¬renš²!try‘ÿe,‘Þoand“can“only“bMÞe“c˜hanged“within“a“completion“en˜try“generator“function.Ž¡‘.ùœThe–åpquoting“is“e ected“via“a“call“to“the“function“pMÞoinš²!ted“to“b˜y“Þrl_filename_Ž¡‘.ùœquoting_functionÝ.ަ’‰V‘ÿeariableŽŽ‘Gèint‘™˜çrl‘Óõ‰ˆŠ#ØŽ–÷Íinhibit‘Óõ‰ˆŠ#ØŽ“completionŽ¡‘.ùœÝIf–pthis“v‘ÿdDariable“is“non-zero,‘zæcompletion“is“inhibitÞ<Ýed.‘˽The“completion“c²!haracterŽ¡‘.ùœwill–¦fbšMÞe“inserted“as“an²!y“other“b˜ound“to“Þself-insertÝ.ަ’‰V‘ÿeariableŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Íignore‘Óõ‰ˆŠ#ØŽ“some‘Óõ‰ˆŠ#ØŽ“completions‘Óõ‰ˆŠ#ØŽ“functionŽ¡‘.ùœÝThis–ivfunction,›u¦if“de ned,˜is“called“b²!y“the“completer“when“real“ lename“comple-Ž¡‘.ùœtion–ydis“done,‘®#after“all“the“matcš²!hing“names“ha˜v˜e“bMÞeen“generated.‘VÖIt“is“passedŽ¡‘.ùœa–ËrÞNULL“Ýterminated“arraš²!y“of“matc˜hes.‘MThe“ rst“elemen˜t“(Þmatches[0]Ý)“is“theŽ¡‘.ùœmaximal–dªsubstring“common“to“all“matc²!hes.‘©This“function“can“re-arrange“theŽ¡‘.ùœlist–L@of“matcš²!hes“as“required,‘u·but“eac˜h“elemen˜t“deleted“from“the“arra˜y“m˜ust“bMÞeŽ¡‘.ùœfreed.ŽŽŸŒ‹%ªŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—37ŽŽŽ ƒ3Ú ý¨ðÐ’‰V‘ÿeariableŽŽ‘GèFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ídirectory‘Óõ‰ˆŠ#ØŽ“completion‘Óõ‰ˆŠ#ØŽ“hob"okޤ 33‘.ùœÝThis–åfunction,›3˜if“de ned,˜is“allo•²!w“ed–åto“mošMÞdify“the“directory“p˜ortion“of“ lenamesŽ¡‘.ùœReadline–ƒÐcompletes.‘ÒVIt“is“called“with“the“address“of“a“string“(the“curren²!t“direc-Ž¡‘.ùœtory–Š~name)“as“an“argumenš²!t.‘ÔIt“could“bMÞe“used“to“expand“sym˜bMÞolic“links“or“shellŽ¡‘.ùœv‘ÿdDariables–¦fin“pathnames.ŽŸ33’‰V‘ÿeariableŽŽ‘GèVFunction–™˜*“çrl‘Óõ‰ˆŠ#ØŽ–÷Ícompletion‘Óõ‰ˆŠ#ØŽ“displašÞy‘Óõ‰ˆŠ#ØŽ“matc˜hes‘Óõ‰ˆŠ#ØŽ“hob"okŽ¡‘.ùœÝIf–¤œnon-zero,‘ä)then“this“is“the“address“of“a“function“to“call“when“completing“aŽ¡‘.ùœw•²!ord›C9w“ould˜normally˜displa“y˜the˜list˜of˜pMÞossible˜matc“hes.‘ ´VThis˜function˜isŽ¡‘.ùœcalled–*_in“lieu“of“Readline“displaš²!ying“the“list.‘iÈIt“tak˜es“three“argumen˜ts:‘åÏ(ÞcharŽ¡‘.ùœ**ámatc•²!hesÝ,›¯Þint‘Fòán“um‘¨/‰x³HøŽ‘ñ'matc“hesÝ,˜Þint–Fòámax‘¨/‰x³HøŽ‘ñ'lengthÝ)“where“ámatcš²!hes‘ºtÝis“the“arra˜yŽ¡‘.ùœof–1Ímatcš²!hing“strings,‘T§án˜um‘¨/‰x³HøŽ‘ñ'matc˜hes‘¥OÝis“the“n˜um˜bMÞer“of“strings“in“that“arra˜y‘ÿe,‘T§andŽ¡‘.ùœámax‘¨/‰x³HøŽ‘ñ'length–ÇÝis“the“length“of“the“longest“string“in“that“arraš²!y‘ÿe.‘?«Readline“pro˜videsŽ¡‘.ùœa›Áªcon•²!v“enience˜function,–È{Þrl_display_match_listÝ,“that˜tak²!es˜care˜of˜doing˜theŽ¡‘.ùœdisplaš²!y–¨to“Readline's“output“stream.‘âîThat“function“ma˜y“bMÞe“called“from“thisŽ¡‘.ùœhoMÞok.ŽŸ‘GëQ2.6.4‘d(A–íMShort“Completion“ExampleŽŽŸ33‘!GÝHere–q}is“a“small“application“demonstrating“the“use“of“the“GNU‘q/Readline“library‘ÿe.‘våIt“is“calledŽ¡‘GÞfilemanÝ,‘lGand–D´the“source“coMÞde“resides“in“`Þexamples/fileman.cÝ'.‘¸ÆThis“sample“applicationŽ¡‘Gpro²!vides–#þcompletion“of“command“names,›>line“editing“features,˜and“access“to“the“history“list.ŽŽŸŒ‹&¹'Ÿò‘GÝ38’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБ.ùœÞ/*–¿ªfileman.c“--“A“tiny“application“which“demonstrates“how“to“use“theޤ €‘@8šGNU–¿ªReadline“library.‘ TThis“application“interactively“allows“usersŽ¡‘@8što–¿ªmanipulate“files“and“their“modes.“*/Ž©‘.ùœ#include‘¿ªŽ¡‘.ùœ#include‘¿ªŽ¡‘.ùœ#include‘¿ªŽ¡‘.ùœ#include‘¿ªŽ¡‘.ùœ#include‘¿ªŽ¦‘.ùœ#include‘¿ªŽ¡‘.ùœ#include‘¿ªŽ¦‘.ùœextern–¿ªchar“*getwd“();Ž¡‘.ùœextern–¿ªchar“*xmalloc“();ަ‘.ùœ/*–¿ªThe“names“of“functions“that“actually“do“the“manipulation.“*/Ž¡‘.ùœint–¿ªcom_list“(),“com_view“(),“com_rename“(),“com_stat“(),“com_pwd“();Ž¡‘.ùœint–¿ªcom_delete“(),“com_help“(),“com_cd“(),“com_quit“();ަ‘.ùœ/*–¿ªA“structure“which“contains“information“on“the“commands“this“programŽ¡‘@8šcan–¿ªunderstand.“*/ަ‘.ùœtypedef–¿ªstruct“{Ž¡‘:xðchar–¿ª*name;“/*“User“printable“name“of“the“function.“*/Ž¡‘:xðFunction–¿ª*func;“/*“Function“to“call“to“do“the“job.“*/Ž¡‘:xðchar–¿ª*doc;“/*“Documentation“for“this“function.‘ T*/Ž¡‘.ùœ}‘¿ªCOMMAND;ަ‘.ùœCOMMAND–¿ªcommands[]“=“{Ž¡‘:xð{–¿ª"cd",“com_cd,“"Change“to“directory“DIR"“},Ž¡‘:xð{–¿ª"delete",“com_delete,“"Delete“FILE"“},Ž¡‘:xð{–¿ª"help",“com_help,“"Display“this“text"“},Ž¡‘:xð{–¿ª"?",“com_help,“"Synonym“for“`help'"“},Ž¡‘:xð{–¿ª"list",“com_list,“"List“files“in“DIR"“},Ž¡‘:xð{–¿ª"ls",“com_list,“"Synonym“for“`list'"“},Ž¡‘:xð{–¿ª"pwd",“com_pwd,“"Print“the“current“working“directory"“},Ž¡‘:xð{–¿ª"quit",“com_quit,“"Quit“using“Fileman"“},Ž¡‘:xð{–¿ª"rename",“com_rename,“"Rename“FILE“to“NEWNAME"“},Ž¡‘:xð{–¿ª"stat",“com_stat,“"Print“out“statistics“on“FILE"“},Ž¡‘:xð{–¿ª"view",“com_view,“"View“the“contents“of“FILE"“},Ž¡‘:xð{–¿ª(char“*)NULL,“(Function“*)NULL,“(char“*)NULL“}Ž¡‘.ùœ};ަ‘.ùœ/*–¿ªForward“declarations.“*/Ž¡‘.ùœchar–¿ª*stripwhite“();Ž¡‘.ùœCOMMAND–¿ª*find_command“();ŽŽŸŒ‹'ÁŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—39ŽŽŽ ƒ3Ú ý¨ðБ.ùœÞ/*–¿ª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.“*/Ÿnï„ ! ™Ž¡‘.ùœint‘¿ªdone;ަ‘.ùœchar‘¿ª*Ž¡‘.ùœdupstr‘¿ª(s)Ž¡‘K·îint‘¿ªs;Ž¡‘.ùœ{Ž¡‘:xðchar‘¿ª*r;ަ‘:xðr–¿ª=“xmalloc“(strlen“(s)“+“1);Ž¡‘:xðstrcpy–¿ª(r,“s);Ž¡‘:xðreturn‘¿ª(r);Ž¡‘.ùœ}ަ‘.ùœmain–¿ª(argc,“argv)Ž¡‘K·îint‘¿ªargc;Ž¡‘K·îchar‘¿ª**argv;Ž¡‘.ùœ{Ž¡‘:xðchar–¿ª*line,“*s;ަ‘:xðprogname–¿ª=“argv[0];ަ‘:xðinitialize_readline–¿ª();“/*“Bind“our“completer.“*/ަ‘:xð/*–¿ªLoop“reading“and“executing“lines“until“the“user“quits.“*/Ž¡‘:xðfor–¿ª(“;“done“==“0;“)Ž¡‘EøD{Ž¡‘Qw˜line–¿ª=“readline“("FileMan:“");ަ‘Qw˜if‘¿ª(!line)Ž¡‘\öìbreak;ަ‘Qw˜/*–¿ªRemove“leading“and“trailing“whitespace“from“the“line.Ž¡‘b¶–Then,–¿ªif“there“is“anything“left,“add“it“to“the“history“listŽ¡‘b¶–and–¿ªexecute“it.“*/Ž¡‘Qw˜s–¿ª=“stripwhite“(line);ަ‘Qw˜if‘¿ª(*s)Ž¡‘\öì{Ž¡‘hv@add_history‘¿ª(s);Ž¡‘hv@execute_line‘¿ª(s);Ž¡‘\öì}ަ‘Qw˜free‘¿ª(line);Ž¡‘EøD}ŽŽŸŒ‹(ÈПò‘GÝ40’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБ:xðÞexit‘¿ª(0);ޤ €‘.ùœ}Ž©‘.ùœ/*–¿ªExecute“a“command“line.“*/Ž¡‘.ùœintŽ¡‘.ùœexecute_line‘¿ª(line)Ž¡‘K·îchar‘¿ª*line;Ž¡‘.ùœ{Ž¡‘:xðregister–¿ªint“i;Ž¡‘:xðCOMMAND‘¿ª*command;Ž¡‘:xðchar‘¿ª*word;ަ‘:xð/*–¿ªIsolate“the“command“word.“*/Ž¡‘:xði–¿ª=“0;Ž¡‘:xðwhile–¿ª(line[i]“&&“whitespace“(line[i]))Ž¡‘EøDi++;Ž¡‘:xðword–¿ª=“line“+“i;ަ‘:xðwhile–¿ª(line[i]“&&“!whitespace“(line[i]))Ž¡‘EøDi++;ަ‘:xðif‘¿ª(line[i])Ž¡‘EøDline[i++]–¿ª=“'\0';ަ‘:xðcommand–¿ª=“find_command“(word);ަ‘:xðif‘¿ª(!command)Ž¡‘EøD{Ž¡‘Qw˜fprintf–¿ª(stderr,“"%s:“No“such“command“for“FileMan.\n",“word);Ž¡‘Qw˜return‘¿ª(-1);Ž¡‘EøD}ަ‘:xð/*–¿ªGet“argument“to“command,“if“any.“*/Ž¡‘:xðwhile–¿ª(whitespace“(line[i]))Ž¡‘EøDi++;ަ‘:xðword–¿ª=“line“+“i;ަ‘:xð/*–¿ªCall“the“function.“*/Ž¡‘:xðreturn–¿ª((*(command->func))“(word));Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªLook“up“NAME“as“the“name“of“a“command,“and“return“a“pointer“to“thatŽ¡‘@8šcommand.‘ TReturn–¿ªa“NULL“pointer“if“NAME“isn't“a“command“name.“*/Ž¡‘.ùœCOMMAND‘¿ª*Ž¡‘.ùœfind_command‘¿ª(name)Ž¡‘K·îchar‘¿ª*name;Ž¡‘.ùœ{ŽŽŸŒ‹)ÍyŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—41ŽŽŽ ƒ3Ú ý¨ðБ:xðÞregister–¿ªint“i;Ž©‘:xðfor–¿ª(i“=“0;“commands[i].name;“i++)ޤ €‘EøDif–¿ª(strcmp“(name,“commands[i].name)“==“0)Ž¡‘Qw˜return‘¿ª(&commands[i]);ަ‘:xðreturn–¿ª((COMMAND“*)NULL);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªStrip“whitespace“from“the“start“and“end“of“STRING.‘ TReturn“a“pointerŽ¡‘@8šinto–¿ªSTRING.“*/Ž¡‘.ùœchar‘¿ª*Ž¡‘.ùœstripwhite‘¿ª(string)Ž¡‘K·îchar‘¿ª*string;Ž¡‘.ùœ{Ž¡‘:xðregister–¿ªchar“*s,“*t;ަ‘:xðfor–¿ª(s“=“string;“whitespace“(*s);“s++)Ž¡‘EøD;ަ‘:xðif–¿ª(*s“==“0)Ž¡‘EøDreturn‘¿ª(s);ަ‘:xðt–¿ª=“s“+“strlen“(s)“-“1;Ž¡‘:xðwhile–¿ª(t“>“s“&&“whitespace“(*t))Ž¡‘EøDt--;Ž¡‘:xð*++t–¿ª=“'\0';ަ‘:xðreturn‘¿ªs;Ž¡‘.ùœ}ަ‘.ùœ/*–¿ª****************************************************************“*/Ž¡‘.ùœ/*’{iÔ*/Ž¡‘.ùœ/*‘gyôInterface–¿ªto“Readline“Completion‘[ú */Ž¡‘.ùœ/*’{iÔ*/Ž¡‘.ùœ/*–¿ª****************************************************************“*/ަ‘.ùœchar–¿ª*command_generator“();Ž¡‘.ùœchar–¿ª**fileman_completion“();ަ‘.ùœ/*–¿ªTell“the“GNU“Readline“library“how“to“complete.‘ TWe“want“to“try“to“completeŸnï„ ! ™Ž¡‘@8šon–¿ªcommand“names“if“this“is“the“first“word“in“the“line,“or“on“filenamesŸ…T„6eŽ¡‘@8šif–¿ªnot.“*/Ž¡‘.ùœinitialize_readline‘¿ª()Ž¡‘.ùœ{Ž¡‘:xð/*–¿ªAllow“conditional“parsing“of“the“~/.inputrc“file.“*/Ž¡‘:xðrl_readline_name–¿ª=“"FileMan";ŽŽŸŒ‹*ÒŸò‘GÝ42’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБ:xðÞ/*–¿ªTell“the“completer“that“we“want“a“crack“first.“*/ޤ €‘:xðrl_attempted_completion_function–¿ª=“(CPPFunction“*)fileman_completion;Ž¡‘.ùœ}Ž©‘.ùœ/*–¿ªAttempt“to“complete“on“the“contents“of“TEXT.‘ TSTART“and“END“bound“theŽ¡‘@8šregion–¿ªof“rl_line_buffer“that“contains“the“word“to“complete.‘ TTEXT“isŽ¡‘@8šthe–¿ªword“to“complete.‘ TWe“can“use“the“entire“contents“of“rl_line_bufferŸnï„ Ž¡‘@8šin–¿ªcase“we“want“to“do“some“simple“parsing.‘ TReturn“the“array“of“matches,Ÿnï„ Ž¡‘@8šor–¿ªNULL“if“there“aren't“any.“*/Ž¡‘.ùœchar‘¿ª**Ž¡‘.ùœfileman_completion–¿ª(text,“start,“end)Ž¡‘K·îchar‘¿ª*text;Ž¡‘K·îint–¿ªstart,“end;Ž¡‘.ùœ{Ž¡‘:xðchar‘¿ª**matches;ަ‘:xðmatches–¿ª=“(char“**)NULL;ަ‘:xð/*–¿ªIf“this“word“is“at“the“start“of“the“line,“then“it“is“a“commandŽ¡‘K·îto–¿ªcomplete.‘ TOtherwise“it“is“the“name“of“a“file“in“the“currentŽ¡‘K·îdirectory.‘¿ª*/Ž¡‘:xðif–¿ª(start“==“0)Ž¡‘EøDmatches–¿ª=“completion_matches“(text,“command_generator);ަ‘:xðreturn‘¿ª(matches);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªGenerator“function“for“command“completion.‘ TSTATE“lets“us“know“whetherŸnï„ ™Ž¡‘@8što–¿ªstart“from“scratch;“without“any“state“(i.e.“STATE“==“0),“then“weŽ¡‘@8šstart–¿ªat“the“top“of“the“list.“*/Ž¡‘.ùœchar‘¿ª*Ž¡‘.ùœcommand_generator–¿ª(text,“state)Ž¡‘K·îchar‘¿ª*text;Ž¡‘K·îint‘¿ªstate;Ž¡‘.ùœ{Ž¡‘:xðstatic–¿ªint“list_index,“len;Ž¡‘:xðchar‘¿ª*name;ަ‘:xð/*–¿ªIf“this“is“a“new“word“to“complete,“initialize“now.‘ TThis“includesŽ¡‘K·îsaving–¿ªthe“length“of“TEXT“for“efficiency,“and“initializing“the“indexŸnï„ Ž¡‘K·îvariable–¿ªto“0.“*/Ž¡‘:xðif‘¿ª(!state)Ž¡‘EøD{Ž¡‘Qw˜list_index–¿ª=“0;Ž¡‘Qw˜len–¿ª=“strlen“(text);Ž¡‘EøD}ަ‘:xð/*–¿ªReturn“the“next“name“which“partially“matches“from“the“command“list.“*/Ÿnï„ ! ™ŽŽŸŒ‹+×ÓŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—43ŽŽŽ ƒ3Ú ý¨ðБ:xðÞwhile–¿ª(name“=“commands[list_index].name)ޤ €‘EøD{Ž¡‘Qw˜list_index++;Ž©‘Qw˜if–¿ª(strncmp“(name,“text,“len)“==“0)Ž¡‘\öìreturn‘¿ª(dupstr(name));Ž¡‘EøD}ަ‘:xð/*–¿ªIf“no“names“matched,“then“return“NULL.“*/Ž¡‘:xðreturn–¿ª((char“*)NULL);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ª****************************************************************“*/Ž¡‘.ùœ/*’{iÔ*/Ž¡‘.ùœ/*’„8FFileMan‘¿ªCommands’›6î*/Ž¡‘.ùœ/*’{iÔ*/Ž¡‘.ùœ/*–¿ª****************************************************************“*/ަ‘.ùœ/*–¿ªString“to“pass“to“system“().‘ TThis“is“for“the“LIST,“VIEW“and“RENAMEŽ¡‘@8šcommands.‘¿ª*/Ž¡‘.ùœstatic–¿ªchar“syscom[1024];ަ‘.ùœ/*–¿ªList“the“file(s)“named“in“arg.“*/Ž¡‘.ùœcom_list‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðif‘¿ª(!arg)Ž¡‘EøDarg–¿ª=“"";ަ‘:xðsprintf–¿ª(syscom,“"ls“-FClg“%s",“arg);Ž¡‘:xðreturn–¿ª(system“(syscom));Ž¡‘.ùœ}ަ‘.ùœcom_view‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðif–¿ª(!valid_argument“("view",“arg))Ž¡‘EøDreturn‘¿ª1;ަ‘:xðsprintf–¿ª(syscom,“"more“%s",“arg);Ž¡‘:xðreturn–¿ª(system“(syscom));Ž¡‘.ùœ}ަ‘.ùœcom_rename‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðtoo_dangerous‘¿ª("rename");Ž¡‘:xðreturn‘¿ª(1);ŽŽŸŒ‹,ßBŸò‘GÝ44’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБ.ùœÞ}Ž©‘.ùœcom_stat‘¿ª(arg)ޤ €‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðstruct–¿ªstat“finfo;ަ‘:xðif–¿ª(!valid_argument“("stat",“arg))Ž¡‘EøDreturn‘¿ª(1);ަ‘:xðif–¿ª(stat“(arg,“&finfo)“==“-1)Ž¡‘EøD{Ž¡‘Qw˜perror‘¿ª(arg);Ž¡‘Qw˜return‘¿ª(1);Ž¡‘EøD}ަ‘:xðprintf–¿ª("Statistics“for“`%s':\n",“arg);ަ‘:xðprintf–¿ª("%s“has“%d“link%s,“and“is“%d“byte%s“in“length.\n",“arg,Ž¡‘hv@finfo.st_nlink,Ž¡‘hv@(finfo.st_nlink–¿ª==“1)“?“""“:“"s",Ž¡‘hv@finfo.st_size,Ž¡‘hv@(finfo.st_size–¿ª==“1)“?“""“:“"s");Ž¡‘:xðprintf–¿ª("Inode“Last“Change“at:“%s",“ctime“(&finfo.st_ctime));Ž¡‘:xðprintf–¿ª("‘"}üLast“access“at:“%s",“ctime“(&finfo.st_atime));Ž¡‘:xðprintf–¿ª("‘þ¨Last“modified“at:“%s",“ctime“(&finfo.st_mtime));Ž¡‘:xðreturn‘¿ª(0);Ž¡‘.ùœ}ަ‘.ùœcom_delete‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðtoo_dangerous‘¿ª("delete");Ž¡‘:xðreturn‘¿ª(1);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªPrint“out“help“for“ARG,“or“for“all“of“the“commands“if“ARG“isŽ¡‘@8šnot–¿ªpresent.“*/Ž¡‘.ùœcom_help‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðregister–¿ªint“i;Ž¡‘:xðint–¿ªprinted“=“0;ަ‘:xðfor–¿ª(i“=“0;“commands[i].name;“i++)Ž¡‘EøD{Ž¡‘Qw˜if–¿ª(!*arg“||“(strcmp“(arg,“commands[i].name)“==“0))Ž¡‘\öì{ŽŽŸŒ‹-äWŸò‘GÝChapter–¦f2:‘ÝÝProgramming“with“GNU“Readline’Ê—45ŽŽŽ ƒ3Ú ý¨ðБhv@Þprintf–¿ª("%s\t\t%s.\n",“commands[i].name,“commands[i].doc);ޤ €‘hv@printed++;Ž¡‘\öì}Ž¡‘EøD}Ž©‘:xðif‘¿ª(!printed)Ž¡‘EøD{Ž¡‘Qw˜printf–¿ª("No“commands“match“`%s'.‘ TPossibilties“are:\n",“arg);ަ‘Qw˜for–¿ª(i“=“0;“commands[i].name;“i++)Ž¡‘\öì{Ž¡‘hv@/*–¿ªPrint“in“six“columns.“*/Ž¡‘hv@if–¿ª(printed“==“6)Ž¡‘sõ”{Ž¡‘tèprinted–¿ª=“0;Ž¡‘tèprintf‘¿ª("\n");Ž¡‘sõ”}ަ‘hv@printf–¿ª("%s\t",“commands[i].name);Ž¡‘hv@printed++;Ž¡‘\öì}ަ‘Qw˜if‘¿ª(printed)Ž¡‘\öìprintf‘¿ª("\n");Ž¡‘EøD}Ž¡‘:xðreturn‘¿ª(0);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªChange“to“the“directory“ARG.“*/Ž¡‘.ùœcom_cd‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðif–¿ª(chdir“(arg)“==“-1)Ž¡‘EøD{Ž¡‘Qw˜perror‘¿ª(arg);Ž¡‘Qw˜return‘¿ª1;Ž¡‘EøD}ަ‘:xðcom_pwd‘¿ª("");Ž¡‘:xðreturn‘¿ª(0);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªPrint“out“the“current“working“directory.“*/Ž¡‘.ùœcom_pwd‘¿ª(ignore)Ž¡‘K·îchar‘¿ª*ignore;Ž¡‘.ùœ{Ž¡‘:xðchar–¿ªdir[1024],“*s;ŽŽŸŒ‹.égŸò‘GÝ46’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБ:xðÞs–¿ª=“getwd“(dir);ޤ €‘:xðif–¿ª(s“==“0)Ž¡‘EøD{Ž¡‘Qw˜printf–¿ª("Error“getting“pwd:“%s\n",“dir);Ž¡‘Qw˜return‘¿ª1;Ž¡‘EøD}Ž©‘:xðprintf–¿ª("Current“directory“is“%s\n",“dir);Ž¡‘:xðreturn‘¿ª0;Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªThe“user“wishes“to“quit“using“this“program.‘ TJust“set“DONE“non-zero.“*/Ÿnï„ ™Ž¡‘.ùœcom_quit‘¿ª(arg)Ž¡‘K·îchar‘¿ª*arg;Ž¡‘.ùœ{Ž¡‘:xðdone–¿ª=“1;Ž¡‘:xðreturn‘¿ª(0);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªFunction“which“tells“you“that“you“can't“do“this.“*/Ž¡‘.ùœtoo_dangerous‘¿ª(caller)Ž¡‘K·îchar‘¿ª*caller;Ž¡‘.ùœ{Ž¡‘:xðfprintf‘¿ª(stderr,Ž¡‘n5ê"%s:–¿ªToo“dangerous“for“me“to“distribute.‘ TWrite“it“yourself.\n",Ÿnï„ ! ™Ž¡‘n5êcaller);Ž¡‘.ùœ}ަ‘.ùœ/*–¿ªReturn“non-zero“if“ARG“is“a“valid“argument“for“CALLER,“else“printŽ¡‘@8šan–¿ªerror“message“and“return“zero.“*/Ž¡‘.ùœintŽ¡‘.ùœvalid_argument–¿ª(caller,“arg)Ž¡‘K·îchar–¿ª*caller,“*arg;Ž¡‘.ùœ{Ž¡‘:xðif–¿ª(!arg“||“!*arg)Ž¡‘EøD{Ž¡‘Qw˜fprintf–¿ª(stderr,“"%s:“Argument“required.\n",“caller);Ž¡‘Qw˜return‘¿ª(0);Ž¡‘EøD}ަ‘:xðreturn‘¿ª(1);Ž¡‘.ùœ}ŽŽŸŒ‹/퀟ò‘GÝConcept‘¦fIndex’`¶)47ŽŽŽ ƒ3Ú ý¨ðБGêConcept‘z³IndexŽŽ ¶\( ÿt‘GëHCޤ‘Góo´‹Ç cmr9¬command‘Tediting‘ar‘ÅUó"”q[˜ cmsl9Í.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘“,¬1Ž©‘GëHEŽ¡‘G¬editing–Tcommand“lines‘¥‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘J`¬1ަ‘GëHIŽ¡‘G¬initialization–T le,“readline‘‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Mج3ŽŸ ‘Gin¾9teraction,‘Treadline‘ÿ«‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ 1f¬1ަ‘GëHKŽ¡‘G¬kill‘Tring‘ª‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ 5e¬2ŽŽ ÿt’óáðkilling‘Ttext‘å‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ º¬2ޤ ª«’óáðëHNŽ©’óáð¬notation,‘Treadline‘™‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Ê»¬1Ž¡’óáðëHRަ’óáð¬readline,‘Tfunction‘¹ä‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘러19Ž¡’óáðëHYަ’óáð¬y¾9anking‘Ttext‘œ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Í׬2ŽŽŽŽŸŒ‹0òŸò‘GÝ48’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3ÚŸŒ‹1ý^Ÿò‘GÝF›ÿeunction–¦fand“V˜ariable“Index’œÃ49ŽŽŽ ƒ3Ú ý¨ðБGêF›þaGunction–z³and“V˜ariable“IndexŽŽ W0 ýÏðБGëH(ޤ‘GóߤN cmtt9É(int‘ô‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ %ì28Ž©ƒÌ‘GëHAŽ¡‘GÉabort‘T(C-g)‘ $‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Ñ߬16ޤ ‘GÉaccept-line–T(Newline,“Return)_‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘:¬11Ž¡‘GÉalphabetic–‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘NQ¬28ަ‘GëHBŽŸ‘GÉbackward-char‘T(C-b)9Ä‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘k¬11Ž¡‘GÉbackward-delete-char‘T(Rubout)‘Dv‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘v1¬12Ž¡‘GÉbackward-kill-line–T(C-x“Rubout)‘yq‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘«,¬13Ž¡‘GÉbackward-kill-word›T(M-DEL)‘çL‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¬13,˜14Ž¡‘GÉbackward-word‘T(M-b)9Ä‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘k¬11Ž¡‘GÉbeginning-of-history‘T(M-<)!÷‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘S²¬11Ž¡‘GÉbeginning-of-line‘T(C-a)‘ °‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘?k¬11Ž¡‘GbAÇell-st¾9yle‘½‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘îѬ4ަ‘GëHCŽŸ‘GÉcall-last-kbd-macro–T(C-x“e)‘¥…‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘×@¬15Ž¡‘GÉcapitalize-word›T(M-c)aó‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘“®¬12,˜13Ž¡‘GÉcharacter-search‘T(C-])‘\C‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘þ¬16Ž¡‘GÉcharacter-search-backward‘T(M-C-]) ! *‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘;å¬16Ž¡‘GÉclear-screen‘T(C-l)‘ˆW‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘º¬11Ž¡‘Gcommen¾9t-bAÇegin‘a‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘’»¬4Ž¡‘GÉcomplete‘T(TAB)‘£‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ô^¬15Ž¡‘Gcompletion-query-items‘WP‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘‰ ¬4Ž¡‘GÉcompletion‘‘$‰c4ÕÂŽ‘fæmatches_Ž‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘‘I¬34Ž¡‘Gcon•¾9v“ert-meta‘Á‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ò»¬4Ž¡‘GÉcopy-backward-word›T()aó‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘“®¬13,˜14Ž¡‘GÉcopy-forward-word›T()‘°†‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘âA¬13,˜14Ž¡‘GÉcopy-region-as-kill›T()`‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘E¬13,˜14ަ‘GëHDŽŸ‘GÉdelete-char‘T(C-d)‘Öê‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥¬12Ž¡‘GÉdelete-char-or-list‘T()‘\C‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘þ¬15Ž¡‘GÉdelete-horizontal-space›T()‘çL‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¬13,˜14Ž¡‘GÉdigit-argument–T(M-0,“M-1,“...“M--)#‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘U}¬14Ž¡‘GÉdigit_p‘O‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘: ! ¬29Ž¡‘GÉdigit_value‘Ü;‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ ö¬29Ž¡‘GÉding‘ô‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ %ì28Ž¡‘Gdisable-completion‘ÖÞ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘™¬5Ž¡‘GÉdo-uppercase-version–T(M-a,“M-b,“M-ÍxÉ,“ó5ùž" cmmi9²:–Šª:“:Ž‘ ßúÉ)‘¨ì‘ÅUÍ.Ž‘p‘ÅU.Ž‘Ú¦¬16Ž¡‘GÉdowncase-word›T(M-l)‘ÿ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘0Ô¬12,˜13Ž¡‘GÉdump-functions‘T()‘Öê‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥¬16Ž¡‘GÉdump-macros›T()yÀ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘«{¬16,˜17ŽŽ ýÏðÐ’óáðÉdump-variables›T()‘œ?‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Íú¬16,˜17Ž©KP’óáðëHEŽŸ’óáð¬editing-moAÇde‘ë‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘õe¬5ޤ ’óáðenable-k¾9eypad‘r‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘³-¬5Ž¡’óáðÉend-kbd-macro–T(C-x“))n¿‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ z¬15Ž¡’óáðÉend-of-history›T(M->)‘°†‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘âA¬11,˜12Ž¡’óáðÉend-of-line‘T(C-e)‘Öê‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥¬11Ž¡’óáðÉexchange-point-and-mark–T(C-x“C-x)‘ÜK‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¬16Ž¡’óáðexpand-tilde‘þV‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘0¬5ަ’óáðëHFŽŸ’óáðÉfilename‘‘$‰c4ÕÂŽ–fæcompletion‘‘$‰c4ÕÂŽ“function`‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘7¬34Ž¡’óáðÉforward-backward-delete-char›T()‘l¥‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ž`¬12,˜13Ž¡’óáðÉforward-char‘T(C-f)‘ˆW‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘º¬11Ž¡’óáðÉforward-search-history›T(C-s)J&‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘{á¬11,˜12Ž¡’óáðÉforward-word‘T(M-f)‘ˆW‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘º¬11Ž¡’óáðÉfree‘‘$‰c4ÕÂŽ–fæundo‘‘$‰c4ÕÂŽ“list4ú‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘fµ¬26ަ’óáðëHHŽŸ’óáðÉhistory-search-backward›T()‘çL‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¬11,˜12Ž¡’óáðÉhistory-search-forward›T()‘5ß‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘gš¬11,˜12Ž¡’óáðhorizon¾9tal-scroll-moAÇde‘Ù‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ ! Ѭ5ަ’óáðëHIŽŸ’óáð¬input-meta‘£9‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Ôó¬5Ž¡’óáðÉinsert-comment‘T(M-#)‘ùi‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ +$¬16Ž¡’óáðÉinsert-completions‘T(M-*)‘¿‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ðج15Ž¡’óáðisearc¾9h-terminators‘®ƒ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘à>¬5ަ’óáðëHKŽŸ’óáð¬k¾9eymap9r‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘k-¬5Ž¡’óáðÉkill-line‘T(C-k)‘t‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥Ë¬13Ž¡’óáðÉkill-region›T()yÀ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘«{¬13,˜14Ž¡’óáðÉkill-whole-line›T()‘M¬‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘g¬13,˜14Ž¡’óáðÉkill-word›T(M-d)+-‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘\è¬13,˜14ަ’óáðëHLޤ’óáðÉlowercase‘‘$‰c4ÕÂŽ‘fæpw[‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘©¬28ަ’óáðëHMŽ¡’óáð¬mark-moAÇdi ed-lines‘’m‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Ä'¬6ޤ ’óáðÉmenu-complete‘T()‘%}‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘W8¬15Ž¡’óáðmeta- ag‘«‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Qe¬5ŽŽŽŽŸŒ‹2ýŸò‘GÝ50’9pGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý¨ðБGëHNŽ©‘GÉnext-history‘T(C-n)‘ˆW‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘º¬11ޤ ‘GÉnon-incremental-forward-search-history‘T(M-n)Ž¡‘%o”‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¬11,‘T12Ž¡‘GÉnon-incremental-reverse-search-history‘T(M-p)Ž¡‘%o”‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¬11,‘T12Ž¡‘GÉnumeric‘O‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘: ! ¬28ޤCÌ‘GëHOަ‘G¬output-meta‘Ýä‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ž¬6Ž¡‘GëHPަ‘GÉpossible-completions‘T(M-?)!÷‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘S²¬15ޤ ‘GÉprefix-meta‘T(ESC)‘Öê‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥¬16Ž¡‘GÉprevious-history‘T(C-p)‘\C‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘þ¬11ޤCÌ‘GëHQަ‘GÉquoted-insert–T(C-q,“C-v)H[‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘z¬12,‘T13Ž¡‘GëHRަ‘GÉre-read-init-file–T(C-x“C-r)‘¥…‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘×@¬16ޤ ‘GÉreadline‘¹¼‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ëw¬19Ž¡‘GÉredraw-current-line‘T()‘\C‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘þ¬11Ž¡‘GÉreverse-search-history›T(C-r)J&‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘{á¬11,˜12Ž¡‘GÉrevert-line‘T(M-r)‘Öê‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¥¬16Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæadd‘‘$‰c4ÕÂŽ“defun‘Ò ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Û¬23Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæadd‘‘$‰c4ÕÂŽ“undo‘ ³‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Rn¬26Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæattempted‘‘$‰c4ÕÂŽ“completion‘‘$‰c4ÕÂŽ“function‘†‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ 7í¬34Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæbasic‘‘$‰c4ÕÂŽ“quote‘‘$‰c4ÕÂŽ“characters‘%‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘A‚¬35Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæbasic‘‘$‰c4ÕÂŽ“word‘‘$‰c4ÕÂŽ“break‘‘$‰c4ÕÂŽ“characters‘SÌ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘p3¬35Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæbegin‘‘$‰c4ÕÂŽ“undo‘‘$‰c4ÕÂŽ“group‘c«‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘•f¬26Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæbind‘‘$‰c4ÕÂŽ“key‘ ³‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Rn¬24Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæbind‘‘$‰c4ÕÂŽ“key‘‘$‰c4ÕÂŽ“in‘‘$‰c4ÕÂŽ“mapM^‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¬24Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæbinding‘‘$‰c4ÕÂŽ“keymap‘ð[‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ ¬23Ž¡‘GÉrl_callback_handler_install‘{‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘A6¬29Ž¡‘GÉrl_callback_handler_remove‘^‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ɬ29Ž¡‘GÉrl_callback_read_char‘ص‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ ! p¬29Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcatch‘‘$‰c4ÕÂŽ“signals‘0¶‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘M¬31Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcatch‘‘$‰c4ÕÂŽ“sigwinch‘ð[‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ ¬31Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæchar‘‘$‰c4ÕÂŽ“is‘‘$‰c4ÕÂŽ“quoted‘‘$‰c4ÕÂŽ“p‘—­‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘´¬35Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcleanup‘‘$‰c4ÕÂŽ“after‘‘$‰c4ÕÂŽ“signal)_‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘[¬32Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæclear‘‘$‰c4ÕÂŽ“message‘¦ ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘×Ǭ27Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæclear‘‘$‰c4ÕÂŽ“signals‘¦ ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘×Ǭ32Ž¡‘GÉrl‘‘$‰c4ÕÂŽ‘fæcompletew[‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘©¬33Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcomplete‘‘$‰c4ÕÂŽ“internalkÀ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘{¬33Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcompleter‘‘$‰c4ÕÂŽ“quote‘‘$‰c4ÕÂŽ“characters‘ù‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘n¬35Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcompleter‘‘$‰c4ÕÂŽ“word‘‘$‰c4ÕÂŽ“break‘‘$‰c4ÕÂŽ“characters‘€‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘5ç¬35Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcompletion‘‘$‰c4ÕÂŽ“append‘‘$‰c4ÕÂŽ“character‘ªt‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ÆÛ¬36Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcompletion‘‘$‰c4ÕÂŽ“display‘‘$‰c4ÕÂŽ“matches‘‘$‰c4ÕÂŽ“hook‘€‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘5ç¬37Ž¡‘GÉrl‘‘$‰c4ÕÂŽ–fæcompletion‘‘$‰c4ÕÂŽ“entry‘‘$‰c4ÕÂŽ“function‘ ï‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ )V¬33,‘T34ŽŽ ý¨ðÐ’óáðÉrl‘‘$‰c4ÕÂŽ–fæcompletion‘‘$‰c4ÕÂŽ“query‘‘$‰c4ÕÂŽ“items‘%‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘A‚¬35ޤ ’óáðÉrl‘‘$‰c4ÕÂŽ–fæcopy‘‘$‰c4ÕÂŽ“keymap4ú‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘fµ¬23Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæcopy‘‘$‰c4ÕÂŽ“text‘Ò ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Û¬27Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fædelete‘‘$‰c4ÕÂŽ“text4ú‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘fµ¬27Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fædirectory‘‘$‰c4ÕÂŽ“completion‘‘$‰c4ÕÂŽ“hook‘Gš‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘d¬37Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fædiscard‘‘$‰c4ÕÂŽ“keymap‘Wy‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘‰4¬24Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fædisplay‘‘$‰c4ÕÂŽ“match‘‘$‰c4ÕÂŽ“list‘Æ…‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ø@¬28Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fædo‘‘$‰c4ÕÂŽ“undo‘oF‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¡¬26Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ‘fædone‘‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ãù¬32Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæfunction‘‘$‰c4ÕÂŽ“dumper‘æ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘:¡¬25Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæfunction‘‘$‰c4ÕÂŽ“of‘‘$‰c4ÕÂŽ“keyseq‘Æ…‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ø@¬25Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fægeneric‘‘$‰c4ÕÂŽ“bind‘ôŸ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ &Z¬25Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæget‘‘$‰c4ÕÂŽ“keymap‘ƒ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘µH¬24Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæget‘‘$‰c4ÕÂŽ“keymap‘‘$‰c4ÕÂŽ“by‘‘$‰c4ÕÂŽ“name‘oÝ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¡˜¬24Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæget‘‘$‰c4ÕÂŽ“keymap‘‘$‰c4ÕÂŽ“name‘²>‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ãù¬24Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ‘fægetc‘±§‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ãb¬28Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fægetc‘‘$‰c4ÕÂŽ“function‘0¶‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘M¬22Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæignore‘‘$‰c4ÕÂŽ“completion‘‘$‰c4ÕÂŽ“duplicates‘[á‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘xH¬36Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæignore‘‘$‰c4ÕÂŽ“some‘‘$‰c4ÕÂŽ“completions‘‘$‰c4ÕÂŽ“function‘Ù%‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘õŒ¬36Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæinhibit‘‘$‰c4ÕÂŽ“completion‘¶‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Òv¬36Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ‘fæinitialize‘èm‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ (¬28Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæinsert‘‘$‰c4ÕÂŽ“completions-‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Nè¬34Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæinsert‘‘$‰c4ÕÂŽ“text4ú‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘fµ¬27Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ‘fæinstream‘=‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘,¤¬22Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæinvoking‘‘$‰c4ÕÂŽ“keyseqs‘ºS‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ì¬25Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæinvoking‘‘$‰c4ÕÂŽ“keyseqs‘‘$‰c4ÕÂŽ“in‘‘$‰c4ÕÂŽ“map‘õ6‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘ &ñ¬25Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fækill‘‘$‰c4ÕÂŽ“text‘Ò ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘Û¬27Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fælibrary‘‘$‰c4ÕÂŽ“version‘¡È‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘¾/¬22Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæline‘‘$‰c4ÕÂŽ“buffer‘ÍÜ‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘êC¬21Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fælist‘‘$‰c4ÕÂŽ“funmap‘‘$‰c4ÕÂŽ“names‘‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘FÓ¬25Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæmake‘‘$‰c4ÕÂŽ“bare‘‘$‰c4ÕÂŽ“keymap‘c«‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘•f¬23Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ–fæmake‘‘$‰c4ÕÂŽ“keymap4ú‘ÅUÍ.Ž–p‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž“‘ÅU.Ž‘fµ¬23Ž¡’óáðÉrl‘‘$‰c4ÕÂŽ‘fæmark‘Ý15Ž¡‘ZG1.4.8‘ ! ó5Some–¦fMiscellaneous“Commands‘œ1‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ qaÝ15Ž¡‘6G1.5‘ ó5Readline–¦fvi“MoMÞde‘9»‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ ìÝ17ŽŸ33‘GëH2‘32Programming–ffwith“GNU“Readline‘À–‘32ëI.Ž–…‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž‘¬ ëH19ަ‘6GÝ2.1‘ ó5Basic‘¦fBeha²!vior‘Þz‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ ³«Ý19Ž¡‘6G2.2‘ --- 85,89 ---- 4 Ý15Ž¡‘ZG1.4.7‘ ó5KeybMÞoard‘¦fMacroshï‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ >Ý15Ž¡‘ZG1.4.8‘ ! ó5Some–¦fMiscellaneous“Commands‘œ1‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ qaÝ16Ž¡‘6G1.5‘ ó5Readline–¦fvi“MoMÞde‘9»‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ ìÝ17ŽŸ33‘GëH2‘32Programming–ffwith“GNU“Readline‘À–‘32ëI.Ž–…‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž‘¬ ëH19ަ‘6GÝ2.1‘ ó5Basic‘¦fBeha²!vior‘Þz‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ ³«Ý19Ž¡‘6G2.2‘ *************** *** 100,118 **** ó5Binding‘¦fKeys0"‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ RÝ24Ž¡‘ZG2.4.4‘ ó5AssoMÞciating–¦fF‘ÿeunction“Names“and“Bindings‘ñ½‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ ÆíÝ25Ž¡‘ZG2.4.5‘ ! ó5Allo²!wing‘¦fUndoing‘t1‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ IbÝ25Ž¡‘ZG2.4.6‘ ó5Redispla²!y‘‰æ‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ ! _Ý26Ž¡‘ZG2.4.7‘ ó5MoMÞdifying‘¦fT‘ÿeext‘œY‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ q‰Ý27Ž¡‘ZG2.4.8‘ ! ó5Utilit²!y‘¦fF‘ÿeunctions‘0u‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ ¥Ý27Ž¡‘ZG2.4.9‘ ! ó5Alternate‘¦fIn²!terface$h‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ù˜Ý28Ž¡‘ZG2.4.10‘ ó5An‘¦fExample‘x‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ V©Ý29Ž¡‘6G2.5‘ ó5Custom‘¦fCompleters‘ä‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ ! ëÝ30Ž¡‘ZG2.5.1‘ ó5Ho²!w–¦fCompleting“W‘ÿeorks‘_·‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ ! 4çÝ30ŽŽŸŒ‹ÿÿÿþ _Ÿò‘GÝii’=æNGNU–¦fReadline“LibraryŽŽŽ ƒ3Ú ý†Ì&‘ZG2.5.2‘ ! ó5Completion‘¦fF‘ÿeunctions‘Š`‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ _‘Ý31ޤ 33‘ZG2.5.3‘ ó5Completion‘¦fV‘ÿeariables‘Ñk‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ ! ¦œÝ32Ž¡‘ZG2.5.4‘ ! ó5A–¦fShort“Completion“Example$K‘é˜à.Ž–.Ô‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž“‘é˜.Ž‘ù|Ý34ŽŸ33‘GëHConcept‘ffIndex‘H~‘32ëI.Ž–…‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž‘3óëH45ŽŸ ÿ‘GF›þ¦function–ffand“V˜ariable“Index‘â.‘32ëI.Ž–…‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž“‘32.Ž‘ ͤëH47ŽŽŸŒøËÁƒ’À;è›3Úïÿ 6óZÂÖN ¼j cmbx12óQÂÖN  #× cmbx12óIF C–ff cmbxti10óHÂÖN ff cmbx12ó?ÂÖN G® cmbx12ó=ßê ! GNU Readline Library --- 1,6 ---- ! GNU Readline Library *************** *** 8,24 ****

    GNU Readline Library

    !

    Edition 2.2, for Readline Library Version 2.1.

    !

    September 1997

    Brian Fox, Free Software Foundation
    Chet Ramey, Case Western Reserve University


    ! !

    ! @dircategory Libraries ! @direntry ! * Readline: (readline). The GNU readline library API ! !

    --- 8,84 ----

    GNU Readline Library

    !

    Edition 4.0, for Readline Library Version 4.0.

    !

    December 1998

    Brian Fox, Free Software Foundation
    Chet Ramey, Case Western Reserve University


    !

    Table of Contents

    ! !


    *************** *** 51,59 **** 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.

    ! Copyright (C) 1989, 1991 Free Software Foundation, Inc.

    --- 111,119 ---- into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved ! by the Free Software Foundation.

    ! Copyright (C) 1988-1999 Free Software Foundation, Inc.

    *************** *** 61,65 **** !

    Command Line Editing

    --- 121,125 ---- !

    Command Line Editing

    *************** *** 69,75 ****

    !

    Introduction to Line Editing

    --- 129,145 ----

    + + !

    Introduction to Line Editing

    *************** *** 89,98 **** key is pressed. If you do not have a meta key, the identical keystroke can be generated by typing ESC first, and then typing k. ! Either process is known as metafying the k key.

    The text M-C-k is read as `Meta-Control-k' and describes the ! character produced by metafying C-k.

    --- 159,168 ---- key is pressed. If you do not have a meta key, the identical keystroke can be generated by typing ESC first, and then typing k. ! Either process is known as metafying the k key.

    The text M-C-k is read as `Meta-Control-k' and describes the ! character produced by metafying C-k.

    *************** *** 101,110 **** DEL, ESC, LFD, SPC, RET, and TAB all stand for themselves when seen in this text, or in an init file ! (@xref{Readline Init File}).

    !

    Readline Interaction

    --- 171,180 ---- DEL, ESC, LFD, SPC, RET, and TAB all stand for themselves when seen in this text, or in an init file ! (see section Readline Init File).

    !

    Readline Interaction

    *************** *** 125,131 ****

    !

    Readline Init File Syntax

    --- 195,473 ----

    + + + + +

    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 miss typing a character that you wanted to type, and + not notice your 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 basic bare + essentials for editing the text of an input line follows. + +

    +
    + +
    C-b +
    + Move back one character. +
    C-f +
    + Move forward one character. +
    DEL +
    + 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-_ +
    + Undo the last editing command. You can undo all the way back to an + empty line. +
    + + + +

    Readline Movement Commands

    + +

    + The above table describes the most basic possible 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 DEL. 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. + +

    + + +

    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. + 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. + +
    M-DEL +
    + Kill from the cursor the start of the previous word, or if between + words, to the start of the previous word. + +
    C-w +
    + Kill from the cursor to the previous whitespace. This is different than + M-DEL 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. +
    + + + +

    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'. + +

    + + +

    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. + 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 ESC 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-s or + C-r 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 RET will terminate the search and accept + the line, thereby executing the command from the history list. + +

    +

    + 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. +

    ! !

    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 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'. ! !

    !

    ! 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. ! !

    ! ! ! ! ! !

    Readline Init File Syntax

    *************** *** 134,138 **** Lines beginning with a `#' are comments. Lines beginning with a `$' indicate conditional ! constructs (see section Conditional Init Constructs). Other lines denote variable settings and key bindings. --- 476,480 ---- Lines beginning with a `#' are comments. Lines beginning with a `$' indicate conditional ! constructs (see section Conditional Init Constructs). Other lines denote variable settings and key bindings. *************** *** 160,164 ****

    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 --- 502,506 ----
    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 *************** *** 169,173 ****
    comment-begin
    ! The string to insert at the beginning of the line when the insert-comment command is executed. The default value --- 511,515 ----
    comment-begin
    ! The string to insert at the beginning of the line when the insert-comment command is executed. The default value *************** *** 182,186 ****
    completion-query-items
    ! The number of possible completions that determines when the user is asked whether he wants to see the list of possibilities. If the --- 524,528 ----
    completion-query-items
    ! The number of possible completions that determines when the user is asked whether he wants to see the list of possibilities. If the *************** *** 192,196 ****
    convert-meta
    ! If set to `on', Readline will convert characters with the eighth bit set to an ASCII key sequence by stripping the eighth --- 534,538 ----
    convert-meta
    ! If set to `on', Readline will convert characters with the eighth bit set to an ASCII key sequence by stripping the eighth *************** *** 200,204 ****
    disable-completion
    ! If set to `On', Readline will inhibit word completion. Completion characters will be inserted into the line as if they had --- 542,546 ----
    disable-completion
    ! If set to `On', Readline will inhibit word completion. Completion characters will be inserted into the line as if they had *************** *** 207,211 ****
    editing-mode
    ! The editing-mode variable controls which default set of key bindings is used. By default, Readline starts up in Emacs editing --- 549,553 ----
    editing-mode
    ! The editing-mode variable controls which default set of key bindings is used. By default, Readline starts up in Emacs editing *************** *** 215,219 ****
    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 --- 557,561 ----
    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 *************** *** 222,226 ****
    expand-tilde
    ! If set to `on', tilde expansion is performed when Readline attempts word completion. The default is `off'. --- 564,568 ----
    expand-tilde
    ! If set to `on', tilde expansion is performed when Readline attempts word completion. The default is `off'. *************** *** 228,232 ****
    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 --- 570,574 ----
    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 *************** *** 235,241 **** this variable is set to `off'.
    keymap
    ! Sets Readline's idea of the current keymap for key binding commands. Acceptable keymap names are --- 577,601 ---- this variable is set to `off'. +
    input-meta +
    + + + If set to `on', Readline will enable eight-bit input (it + will not strip the eighth bit from 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 (see section Searching for Commands in the History). + If this variable has not been given a value, the characters ESC 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 *************** *** 259,280 ****
    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. -
    input-meta -
    - - - If set to `on', Readline will enable eight-bit input (it - will not strip the eighth bit from 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. -
    output-meta
    ! If set to `on', Readline will display characters with the eighth bit set directly rather than as a meta-prefixed escape --- 619,630 ----
    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.
    output-meta
    ! If set to `on', Readline will display characters with the eighth bit set directly rather than as a meta-prefixed escape *************** *** 289,293 ****
    show-all-if-ambiguous
    ! This alters the default behavior of the completion functions. If set to `on', --- 639,643 ----
    show-all-if-ambiguous
    ! This alters the default behavior of the completion functions. If set to `on', *************** *** 298,302 ****
    visible-stats
    ! If set to `on', a character denoting a file's type is appended to the filename when listing possible --- 648,652 ----
    visible-stats
    ! If set to `on', a character denoting a file's type is appended to the filename when listing possible *************** *** 440,444 **** !

    Conditional Init Constructs

    --- 790,794 ---- !

    Conditional Init Constructs

    *************** *** 520,524 **** !

    Sample Init File

    --- 870,874 ---- !

    Sample Init File

    *************** *** 630,634 **** !

    Bindable Readline Commands

    --- 980,996 ---- !

    Bindable Readline Commands

    ! ! !

    *************** *** 639,668 **** !

    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. --- 1001,1030 ---- !

    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. *************** *** 670,674 ****
    backward-word (M-b)
    ! Move back to the start of this, or the previous, word. Words are composed of letters and digits. --- 1032,1036 ----
    backward-word (M-b)
    ! Move back to the start of this, or the previous, word. Words are composed of letters and digits. *************** *** 676,680 ****
    clear-screen (C-l)
    ! Clear the screen and redraw the current line, leaving the current line at the top of the screen. --- 1038,1042 ----
    clear-screen (C-l)
    ! Clear the screen and redraw the current line, leaving the current line at the top of the screen. *************** *** 682,686 ****
    redraw-current-line ()
    ! Refresh the current line. By default, this is unbound. --- 1044,1048 ----
    redraw-current-line ()
    ! Refresh the current line. By default, this is unbound. *************** *** 689,693 **** !

    Commands For Manipulating The History

    --- 1051,1055 ---- !

    Commands For Manipulating The History

    *************** *** 695,699 ****
    accept-line (Newline, Return)
    ! Accept the line regardless of where the cursor is. If this line is non-empty, add it to the history list. If this line was a history --- 1057,1061 ----
    accept-line (Newline, Return)
    ! Accept the line regardless of where the cursor is. If this line is non-empty, add it to the history list. If this line was a history *************** *** 702,721 ****
    previous-history (C-p)
    ! Move `up' through the history list.
    next-history (C-n)
    ! Move `down' through the history list.
    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. --- 1064,1083 ----
    previous-history (C-p)
    ! Move `up' through the history list.
    next-history (C-n)
    ! Move `down' through the history list.
    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. *************** *** 723,727 ****
    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. --- 1085,1089 ----
    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. *************** *** 729,733 ****
    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. --- 1091,1095 ----
    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. *************** *** 735,739 ****
    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 --- 1097,1101 ----
    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 *************** *** 742,746 ****
    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 --- 1104,1108 ----
    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 *************** *** 749,753 ****
    history-search-forward ()
    ! Search forward through the history for the string of characters between the start of the current line and the current cursor --- 1111,1115 ----
    history-search-forward ()
    ! Search forward through the history for the string of characters between the start of the current line and the current cursor *************** *** 757,761 ****
    history-search-backward ()
    ! Search backward through the history for the string of characters between the start of the current line and the point. This --- 1119,1123 ----
    history-search-backward ()
    ! Search backward through the history for the string of characters between the start of the current line and the point. This *************** *** 764,768 ****
    yank-nth-arg (M-C-y)
    ! Insert the first argument to the previous command (usually the second word on the previous line). With an argument n, --- 1126,1130 ----
    yank-nth-arg (M-C-y)
    ! Insert the first argument to the previous command (usually the second word on the previous line). With an argument n, *************** *** 773,777 ****
    yank-last-arg (M-., M-_)
    ! Insert last argument to the previous command (the last word of the previous history entry). With an --- 1135,1139 ----
    yank-last-arg (M-., M-_)
    ! Insert last argument to the previous command (the last word of the previous history entry). With an *************** *** 784,788 **** !

    Commands For Changing Text

    --- 1146,1150 ---- !

    Commands For Changing Text

    *************** *** 790,794 ****
    delete-char (C-d)
    ! Delete the character under the cursor. If the cursor is at the beginning of the line, there are no characters in the line, and --- 1152,1156 ----
    delete-char (C-d)
    ! Delete the character under the cursor. If the cursor is at the beginning of the line, there are no characters in the line, and *************** *** 798,808 ****
    backward-delete-char (Rubout)
    ! Delete the character behind the cursor. A numeric argument means to kill the characters instead of deleting them.
    quoted-insert (C-q, C-v)
    ! Add the next character typed to the line verbatim. This is how to insert key sequences like C-q, for example. --- 1160,1177 ----
    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, C-v)
    ! Add the next character typed to the line verbatim. This is how to insert key sequences like C-q, for example. *************** *** 810,824 ****
    tab-insert (M-TAB)
    ! 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 --- 1179,1193 ----
    tab-insert (M-TAB)
    ! 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 *************** *** 830,834 ****
    transpose-words (M-t)
    ! Drag the word behind the cursor past the word in front of the cursor moving the cursor over that word as well. --- 1199,1203 ----
    transpose-words (M-t)
    ! Drag the word behind the cursor past the word in front of the cursor moving the cursor over that word as well. *************** *** 836,840 ****
    upcase-word (M-u)
    ! Uppercase the current (or following) word. With a negative argument, uppercase the previous word, but do not move the cursor. --- 1205,1209 ----
    upcase-word (M-u)
    ! Uppercase the current (or following) word. With a negative argument, uppercase the previous word, but do not move the cursor. *************** *** 842,846 ****
    downcase-word (M-l)
    ! Lowercase the current (or following) word. With a negative argument, lowercase the previous word, but do not move the cursor. --- 1211,1215 ----
    downcase-word (M-l)
    ! Lowercase the current (or following) word. With a negative argument, lowercase the previous word, but do not move the cursor. *************** *** 848,852 ****
    capitalize-word (M-c)
    ! Capitalize the current (or following) word. With a negative argument, capitalize the previous word, but do not move the cursor. --- 1217,1221 ----
    capitalize-word (M-c)
    ! Capitalize the current (or following) word. With a negative argument, capitalize the previous word, but do not move the cursor. *************** *** 856,860 **** !

    Killing And Yanking

    --- 1225,1229 ---- !

    Killing And Yanking

    *************** *** 862,876 ****
    kill-line (C-k)
    ! Kill the text from the current cursor position 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. The killed text is saved on the kill-ring. --- 1231,1245 ----
    kill-line (C-k)
    ! Kill the text from the current cursor position 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. The killed text is saved on the kill-ring. *************** *** 878,882 ****
    kill-whole-line ()
    ! Kill all characters on the current line, no matter where the cursor is. By default, this is unbound. --- 1247,1251 ----
    kill-whole-line ()
    ! Kill all characters on the current line, no matter where the cursor is. By default, this is unbound. *************** *** 884,888 ****
    kill-word (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 --- 1253,1257 ----
    kill-word (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 *************** *** 891,895 ****
    backward-kill-word (M-DEL)
    ! Kill the word behind the cursor. Word boundaries are the same as backward-word. --- 1260,1264 ----
    backward-kill-word (M-DEL)
    ! Kill the word behind the cursor. Word boundaries are the same as backward-word. *************** *** 897,901 ****
    unix-word-rubout (C-w)
    ! Kill the word behind the cursor, using white space as a word boundary. The killed text is saved on the kill-ring. --- 1266,1270 ----
    unix-word-rubout (C-w)
    ! Kill the word behind the cursor, using white space as a word boundary. The killed text is saved on the kill-ring. *************** *** 903,912 ****
    delete-horizontal-space ()
    ! Delete all spaces and tabs around point. By default, this is unbound.
    kill-region ()
    ! Kill the text between the point and the mark (saved cursor position). This text is referred to as the region. --- 1272,1281 ----
    delete-horizontal-space ()
    ! Delete all spaces and tabs around point. By default, this is unbound.
    kill-region ()
    ! Kill the text between the point and the mark (saved cursor position). This text is referred to as the region. *************** *** 915,919 ****
    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. --- 1284,1288 ----
    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. *************** *** 921,925 ****
    copy-backward-word ()
    ! Copy the word before point to the kill buffer. The word boundaries are the same as backward-word. --- 1290,1294 ----
    copy-backward-word ()
    ! Copy the word before point to the kill buffer. The word boundaries are the same as backward-word. *************** *** 928,932 ****
    copy-forward-word ()
    ! Copy the word following point to the kill buffer. The word boundaries are the same as forward-word. --- 1297,1301 ----
    copy-forward-word ()
    ! Copy the word following point to the kill buffer. The word boundaries are the same as forward-word. *************** *** 935,939 ****
    yank (C-y)
    ! Yank the top of the kill ring into the buffer at the current cursor position. --- 1304,1308 ----
    yank (C-y)
    ! Yank the top of the kill ring into the buffer at the current cursor position. *************** *** 941,945 ****
    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. --- 1310,1314 ----
    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. *************** *** 948,957 **** !

    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. --- 1317,1326 ---- !

    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. *************** *** 959,963 ****
    universal-argument ()
    ! This is another way to specify an argument. If this command is followed by one or more digits, optionally with a --- 1328,1332 ----
    universal-argument ()
    ! This is another way to specify an argument. If this command is followed by one or more digits, optionally with a *************** *** 976,980 **** !

    Letting Readline Type For You

    --- 1345,1349 ---- !

    Letting Readline Type For You

    *************** *** 982,986 ****
    complete (TAB)
    ! Attempt to do completion on the text before the cursor. This is application-specific. Generally, if you are typing a filename --- 1351,1355 ----
    complete (TAB)
    ! Attempt to do completion on the text before the cursor. This is application-specific. Generally, if you are typing a filename *************** *** 992,1001 ****
    possible-completions (M-?)
    ! List the possible completions of the text before the cursor.
    insert-completions (M-*)
    ! Insert all completions of the text before point that would have been generated by possible-completions. --- 1361,1370 ----
    possible-completions (M-?)
    ! List the possible completions of the text before the cursor.
    insert-completions (M-*)
    ! Insert all completions of the text before point that would have been generated by possible-completions. *************** *** 1003,1007 ****
    menu-complete ()
    ! Similar to complete, but replaces the word to be completed with a single match from the list of possible completions. --- 1372,1376 ----
    menu-complete ()
    ! Similar to complete, but replaces the word to be completed with a single match from the list of possible completions. *************** *** 1016,1034 **** by default.
    !

    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. --- 1385,1412 ---- by default. +
    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. +
    !

    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. *************** *** 1036,1040 ****
    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. --- 1414,1418 ----
    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. *************** *** 1044,1053 **** !

    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. --- 1422,1431 ---- !

    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. *************** *** 1055,1059 ****
    abort (C-g)
    ! Abort the current editing command and ring the terminal's bell (subject to the setting of --- 1433,1437 ----
    abort (C-g)
    ! Abort the current editing command and ring the terminal's bell (subject to the setting of *************** *** 1062,1066 ****
    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. --- 1440,1444 ----
    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. *************** *** 1068,1072 ****
    prefix-meta (ESC)
    ! Make the next character typed be metafied. This is for keyboards without a meta key. Typing `ESC f' is equivalent to typing --- 1446,1450 ----
    prefix-meta (ESC)
    ! Make the next character typed be metafied. This is for keyboards without a meta key. Typing `ESC f' is equivalent to typing *************** *** 1075,1084 ****
    undo (C-_, 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. --- 1453,1462 ----
    undo (C-_, 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. *************** *** 1086,1095 ****
    tilde-expand (M-~)
    ! Perform tilde expansion on the current word.
    set-mark (C-@)
    ! Set the mark to the current point. If a numeric argument is supplied, the mark is set to that position. --- 1464,1473 ----
    tilde-expand (M-~)
    ! Perform tilde expansion on the current word.
    set-mark (C-@)
    ! Set the mark to the current point. If a numeric argument is supplied, the mark is set to that position. *************** *** 1097,1101 ****
    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. --- 1475,1479 ----
    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. *************** *** 1103,1107 ****
    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. --- 1481,1485 ----
    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. *************** *** 1109,1113 ****
    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 --- 1487,1491 ----
    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 *************** *** 1116,1120 ****
    insert-comment (M-#)
    ! The value of the comment-begin variable is inserted at the beginning of the current line, --- 1494,1498 ----
    insert-comment (M-#)
    ! The value of the comment-begin variable is inserted at the beginning of the current line, *************** *** 1123,1127 ****
    dump-functions ()
    ! Print all of the functions and their key bindings to the Readline output stream. If a numeric argument is supplied, --- 1501,1505 ----
    dump-functions ()
    ! Print all of the functions and their key bindings to the Readline output stream. If a numeric argument is supplied, *************** *** 1131,1135 ****
    dump-variables ()
    ! Print all of the settable variables and their values to the Readline output stream. If a numeric argument is supplied, --- 1509,1513 ----
    dump-variables ()
    ! Print all of the settable variables and their values to the Readline output stream. If a numeric argument is supplied, *************** *** 1139,1143 ****
    dump-macros ()
    ! Print all of the Readline key sequences bound to macros and the strings they ouput. If a numeric argument is supplied, --- 1517,1521 ----
    dump-macros ()
    ! Print all of the Readline key sequences bound to macros and the strings they ouput. If a numeric argument is supplied, *************** *** 1149,1153 **** !

    Readline vi Mode

    --- 1527,1531 ---- !

    Readline vi Mode

    *************** *** 1176,1180 **** !

    Programming with GNU Readline

    --- 1554,1558 ---- !

    Programming with GNU Readline

    *************** *** 1187,1193 ****

    !

    Basic Behavior

    --- 1565,1584 ----

    + + !

    Basic Behavior

    *************** *** 1200,1205 ****

    ! ! The function readline () prints a prompt and then reads and returns a single line of text from the user. The line readline --- 1591,1596 ----

    ! ! The function readline () prints a prompt and then reads and returns a single line of text from the user. The line readline *************** *** 1236,1240 **** If you want the user to be able to get at the line later, (with C-p for example), you must call add_history () to save the ! line away in a history list of such lines.

    --- 1627,1631 ---- If you want the user to be able to get at the line later, (with C-p for example), you must call add_history () to save the ! line away in a history list of such lines.

    *************** *** 1315,1324 **** might write a function called initialize_readline () which performs this and other desired initializations, such as installing ! custom completers (see section Custom Completers).

    !

    Custom Functions

    --- 1706,1715 ---- might write a function called initialize_readline () which performs this and other desired initializations, such as installing ! custom completers (see section Custom Completers).

    !

    Custom Functions

    *************** *** 1331,1341 ****

    !

    The Function Type

    For readabilty, we declare a new type of object, called ! Function. A Function is a C function which returns an int. The type declaration for Function is: --- 1722,1737 ----

    + + !

    The Function Type

    For readabilty, we declare a new type of object, called ! Function. A Function is a C function which returns an int. The type declaration for Function is: *************** *** 1382,1386 **** !

    Writing a New Function

    --- 1778,1782 ---- !

    Writing a New Function

    *************** *** 1418,1422 **** !

    Readline Variables

    --- 1814,1818 ---- !

    Readline Variables

    *************** *** 1427,1433 ****

    Variable: char * rl_line_buffer !
    This is the line gathered so far. You are welcome to modify the ! contents of the line, but see section Allowing Undoing.
    --- 1823,1829 ----
    Variable: char * rl_line_buffer !
    This is the line gathered so far. You are welcome to modify the ! contents of the line, but see section Allowing Undoing.
    *************** *** 1436,1440 ****
    Variable: int rl_point !
    The offset of the current cursor position in rl_line_buffer (the point). --- 1832,1836 ----
    Variable: int rl_point !
    The offset of the current cursor position in rl_line_buffer (the point). *************** *** 1445,1449 ****
    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 --- 1841,1845 ----
    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 *************** *** 1455,1459 ****
    Variable: int rl_mark !
    The mark (saved position) in the current line. If set, the mark and point define a region. --- 1851,1855 ----
    Variable: int rl_mark !
    The mark (saved position) in the current line. If set, the mark and point define a region. *************** *** 1464,1468 ****
    Variable: int rl_done !
    Setting this to a non-zero value causes Readline to return the current line immediately. --- 1860,1864 ----
    Variable: int rl_done !
    Setting this to a non-zero value causes Readline to return the current line immediately. *************** *** 1473,1477 ****
    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. --- 1869,1873 ----
    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. *************** *** 1481,1486 ****

    Variable: char * rl_prompt !
    The prompt Readline uses. This is set from the argument to readline (), and should not be assigned to directly. --- 1877,1893 ----

    +
    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. *************** *** 1491,1495 ****
    Variable: char * rl_library_version !
    The version number of this revision of the library.
    --- 1898,1902 ----
    Variable: char * rl_library_version !
    The version number of this revision of the library.
    *************** *** 1499,1503 ****
    Variable: char * rl_terminal_name !
    The terminal type, used for initialization.
    --- 1906,1910 ----
    Variable: char * rl_terminal_name !
    The terminal type, used for initialization.
    *************** *** 1507,1514 ****
    Variable: 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 ! (see section Conditional Init Constructs).
    --- 1914,1921 ----
    Variable: 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 ! (see section Conditional Init Constructs).
    *************** *** 1517,1521 ****
    Variable: FILE * rl_instream !
    The stdio stream from which Readline reads input.
    --- 1924,1928 ----
    Variable: FILE * rl_instream !
    The stdio stream from which Readline reads input.
    *************** *** 1525,1529 ****
    Variable: FILE * rl_outstream !
    The stdio stream to which Readline performs output.
    --- 1932,1936 ----
    Variable: FILE * rl_outstream !
    The stdio stream to which Readline performs output.
    *************** *** 1533,1537 ****
    Variable: Function * rl_startup_hook !
    If non-zero, this is the address of a function to call just before readline prints the first prompt. --- 1940,1944 ----
    Variable: Function * rl_startup_hook !
    If non-zero, this is the address of a function to call just before readline prints the first prompt. *************** *** 1541,1546 ****

    Variable: Function * rl_event_hook !
    If non-zero, this is the address of a function to call periodically when readline is waiting for terminal input. --- 1948,1963 ----

    +
    Variable: Function * 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: Function * rl_event_hook !
    If non-zero, this is the address of a function to call periodically when readline is waiting for terminal input. *************** *** 1551,1559 ****
    Variable: Function * 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 ! (see section Utility Functions).
    --- 1968,1976 ----
    Variable: Function * 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 ! (see section Utility Functions).
    *************** *** 1562,1570 ****
    Variable: VFunction * 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 (see section Redisplay).
    --- 1979,1987 ----
    Variable: VFunction * 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 (see section Redisplay).
    *************** *** 1573,1578 ****
    Variable: Keymap rl_executing_keymap !
    ! This variable is set to the keymap (see section Selecting a Keymap) in which the currently executing readline function was found.
    --- 1990,1995 ----
    Variable: Keymap rl_executing_keymap !
    ! This variable is set to the keymap (see section Selecting a Keymap) in which the currently executing readline function was found.
    *************** *** 1582,1587 ****
    Variable: Keymap rl_binding_keymap !
    ! This variable is set to the keymap (see section Selecting a Keymap) in which the last key binding occurred.
    --- 1999,2004 ----
    Variable: Keymap rl_binding_keymap !
    ! This variable is set to the keymap (see section Selecting a Keymap) in which the last key binding occurred.
    *************** *** 1590,1598 **** !

    Readline Convenience Functions

    !

    Naming a Function

    --- 2007,2029 ---- !

    Readline Convenience Functions

    ! + ! !

    Naming a Function

    *************** *** 1618,1622 ****

    Function: int rl_add_defun (char *name, Function *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 --- 2049,2053 ----
    Function: int rl_add_defun (char *name, Function *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 *************** *** 1635,1642 **** !

    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 --- 2066,2073 ---- !

    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 *************** *** 1647,1651 ****

    Function: Keymap rl_make_bare_keymap () !
    Returns a new, empty keymap. The space for the keymap is allocated with malloc (); you should free () it when you are done. --- 2078,2082 ----
    Function: Keymap rl_make_bare_keymap () !
    Returns a new, empty keymap. The space for the keymap is allocated with malloc (); you should free () it when you are done. *************** *** 1656,1660 ****
    Function: Keymap rl_copy_keymap (Keymap map) !
    Return a new keymap which is a copy of map.
    --- 2087,2091 ----
    Function: Keymap rl_copy_keymap (Keymap map) !
    Return a new keymap which is a copy of map.
    *************** *** 1664,1668 ****
    Function: Keymap rl_make_keymap () !
    Return a new keymap with the printing characters bound to rl_insert, the lowercase Meta characters bound to run their equivalents, and --- 2095,2099 ----
    Function: Keymap rl_make_keymap () !
    Return a new keymap with the printing characters bound to rl_insert, the lowercase Meta characters bound to run their equivalents, and *************** *** 1674,1678 ****
    Function: void rl_discard_keymap (Keymap keymap) !
    Free the storage associated with keymap.
    --- 2105,2109 ----
    Function: void rl_discard_keymap (Keymap keymap) !
    Free the storage associated with keymap.
    *************** *** 1687,1691 ****
    Function: Keymap rl_get_keymap () !
    Returns the currently active keymap.
    --- 2118,2122 ----
    Function: Keymap rl_get_keymap () !
    Returns the currently active keymap.
    *************** *** 1695,1699 ****
    Function: void rl_set_keymap (Keymap keymap) !
    Makes keymap the currently active keymap.
    --- 2126,2130 ----
    Function: void rl_set_keymap (Keymap keymap) !
    Makes keymap the currently active keymap.
    *************** *** 1703,1709 ****
    Function: Keymap rl_get_keymap_by_name (char *name) !
    Return the keymap matching name. name is one which would ! be supplied in a set keymap inputrc line (@xref{Readline Init File}).
    --- 2134,2140 ----
    Function: Keymap rl_get_keymap_by_name (char *name) !
    Return the keymap matching name. name is one which would ! be supplied in a set keymap inputrc line (see section Readline Init File).
    *************** *** 1712,1718 ****
    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 (@xref{Readline Init File}).
    --- 2143,2149 ----
    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 (see section Readline Init File).
    *************** *** 1720,1724 **** !

    Binding Keys

    --- 2151,2155 ---- !

    Binding Keys

    *************** *** 1738,1742 ****

    Function: int rl_bind_key (int key, Function *function) !
    Binds key to function in the currently active keymap. Returns non-zero in the case of an invalid key. --- 2169,2173 ----
    Function: int rl_bind_key (int key, Function *function) !
    Binds key to function in the currently active keymap. Returns non-zero in the case of an invalid key. *************** *** 1747,1751 ****
    Function: int rl_bind_key_in_map (int key, Function *function, Keymap map) !
    Bind key to function in map. Returns non-zero in the case of an invalid key. --- 2178,2182 ----
    Function: int rl_bind_key_in_map (int key, Function *function, Keymap map) !
    Bind key to function in map. Returns non-zero in the case of an invalid key. *************** *** 1756,1760 ****
    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. --- 2187,2191 ----
    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. *************** *** 1765,1769 ****
    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. --- 2196,2200 ----
    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. *************** *** 1774,1778 ****
    Function: int rl_unbind_function_in_map (Function *function, Keymap map) !
    Unbind all keys that execute function in map.
    --- 2205,2209 ----
    Function: int rl_unbind_function_in_map (Function *function, Keymap map) !
    Unbind all keys that execute function in map.
    *************** *** 1782,1786 ****
    Function: int rl_unbind_command_in_map (char *command, Keymap map) !
    Unbind all keys that are bound to command in map.
    --- 2213,2217 ----
    Function: int rl_unbind_command_in_map (char *command, Keymap map) !
    Unbind all keys that are bound to command in map.
    *************** *** 1790,1794 ****
    Function: int rl_generic_bind (int type, 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 --- 2221,2225 ----
    Function: int rl_generic_bind (int type, 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 *************** *** 1802,1809 ****
    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 ! (@xref{Readline Init File}).
    --- 2233,2240 ----
    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 ! (see section Readline Init File).
    *************** *** 1812,1818 ****
    Function: int rl_read_init_file (char *filename) !
    Read keybindings and variable assignments from filename ! (@xref{Readline Init File}).
    --- 2243,2249 ----
    Function: int rl_read_init_file (char *filename) !
    Read keybindings and variable assignments from filename ! (see section Readline Init File).
    *************** *** 1820,1824 **** !

    Associating Function Names and Bindings

    --- 2251,2255 ---- !

    Associating Function Names and Bindings

    *************** *** 1830,1834 ****

    Function: Function * rl_named_function (char *name) !
    Return the function with name name.
    --- 2261,2265 ----
    Function: Function * rl_named_function (char *name) !
    Return the function with name name.
    *************** *** 1838,1842 ****
    Function: Function * rl_function_of_keyseq (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 --- 2269,2273 ----
    Function: Function * rl_function_of_keyseq (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 *************** *** 1849,1853 ****
    Function: char ** rl_invoking_keyseqs (Function *function) !
    Return an array of strings representing the key sequences used to invoke function in the current keymap. --- 2280,2284 ----
    Function: char ** rl_invoking_keyseqs (Function *function) !
    Return an array of strings representing the key sequences used to invoke function in the current keymap. *************** *** 1858,1862 ****
    Function: char ** rl_invoking_keyseqs_in_map (Function *function, Keymap map) !
    Return an array of strings representing the key sequences used to invoke function in the keymap map. --- 2289,2293 ----
    Function: char ** rl_invoking_keyseqs_in_map (Function *function, Keymap map) !
    Return an array of strings representing the key sequences used to invoke function in the keymap map. *************** *** 1867,1871 ****
    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, --- 2298,2302 ----
    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, *************** *** 1878,1882 ****
    Function: void rl_list_funmap_names () !
    Print the names of all bindable Readline functions to rl_outstream.
    --- 2309,2313 ----
    Function: void rl_list_funmap_names () !
    Print the names of all bindable Readline functions to rl_outstream.
    *************** *** 1885,1889 **** !

    Allowing Undoing

    --- 2316,2320 ---- !

    Allowing Undoing

    *************** *** 1927,1931 ****

    Function: int rl_begin_undo_group () !
    Begins saving undo information in a group construct. The undo information usually comes from calls to rl_insert_text () and --- 2358,2362 ----
    Function: int rl_begin_undo_group () !
    Begins saving undo information in a group construct. The undo information usually comes from calls to rl_insert_text () and *************** *** 1938,1942 ****
    Function: int rl_end_undo_group () !
    Closes the current undo group started with rl_begin_undo_group (). There should be one call to rl_end_undo_group () --- 2369,2373 ----
    Function: int rl_end_undo_group () !
    Closes the current undo group started with rl_begin_undo_group (). There should be one call to rl_end_undo_group () *************** *** 1948,1952 ****
    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. --- 2379,2383 ----
    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. *************** *** 1957,1961 ****
    Function: void free_undo_list () !
    Free the existing undo list.
    --- 2388,2392 ----
    Function: void free_undo_list () !
    Free the existing undo list.
    *************** *** 1965,1969 ****
    Function: int rl_do_undo () !
    Undo the first thing on the undo list. Returns 0 if there was nothing to undo, non-zero if something was undone. --- 2396,2400 ----
    Function: int rl_do_undo () !
    Undo the first thing on the undo list. Returns 0 if there was nothing to undo, non-zero if something was undone. *************** *** 1981,1985 ****
    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 --- 2412,2416 ----
    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 *************** *** 1990,1999 **** !

    Redisplay

    Function: void rl_redisplay () !
    Change what's displayed on the screen to reflect the current contents of rl_line_buffer. --- 2421,2430 ---- !

    Redisplay

    Function: void rl_redisplay () !
    Change what's displayed on the screen to reflect the current contents of rl_line_buffer. *************** *** 2004,2008 ****
    Function: int rl_forced_update_display () !
    Force the line to be updated and redisplayed, whether or not Readline thinks the screen display is correct. --- 2435,2439 ----
    Function: int rl_forced_update_display () !
    Force the line to be updated and redisplayed, whether or not Readline thinks the screen display is correct. *************** *** 2013,2017 ****
    Function: int rl_on_new_line () !
    Tell the update routines that we have moved onto a new (empty) line, usually after ouputting a newline. --- 2444,2448 ----
    Function: int rl_on_new_line () !
    Tell the update routines that we have moved onto a new (empty) line, usually after ouputting a newline. *************** *** 2022,2026 ****
    Function: int rl_reset_line_state () !
    Reset the display state to a clean state and redisplay the current line starting on a new line. --- 2453,2457 ----
    Function: int rl_reset_line_state () !
    Reset the display state to a clean state and redisplay the current line starting on a new line. *************** *** 2031,2037 ****
    Function: int rl_message (va_alist) !
    The arguments are a string as would be supplied to printf. The ! resulting string is displayed in the echo area. The echo area is also used to display numeric arguments and search strings.
    --- 2462,2468 ----
    Function: int rl_message (va_alist) !
    The arguments are a string as would be supplied to printf. The ! resulting string is displayed in the echo area. The echo area is also used to display numeric arguments and search strings.
    *************** *** 2041,2057 ****
    Function: int rl_clear_message () !
    Clear the message in the echo area.

    !

    Modifying Text

    Function: int rl_insert_text (char *text) !
    Insert text into the line at the current cursor position.
    --- 2472,2506 ----
    Function: int rl_clear_message () !
    Clear the message in the echo area.

    +

    +

    +
    Function: void rl_save_prompt () +
    + 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 () +
    + Restore the local Readline prompt display state saved by the most + recent call to rl_save_prompt. +
    + +

    !

    Modifying Text

    Function: int rl_insert_text (char *text) !
    Insert text into the line at the current cursor position.
    *************** *** 2061,2065 ****
    Function: int rl_delete_text (int start, int end) !
    Delete the text between start and end in the current line.
    --- 2510,2514 ----
    Function: int rl_delete_text (int start, int end) !
    Delete the text between start and end in the current line.
    *************** *** 2069,2073 ****
    Function: char * rl_copy_text (int start, int end) !
    Return a copy of the text between start and end in the current line. --- 2518,2522 ----
    Function: char * rl_copy_text (int start, int end) !
    Return a copy of the text between start and end in the current line. *************** *** 2078,2082 ****
    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 --- 2527,2531 ----
    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 *************** *** 2090,2101 **** !

    Utility Functions

    Function: int rl_read_key () !
    Return the next character available. This handles input inserted into ! the input stream via pending input (see section Readline Variables) and rl_stuff_char (), macros, and characters read from the keyboard.
    --- 2539,2550 ---- !

    Utility Functions

    Function: int rl_read_key () !
    Return the next character available. This handles input inserted into ! the input stream via pending input (see section Readline Variables) and rl_stuff_char (), macros, and characters read from the keyboard.
    *************** *** 2105,2109 ****
    Function: int rl_getc (FILE *) !
    Return the next character available from the keyboard.
    --- 2554,2558 ----
    Function: int rl_getc (FILE *) !
    Return the next character available from the keyboard.
    *************** *** 2113,2117 ****
    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 --- 2562,2566 ----
    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 *************** *** 2123,2127 ****
    Function: rl_extend_line_buffer (int len) !
    Ensure that rl_line_buffer has enough space to hold len characters, possibly reallocating it if necessary. --- 2572,2576 ----
    Function: rl_extend_line_buffer (int len) !
    Ensure that rl_line_buffer has enough space to hold len characters, possibly reallocating it if necessary. *************** *** 2132,2136 ****
    Function: int rl_initialize () !
    Initialize or re-initialize Readline's internal state.
    --- 2581,2585 ----
    Function: int rl_initialize () !
    Initialize or re-initialize Readline's internal state.
    *************** *** 2140,2144 ****
    Function: int rl_reset_terminal (char *terminal_name) !
    Reinitialize Readline's idea of the terminal settings using terminal_name as the terminal type (e.g., vt100). --- 2589,2593 ----
    Function: int rl_reset_terminal (char *terminal_name) !
    Reinitialize Readline's idea of the terminal settings using terminal_name as the terminal type (e.g., vt100). *************** *** 2149,2153 ****
    Function: int alphabetic (int c) !
    Return 1 if c is an alphabetic character.
    --- 2598,2602 ----
    Function: int alphabetic (int c) !
    Return 1 if c is an alphabetic character.
    *************** *** 2157,2161 ****
    Function: int numeric (int c) !
    Return 1 if c is a numeric character.
    --- 2606,2610 ----
    Function: int numeric (int c) !
    Return 1 if c is a numeric character.
    *************** *** 2165,2169 ****
    Function: int ding () !
    Ring the terminal bell, obeying the setting of bell-style.
    --- 2614,2618 ----
    Function: int ding () !
    Ring the terminal bell, obeying the setting of bell-style.
    *************** *** 2171,2174 **** --- 2620,2637 ----

    +

    +
    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 (see section Readline Init File Syntax). +
    + +

    +

    The following are implemented as macros, defined in chartypes.h. *************** *** 2177,2181 ****

    Function: int uppercase_p (int c) !
    Return 1 if c is an uppercase alphabetic character.
    --- 2640,2644 ----
    Function: int uppercase_p (int c) !
    Return 1 if c is an uppercase alphabetic character.
    *************** *** 2185,2189 ****
    Function: int lowercase_p (int c) !
    Return 1 if c is a lowercase alphabetic character.
    --- 2648,2652 ----
    Function: int lowercase_p (int c) !
    Return 1 if c is a lowercase alphabetic character.
    *************** *** 2193,2197 ****
    Function: int digit_p (int c) !
    Return 1 if c is a numeric character.
    --- 2656,2660 ----
    Function: int digit_p (int c) !
    Return 1 if c is a numeric character.
    *************** *** 2201,2205 ****
    Function: int to_upper (int c) !
    If c is a lowercase alphabetic character, return the corresponding uppercase character. --- 2664,2668 ----
    Function: int to_upper (int c) !
    If c is a lowercase alphabetic character, return the corresponding uppercase character. *************** *** 2210,2214 ****
    Function: int to_lower (int c) !
    If c is an uppercase alphabetic character, return the corresponding lowercase character. --- 2673,2677 ----
    Function: int to_lower (int c) !
    If c is an uppercase alphabetic character, return the corresponding lowercase character. *************** *** 2219,2223 ****
    Function: int digit_value (int c) !
    If c is a number, return the value it represents.
    --- 2682,2686 ----
    Function: int digit_value (int c) !
    If c is a number, return the value it represents.
    *************** *** 2226,2230 **** !

    Alternate Interface

    --- 2689,2693 ---- !

    Alternate Interface

    *************** *** 2240,2244 ****

    Function: void rl_callback_handler_install (char *prompt, Vfunction *lhandler) !
    Set up the terminal for readline I/O and display the initial expanded value of prompt. Save the value of lhandler to --- 2703,2707 ----
    Function: void rl_callback_handler_install (char *prompt, Vfunction *lhandler) !
    Set up the terminal for readline I/O and display the initial expanded value of prompt. Save the value of lhandler to *************** *** 2250,2254 ****
    Function: void rl_callback_read_char () !
    Whenever an application determines that keyboard input is available, it should call rl_callback_read_char(), which will read the next --- 2713,2717 ----
    Function: void rl_callback_read_char () !
    Whenever an application determines that keyboard input is available, it should call rl_callback_read_char(), which will read the next *************** *** 2264,2268 ****
    Function: void rl_callback_handler_remove () !
    Restore the terminal to its initial state and remove the line handler. This may be called from within a callback as well as independently. --- 2727,2731 ----
    Function: void rl_callback_handler_remove () !
    Restore the terminal to its initial state and remove the line handler. This may be called from within a callback as well as independently. *************** *** 2272,2276 **** !

    An Example

    --- 2735,2739 ---- !

    An Example

    *************** *** 2343,2347 **** !

    Custom Completers

    --- 2806,2971 ---- !

    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 a signal is ! received 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 ()). ! !

    !

    ! 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 state, 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 () to force Readline to update its idea of ! the terminal size when a SIGWINCH is received. ! !

    !

    !

    !
    Function: void rl_resize_terminal (void) !
    ! Update Readline's internal screen size. !
    ! !

    !

    ! 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 (). !
    ! !

    ! ! !

    Custom Completers

    *************** *** 2354,2360 ****

    !

    How Completing Works

    --- 2978,2991 ----

    + + !

    How Completing Works

    *************** *** 2389,2393 **** The internal function completion_matches () uses your ! generator function to generate the list of possible matches, and then returns the array of these matches. You should place the address of your generator function in rl_completion_entry_function. --- 3020,3024 ---- The internal function completion_matches () uses your ! generator function to generate the list of possible matches, and then returns the array of these matches. You should place the address of your generator function in rl_completion_entry_function. *************** *** 2414,2418 ****

    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 --- 3045,3049 ----
    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 *************** *** 2424,2428 ****
    Variable: Function * rl_completion_entry_function !
    This is a pointer to the generator function for completion_matches (). If the value of rl_completion_entry_function is --- 3055,3059 ----
    Variable: Function * rl_completion_entry_function !
    This is a pointer to the generator function for completion_matches (). If the value of rl_completion_entry_function is *************** *** 2434,2438 **** !

    Completion Functions

    --- 3065,3069 ---- !

    Completion Functions

    *************** *** 2444,2448 ****

    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 --- 3075,3079 ----
    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 *************** *** 2457,2461 ****
    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 --- 3088,3092 ----
    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 *************** *** 2470,2474 ****
    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 --- 3101,3105 ----
    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 *************** *** 2480,2484 ****
    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 (). --- 3111,3115 ----
    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 (). *************** *** 2490,2494 ****
    Function: char ** completion_matches (char *text, CPFunction *entry_func) !
    Returns an array of (char *) which is a list of completions for text. If there are no completions, returns (char **)NULL. --- 3121,3125 ----
    Function: char ** completion_matches (char *text, CPFunction *entry_func) !
    Returns an array of (char *) which is a list of completions for text. If there are no completions, returns (char **)NULL. *************** *** 2510,2514 ****
    Function: char * filename_completion_function (char *text, int state) !
    A generator function for filename completion in the general case. Note that completion in Bash is a little different because of all --- 3141,3145 ----
    Function: char * filename_completion_function (char *text, int state) !
    A generator function for filename completion in the general case. Note that completion in Bash is a little different because of all *************** *** 2522,2526 ****
    Function: char * username_completion_function (char *text, int state) !
    A completion generator for usernames. text contains a partial username preceded by a random character (usually `~'). As with all --- 3153,3157 ----
    Function: char * username_completion_function (char *text, int state) !
    A completion generator for usernames. text contains a partial username preceded by a random character (usually `~'). As with all *************** *** 2532,2541 **** !

    Completion Variables

    Variable: Function * rl_completion_entry_function !
    A pointer to the generator function for completion_matches (). NULL means to use filename_entry_function (), the default --- 3163,3172 ---- !

    Completion Variables

    Variable: Function * rl_completion_entry_function !
    A pointer to the generator function for completion_matches (). NULL means to use filename_entry_function (), the default *************** *** 2547,2551 ****
    Variable: CPPFunction * rl_attempted_completion_function !
    A pointer to an alternative function to create matches. The function is called with text, start, and end. --- 3178,3182 ----
    Variable: CPPFunction * rl_attempted_completion_function !
    A pointer to an alternative function to create matches. The function is called with text, start, and end. *************** *** 2562,2566 ****
    Variable: CPFunction * 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 --- 3193,3197 ----
    Variable: CPFunction * 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 *************** *** 2580,2584 ****
    Variable: CPFunction * 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 --- 3211,3215 ----
    Variable: CPFunction * 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 *************** *** 2594,2598 ****
    Variable: Function * 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 --- 3225,3229 ----
    Variable: Function * 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 *************** *** 2608,2612 ****
    Variable: int rl_completion_query_items !
    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 --- 3239,3243 ----
    Variable: int rl_completion_query_items !
    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 *************** *** 2618,2622 ****
    Variable: 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 --- 3249,3253 ----
    Variable: 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 *************** *** 2629,2633 ****
    Variable: char * rl_basic_quote_characters !
    List of quote characters which can cause a word break.
    --- 3260,3264 ----
    Variable: char * rl_basic_quote_characters !
    List of quote characters which can cause a word break.
    *************** *** 2637,2641 ****
    Variable: 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 --- 3268,3272 ----
    Variable: 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 *************** *** 2647,2651 ****
    Variable: char * rl_completer_quote_characters !
    List of characters which can be used to quote a substring of the line. Completion occurs on the entire substring, and within the substring --- 3278,3282 ----
    Variable: char * rl_completer_quote_characters !
    List of characters which can be used to quote a substring of the line. Completion occurs on the entire substring, and within the substring *************** *** 2658,2662 ****
    Variable: 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. --- 3289,3293 ----
    Variable: 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. *************** *** 2667,2671 ****
    Variable: 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. --- 3298,3302 ----
    Variable: 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. *************** *** 2679,2683 ****
    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 --- 3310,3314 ----
    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 *************** *** 2693,2697 ****
    Variable: int rl_ignore_completion_duplicates !
    If non-zero, then disallow duplicates in the matches. Default is 1.
    --- 3324,3328 ----
    Variable: int rl_ignore_completion_duplicates !
    If non-zero, then disallow duplicates in the matches. Default is 1.
    *************** *** 2701,2705 ****
    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 on entry, and can only be changed --- 3332,3336 ----
    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 on entry, and can only be changed *************** *** 2714,2718 ****
    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 --- 3345,3349 ----
    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 *************** *** 2728,2732 ****
    Variable: int rl_inhibit_completion !
    If this variable is non-zero, completion is inhibit<ed. The completion character will be inserted as any other bound to self-insert. --- 3359,3363 ----
    Variable: int rl_inhibit_completion !
    If this variable is non-zero, completion is inhibit<ed. The completion character will be inserted as any other bound to self-insert. *************** *** 2737,2741 ****
    Variable: Function * 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. --- 3368,3372 ----
    Variable: Function * 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. *************** *** 2751,2755 ****
    Variable: Function * 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 --- 3382,3386 ----
    Variable: Function * 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 *************** *** 2759,2765 ****

    !

    A Short Completion Example

    --- 3390,3414 ----

    +

    +

    +
    Variable: VFunction * 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. +
    + +

    !

    A Short Completion Example

    *************** *** 3203,3215 **** !

    Concept Index

    !

    i

  • interaction, readline
  • !

    r

    !
  • readline, function
  • --- 3852,3901 ---- !

    Concept Index

    ! Jump to: ! c ! - ! e ! - ! i ! - ! k ! - ! n ! - ! r ! - ! y !

    !

    c

    ! !
  • command editing !
  • !

    e

    ! !
  • editing command lines !
  • !

    i

    +
  • initialization file, readline
  • interaction, readline
  • !

    k

    ! !
  • kill ring !
  • killing text !
  • !

    n

    ! !
  • notation, readline !
  • !

    r

    ! !
  • readline, function !
  • !

    y

    !
  • yanking text
  • *************** *** 3217,3482 **** !

    Function and Variable Index

    !

    !

    (

    ! !
  • (int !
  • !

    a

    ! !
  • abort (C-g) !
  • accept-line (Newline, Return) !
  • alphabetic !
  • !

    b

    ! !
  • backward-char (C-b) !
  • backward-delete-char (Rubout) !
  • backward-kill-line (C-x Rubout) !
  • backward-kill-word (M-DEL) !
  • backward-word (M-b) !
  • beginning-of-history (M-&#60;) !
  • beginning-of-line (C-a) !
  • bell-style !
  • !

    c

    ! !
  • call-last-kbd-macro (C-x e) !
  • capitalize-word (M-c) !
  • character-search (C-]) !
  • character-search-backward (M-C-]) !
  • clear-screen (C-l) !
  • comment-begin !
  • complete (TAB) !
  • completion-query-items !
  • completion_matches !
  • convert-meta !
  • copy-backward-word () !
  • copy-forward-word () !
  • copy-region-as-kill () !
  • !

    d

    ! !
  • delete-char (C-d) !
  • delete-horizontal-space () !
  • digit-argument (M-0, M-1, ... M--) !
  • digit_p !
  • digit_value !
  • ding !
  • disable-completion !
  • do-uppercase-version (M-a, M-b, M-x, ...) !
  • downcase-word (M-l) !
  • dump-functions () !
  • dump-macros () !
  • dump-variables () !
  • !

    e

    ! !
  • editing-mode !
  • enable-keypad !
  • end-kbd-macro (C-x )) !
  • end-of-history (M-&#62;) !
  • end-of-line (C-e) !
  • exchange-point-and-mark (C-x C-x) !
  • expand-tilde !
  • !

    f

    ! !
  • filename_completion_function !
  • forward-char (C-f) !
  • forward-search-history (C-s) !
  • forward-word (M-f) !
  • free_undo_list !
  • !

    h

    ! !
  • history-search-backward () !
  • history-search-forward () !
  • horizontal-scroll-mode !
  • !

    i

    ! !
  • input-meta !
  • insert-comment (M-#) !
  • insert-completions (M-*) !
  • !

    k

    ! !
  • keymap !
  • kill-line (C-k) !
  • kill-region () !
  • kill-whole-line () !
  • kill-word (M-d) !
  • !

    l

    ! !
  • lowercase_p !
  • !

    m

    ! !
  • mark-modified-lines !
  • menu-complete () !
  • meta-flag !
  • !

    n

    ! !
  • next-history (C-n) !
  • non-incremental-forward-search-history (M-n) !
  • non-incremental-reverse-search-history (M-p) !
  • numeric !
  • !

    o

    ! !
  • output-meta !
  • !

    p

    ! !
  • possible-completions (M-?) !
  • prefix-meta (ESC) !
  • previous-history (C-p) !
  • !

    q

    ! !
  • quoted-insert (C-q, C-v) !
  • !

    r

    ! !
  • re-read-init-file (C-x C-r) !
  • readline !
  • redraw-current-line () !
  • reverse-search-history (C-r) !
  • revert-line (M-r) !
  • rl_add_defun !
  • rl_add_undo !
  • rl_attempted_completion_function !
  • rl_basic_quote_characters !
  • rl_basic_word_break_characters !
  • rl_begin_undo_group !
  • rl_bind_key !
  • rl_bind_key_in_map !
  • rl_binding_keymap !
  • rl_callback_handler_install !
  • rl_callback_handler_remove !
  • rl_callback_read_char !
  • rl_char_is_quoted_p !
  • rl_clear_message !
  • rl_complete, rl_complete !
  • rl_complete_internal !
  • rl_completer_quote_characters !
  • rl_completer_word_break_characters !
  • rl_completion_append_character !
  • rl_completion_entry_function, rl_completion_entry_function !
  • rl_completion_query_items !
  • rl_copy_keymap !
  • rl_copy_text !
  • rl_delete_text !
  • rl_directory_completion_hook !
  • rl_discard_keymap !
  • rl_do_undo !
  • rl_done !
  • rl_end !
  • rl_end_undo_group !
  • rl_event_hook !
  • rl_executing_keymap !
  • rl_filename_completion_desired !
  • rl_filename_dequoting_function !
  • rl_filename_quote_characters !
  • rl_filename_quoting_desired !
  • rl_filename_quoting_function !
  • rl_forced_update_display !
  • rl_function_dumper !
  • rl_function_of_keyseq !
  • rl_generic_bind !
  • rl_get_keymap !
  • rl_get_keymap_by_name !
  • rl_get_keymap_name !
  • rl_getc !
  • rl_getc_function !
  • rl_ignore_completion_duplicates !
  • rl_ignore_some_completions_function !
  • rl_inhibit_completion !
  • rl_initialize !
  • rl_insert_completions !
  • rl_insert_text !
  • rl_instream !
  • rl_invoking_keyseqs !
  • rl_invoking_keyseqs_in_map !
  • rl_kill_text !
  • rl_library_version !
  • rl_line_buffer !
  • rl_list_funmap_names !
  • rl_make_bare_keymap !
  • rl_make_keymap !
  • rl_mark !
  • rl_message !
  • rl_modifying !
  • rl_named_function !
  • rl_on_new_line !
  • rl_outstream !
  • rl_parse_and_bind !
  • rl_pending_input !
  • rl_point !
  • rl_possible_completions !
  • rl_prompt !
  • rl_read_init_file !
  • rl_read_key !
  • rl_readline_name !
  • rl_redisplay !
  • rl_redisplay_function !
  • rl_reset_line_state !
  • rl_reset_terminal !
  • rl_set_keymap !
  • rl_special_prefixes !
  • rl_startup_hook !
  • rl_stuff_char !
  • rl_terminal_name !
  • rl_unbind_command_in_map !
  • rl_unbind_function_in_map !
  • rl_unbind_key !
  • rl_unbind_key_in_map !
  • !

    s

    ! !
  • self-insert (a, b, A, 1, !, ...) !
  • set-mark (C-@) !
  • show-all-if-ambiguous !
  • start-kbd-macro (C-x () !
  • !

    t

    ! !
  • tab-insert (M-TAB) !
  • tilde-expand (M-~) !
  • to_lower !
  • to_upper !
  • transpose-chars (C-t) !
  • transpose-words (M-t) !
  • !

    u

    ! !
  • undo (C-_, C-x C-u) !
  • universal-argument () !
  • unix-line-discard (C-u) !
  • unix-word-rubout (C-w) !
  • upcase-word (M-u) !
  • uppercase_p !
  • username_completion_function !
  • !

    v

    ! !
  • visible-stats !
  • !

    y

    ! !
  • yank (C-y) !
  • yank-last-arg (M-., M-_) !
  • yank-nth-arg (M-C-y) !
  • yank-pop (M-y)

  • ! This document was generated on 2 April 1998 using the ! texi2html ! translator version 1.51.

    --- 3903,4230 ---- !

    Function and Variable Index

    !

    ! Jump to: ! ( ! - ! a ! - ! b ! - ! c ! - ! d ! - ! e ! - ! f ! - ! h ! - ! i ! - ! k ! - ! l ! - ! m ! - ! n ! - ! o ! - ! p ! - ! q ! - ! r ! - ! s ! - ! t ! - ! u ! - ! v ! - ! y !

    !

    (

    ! !
  • (int !
  • !

    a

    ! !
  • abort (C-g) !
  • accept-line (Newline, Return) !
  • alphabetic !
  • !

    b

    ! !
  • backward-char (C-b) !
  • backward-delete-char (Rubout) !
  • backward-kill-line (C-x Rubout) !
  • backward-kill-word (M-DEL) !
  • backward-word (M-b) !
  • beginning-of-history (M-&#60;) !
  • beginning-of-line (C-a) !
  • bell-style !
  • !

    c

    ! !
  • call-last-kbd-macro (C-x e) !
  • capitalize-word (M-c) !
  • character-search (C-]) !
  • character-search-backward (M-C-]) !
  • clear-screen (C-l) !
  • comment-begin !
  • complete (TAB) !
  • completion-query-items !
  • completion_matches !
  • convert-meta !
  • copy-backward-word () !
  • copy-forward-word () !
  • copy-region-as-kill () !
  • !

    d

    ! !
  • delete-char (C-d) !
  • delete-char-or-list () !
  • delete-horizontal-space () !
  • digit-argument (M-0, M-1, ... M--) !
  • digit_p !
  • digit_value !
  • ding !
  • disable-completion !
  • do-uppercase-version (M-a, M-b, M-x, ...) !
  • downcase-word (M-l) !
  • dump-functions () !
  • dump-macros () !
  • dump-variables () !
  • !

    e

    ! !
  • editing-mode !
  • enable-keypad !
  • end-kbd-macro (C-x )) !
  • end-of-history (M-&#62;) !
  • end-of-line (C-e) !
  • exchange-point-and-mark (C-x C-x) !
  • expand-tilde !
  • !

    f

    ! !
  • filename_completion_function !
  • forward-backward-delete-char () !
  • forward-char (C-f) !
  • forward-search-history (C-s) !
  • forward-word (M-f) !
  • free_undo_list !
  • !

    h

    ! !
  • history-search-backward () !
  • history-search-forward () !
  • horizontal-scroll-mode !
  • !

    i

    ! !
  • input-meta !
  • insert-comment (M-#) !
  • insert-completions (M-*) !
  • isearch-terminators !
  • !

    k

    ! !
  • keymap !
  • kill-line (C-k) !
  • kill-region () !
  • kill-whole-line () !
  • kill-word (M-d) !
  • !

    l

    ! !
  • lowercase_p !
  • !

    m

    ! !
  • mark-modified-lines !
  • menu-complete () !
  • meta-flag !
  • !

    n

    ! !
  • next-history (C-n) !
  • non-incremental-forward-search-history (M-n) !
  • non-incremental-reverse-search-history (M-p) !
  • numeric !
  • !

    o

    ! !
  • output-meta !
  • !

    p

    ! !
  • possible-completions (M-?) !
  • prefix-meta (ESC) !
  • previous-history (C-p) !
  • !

    q

    ! !
  • quoted-insert (C-q, C-v) !
  • !

    r

    ! !
  • re-read-init-file (C-x C-r) !
  • readline !
  • redraw-current-line () !
  • reverse-search-history (C-r) !
  • revert-line (M-r) !
  • rl_add_defun !
  • rl_add_undo !
  • rl_attempted_completion_function !
  • rl_basic_quote_characters !
  • rl_basic_word_break_characters !
  • rl_begin_undo_group !
  • rl_bind_key !
  • rl_bind_key_in_map !
  • rl_binding_keymap !
  • rl_callback_handler_install !
  • rl_callback_handler_remove !
  • rl_callback_read_char !
  • rl_catch_signals !
  • rl_catch_sigwinch !
  • rl_char_is_quoted_p !
  • rl_cleanup_after_signal !
  • rl_clear_message !
  • rl_clear_signals !
  • rl_complete, rl_complete !
  • rl_complete_internal !
  • rl_completer_quote_characters !
  • rl_completer_word_break_characters !
  • rl_completion_append_character !
  • rl_completion_display_matches_hook !
  • rl_completion_entry_function, rl_completion_entry_function !
  • rl_completion_query_items !
  • rl_copy_keymap !
  • rl_copy_text !
  • rl_delete_text !
  • rl_directory_completion_hook !
  • rl_discard_keymap !
  • rl_display_match_list !
  • rl_do_undo !
  • rl_done !
  • rl_end !
  • rl_end_undo_group !
  • rl_erase_empty_line !
  • rl_event_hook !
  • rl_executing_keymap !
  • rl_filename_completion_desired !
  • rl_filename_dequoting_function !
  • rl_filename_quote_characters !
  • rl_filename_quoting_desired !
  • rl_filename_quoting_function !
  • rl_forced_update_display !
  • rl_free_line_state !
  • rl_function_dumper !
  • rl_function_of_keyseq !
  • rl_generic_bind !
  • rl_get_keymap !
  • rl_get_keymap_by_name !
  • rl_get_keymap_name !
  • rl_getc !
  • rl_getc_function !
  • rl_ignore_completion_duplicates !
  • rl_ignore_some_completions_function !
  • rl_inhibit_completion !
  • rl_initialize !
  • rl_insert_completions !
  • rl_insert_text !
  • rl_instream !
  • rl_invoking_keyseqs !
  • rl_invoking_keyseqs_in_map !
  • rl_kill_text !
  • rl_library_version !
  • rl_line_buffer !
  • rl_list_funmap_names !
  • rl_make_bare_keymap !
  • rl_make_keymap !
  • rl_mark !
  • rl_message !
  • rl_modifying !
  • rl_named_function !
  • rl_on_new_line !
  • rl_outstream !
  • rl_parse_and_bind !
  • rl_pending_input !
  • rl_point !
  • rl_possible_completions !
  • rl_pre_input_hook !
  • rl_prompt !
  • rl_read_init_file !
  • rl_read_key !
  • rl_readline_name !
  • rl_redisplay !
  • rl_redisplay_function !
  • rl_reset_after_signal !
  • rl_reset_line_state !
  • rl_reset_terminal !
  • rl_resize_terminal !
  • rl_restore_prompt !
  • rl_save_prompt !
  • rl_set_keymap !
  • rl_set_signals !
  • rl_special_prefixes !
  • rl_startup_hook !
  • rl_stuff_char !
  • rl_terminal_name !
  • rl_unbind_command_in_map !
  • rl_unbind_function_in_map !
  • rl_unbind_key !
  • rl_unbind_key_in_map !
  • !

    s

    ! !
  • self-insert (a, b, A, 1, !, ...) !
  • set-mark (C-@) !
  • show-all-if-ambiguous !
  • start-kbd-macro (C-x () !
  • !

    t

    ! !
  • tab-insert (M-TAB) !
  • tilde-expand (M-~) !
  • to_lower !
  • to_upper !
  • transpose-chars (C-t) !
  • transpose-words (M-t) !
  • !

    u

    ! !
  • undo (C-_, C-x C-u) !
  • universal-argument () !
  • unix-line-discard (C-u) !
  • unix-word-rubout (C-w) !
  • upcase-word (M-u) !
  • uppercase_p !
  • username_completion_function !
  • !

    v

    ! !
  • visible-stats !
  • !

    y

    ! !
  • yank (C-y) !
  • yank-last-arg (M-., M-_) !
  • yank-nth-arg (M-C-y) !
  • yank-pop (M-y)

  • ! This document was generated on 31 December 1998 using the ! texi2html ! translator version 1.52.

    diff -aNrc2 readline-2.2.1/doc/readline.info readline-4.0/doc/readline.info *** readline-2.2.1/doc/readline.info Thu Apr 2 14:44:10 1998 --- readline-4.0/doc/readline.info Thu Dec 31 12:53:09 1998 *************** *** 1,4 **** This is Info file readline.info, produced by Makeinfo version 1.67 from ! the input file /usr/homes/chet/src/bash/readline-2.2/doc/rlman.texinfo. INFO-DIR-SECTION Libraries --- 1,4 ---- This is Info file readline.info, produced by Makeinfo version 1.67 from ! the input file /usr/homes/chet/src/bash/readline-src/doc/rlman.texinfo. INFO-DIR-SECTION Libraries *************** *** 11,15 **** need to provide a command line interface. ! Copyright (C) 1988, 1991 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this --- 11,15 ---- need to provide a command line interface. ! Copyright (C) 1988-1999 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this *************** *** 25,29 **** 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.  --- 25,29 ---- 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 Free Software Foundation.  *************** *** 272,287 **** 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. The character is ! used to terminate an incremental search. will also terminate the ! search. 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 or 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. Non-incremental searches read the entire search string before --- 272,288 ---- 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. 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 characters will terminate an incremental search. ! 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 or 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. Non-incremental searches read the entire search string before *************** *** 397,400 **** --- 398,415 ---- 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 strip the eighth bit from 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 will terminate + an incremental search. + `keymap' Sets Readline's idea of the current keymap for key binding *************** *** 415,425 **** modified. This variable is `off' by default. - `input-meta' - If set to `on', Readline will enable eight-bit input (it will - not strip the eighth bit from 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. - `output-meta' If set to `on', Readline will display characters with the --- 430,433 ---- *************** *** 854,857 **** --- 862,870 ---- 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, C-v)' Add the next character typed to the line verbatim. This is how to *************** *** 1007,1010 **** --- 1020,1029 ---- default. + `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 *************** *** 1123,1127 **** that need to provide a command line interface. ! Copyright (C) 1988, 1994, 1996 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this --- 1142,1147 ---- that need to provide a command line interface. ! Copyright (C) 1988, 1994, 1996, 1998, 1999 Free Software Foundation, ! Inc. Permission is granted to make and distribute verbatim copies of this *************** *** 1158,1162 **** functions. * Readline Convenience Functions:: Functions which Readline supplies to ! aid in writing your own * Custom Completers:: Supplanting or supplementing Readline's completion functions. --- 1178,1184 ---- 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. *************** *** 1358,1361 **** --- 1380,1389 ---- a way to stuff a single character into the input stream. + - 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 *************** *** 1383,1386 **** --- 1411,1419 ---- `readline' prints the first prompt. + - Variable: Function * 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: Function * rl_event_hook If non-zero, this is the address of a function to call periodically *************** *** 1408,1412 ****  ! File: readline.info, Node: Readline Convenience Functions, Next: Custom Completers, Prev: Readline Variables, Up: Programming with GNU Readline Readline Convenience Functions --- 1441,1445 ----  ! File: readline.info, Node: Readline Convenience Functions, Next: Readline Signal Handling, Prev: Readline Variables, Up: Programming with GNU Readline Readline Convenience Functions *************** *** 1687,1690 **** --- 1720,1731 ---- Clear the message in the echo area. + - Function: void rl_save_prompt () + 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 () + Restore the local Readline prompt display state saved by the most + recent call to `rl_save_prompt'. +  File: readline.info, Node: Modifying Text, Next: Utility Functions, Prev: Redisplay, Up: Readline Convenience Functions *************** *** 1750,1753 **** --- 1791,1804 ---- Ring the terminal bell, obeying the setting of `bell-style'. + - 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 `chartypes.h'. *************** *** 1871,1875 ****  ! File: readline.info, Node: Custom Completers, Prev: Readline Convenience Functions, Up: Programming with GNU Readline Custom Completers --- 1922,2030 ----  ! File: readline.info, Node: Readline Signal Handling, Next: Custom Completers, Prev: Readline Convenience Functions, Up: Programming with GNU Readline ! ! 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 a signal is ! received 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 ()'). ! ! 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 state, 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 ()' to force Readline to update its idea of ! the terminal size when a `SIGWINCH' is received. ! ! - Function: void rl_resize_terminal (void) ! Update Readline's internal screen size. ! ! 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 Custom Completers *************** *** 2148,2151 **** --- 2303,2319 ---- pathnames. + - Variable: VFunction * 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. +  File: readline.info, Node: A Short Completion Example, Prev: Completion Variables, Up: Custom Completers *************** *** 2638,2641 **** --- 2806,2810 ---- * copy-region-as-kill (): Commands For Killing. * delete-char (C-d): Commands For Text. + * delete-char-or-list (): Commands For Completion. * delete-horizontal-space (): Commands For Killing. * digit-argument (M-0, M-1, ... M--): Numeric Arguments. *************** *** 2657,2660 **** --- 2826,2830 ---- * expand-tilde: Readline Init File Syntax. * filename_completion_function: Completion Functions. + * forward-backward-delete-char (): Commands For Text. * forward-char (C-f): Commands For Moving. * forward-search-history (C-s): Commands For History. *************** *** 2667,2670 **** --- 2837,2841 ---- * insert-comment (M-#): Miscellaneous Commands. * insert-completions (M-*): Commands For Completion. + * isearch-terminators: Readline Init File Syntax. * keymap: Readline Init File Syntax. * kill-line (C-k): Commands For Killing. *************** *** 2702,2713 **** * rl_callback_handler_remove: Alternate Interface. * rl_callback_read_char: Alternate Interface. * rl_char_is_quoted_p: Completion Variables. * rl_clear_message: Redisplay. ! * rl_complete <1>: How Completing Works. ! * rl_complete: Completion Functions. * rl_complete_internal: Completion Functions. * rl_completer_quote_characters: Completion Variables. * rl_completer_word_break_characters: Completion Variables. * rl_completion_append_character: Completion Variables. * rl_completion_entry_function <1>: How Completing Works. * rl_completion_entry_function: Completion Variables. --- 2873,2889 ---- * rl_callback_handler_remove: Alternate Interface. * rl_callback_read_char: Alternate Interface. + * rl_catch_signals: Readline Signal Handling. + * rl_catch_sigwinch: Readline Signal Handling. * rl_char_is_quoted_p: Completion Variables. + * rl_cleanup_after_signal: Readline Signal Handling. * rl_clear_message: Redisplay. ! * rl_clear_signals: Readline Signal Handling. ! * rl_complete <1>: Completion Functions. ! * rl_complete: How Completing Works. * rl_complete_internal: Completion Functions. * rl_completer_quote_characters: Completion Variables. * rl_completer_word_break_characters: Completion Variables. * rl_completion_append_character: Completion Variables. + * rl_completion_display_matches_hook: Completion Variables. * rl_completion_entry_function <1>: How Completing Works. * rl_completion_entry_function: Completion Variables. *************** *** 2718,2725 **** --- 2894,2903 ---- * rl_directory_completion_hook: Completion Variables. * rl_discard_keymap: Keymaps. + * rl_display_match_list: Utility Functions. * rl_do_undo: Allowing Undoing. * rl_done: Readline Variables. * rl_end: Readline Variables. * rl_end_undo_group: Allowing Undoing. + * rl_erase_empty_line: Readline Variables. * rl_event_hook: Readline Variables. * rl_executing_keymap: Readline Variables. *************** *** 2730,2733 **** --- 2908,2912 ---- * rl_filename_quoting_function: Completion Variables. * rl_forced_update_display: Redisplay. + * rl_free_line_state: Readline Signal Handling. * rl_function_dumper: Associating Function Names and Bindings. * rl_function_of_keyseq: Associating Function Names and Bindings. *************** *** 2763,2766 **** --- 2942,2946 ---- * rl_point: Readline Variables. * rl_possible_completions: Completion Functions. + * rl_pre_input_hook: Readline Variables. * rl_prompt: Readline Variables. * rl_read_init_file: Binding Keys. *************** *** 2769,2775 **** --- 2949,2960 ---- * rl_redisplay: Redisplay. * rl_redisplay_function: Readline Variables. + * rl_reset_after_signal: Readline Signal Handling. * rl_reset_line_state: Redisplay. * rl_reset_terminal: Utility Functions. + * rl_resize_terminal: Readline Signal Handling. + * rl_restore_prompt: Redisplay. + * rl_save_prompt: Redisplay. * rl_set_keymap: Keymaps. + * rl_set_signals: Readline Signal Handling. * rl_special_prefixes: Completion Variables. * rl_startup_hook: Readline Variables. *************** *** 2784,2788 **** * show-all-if-ambiguous: Readline Init File Syntax. * start-kbd-macro (C-x (): Keyboard Macros. - * tilde-expand (M-~): Miscellaneous Commands. * to_lower: Utility Functions. * to_upper: Utility Functions. --- 2969,2972 ---- *************** *** 2805,2854 ****  Tag Table: ! Node: Top1177 ! Node: Command Line Editing1776 ! Node: Introduction and Notation2427 ! Node: Readline Interaction3466 ! Node: Readline Bare Essentials4659 ! Node: Readline Movement Commands6200 ! Node: Readline Killing Commands7166 ! Node: Readline Arguments8882 ! Node: Searching9857 ! Node: Readline Init File11440 ! Node: Readline Init File Syntax12487 ! Node: Conditional Init Constructs21353 ! Node: Sample Init File23792 ! Node: Bindable Readline Commands26962 ! Node: Commands For Moving27713 ! Node: Commands For History28561 ! Node: Commands For Text31313 ! Node: Commands For Killing33099 ! Node: Numeric Arguments35249 ! Node: Commands For Completion36376 ! Node: Keyboard Macros37862 ! Node: Miscellaneous Commands38421 ! Node: Readline vi Mode41225 ! Node: Programming with GNU Readline42983 ! Node: Basic Behavior43852 ! Node: Custom Functions47178 ! Node: The Function Type47779 ! Node: Function Writing48624 ! Node: Readline Variables49708 ! Node: Readline Convenience Functions52796 ! Node: Function Naming53527 ! Node: Keymaps54755 ! Node: Binding Keys56469 ! Node: Associating Function Names and Bindings58677 ! Node: Allowing Undoing60255 ! Node: Redisplay62840 ! Node: Modifying Text63911 ! Node: Utility Functions64822 ! Node: Alternate Interface66941 ! Node: Custom Completers70235 ! Node: How Completing Works70956 ! Node: Completion Functions73952 ! Node: Completion Variables76967 ! Node: A Short Completion Example84119 ! Node: Concept Index96425 ! Node: Function and Variable Index97179  End Tag Table --- 2989,3039 ----  Tag Table: ! Node: Top1190 ! Node: Command Line Editing1789 ! Node: Introduction and Notation2440 ! Node: Readline Interaction3479 ! Node: Readline Bare Essentials4672 ! Node: Readline Movement Commands6213 ! Node: Readline Killing Commands7179 ! Node: Readline Arguments8895 ! Node: Searching9870 ! Node: Readline Init File11583 ! Node: Readline Init File Syntax12630 ! Node: Conditional Init Constructs21837 ! Node: Sample Init File24276 ! Node: Bindable Readline Commands27446 ! Node: Commands For Moving28197 ! Node: Commands For History29045 ! Node: Commands For Text31797 ! Node: Commands For Killing33816 ! Node: Numeric Arguments35966 ! Node: Commands For Completion37093 ! Node: Keyboard Macros38841 ! Node: Miscellaneous Commands39400 ! Node: Readline vi Mode42204 ! Node: Programming with GNU Readline43974 ! Node: Basic Behavior44942 ! Node: Custom Functions48268 ! Node: The Function Type48869 ! Node: Function Writing49714 ! Node: Readline Variables50798 ! Node: Readline Convenience Functions54407 ! Node: Function Naming55145 ! Node: Keymaps56373 ! Node: Binding Keys58087 ! Node: Associating Function Names and Bindings60295 ! Node: Allowing Undoing61873 ! Node: Redisplay64458 ! Node: Modifying Text65853 ! Node: Utility Functions66764 ! Node: Alternate Interface69448 ! Node: Readline Signal Handling72742 ! Node: Custom Completers77788 ! Node: How Completing Works78503 ! Node: Completion Functions81499 ! Node: Completion Variables84514 ! Node: A Short Completion Example92412 ! Node: Concept Index104718 ! Node: Function and Variable Index105472  End Tag Table diff -aNrc2 readline-2.2.1/doc/readline.ps readline-4.0/doc/readline.ps *** readline-2.2.1/doc/readline.ps Thu Apr 2 14:45:32 1998 --- readline-4.0/doc/readline.ps Thu Dec 31 12:53:27 1998 *************** *** 2,6 **** %%Creator: dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software %%Title: readline.dvi ! %%Pages: 54 %%PageOrder: Ascend %%BoundingBox: 0 0 596 842 --- 2,6 ---- %%Creator: dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software %%Title: readline.dvi ! %%Pages: 56 %%PageOrder: Ascend %%BoundingBox: 0 0 596 842 *************** *** 9,13 **** %DVIPSCommandLine: dvips -D 300 -o readline.ps readline.dvi %DVIPSParameters: dpi=300, comments removed ! %DVIPSSource: TeX output 1998.04.02:1444 %%BeginProcSet: tex.pro /TeXDict 250 dict def TeXDict begin /N{def}def /B{bind def}N /S{exch}N --- 9,13 ---- %DVIPSCommandLine: dvips -D 300 -o readline.ps readline.dvi %DVIPSParameters: dpi=300, comments removed ! %DVIPSSource: TeX output 1998.12.31:1253 %%BeginProcSet: tex.pro /TeXDict 250 dict def TeXDict begin /N{def}def /B{bind def}N /S{exch}N *************** *** 683,742 **** 1C00101C00101C00301C00F0FFFFF015177F9618>II76 ! DII80 ! D82 D<0FC4302C601C400CC004C004C004E00070007F003FE00FF801FC001C000E ! 0006800680068006C004E008D81087E00F177E9614>I<7FFFF860381840380840380880 ! 380480380480380400380000380000380000380000380000380000380000380000380000 ! 380000380000380000380000380000380003FF8016177F9619>II91 ! D<3FC0706070302038003803F81E3830387038E039E039E07970FF1F1E100E7F8D12>97 ! DI<003E00000E00000E00000E00000E00000E00000E00000E00000E0007CE001C ! 3E00300E00700E00600E00E00E00E00E00E00E00E00E00600E00700E00301E00182E0007 ! CF8011177F9614>100 D<0FC0186030307038E018FFF8E000E000E00060007008301018 ! 3007C00D0E7F8D10>I<03E006700E701C201C001C001C001C001C00FF801C001C001C00 ! 1C001C001C001C001C001C001C001C001C007F800C1780960B>I<0F9E18E33060707070 ! 707070306018C02F80200060003FE03FF83FFC600EC006C006C006600C38380FE010157F ! 8D12>I<0300078007800300000000000000000000001F80038003800380038003800380 ! 0380038003800380038003800380038003804380E300E7007C00091D82960B>106 ! DII<07C018303018600C600CE00EE00EE00EE00EE00E701C3018 ! 183007C00F0E7F8D12>111 DI<07C2001C2600381E00700E00600E00E00E00E00E00E00E00E00E0060 ! 0E00700E00301E001C2E0007CE00000E00000E00000E00000E00000E00003F8011147F8D ! 13>I ! I<1F4060C0C040C040E000FF007F801FC001E080608060C060E0C09F000B0E7F8D0E>I< ! 080008000800180018003800FFC038003800380038003800380038003840384038403840 ! 1C800F000A147F930E>II ! 119 DII123 D E /Fo ! 2 106 df<00800180030003000300060006000C000C000C001800180018003000300060 ! 0060006000C000C000600060006000300030001800180018000C000C000C000600060003 ! 00030003000180008009267D9B0F>104 DI ! E /Fp 8 89 df<0007F008003C0C1800E0033801C000B8078000780F0000380E0000381E ! 0000183C0000183C0000087C0000087800000878000000F8000000F8000000F8000000F8 ! 000000F8000000F8000000F8001FFF780000F8780000787C0000783C0000783C0000781E ! 0000780E0000780F0000780780007801C000B800E00118003C0E080007F00020217C9F27 ! >71 D73 DII<0FF800E000E000E000E0 ! 00E000E000E000E000E000E000E000E000E000E000E000E000E0E0E0E0E0C1C061801F00 ! 0D177E9612>74 D76 DII80 D82 D<0FC4302C601C400CC004C004C004E0007000 ! 7F003FE00FF801FC001C000E0006800680068006C004E008D81087E00F177E9614>I<7F ! FFF860381840380840380880380480380480380400380000380000380000380000380000 ! 380000380000380000380000380000380000380000380000380000380003FF8016177F96 ! 19>II91 D<3FC0706070302038003803F81E3830387038E039E039E079 ! 70FF1F1E100E7F8D12>97 DI<003E00000E00000E00000E00000E00000E00000E ! 00000E00000E0007CE001C3E00300E00700E00600E00E00E00E00E00E00E00E00E00600E ! 00700E00301E00182E0007CF8011177F9614>100 D<0FC0186030307038E018FFF8E000 ! E000E000600070083010183007C00D0E7F8D10>I<03E006700E701C201C001C001C001C ! 001C00FF801C001C001C001C001C001C001C001C001C001C001C001C007F800C1780960B ! >I<0F9E18E33060707070707070306018C02F80200060003FE03FF83FFC600EC006C006 ! C006600C38380FE010157F8D12>I107 ! DI<07C0183030 ! 18600C600CE00EE00EE00EE00EE00E701C3018183007C00F0E7F8D12>111 ! DI<07C2001C ! 2600381E00700E00600E00E00E00E00E00E00E00E00E00600E00700E00301E001C2E0007 ! CE00000E00000E00000E00000E00000E00003F8011147F8D13>II<1F4060C0C040C040E000 ! FF007F801FC001E080608060C060E0C09F000B0E7F8D0E>I<0800080008001800180038 ! 00FFC0380038003800380038003800380038403840384038401C800F000A147F930E>I< ! F83E00380E00380E00380E00380E00380E00380E00380E00380E00380E00380E00381E00 ! 1C2E0007CF80110E7F8D14>I119 ! DI< ! FE1F380E3C0C1C081C080E100E100720072007E003C003C00180018001000100E200E200 ! A400780010147F8D13>I123 D E /Fo 2 106 ! df<00800180030003000300060006000C000C000C001800180018003000300060006000 ! 6000C000C000600060006000300030001800180018000C000C000C000600060003000300 ! 03000180008009267D9B0F>104 DI E ! /Fp 8 89 df<0007F008003C0C1800E0033801C000B8078000780F0000380E0000381E00 ! 00183C0000183C0000087C0000087800000878000000F8000000F8000000F8000000F800 ! 0000F8000000F8000000F8001FFF780000F8780000787C0000783C0000783C0000781E00 ! 00780E0000780F0000780780007801C000B800E00118003C0E080007F00020217C9F27> ! 71 D73 D13 D E /Fs 55 122 df<0006000C00180038007000E001E003C003C0078007800F800F001F001F003E003E00 3E007E007E007E007C007C00FC00FC00FC00FC00FC00FC00FC00FC00FC00FC00FC00FC00 --- 998,1002 ---- 6000000006600000000660000000066000000006300000000C300000000C18000000180C 000000300C00000030060000006003000000C0018000018000E00007000078001E00001F ! 00F8000007FFE0000000FF0000282B7EA02D>13 D E /Fs 56 122 df<0006000C00180038007000E001E003C003C0078007800F800F001F001F003E003E00 3E007E007E007E007C007C00FC00FC00FC00FC00FC00FC00FC00FC00FC00FC00FC00FC00 *************** *** 1026,1690 **** 0000001F8000001FC000001FC000001FE000001FE018001FE07C001FE0FE001FE0FE001F E0FE001FE0FE001FC0FC001FC078003F8078003F803C007F001F01FE000FFFFC0003FFF0 ! 0000FF80001B277DA622>I<380000003E0000003FFFFFF03FFFFFF03FFFFFF07FFFFFE0 ! 7FFFFFC07FFFFF807FFFFF0070000E0070000E0070001C00E0003800E0007000E000E000 ! 0001C0000001C000000380000007800000070000000F0000001F0000001E0000003E0000 ! 003E0000007E0000007C0000007C000000FC000000FC000000FC000000FC000001FC0000 ! 01FC000001FC000001FC000001FC000001FC000001FC000000F80000007000001C297CA8 ! 22>55 D<007F800001FFF00007FFF8000FC0FC001F803E003F001F007E001F807E001F80 ! 7E000F80FE000FC0FE000FC0FE000FC0FE000FE0FE000FE0FE000FE0FE000FE0FE000FE0 ! 7E001FE07E001FE03F003FE01F002FE00F80CFE007FF8FE001FF0FE000080FE000000FC0 ! 00000FC000000FC000001F803E001F807F001F807F003F007F003E007F007E007E00FC00 ! 3E03F8001FFFE0000FFF800001FE00001B277DA622>57 D<000007800000000007800000 ! 00000FC0000000000FC0000000000FC0000000001FE0000000001FE0000000003FF00000 ! 00003FF0000000003FF00000000077F80000000077F800000000F7FC00000000E3FC0000 ! 0000E3FC00000001C1FE00000001C1FE00000003C1FF0000000380FF0000000380FF0000 ! 0007007F80000007007F8000000F007FC000000E003FC000000E003FC000001C001FE000 ! 001C001FE000003FFFFFF000003FFFFFF000003FFFFFF00000700007F80000700007F800 ! 00F00007FC0000E00003FC0001E00003FE0001C00001FE0001C00001FE0003C00001FF00 ! FFFE003FFFFCFFFE003FFFFCFFFE003FFFFC2E297EA833>65 DI<00007FE0030007FFFC07001FFFFF ! 0F007FF00F9F00FF0001FF01FC0000FF03F800007F07F000003F0FE000001F1FC000001F ! 1FC000000F3F8000000F3F800000077F800000077F800000077F00000000FF00000000FF ! 00000000FF00000000FF00000000FF00000000FF00000000FF00000000FF00000000FF00 ! 0000007F000000007F800000007F800000073F800000073F800000071FC00000071FC000 ! 000E0FE000000E07F000001C03F800003C01FC00007800FF0001F0007FF007C0001FFFFF ! 800007FFFE0000007FF00028297CA831>IIII<00007FE003000007FFFC0700001FFFFF0F00007FF00F9F0000 ! FF0001FF0001FC0000FF0003F800007F0007F000003F000FE000001F001FC000001F001F ! C000000F003F8000000F003F80000007007F80000007007F80000007007F0000000000FF ! 0000000000FF0000000000FF0000000000FF0000000000FF0000000000FF0000000000FF ! 0000000000FF0000000000FF0000FFFFF87F0000FFFFF87F8000FFFFF87F800000FF003F ! 800000FF003F800000FF001FC00000FF001FC00000FF000FE00000FF0007F00000FF0003 ! F80000FF0001FC0000FF0000FF0001FF00007FF007FF00001FFFFF9F000007FFFE0F0000 ! 007FF003002D297CA835>III75 ! DIII<0000FFC00000000FFFFC0000003F807F000000FE001FC00001F800 ! 07E00003F00003F00007E00001F8000FE00001FC001FC00000FE001FC00000FE003F8000 ! 007F003F8000007F007F8000007F807F0000003F807F0000003F807F0000003F80FF0000 003FC0FF0000003FC0FF0000003FC0FF0000003FC0FF0000003FC0FF0000003FC0FF0000 ! 003FC0FF0000003FC0FF0000003FC0FF0000003FC07F0000003F807F8000007F807F8000 ! 007F803F8000007F003F8000007F001FC00000FE001FC00000FE000FE00001FC0007F000 ! 03F80003F80007F00001FC000FE00000FE001FC000003FC0FF0000000FFFFC00000000FF ! C000002A297CA833>II<0000FFC00000000FFFFC0000003FC0FF000000FE001FC00001FC000FE000 ! 03F00003F00007F00003F8000FE00001FC001FC00000FE001FC00000FE003F8000007F00 ! 3F8000007F007F8000007F807F8000007F807F0000003F807F0000003F80FF0000003FC0 FF0000003FC0FF0000003FC0FF0000003FC0FF0000003FC0FF0000003FC0FF0000003FC0 ! FF0000003FC0FF0000003FC0FF0000003FC07F0000003F807F8000007F807F8000007F80 ! 3F8000007F003F8000007F001FC00000FE001FC03E00FE000FE07F81FC0007E0C1C1F800 ! 03F18063F00001F98067E00000FF803FC000003FC07F0000000FFFFC00000000FFF800C0 ! 0000003C00C00000001E00C00000001E01C00000001F83C00000001FFFC00000000FFF80 ! 0000000FFF800000000FFF0000000007FF0000000003FE0000000001FC0000000000F800 ! 2A357CA833>II<00FF806003FFF0E00FFFF8E01F80FDE03F001FE03E0007E07C0003E0 ! 7C0003E0FC0001E0FC0001E0FC0000E0FE0000E0FE0000E0FF000000FFC000007FFC0000 ! 7FFFE0003FFFF8001FFFFE001FFFFF0007FFFF8003FFFFC000FFFFC0000FFFE000007FE0 ! 00001FF000000FF0000007F0E00003F0E00003F0E00003F0E00003F0F00003E0F00003E0 ! F80007E0FC0007C0FF000F80FFE03F80E3FFFE00E1FFFC00C01FF0001C297CA825>I<7F ! FFFFFFFF807FFFFFFFFF807FFFFFFFFF807F807F807F807C007F800F8078007F80078078 ! 007F80078070007F800380F0007F8003C0F0007F8003C0E0007F8001C0E0007F8001C0E0 ! 007F8001C0E0007F8001C0E0007F8001C000007F80000000007F80000000007F80000000 007F80000000007F80000000007F80000000007F80000000007F80000000007F80000000 007F80000000007F80000000007F80000000007F80000000007F80000000007F80000000 007F80000000007F80000000007F80000000007F80000000007F80000000007F80000000 ! 007F80000000FFFFFFC00000FFFFFFC00000FFFFFFC0002A287EA72F>IIII89 D<03FF80000FFFF0001F01FC003F80FE003F807F003F80 ! 3F003F803F801F003F8000003F8000003F8000003F8000003F80003FFF8001FC3F800FE0 ! 3F801F803F803F003F807E003F80FC003F80FC003F80FC003F80FC003F80FC005F807E00 ! DF803F839FFC1FFE0FFC03FC03FC1E1B7E9A21>97 DI<003FF00001FFFC0003F03E000FC07F001F807F ! 003F007F003F007F007F003E007E0000007E000000FE000000FE000000FE000000FE0000 ! 00FE000000FE000000FE0000007E0000007E0000007F0000003F0003803F8003801F8007 ! 000FE00E0003F83C0001FFF800003FC000191B7E9A1E>I<00007FF000007FF000007FF0 ! 000007F0000007F0000007F0000007F0000007F0000007F0000007F0000007F0000007F0 ! 000007F0000007F0000007F0003F87F001FFF7F007F03FF00FC00FF01F8007F03F0007F0 ! 3F0007F07E0007F07E0007F07E0007F0FE0007F0FE0007F0FE0007F0FE0007F0FE0007F0 ! FE0007F0FE0007F0FE0007F07E0007F07E0007F03F0007F03F0007F01F800FF00FC01FF0 ! 07E07FFF01FFE7FF007F87FF202A7EA925>I<003FC00001FFF00003E07C000F803E001F ! 801F001F001F003F000F807E000F807E000FC07E000FC0FE0007C0FE0007C0FFFFFFC0FF ! FFFFC0FE000000FE000000FE0000007E0000007E0000007F0000003F0001C01F0001C00F ! 80038007C0070003F01E0000FFFC00003FE0001A1B7E9A1F>I<0007F8003FFC007E3E01 ! FC7F03F87F03F07F07F07F07F03E07F00007F00007F00007F00007F00007F00007F000FF ! FFC0FFFFC0FFFFC007F00007F00007F00007F00007F00007F00007F00007F00007F00007 ! F00007F00007F00007F00007F00007F00007F00007F00007F00007F00007F00007F0007F ! FF807FFF807FFF80182A7EA915>I<00FF80F003FFE3F80FC1FE1C1F007C7C3F007E7C3E ! 003E107E003F007E003F007E003F007E003F007E003F007E003F003E003E003F007E001F ! 007C000FC1F8000BFFE00018FF80001800000038000000380000003C0000003FFFF8003F ! FFFF001FFFFFC00FFFFFE007FFFFF01FFFFFF03C0007F07C0001F8F80000F8F80000F8F8 ! 0000F8F80000F87C0001F07C0001F03F0007E00FC01F8007FFFF00007FF0001E287E9A22 ! >II<07000F ! 801FC03FE03FE03FE01FC00F8007000000000000000000000000000000FFE0FFE0FFE00F E00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00F ! E00FE00FE0FFFEFFFEFFFE0F2B7EAA12>I ! 108 DII<003FE00001FFFC0003F0 ! 7E000FC01F801F800FC03F0007E03F0007E07E0003F07E0003F07E0003F0FE0003F8FE00 ! 03F8FE0003F8FE0003F8FE0003F8FE0003F8FE0003F8FE0003F87E0003F07E0003F03F00 ! 07E03F0007E01F800FC00FC01F8007F07F0001FFFC00003FE0001D1B7E9A22>II114 ! D<03FE300FFFF03E03F07800F07000F0F00070F00070F80070FE0000FFE0007FFF007FFF ! C03FFFE01FFFF007FFF800FFF80007FC0000FCE0007CE0003CF0003CF00038F80038FC00 ! 70FF01E0E7FFC0C1FF00161B7E9A1B>I<00E00000E00000E00000E00001E00001E00001 ! E00003E00003E00007E0000FE0001FFFE0FFFFE0FFFFE00FE0000FE0000FE0000FE0000F ! E0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0000FE0700FE0700FE0700F ! E0700FE0700FE0700FE07007F0E003F0C001FF80007F0014267FA51A>I ! IIIII E /Ft 90 ! 127 df<70F8F8F8F8F8F8F8F8F8F8F8F8F8F8F8F870000000000070F8F8F870051C779B ! 18>33 D<4010E038F078E038E038E038E038E038E038E038E038E038E03860300D0E7B9C ! 18>I<030600078F00078F00078F00078F00078F00078F007FFFC0FFFFE0FFFFE07FFFC0 ! 0F1E000F1E000F1E000F1E000F1E000F1E007FFFC0FFFFE0FFFFE07FFFC01E3C001E3C00 ! 1E3C001E3C001E3C001E3C000C1800131C7E9B18>I<00C00001C00001C00001C00003F0 ! 000FFC003FFE007DCF0071C700E1C380E1C780E1C780E1C780F1C00079C0003FC0001FE0 ! 000FF80001FC0001DE0001CF0001C70061C380F1C380F1C380E1C380E1C70071C70079DE ! 003FFE001FF80007E00001C00001C00001C00000C00011247D9F18>I<3803007C07807C ! 0780EE0F80EE0F00EE0F00EE1F00EE1E00EE1E00EE3E007C3C007C3C00387C0000780000 ! 780000F80000F00001F00001E00001E00003E00003C00003C00007C0000783800787C00F ! 87C00F0EE00F0EE01F0EE01E0EE01E0EE03E0EE03C07C03C07C018038013247E9F18>I< ! 01C00007E0000FF0000E70001C38001C38001C38001C38001C73F81CF3F81CE3F80FC1C0 ! 0FC3800F83800F03801F07003F87007B8E0071CE00E1FC00E0FC00E07C00E07870E07870 ! 70FE707FFFE03FC7E00F03C0151C7F9B18>I<387C7C7E3E0E0E0E1C1C38F8F0C0070E78 ! 9B18>I<007000F001E003C007800F001E001C00380038007000700070007000E000E000 ! E000E000E000E000E000E0007000700070007000380038001C001E000F00078003C001F0 ! 00F000700C24799F18>I<6000F00078003C001E000F000780038001C001C000E000E000 ! E000E00070007000700070007000700070007000E000E000E000E001C001C0038007800F ! 001E003C007800F00060000C247C9F18>I<01C00001C00001C00001C00041C100F1C780 ! FDDF807FFF001FFC0007F00007F0001FFC007FFF00FDDF80F1C78041C10001C00001C000 ! 01C00001C00011147D9718>I<00600000F00000F00000F00000F00000F00000F00000F0 ! 007FFFC0FFFFE0FFFFE07FFFC000F00000F00000F00000F00000F00000F00000F0000060 ! 0013147E9718>I<1C3E7E7F3F1F070E1E7CF860080C788518>I<7FFFC0FFFFE0FFFFE07F ! FFC013047E8F18>I<3078FCFC78300606778518>I<000300000780000780000F80000F00 ! 001F00001E00001E00003E00003C00007C0000780000780000F80000F00001F00001E000 ! 03E00003C00003C00007C0000780000F80000F00000F00001F00001E00003E00003C0000 ! 3C00007C0000780000F80000F00000F0000060000011247D9F18>I<01F00007FC000FFE ! 001F1F001C07003803807803C07001C07001C0E000E0E000E0E000E0E000E0E000E0E000 ! E0E000E0E000E0E000E0F001E07001C07001C07803C03803801C07001F1F000FFE0007FC ! 0001F000131C7E9B18>I<01800380038007800F803F80FF80FB80438003800380038003 ! 800380038003800380038003800380038003800380038003807FFCFFFE7FFC0F1C7B9B18 ! >I<03F0000FFE003FFF007C0F807003C0E001C0F000E0F000E06000E00000E00000E000 ! 01C00001C00003C0000780000F00001E00003C0000780000F00001E00007C0000F80001E ! 00E03C00E07FFFE0FFFFE07FFFE0131C7E9B18>I<001F00003F0000770000770000E700 ! 01E70001C7000387000787000707000E07001E07003C0700380700780700F00700FFFFF8 ! FFFFF8FFFFF8000700000700000700000700000700000700007FF0007FF0007FF0151C7F ! 9B18>52 D<3FFF803FFF803FFF8038000038000038000038000038000038000038000038 ! 00003BF8003FFE003FFF003C07803003C00001C00000E00000E06000E0F000E0F000E0E0 ! 01C07003C07C0F803FFF001FFC0003F000131C7E9B18>I<007E0001FF0007FF800F83C0 ! 1E03C01C03C0380180380000700000700000E1F800E7FE00FFFF00FE0780F803C0F001C0 ! F000E0E000E0F000E07000E07000E07000E03801C03C03C01E07800FFF0007FE0001F800 ! 131C7E9B18>II<03F8000FFE001F ! FF003E0F803803807001C07001C07001C07001C03803803C07801FFF0007FC000FFE001F ! 1F003C07807001C0F001E0E000E0E000E0E000E0E000E07001C07803C03E0F801FFF000F ! FE0003F800131C7E9B18>I<3078FCFC783000000000000000003078FCFC783006147793 ! 18>58 D<183C7E7E3C180000000000000000183C7E7E3E1E0E1C3C78F060071A789318> ! I<0000C00003E00007E0001FC0003F8000FE0001FC0007F0000FE0003F80007F0000FC00 ! 00FC00007F00003F80000FE00007F00001FC0000FE00003F80001FC00007E00003E00000 ! C013187E9918>I<7FFFC0FFFFE0FFFFE07FFFC00000000000000000000000007FFFC0FF ! FFE0FFFFE07FFFC0130C7E9318>I<600000F80000FC00007F00003F80000FE00007F000 ! 01FC0000FE00003F80001FC00007E00007E0001FC0003F8000FE0001FC0007F0000FE000 ! 3F80007F0000FC0000F8000060000013187E9918>I<0FF0003FFC007FFF00700F00F003 ! 80F00380600780000F00003E00007C0001F00001E00003C00003C00003C00003C00003C0 ! 0003800000000000000000000000000000000003800007C00007C00007C000038000111C ! 7D9B18>I<007C0001FE0007FF000F87801E03C03C1DC0387FC070FFE071E3E071C1E0E1 ! C1E0E380E0E380E0E380E0E380E0E380E0E380E0E1C1C071C1C071E3C070FF80387F003C ! 1C001E00E00F83E007FFC001FF80007E00131C7E9B18>I<00700000F80000F80000D800 ! 00D80001DC0001DC0001DC00018C00038E00038E00038E00038E00070700070700070700 ! 0707000707000FFF800FFF800FFF800E03801C01C01C01C01C01C07F07F0FF07F87F07F0 ! 151C7F9B18>I<7FFC00FFFF007FFF801C03C01C01C01C00E01C00E01C00E01C00E01C01 ! E01C01C01C07C01FFF801FFF001FFFC01C03C01C00E01C00F01C00701C00701C00701C00 ! 701C00F01C00E01C03E07FFFC0FFFF807FFE00141C7F9B18>I<00F8E003FEE007FFE00F ! 07E01E03E03C01E03800E07000E07000E0700000E00000E00000E00000E00000E00000E0 ! 0000E00000E000007000007000E07000E03800E03C00E01E01C00F07C007FF8003FE0000 ! F800131C7E9B18>I<7FF800FFFE007FFF001C0F801C03C01C03C01C01E01C00E01C00E0 ! 1C00F01C00701C00701C00701C00701C00701C00701C00701C00701C00F01C00E01C00E0 ! 1C01E01C01C01C03C01C0F807FFF00FFFE007FF800141C7F9B18>III<01F1C003FDC0 ! 0FFFC01F0FC01C03C03803C03801C07001C07001C0700000E00000E00000E00000E00000 ! E00000E00FF0E01FF0E00FF07001C07001C07003C03803C03803C01C07C01F0FC00FFFC0 ! 03FDC001F1C0141C7E9B18>I<7F07F0FF8FF87F07F01C01C01C01C01C01C01C01C01C01 ! C01C01C01C01C01C01C01C01C01FFFC01FFFC01FFFC01C01C01C01C01C01C01C01C01C01 ! C01C01C01C01C01C01C01C01C01C01C07F07F0FF8FF87F07F0151C7F9B18>I<7FFF00FF ! FF807FFF0001C00001C00001C00001C00001C00001C00001C00001C00001C00001C00001 ! C00001C00001C00001C00001C00001C00001C00001C00001C00001C00001C00001C0007F ! FF00FFFF807FFF00111C7D9B18>I<01FFC001FFC001FFC0000E00000E00000E00000E00 ! 000E00000E00000E00000E00000E00000E00000E00000E00000E00000E00000E00000E00 ! 000E00000E00000E00F00E00F00E00F03C007FFC003FF0000FC000121C7D9B18>I<7F07 ! F0FF87F87F07F01C03C01C07801C07001C0E001C1E001C3C001C38001C70001CF0001DF0 ! 001DF0001FB8001FB8001F1C001E1C001C0E001C0E001C07001C07001C03801C03801C01 ! C07F03F0FF87F87F03F0151C7F9B18>II< ! FC01F8FE03F8FE03F83B06E03B06E03B06E03B06E03B8EE03B8EE0398CE0398CE039DCE0 ! 39DCE039DCE038D8E038D8E038F8E03870E03870E03800E03800E03800E03800E03800E0 ! 3800E0FE03F8FE03F8FE03F8151C7F9B18>I<7E07F0FF0FF87F07F01D81C01D81C01D81 ! C01DC1C01CC1C01CC1C01CE1C01CE1C01CE1C01C61C01C71C01C71C01C31C01C39C01C39 ! C01C39C01C19C01C19C01C1DC01C0DC01C0DC01C0DC07F07C0FF87C07F03C0151C7F9B18 ! >I<0FFE003FFF807FFFC07803C07001C0F001E0E000E0E000E0E000E0E000E0E000E0E0 ! 00E0E000E0E000E0E000E0E000E0E000E0E000E0E000E0E000E0E000E0E000E0F001E070 ! 01C07C07C07FFFC03FFF800FFE00131C7E9B18>II<0FFE003FFF807FFFC07803C07001C0F001E0E000E0E000E0E000E0E000E0E000 ! E0E000E0E000E0E000E0E000E0E000E0E000E0E000E0E000E0E000E0E070E0E070E0F079 ! E07039C0783FC07FFFC03FFF800FFE00000F000007800007800003C00001C00001C01322 ! 7E9B18>I<7FF800FFFE007FFF001C0F801C03801C03C01C01C01C01C01C01C01C03C01C ! 03801C0F801FFF001FFE001FFE001C0F001C07001C03801C03801C03801C03801C03801C ! 039C1C039C1C039C7F01F8FF81F87F00F0161C7F9B18>I<03F1C01FFFC03FFFC07C0FC0 ! 7003C0E001C0E001C0E001C0E000007000007800003F00001FF00007FE0000FF00000F80 ! 0003C00001C00000E00000E06000E0E000E0E001E0F001C0F80780FFFF80FFFE00E7F800 ! 131C7E9B18>I<7FFFF8FFFFF8FFFFF8E07038E07038E07038E070380070000070000070 ! 000070000070000070000070000070000070000070000070000070000070000070000070 ! 0000700000700000700007FF0007FF0007FF00151C7F9B18>IIII<7F0FE07F9FE07F0FE00E07000F0700070E00078E00039C0003 ! DC0001F80001F80000F80000F00000700000F00000F80001FC0001DC00039E00038E0007 ! 0F000707000E07800E03801E03C07F07F0FF07F87F07F0151C7F9B18>II91 D<600000F00000F00000F80000780000 ! 7C00003C00003C00003E00001E00001F00000F00000F00000F800007800007C00003C000 ! 03C00003E00001E00001F00000F00000F800007800007800007C00003C00003E00001E00 ! 001E00001F00000F00000F8000078000078000030011247D9F18>II<7F ! FFC0FFFFE0FFFFE07FFFC013047E7F18>95 D<061E3E387070E0E0E0F8FC7C7C38070E78 ! 9E18>I<0FF0001FFC003FFE003C0F0018070000038000038000FF8007FF801FFF807F03 ! 80780380E00380E00380E00380F00780780F803FFFF81FFDF807F0F815147E9318>I<7E ! 0000FE00007E00000E00000E00000E00000E00000E00000E3E000EFF800FFFC00FC1E00F ! 80E00F00700E00700E00380E00380E00380E00380E00380E00380F00700F00700F80E00F ! C1E00FFFC00EFF80063E00151C809B18>I<01FE0007FF001FFF803E0780380300700000 ! 700000E00000E00000E00000E00000E00000E000007000007001C03801C03E03C01FFF80 ! 07FF0001FC0012147D9318>I<001F80003F80001F800003800003800003800003800003 ! 8003E3800FFB801FFF803C1F80380F80700780700380E00380E00380E00380E00380E003 ! 80E00380700780700780380F803C1F801FFFF00FFBF803E3F0151C7E9B18>I<01F00007 ! FC001FFE003E0F00380780700380700380E001C0E001C0FFFFC0FFFFC0FFFFC0E0000070 ! 00007001C03801C03E07C01FFF8007FF0001F80012147D9318>I<001F80007FC000FFE0 ! 00E1E001C0C001C00001C00001C0007FFFC0FFFFC0FFFFC001C00001C00001C00001C000 ! 01C00001C00001C00001C00001C00001C00001C00001C00001C00001C0007FFF007FFF00 ! 7FFF00131C7F9B18>I<01E1F007FFF80FFFF81E1E301C0E003807003807003807003807 ! 003807001C0E001E1E001FFC001FF80039E0003800001C00001FFE001FFFC03FFFE07801 ! F0700070E00038E00038E00038E000387800F07E03F01FFFC00FFF8001FC00151F7F9318 ! >I<7E0000FE00007E00000E00000E00000E00000E00000E00000E3E000EFF800FFFC00F ! C1C00F80E00F00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E ! 00E00E00E07FC7FCFFE7FE7FC7FC171C809B18>I<038007C007C007C003800000000000 ! 0000007FC0FFC07FC001C001C001C001C001C001C001C001C001C001C001C001C001C001 ! C0FFFFFFFFFFFF101D7C9C18>I<0038007C007C007C003800000000000000000FFC0FFC ! 0FFC001C001C001C001C001C001C001C001C001C001C001C001C001C001C001C001C001C ! 001C001C001C001C001C6038F078FFF07FE03F800E277E9C18>I<7E0000FE00007E0000 ! 0E00000E00000E00000E00000E00000E3FF00E3FF00E3FF00E07800E0F000E1E000E3C00 ! 0E78000EF0000FF8000FFC000F9C000F0E000E0F000E07000E03800E03C07FC7F8FFC7F8 ! 7FC7F8151C7F9B18>III<7E3E00FEFF807FFFC00FC1C0 ! 0F80E00F00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E0 ! 0E00E07FC7FCFFE7FE7FC7FC1714809318>I<01F0000FFE001FFF003E0F803803807001 ! C07001C0E000E0E000E0E000E0E000E0E000E0F001E07001C07803C03C07803E0F801FFF ! 000FFE0001F00013147E9318>I<7E3E00FEFF807FFFC00FC1E00F80E00F00700E00700E ! 00380E00380E00380E00380E00380E00380F00700F00700F80E00FC1E00FFFC00EFF800E ! 3E000E00000E00000E00000E00000E00000E00000E00007FC000FFE0007FC000151E8093 ! 18>I<01F38007FB801FFF803E1F80380F80700780700780E00380E00380E00380E00380 ! E00380E00380700780700780380F803C1F801FFF800FFB8003E380000380000380000380 ! 000380000380000380000380001FF0003FF8001FF0151E7E9318>II<07F7003FFF007FFF00780F00E0 ! 0700E00700E007007C00007FE0001FFC0003FE00001F00600780E00380E00380F00380F8 ! 0F00FFFF00FFFC00E7F00011147D9318>I<0180000380000380000380000380007FFFC0 ! FFFFC0FFFFC0038000038000038000038000038000038000038000038000038000038040 ! 0380E00380E00380E001C1C001FFC000FF80003E0013197F9818>I<7E07E0FE0FE07E07 ! E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00E00 ! E00E01E00F03E007FFFC03FFFE01FCFC1714809318>I<7F8FF0FF8FF87F8FF01C01C00E ! 03800E03800E0380070700070700070700078F00038E00038E00038E0001DC0001DC0001 ! DC0000F80000F80000700015147F9318>II<7F8FF07F9FF07F8FF00F0700078E00039E0001DC0001F8 ! 0000F80000700000F00000F80001DC00039E00038E000707000E07807F8FF0FF8FF87F8F ! F015147F9318>I<7F8FF0FF8FF87F8FF00E01C00E03800E038007038007070007070003 ! 8700038700038E0001CE0001CE0001CC0000CC0000DC0000780000780000780000700000 ! 700000700000F00000E00079E0007BC0007F80003F00001E0000151E7F9318>I<3FFFF0 ! 7FFFF07FFFF07001E07003C0700780000F00001E00003C0000F80001F00003C000078000 ! 0F00701E00703C0070780070FFFFF0FFFFF0FFFFF014147F9318>I<0007E0001FE0007F ! E000780000E00000E00000E00000E00000E00000E00000E00000E00000E00000E00000E0 ! 0001E0007FC000FF8000FF80007FC00001E00000E00000E00000E00000E00000E00000E0 ! 0000E00000E00000E00000E00000E000007800007FE0001FE00007E013247E9F18>I<60 ! F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F06004 ! 24769F18>I<7C0000FF0000FFC00003C00000E00000E00000E00000E00000E00000E000 ! 00E00000E00000E00000E00000E00000F000007FC0003FE0003FE0007FC000F00000E000 ! 00E00000E00000E00000E00000E00000E00000E00000E00000E00000E00003C000FFC000 ! FF00007C000013247E9F18>I<060C1F1E3FBEFBF8F1F060C00F067C9B18>I ! E /Fu 77 123 df<001F83E000F06E3001C078780380F8780300F0300700700007007000 ! 0700700007007000070070000700700007007000FFFFFF80070070000700700007007000 ! 070070000700700007007000070070000700700007007000070070000700700007007000 ! 0700700007007000070070000700700007007000070070003FE3FF001D20809F1B>11 ! D<003F0000E0C001C0C00381E00701E00701E00700000700000700000700000700000700 ! 00FFFFE00700E00700E00700E00700E00700E00700E00700E00700E00700E00700E00700 ! E00700E00700E00700E00700E00700E00700E00700E03FC3FC1620809F19>I<003FE000 ! E0E001C1E00381E00700E00700E00700E00700E00700E00700E00700E00700E0FFFFE007 ! 00E00700E00700E00700E00700E00700E00700E00700E00700E00700E00700E00700E007 ! 00E00700E00700E00700E00700E00700E03FE7FC1620809F19>I<001F81F80000F04F04 ! 0001C07C06000380F80F000300F00F000700F00F00070070000007007000000700700000 ! 070070000007007000000700700000FFFFFFFF0007007007000700700700070070070007 ! 007007000700700700070070070007007007000700700700070070070007007007000700 ! 700700070070070007007007000700700700070070070007007007000700700700070070 ! 07003FE3FE3FE02320809F26>I<7038F87CFC7EFC7E743A040204020402080408041008 ! 1008201040200F0E7F9F17>34 D<00400000400003F0000C4E0010410020408060408040 ! 4040C041C0C043C0C043C0E04180E040007040007C40003FC0001FF8000FFC0003FE0000 ! 7F00004F800043800041C00041C0F040C0F040C0F040C08040C080408040418020410030 ! 42000C4C0003F00000400000400000400012257EA117>36 D<70F8FCFC74040404080810 ! 102040060E7C9F0D>39 D<0040008001000300060004000C001800180038003000300070 ! 006000600060006000E000E000E000E000E000E000E000E000E000E000E000E000600060 ! 00600060007000300030003800180018000C000400060003000100008000400A2E7BA112 ! >I<8000400020003000180008000C000600060007000300030003800180018001800180 ! 01C001C001C001C001C001C001C001C001C001C001C001C0018001800180018003800300 ! 03000700060006000C000800180030002000400080000A2E7EA112>I<70F0F8F8780808 ! 08101010202040050E7C840D>44 DI<70F8F8F87005057C840D> ! I<0000400000C0000180000180000180000300000300000300000600000600000C00000C ! 00000C0000180000180000180000300000300000600000600000600000C00000C00000C0 ! 000180000180000180000300000300000600000600000600000C00000C00000C00001800 ! 00180000300000300000300000600000600000600000C00000C00000122D7EA117>I<03 ! F0000E1C001C0E00180600380700700380700380700380700380F003C0F003C0F003C0F0 ! 03C0F003C0F003C0F003C0F003C0F003C0F003C0F003C0F003C0F003C070038070038070 ! 03807807803807001806001C0E000E1C0003F000121F7E9D17>I<008003800F80F38003 ! 800380038003800380038003800380038003800380038003800380038003800380038003 ! 800380038003800380038007C0FFFE0F1E7C9D17>I<03F0000C1C00100E002007004007 ! 80800780F007C0F803C0F803C0F803C02007C00007C0000780000780000F00000E00001C ! 0000380000700000600000C0000180000300000600400C00401800401000803FFF807FFF ! 80FFFF80121E7E9D17>I<03F0000C1C00100E00200F00780F80780780780780380F8000 ! 0F80000F00000F00001E00001C0000700007F000003C00000E00000F0000078000078000 ! 07C02007C0F807C0F807C0F807C0F00780400780400F00200E00183C0007F000121F7E9D ! 17>I<000600000600000E00000E00001E00002E00002E00004E00008E00008E00010E00 ! 020E00020E00040E00080E00080E00100E00200E00200E00400E00C00E00FFFFF0000E00 ! 000E00000E00000E00000E00000E00000E0000FFE0141E7F9D17>I<1803001FFE001FFC ! 001FF8001FE00010000010000010000010000010000010000011F000161C00180E001007 ! 001007800003800003800003C00003C00003C07003C0F003C0F003C0E003804003804007 ! 00200600100C0008380007E000121F7E9D17>I<007C000182000701000E03800C078018 ! 0780380300380000780000700000700000F1F000F21C00F40600F80700F80380F80380F0 ! 03C0F003C0F003C0F003C0F003C07003C07003C07003803803803807001807000C0E0006 ! 1C0001F000121F7E9D17>I<4000007FFFE07FFFC07FFFC0400080800100800100800200 ! 00040000040000080000100000100000200000200000600000600000E00000C00001C000 ! 01C00001C00001C00003C00003C00003C00003C00003C00003C00003C000018000131F7E ! 9D17>I<03F0000C0C001006003003002001806001806001806001807001807803003E03 ! 003F06001FC8000FF00003F80007FC000C7E00103F00300F806007806001C0C001C0C000 ! C0C000C0C000C0C000806001802001001002000C0C0003F000121F7E9D17>I<03F0000E ! 18001C0C00380600380700700700700380F00380F00380F003C0F003C0F003C0F003C0F0 ! 03C07007C07007C03807C0180BC00E13C003E3C000038000038000038000070030070078 ! 0600780E00700C002018001070000FC000121F7E9D17>I<70F8F8F87000000000000000 ! 00000070F8F8F87005147C930D>I<70F8F8F8700000000000000000000070F0F8F87808 ! 0808101010202040051D7C930D>I<000100000003800000038000000380000007C00000 ! 07C0000007C0000009E0000009E0000009E0000010F0000010F0000010F0000020780000 ! 2078000020780000403C0000403C0000C03E0000801E0000801E0001FFFF0001000F0001 ! 000F00020007800200078002000780040003C0040003C00C0003C01E0003E0FF801FFE1F ! 207F9F22>65 DI<000FE0100038 ! 1C3000E0027003C00170078000F00F0000701E0000701E0000303C0000303C0000107C00 ! 001078000010F8000000F8000000F8000000F8000000F8000000F8000000F8000000F800 ! 0000F8000000780000007C0000103C0000103C0000101E0000201E0000200F0000200780 ! 004003C0008000E0030000380C00000FF0001C217E9F21>IIII<000FE01000381C3000E0027003C0 ! 0170078000F00F0000701E0000701E0000303C0000303C0000107C00001078000010F800 ! 0000F8000000F8000000F8000000F8000000F8000000F8000000F8003FFEF80001F07800 ! 00F07C0000F03C0000F03C0000F01E0000F01E0000F00F0000F0078000F003C0017000E0 ! 023000380C10000FF0001F217E9F24>II ! I75 DIII<001FE0000070380001C00E000380 ! 0700070003800F0003C01E0001E03C0000F03C0000F07C0000F87C0000F878000078F800 ! 007CF800007CF800007CF800007CF800007CF800007CF800007CF800007CF800007C7800 ! 00787C0000F87C0000F83C0000F03E0001F01E0001E00F0003C0070003800380070001E0 ! 1E0000703800001FE0001E217E9F23>II82 ! D<03F0400C0CC01803C03001C06000C06000C0E000C0E00040E00040E00040F00000F800 ! 007C00007F80003FF8001FFF0007FF8000FFC0001FE00003E00001E00000F00000708000 ! 70800070800070800070C00060C000E0E000C0F80180C6030081FC0014217E9F19>I<7F ! FFFFE0780F01E0600F0060400F0020400F0020C00F0030800F0010800F0010800F001080 ! 0F0010000F0000000F0000000F0000000F0000000F0000000F0000000F0000000F000000 ! 0F0000000F0000000F0000000F0000000F0000000F0000000F0000000F0000000F000000 ! 0F0000000F0000001F800003FFFC001C1F7E9E21>IIII89 D91 ! D<080410082010201040204020804080408040B85CFC7EFC7E7C3E381C0F0E7A9F17>I< ! FFFF03030303030303030303030303030303030303030303030303030303030303030303 ! 03030303030303FFFF082D80A10D>I<081020204040808080B8FCFC7C38060E7D9F0D> ! 96 D<1FE000303000781800781C00300E00000E00000E00000E0000FE00078E001E0E00 ! 380E00780E00F00E10F00E10F00E10F01E10781E103867200F83C014147E9317>I<1C00 ! 00FC00001C00001C00001C00001C00001C00001C00001C00001C00001C00001C00001C7C ! 001D87001E01801E00C01C00E01C00701C00701C00781C00781C00781C00781C00781C00 ! 781C00701C00F01C00E01E00C01A0180198700107C0015207E9F19>I<01FC000706001C ! 0F00380F00380600780000700000F00000F00000F00000F00000F00000F0000070000078 ! 00003800803800801C010007060001F80011147F9314>I<0001C0000FC00001C00001C0 ! 0001C00001C00001C00001C00001C00001C00001C00001C001F1C0070DC00C03C01801C0 ! 3801C07801C07001C0F001C0F001C0F001C0F001C0F001C0F001C07001C07001C03801C0 ! 1803C00C03C0070DC001F1F815207F9F19>I<03F0000E1C001C0E003807003807007007 ! 00700380F00380F00380FFFF80F00000F00000F000007000007000003800803800801C01 ! 0007060001F80011147F9314>I<007C01C6030F070F0E060E000E000E000E000E000E00 ! 0E00FFF00E000E000E000E000E000E000E000E000E000E000E000E000E000E000E000E00 ! 0E000E007FE01020809F0E>I<0000E003E3300E3C301C1C30380E00780F00780F00780F ! 00780F00780F00380E001C1C001E380033E0002000002000003000003000003FFE001FFF ! 801FFFC03001E0600070C00030C00030C00030C000306000603000C01C038003FC00141F ! 7F9417>I<1C0000FC00001C00001C00001C00001C00001C00001C00001C00001C00001C ! 00001C00001C7C001C86001D03001E03801E03801C03801C03801C03801C03801C03801C ! 03801C03801C03801C03801C03801C03801C03801C03801C0380FF8FF014207E9F19>I< ! 38007C007C007C0038000000000000000000000000001C00FC001C001C001C001C001C00 ! 1C001C001C001C001C001C001C001C001C001C001C001C00FF80091F7F9E0C>I<00E001 ! F001F001F000E0000000000000000000000000007007F000F00070007000700070007000 ! 700070007000700070007000700070007000700070007000700070007000706070F060F0 ! C061803F000C28829E0E>I<1C0000FC00001C00001C00001C00001C00001C00001C0000 ! 1C00001C00001C00001C00001C1FE01C07801C06001C04001C08001C10001C20001C6000 ! 1CE0001DF0001E70001C38001C3C001C1C001C0E001C0F001C07001C07801C07C0FF9FF0 ! 14207E9F18>I<1C00FC001C001C001C001C001C001C001C001C001C001C001C001C001C ! 001C001C001C001C001C001C001C001C001C001C001C001C001C001C001C001C00FF8009 ! 207F9F0C>I<1C3E03E000FCC30C30001D039038001E01E01C001E01E01C001C01C01C00 1C01C01C001C01C01C001C01C01C001C01C01C001C01C01C001C01C01C001C01C01C001C ! 01C01C001C01C01C001C01C01C001C01C01C001C01C01C001C01C01C00FF8FF8FF802114 ! 7E9326>I<1C7C00FC86001D03001E03801E03801C03801C03801C03801C03801C03801C ! 03801C03801C03801C03801C03801C03801C03801C03801C0380FF8FF014147E9319>I< ! 01F800070E001C03803801C03801C07000E07000E0F000F0F000F0F000F0F000F0F000F0 ! F000F07000E07000E03801C03801C01C0380070E0001F80014147F9317>I<1C7C00FD87 ! 001E01801E01C01C00E01C00F01C00701C00781C00781C00781C00781C00781C00781C00 ! 701C00F01C00E01E01C01E03801D87001C7C001C00001C00001C00001C00001C00001C00 ! 001C00001C0000FF8000151D7E9319>I<01F040070CC00E02C01C03C03801C07801C070 ! 01C0F001C0F001C0F001C0F001C0F001C0F001C07001C07801C03801C01C03C00C05C007 ! 09C001F1C00001C00001C00001C00001C00001C00001C00001C00001C0000FF8151D7F93 ! 18>I<1CF0FD181E3C1E3C1E181C001C001C001C001C001C001C001C001C001C001C001C ! 001C001C00FFC00E147E9312>I<0FC830386018C008C008C008E0007C003FE01FF007F8 ! 003C800E8006C006C006C004E00CD81887E00F147F9312>I<020002000200060006000E ! 000E003E00FFF80E000E000E000E000E000E000E000E000E000E000E000E040E040E040E ! 040E040708030801F00E1C7F9B12>I<1C0380FC1F801C03801C03801C03801C03801C03 ! 801C03801C03801C03801C03801C03801C03801C03801C03801C03801C07800C0780061B ! 8003E3F014147E9319>IIIII<7FFF700E600E401C40384078407000E001E001C00380078007010E011E011C033802 ! 7006700EFFFE10147F9314>I E /Fv 14 122 df<0000001FFC0000C000000003FFFFC0 ! 01C00000001FFFFFF003C00000007FFFFFFC07C0000001FFFC00FE0FC0000007FFC0001F ! 9FC000000FFE000007FFC000003FF8000003FFC000007FF0000000FFC00000FFE0000000 ! 7FC00001FFC00000007FC00001FF800000003FC00003FF000000001FC00007FE00000000 ! 1FC0000FFE000000000FC0000FFC000000000FC0001FFC0000000007C0001FFC00000000 ! 07C0003FF80000000007C0003FF80000000003C0003FF80000000003C0007FF800000000 ! 03C0007FF80000000003C0007FF0000000000000007FF000000000000000FFF000000000 ! 000000FFF000000000000000FFF000000000000000FFF000000000000000FFF000000000 ! 000000FFF000000000000000FFF000000000000000FFF000000000000000FFF000000000 ! 000000FFF000000000000000FFF000001FFFFFFF807FF000001FFFFFFF807FF000001FFF ! FFFF807FF800001FFFFFFF807FF800000001FFC0003FF800000001FFC0003FF800000001 ! FFC0003FF800000001FFC0001FFC00000001FFC0001FFC00000001FFC0000FFE00000001 ! FFC0000FFE00000001FFC00007FF00000001FFC00003FF00000001FFC00001FF80000001 ! FFC00001FFC0000001FFC00000FFE0000001FFC000007FF0000003FFC000003FFC000003 ! FFC000000FFF000007FFC0000007FFC0001FBFC0000001FFFC00FF1FC00000007FFFFFFE ! 0FC00000001FFFFFF803C000000003FFFFE000C0000000001FFE00000000413D7BBB4C> ! 71 DI<0007F800003FFE0000FFFF0001FC078003F00FC007C01FC0 ! 0F801FC01F801FC01F001FC03F000F803F0000007E0000007E0000007E000000FE020000 ! FE1FF000FE3FFC00FE603E00FE801F00FF801F80FF000FC0FF000FC0FE000FE0FE000FE0 ! FE000FE0FE000FE07E000FE07E000FE07E000FE07E000FE03E000FE03F000FC01F000FC0 ! 1F001F800F801F0007E07E0003FFFC0001FFF800003FC0001B277DA622>I<380000003E ! 0000003FFFFFF03FFFFFF03FFFFFF07FFFFFE07FFFFFC07FFFFF807FFFFF0070000E0070 ! 000E0070001C00E0003800E0007000E000E0000001C0000001C000000380000007800000 ! 070000000F0000001F0000001E0000003E0000003E0000007E0000007C0000007C000000 ! FC000000FC000000FC000000FC000001FC000001FC000001FC000001FC000001FC000001 ! FC000001FC000000F80000007000001C297CA822>I<007F800001FFF00007FFF8000FC0 ! FC001F803E003F001F007E001F807E001F807E000F80FE000FC0FE000FC0FE000FC0FE00 ! 0FE0FE000FE0FE000FE0FE000FE0FE000FE07E001FE07E001FE03F003FE01F002FE00F80 ! CFE007FF8FE001FF0FE000080FE000000FC000000FC000000FC000001F803E001F807F00 ! 1F807F003F007F003E007F007E007E00FC003E03F8001FFFE0000FFF800001FE00001B27 ! 7DA622>57 D<00000780000000000780000000000FC0000000000FC0000000000FC00000 ! 00001FE0000000001FE0000000003FF0000000003FF0000000003FF00000000077F80000 ! 000077F800000000F7FC00000000E3FC00000000E3FC00000001C1FE00000001C1FE0000 ! 0003C1FF0000000380FF0000000380FF00000007007F80000007007F8000000F007FC000 ! 000E003FC000000E003FC000001C001FE000001C001FE000003FFFFFF000003FFFFFF000 ! 003FFFFFF00000700007F80000700007F80000F00007FC0000E00003FC0001E00003FE00 ! 01C00001FE0001C00001FE0003C00001FF00FFFE003FFFFCFFFE003FFFFCFFFE003FFFFC ! 2E297EA833>65 DI<00007FE0030007FFFC07001FFFFF0F007FF00F9F00FF0001FF01FC0000FF03F8 ! 00007F07F000003F0FE000001F1FC000001F1FC000000F3F8000000F3F800000077F8000 ! 00077F800000077F00000000FF00000000FF00000000FF00000000FF00000000FF000000 ! 00FF00000000FF00000000FF00000000FF000000007F000000007F800000007F80000007 ! 3F800000073F800000071FC00000071FC000000E0FE000000E07F000001C03F800003C01 ! FC00007800FF0001F0007FF007C0001FFFFF800007FFFE0000007FF00028297CA831>I< ! FFFFFFFC0000FFFFFFFF8000FFFFFFFFE00003FC001FF80003FC0003FC0003FC0000FE00 ! 03FC00007F0003FC00003F8003FC00001FC003FC00001FC003FC00000FE003FC00000FE0 ! 03FC000007F003FC000007F003FC000007F003FC000007F003FC000007F803FC000007F8 ! 03FC000007F803FC000007F803FC000007F803FC000007F803FC000007F803FC000007F8 ! 03FC000007F803FC000007F803FC000007F003FC000007F003FC000007F003FC00000FE0 ! 03FC00000FE003FC00000FC003FC00001FC003FC00003F8003FC00007F0003FC0000FF00 ! 03FC0003FC0003FC001FF800FFFFFFFFF000FFFFFFFF8000FFFFFFFC00002D297EA834> ! III<00007FE0030000 ! 07FFFC0700001FFFFF0F00007FF00F9F0000FF0001FF0001FC0000FF0003F800007F0007 ! F000003F000FE000001F001FC000001F001FC000000F003F8000000F003F80000007007F ! 80000007007F80000007007F0000000000FF0000000000FF0000000000FF0000000000FF ! 0000000000FF0000000000FF0000000000FF0000000000FF0000000000FF0000FFFFF87F ! 0000FFFFF87F8000FFFFF87F800000FF003F800000FF003F800000FF001FC00000FF001F ! C00000FF000FE00000FF0007F00000FF0003F80000FF0001FC0000FF0000FF0001FF0000 ! 7FF007FF00001FFFFF9F000007FFFE0F0000007FF003002D297CA835>III75 DIII<0000FFC00000000FFF ! FC0000003F807F000000FE001FC00001F80007E00003F00003F00007E00001F8000FE000 ! 01FC001FC00000FE001FC00000FE003F8000007F003F8000007F007F8000007F807F0000 ! 003F807F0000003F807F0000003F80FF0000003FC0FF0000003FC0FF0000003FC0FF0000 003FC0FF0000003FC0FF0000003FC0FF0000003FC0FF0000003FC0FF0000003FC0FF0000 ! 003FC07F0000003F807F8000007F807F8000007F803F8000007F003F8000007F001FC000 ! 00FE001FC00000FE000FE00001FC0007F00003F80003F80007F00001FC000FE00000FE00 ! 1FC000003FC0FF0000000FFFFC00000000FFC000002A297CA833>II<0000FFC00000000FFFFC0000 ! 003FC0FF000000FE001FC00001FC000FE00003F00003F00007F00003F8000FE00001FC00 ! 1FC00000FE001FC00000FE003F8000007F003F8000007F007F8000007F807F8000007F80 ! 7F0000003F807F0000003F80FF0000003FC0FF0000003FC0FF0000003FC0FF0000003FC0 FF0000003FC0FF0000003FC0FF0000003FC0FF0000003FC0FF0000003FC0FF0000003FC0 ! 7F0000003F807F8000007F807F8000007F803F8000007F003F8000007F001FC00000FE00 ! 1FC03E00FE000FE07F81FC0007E0C1C1F80003F18063F00001F98067E00000FF803FC000 ! 003FC07F0000000FFFFC00000000FFF800C00000003C00C00000001E00C00000001E01C0 ! 0000001F83C00000001FFFC00000000FFF800000000FFF800000000FFF0000000007FF00 ! 00000003FE0000000001FC0000000000F8002A357CA833>II<00FF806003FFF0E00FFF ! F8E01F80FDE03F001FE03E0007E07C0003E07C0003E0FC0001E0FC0001E0FC0000E0FE00 ! 00E0FE0000E0FF000000FFC000007FFC00007FFFE0003FFFF8001FFFFE001FFFFF0007FF ! FF8003FFFFC000FFFFC0000FFFE000007FE000001FF000000FF0000007F0E00003F0E000 ! 03F0E00003F0E00003F0F00003E0F00003E0F80007E0FC0007C0FF000F80FFE03F80E3FF ! FE00E1FFFC00C01FF0001C297CA825>I<7FFFFFFFFF807FFFFFFFFF807FFFFFFFFF807F ! 807F807F807C007F800F8078007F80078078007F80078070007F800380F0007F8003C0F0 ! 007F8003C0E0007F8001C0E0007F8001C0E0007F8001C0E0007F8001C0E0007F8001C000 007F80000000007F80000000007F80000000007F80000000007F80000000007F80000000 007F80000000007F80000000007F80000000007F80000000007F80000000007F80000000 007F80000000007F80000000007F80000000007F80000000007F80000000007F80000000 ! 007F80000000007F80000000007F80000000007F80000000FFFFFFC00000FFFFFFC00000 ! FFFFFFC0002A287EA72F>IIII89 ! D<03FF80000FFFF0001F01FC003F80FE003F807F003F803F003F803F801F003F8000003F ! 8000003F8000003F8000003F80003FFF8001FC3F800FE03F801F803F803F003F807E003F ! 80FC003F80FC003F80FC003F80FC003F80FC005F807E00DF803F839FFC1FFE0FFC03FC03 ! FC1E1B7E9A21>97 D