configure.ac
- add -Wno-parentheses -Wno-format-security to CFLAGS if gcc (or clang)
is the compiler
+
+ 10/29
+ -----
+configure.ac
+ - --enable-bracketed-paste-default: new invocation option, toggles the
+ default value of enable-bracketed-paste (on by default)
+
+INSTALL
+ - document new --enable-bracketed-paste-default configure option
redisplay function to crash if the line data structures had not been
initialized.
+y. Terminals that are named "dumb" or unknown do not enable bracketed paste
+ by default.
+
+z. Ensure that disabling bracketed paste turns off highlighting the incremental
+ search string when the search is successful.
+
2. New Features in Readline
a. If a second consecutive completion attempt produces matches where the first
g. Readline sets the mark in several additional commands.
-h. Bracketed paste mode is enabled by default (for now).
+h. Bracketed paste mode is enabled by default. There is a configure-time
+ option (--enable-bracketed-paste-default) to set the default to on or off.
i. Readline tries to take advantage of the more regular structure of UTF-8
characters to identify the beginning and end of characters when moving
`--enable-static'
Build the static libraries by default. The default is `yes'.
+
+`--enable-bracketed-paste-default'
+ Enable bracketed paste by default, so the initial value of the
+ `enable-bracketed-paste' Readline variable is `on'. The default
+ is `yes'.
Shared Libraries
================
CTAGS = ctags -w
CFLAGS = @CFLAGS@
-LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
+LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"' @BRACKETED_PASTE@
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@ @CROSS_COMPILE@
g. Readline sets the mark in several additional commands.
-h. Bracketed paste mode is enabled by default (for now).
+h. Bracketed paste mode is enabled by default. There is a configure-time
+ option (--enable-bracketed-paste-default) to set the default to on or off.
i. Readline tries to take advantage of the more regular structure of UTF-8
characters to identify the beginning and end of characters when moving
{ "convert-meta", &_rl_convert_meta_chars_to_ascii, 0 },
{ "disable-completion", &rl_inhibit_completion, 0 },
{ "echo-control-characters", &_rl_echo_control_chars, 0 },
- { "enable-bracketed-paste", &_rl_enable_bracketed_paste, 0 },
+ { "enable-bracketed-paste", &_rl_enable_bracketed_paste, V_SPECIAL },
{ "enable-keypad", &_rl_enable_keypad, 0 },
{ "enable-meta-key", &_rl_enable_meta, 0 },
{ "expand-tilde", &rl_complete_with_tilde_expansion, 0 },
}
else if (_rl_stricmp (name, "show-mode-in-prompt") == 0)
_rl_reset_prompt ();
+ else if (_rl_stricmp (name, "enable-bracketed-paste") == 0)
+ _rl_enable_active_region = _rl_enable_bracketed_paste;
}
typedef int _rl_sv_func_t PARAMS((const char *));
#! /bin/sh
-# From configure.ac for Readline 8.1, version 2.89.
+# From configure.ac for Readline 8.1, version 2.90.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for readline 8.1.
#
CC
SET_MAKE
CROSS_COMPILE
+BRACKETED_PASTE
host_os
host_vendor
host_cpu
enable_shared
enable_static
enable_install_examples
+enable_bracketed_paste_default
enable_largefile
'
ac_precious_vars='build_alias
--enable-static build static libraries [[default=YES]]
--disable-install-examples
don't install examples [[default=install]]
+ --disable-bracketed-paste-default
+ disable bracketed paste by default
+ [[default=enable]]
--disable-largefile omit support for large files
Optional Packages:
opt_static_libs=yes
opt_shared_libs=yes
opt_install_examples=yes
+opt_bracketed_paste_default=yes
# Check whether --enable-multibyte was given.
if test "${enable_multibyte+set}" = set; then :
fi
+# Check whether --enable-bracketed-paste-default was given.
+if test "${enable_bracketed_paste_default+set}" = set; then :
+ enableval=$enable_bracketed_paste_default; opt_bracketed_paste_default=$enableval
+fi
+
+
if test $opt_multibyte = no; then
$as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
fi
+if test $opt_bracketed_paste_default = yes; then
+ BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=1'
+else
+ BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=0'
+fi
+
+
CROSS_COMPILE=
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-AC_REVISION([for Readline 8.1, version 2.89])
+AC_REVISION([for Readline 8.1, version 2.90])
AC_INIT(readline, 8.1, bug-readline@gnu.org)
opt_static_libs=yes
opt_shared_libs=yes
opt_install_examples=yes
+opt_bracketed_paste_default=yes
AC_ARG_ENABLE(multibyte, AC_HELP_STRING([--enable-multibyte], [enable multibyte characters if OS supports them]), opt_multibyte=$enableval)
AC_ARG_ENABLE(shared, AC_HELP_STRING([--enable-shared], [build shared libraries [[default=YES]]]), opt_shared_libs=$enableval)
AC_ARG_ENABLE(static, AC_HELP_STRING([--enable-static], [build static libraries [[default=YES]]]), opt_static_libs=$enableval)
AC_ARG_ENABLE(install-examples, AC_HELP_STRING([--disable-install-examples], [don't install examples [[default=install]]]), opt_install_examples=$enableval)
+AC_ARG_ENABLE(bracketed-paste-default, AC_HELP_STRING([--disable-bracketed-paste-default], [disable bracketed paste by default [[default=enable]]]), opt_bracketed_paste_default=$enableval)
+
if test $opt_multibyte = no; then
AC_DEFINE(NO_MULTIBYTE_SUPPORT)
fi
+if test $opt_bracketed_paste_default = yes; then
+ BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=1'
+else
+ BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=0'
+fi
+AC_SUBST(BRACKETED_PASTE)
+
dnl load up the cross-building cache file -- add more cases and cache
dnl files as necessary
-1 if there was an error in expansion;
2 if the returned line should be displayed, but not exe-
cuted, as with the \e[1m:p \e[22mmodifier.
- If an error ocurred in expansion, then \e[4moutput\e[24m contains a descriptive
+ If an error occurred in expansion, then \e[4moutput\e[24m contains a descriptive
error message.
\e[4mchar\e[24m \e[4m*\e[24m \e[1mget_history_event \e[22m(\e[4mconst\e[24m \e[4mchar\e[24m \e[4m*string,\e[24m \e[4mint\e[24m \e[4m*cindex,\e[24m \e[4mint\e[24m \e[4mqchar\e[24m)
as with the \fB:p\fP modifier.
.PD
.RE
-If an error ocurred in expansion, then \fIoutput\fP contains a descriptive
+If an error occurred in expansion, then \fIoutput\fP contains a descriptive
error message.
.Fn3 "char *" get_history_event "const char *string" "int *cindex" "int qchar"
<HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!-- Created on July, 17 2020 by texi2html 1.64 -->
+<!-- Created on October, 30 2020 by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="history.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>About this document</H1>
-This document was generated by <I>Chet Ramey</I> on <I>July, 17 2020</I>
+This document was generated by <I>Chet Ramey</I> on <I>October, 30 2020</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
<P></P>
<BR>
<FONT SIZE="-1">
This document was generated
-by <I>Chet Ramey</I> on <I>July, 17 2020</I>
+by <I>Chet Ramey</I> on <I>October, 30 2020</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
This is history.info, produced by makeinfo version 6.7 from
history.texi.
-This document describes the GNU History library (version 8.1, 17 July
+This document describes the GNU History library (version 8.1, 29 October
2020), a programming tool that provides a consistent user interface for
recalling lines of previously typed input.
\1f
Tag Table:
-Node: Top\7f845
-Node: Using History Interactively\7f1490
-Node: History Interaction\7f1998
-Node: Event Designators\7f3896
-Node: Word Designators\7f5170
-Node: Modifiers\7f6930
-Node: Programming with GNU History\7f8475
-Node: Introduction to History\7f9219
-Node: History Storage\7f10897
-Node: History Functions\7f12032
-Node: Initializing History and State Management\7f13021
-Node: History List Management\7f13833
-Node: Information About the History List\7f16127
-Node: Moving Around the History List\7f17741
-Node: Searching the History List\7f18834
-Node: Managing the History File\7f20759
-Node: History Expansion\7f22579
-Node: History Variables\7f24508
-Node: History Programming Example\7f28488
-Node: GNU Free Documentation License\7f31165
-Node: Concept Index\7f56337
-Node: Function and Variable Index\7f57042
+Node: Top\7f848
+Node: Using History Interactively\7f1493
+Node: History Interaction\7f2001
+Node: Event Designators\7f3899
+Node: Word Designators\7f5173
+Node: Modifiers\7f6933
+Node: Programming with GNU History\7f8478
+Node: Introduction to History\7f9222
+Node: History Storage\7f10900
+Node: History Functions\7f12035
+Node: Initializing History and State Management\7f13024
+Node: History List Management\7f13836
+Node: Information About the History List\7f16130
+Node: Moving Around the History List\7f17744
+Node: Searching the History List\7f18837
+Node: Managing the History File\7f20762
+Node: History Expansion\7f22582
+Node: History Variables\7f24511
+Node: History Programming Example\7f28491
+Node: GNU Free Documentation License\7f31168
+Node: Concept Index\7f56340
+Node: Function and Variable Index\7f57045
\1f
End Tag Table
%!PS-Adobe-2.0
%%Creator: dvips(k) 5.999 Copyright 2019 Radical Eye Software
%%Title: history.dvi
-%%CreationDate: Fri Jul 17 19:13:14 2020
+%%CreationDate: Fri Oct 30 14:07:46 2020
%%Pages: 24
%%PageOrder: Ascend
%%BoundingBox: 0 0 612 792
%DVIPSWebPage: (www.radicaleye.com)
%DVIPSCommandLine: dvips -D 600 -t letter -o history.ps history.dvi
%DVIPSParameters: dpi=600
-%DVIPSSource: TeX output 2020.07.17:1513
+%DVIPSSource: TeX output 2020.10.30:1007
%%BeginProcSet: tex.pro 0 0
%!
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
%%Page: 1 1
TeXDict begin 1 0 bop 150 1318 a Fr(GNU)65 b(History)h(Library)p
150 1418 3600 34 v 1920 1515 a Fq(Edition)31 b(8.1,)h(for)e
-Fp(History)e(Library)h Fq(V)-8 b(ersion)31 b(8.1.)3367
-1623 y(July)f(2020)150 4927 y Fo(Chet)45 b(Ramey)-11
+Fp(History)e(Library)h Fq(V)-8 b(ersion)31 b(8.1.)3217
+1623 y(Octob)s(er)f(2020)150 4927 y Fo(Chet)45 b(Ramey)-11
b(,)46 b(Case)g(W)-11 b(estern)46 b(Reserv)l(e)g(Univ)l(ersit)l(y)150
5068 y(Brian)f(F)-11 b(o)l(x,)45 b(F)-11 b(ree)45 b(Soft)l(w)l(are)h(F)
-11 b(oundation)p 150 5141 3600 17 v eop end
%%Page: 2 2
-TeXDict begin 2 1 bop 150 4413 a Fq(This)31 b(do)s(cumen)m(t)h(describ)
-s(es)f(the)h(GNU)h(History)f(library)g(\(v)m(ersion)g(8.1,)i(17)f(July)
-e(2020\),)k(a)d(program-)150 4523 y(ming)38 b(to)s(ol)h(that)f(pro)m
-(vides)g(a)g(consisten)m(t)i(user)d(in)m(terface)i(for)f(recalling)h
-(lines)g(of)f(previously)f(t)m(yp)s(ed)150 4633 y(input.)150
-4767 y(Cop)m(yrigh)m(t)602 4764 y(c)577 4767 y Fn(\015)30
-b Fq(1988{2020)35 b(F)-8 b(ree)31 b(Soft)m(w)m(are)h(F)-8
-b(oundation,)31 b(Inc.)390 4902 y(P)m(ermission)21 b(is)f(gran)m(ted)h
-(to)g(cop)m(y)-8 b(,)24 b(distribute)c(and/or)h(mo)s(dify)e(this)i(do)s
-(cumen)m(t)f(under)f(the)390 5011 y(terms)25 b(of)h(the)f(GNU)h(F)-8
-b(ree)27 b(Do)s(cumen)m(tation)g(License,)g(V)-8 b(ersion)26
-b(1.3)g(or)f(an)m(y)h(later)g(v)m(ersion)390 5121 y(published)43
-b(b)m(y)h(the)h(F)-8 b(ree)46 b(Soft)m(w)m(are)g(F)-8
-b(oundation;)53 b(with)44 b(no)g(In)m(v)-5 b(arian)m(t)46
-b(Sections,)j(no)390 5230 y(F)-8 b(ron)m(t-Co)m(v)m(er)31
-b(T)-8 b(exts,)30 b(and)f(no)f(Bac)m(k-Co)m(v)m(er)k(T)-8
+TeXDict begin 2 1 bop 150 4413 a Fq(This)35 b(do)s(cumen)m(t)g(describ)
+s(es)g(the)h(GNU)h(History)f(library)f(\(v)m(ersion)i(8.1,)h(29)f
+(Octob)s(er)f(2020\),)j(a)d(pro-)150 4523 y(gramming)23
+b(to)s(ol)g(that)g(pro)m(vides)f(a)h(consisten)m(t)h(user)d(in)m
+(terface)j(for)e(recalling)i(lines)f(of)f(previously)g(t)m(yp)s(ed)150
+4633 y(input.)150 4767 y(Cop)m(yrigh)m(t)602 4764 y(c)577
+4767 y Fn(\015)30 b Fq(1988{2020)35 b(F)-8 b(ree)31 b(Soft)m(w)m(are)h
+(F)-8 b(oundation,)31 b(Inc.)390 4902 y(P)m(ermission)21
+b(is)f(gran)m(ted)h(to)g(cop)m(y)-8 b(,)24 b(distribute)c(and/or)h(mo)s
+(dify)e(this)i(do)s(cumen)m(t)f(under)f(the)390 5011
+y(terms)25 b(of)h(the)f(GNU)h(F)-8 b(ree)27 b(Do)s(cumen)m(tation)g
+(License,)g(V)-8 b(ersion)26 b(1.3)g(or)f(an)m(y)h(later)g(v)m(ersion)
+390 5121 y(published)43 b(b)m(y)h(the)h(F)-8 b(ree)46
+b(Soft)m(w)m(are)g(F)-8 b(oundation;)53 b(with)44 b(no)g(In)m(v)-5
+b(arian)m(t)46 b(Sections,)j(no)390 5230 y(F)-8 b(ron)m(t-Co)m(v)m(er)
+31 b(T)-8 b(exts,)30 b(and)f(no)f(Bac)m(k-Co)m(v)m(er)k(T)-8
b(exts.)41 b(A)29 b(cop)m(y)h(of)f(the)g(license)h(is)f(included)390
5340 y(in)h(the)h(section)g(en)m(titled)h(\\GNU)f(F)-8
b(ree)32 b(Do)s(cumen)m(tation)g(License".)p eop end
%!PS-Adobe-3.0
%%Creator: groff version 1.22.4
-%%CreationDate: Fri Jul 17 15:13:14 2020
+%%CreationDate: Mon Oct 12 10:59:26 2020
%%DocumentNeededResources: font Times-Roman
%%+ font Times-Bold
%%+ font Times-Italic
(as an error in e)-.1 E(xpansion;)-.15 E(2)144 268.8 Q
(if the returned line should be displayed, b)180 268.8 Q(ut not e)-.2 E
-.15(xe)-.15 G(cuted, as with the).15 E F1(:p)2.5 E F0(modi\214er)2.5 E
-(.)-.55 E(If an error ocurred in e)108 280.8 Q(xpansion, then)-.15 E F2
+(.)-.55 E(If an error occurred in e)108 280.8 Q(xpansion, then)-.15 E F2
(output)2.5 E F0(contains a descripti)2.5 E .3 -.15(ve e)-.25 H
(rror message.).15 E F2 -.15(ch)108 304.8 S(ar *).15 E F1(get_history_e)
2.5 E -.1(ve)-.15 G(nt).1 E F0(\()4.166 E F2(const c)A(har *string)-.15
@ignore
This file documents the user interface to the GNU History library.
-Copyright (C) 1988-2016 Free Software Foundation, Inc.
+Copyright (C) 1988-2020 Free Software Foundation, Inc.
Authored by Brian Fox and Chet Ramey.
Permission is granted to make and distribute verbatim copies of this manual
escapes to begin and end sequences of non-printing characters,
which can be used to embed a terminal control sequence into the
mode string.
- \e[1menable-bracketed-paste (Off)\e[0m
+ \e[1menable-bracketed-paste (On)\e[0m
When set to \e[1mOn\e[22m, readline will configure the terminal in a way
that will enable it to insert each paste into the editing buffer
as a single string of characters, instead of treating each char-
-GNU Readline 8.0 2020 March 24 READLINE(3)
+GNU Readline 8.1 2020 October 29 READLINE(3)
.\"
.\" Last Change: Tue Mar 24 09:27:30 EDT 2020
.\"
-.TH READLINE 3 "2020 March 24" "GNU Readline 8.0"
+.TH READLINE 3 "2020 October 29" "GNU Readline 8.1"
.\"
.\" File Name macro. This used to be `.PN', for Path Name,
.\" but Sun doesn't seem to like that very much.
non-printing characters, which can be used to embed a terminal control
sequence into the mode string.
.TP
-.B enable\-bracketed\-paste (Off)
+.B enable\-bracketed\-paste (On)
When set to \fBOn\fP, readline will configure the terminal in a way
that will enable it to insert each paste into the editing buffer as a
single string of characters, instead of treating each character as if
<HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!-- Created on September, 9 2020 by texi2html 1.64 -->
+<!-- Created on October, 30 2020 by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
that will enable it to insert each paste into the editing buffer as a
single string of characters, instead of treating each character as if
it had been read from the keyboard. This can prevent pasted characters
-from being interpreted as editing commands. The default is <SAMP>`off'</SAMP>.
+from being interpreted as editing commands. The default is <SAMP>`On'</SAMP>.
<P>
<DT><CODE>enable-keypad</CODE>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="readline.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>About this document</H1>
-This document was generated by <I>Chet Ramey</I> on <I>September, 9 2020</I>
+This document was generated by <I>Chet Ramey</I> on <I>October, 30 2020</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
<P></P>
<BR>
<FONT SIZE="-1">
This document was generated
-by <I>Chet Ramey</I> on <I>September, 9 2020</I>
+by <I>Chet Ramey</I> on <I>October, 30 2020</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
This is readline.info, produced by makeinfo version 6.7 from rlman.texi.
-This manual describes the GNU Readline Library (version 8.1, 17 July
+This manual describes the GNU Readline Library (version 8.1, 29 October
2020), a library which aids in the consistency of user interface across
discrete programs which provide a command line interface.
buffer as a single string of characters, instead of treating
each character as if it had been read from the keyboard. This
can prevent pasted characters from being interpreted as
- editing commands. The default is 'off'.
+ editing commands. The default is 'On'.
'enable-keypad'
When set to 'on', Readline will try to enable the application
\1f
Tag Table:
-Node: Top\7f861
-Node: Command Line Editing\7f1586
-Node: Introduction and Notation\7f2238
-Node: Readline Interaction\7f3862
-Node: Readline Bare Essentials\7f5054
-Node: Readline Movement Commands\7f6838
-Node: Readline Killing Commands\7f7799
-Node: Readline Arguments\7f9718
-Node: Searching\7f10763
-Node: Readline Init File\7f12916
-Node: Readline Init File Syntax\7f14070
-Node: Conditional Init Constructs\7f34329
-Node: Sample Init File\7f38526
-Node: Bindable Readline Commands\7f41651
-Node: Commands For Moving\7f42706
-Node: Commands For History\7f44465
-Node: Commands For Text\7f49228
-Node: Commands For Killing\7f52931
-Node: Numeric Arguments\7f55645
-Node: Commands For Completion\7f56785
-Node: Keyboard Macros\7f58754
-Node: Miscellaneous Commands\7f59442
-Node: Readline vi Mode\7f63364
-Node: Programming with GNU Readline\7f65181
-Node: Basic Behavior\7f66167
-Node: Custom Functions\7f69850
-Node: Readline Typedefs\7f71333
-Node: Function Writing\7f72967
-Node: Readline Variables\7f74281
-Node: Readline Convenience Functions\7f86953
-Node: Function Naming\7f88025
-Node: Keymaps\7f89287
-Node: Binding Keys\7f92366
-Node: Associating Function Names and Bindings\7f96914
-Node: Allowing Undoing\7f99693
-Node: Redisplay\7f102243
-Node: Modifying Text\7f106267
-Node: Character Input\7f107514
-Node: Terminal Management\7f109412
-Node: Utility Functions\7f111235
-Node: Miscellaneous Functions\7f114563
-Node: Alternate Interface\7f117982
-Node: A Readline Example\7f120724
-Node: Alternate Interface Example\7f122663
-Node: Readline Signal Handling\7f126195
-Node: Custom Completers\7f135454
-Node: How Completing Works\7f136174
-Node: Completion Functions\7f139481
-Node: Completion Variables\7f143055
-Node: A Short Completion Example\7f158848
-Node: GNU Free Documentation License\7f171628
-Node: Concept Index\7f196802
-Node: Function and Variable Index\7f198323
+Node: Top\7f864
+Node: Command Line Editing\7f1589
+Node: Introduction and Notation\7f2241
+Node: Readline Interaction\7f3865
+Node: Readline Bare Essentials\7f5057
+Node: Readline Movement Commands\7f6841
+Node: Readline Killing Commands\7f7802
+Node: Readline Arguments\7f9721
+Node: Searching\7f10766
+Node: Readline Init File\7f12919
+Node: Readline Init File Syntax\7f14073
+Node: Conditional Init Constructs\7f34331
+Node: Sample Init File\7f38528
+Node: Bindable Readline Commands\7f41653
+Node: Commands For Moving\7f42708
+Node: Commands For History\7f44467
+Node: Commands For Text\7f49230
+Node: Commands For Killing\7f52933
+Node: Numeric Arguments\7f55647
+Node: Commands For Completion\7f56787
+Node: Keyboard Macros\7f58756
+Node: Miscellaneous Commands\7f59444
+Node: Readline vi Mode\7f63366
+Node: Programming with GNU Readline\7f65183
+Node: Basic Behavior\7f66169
+Node: Custom Functions\7f69852
+Node: Readline Typedefs\7f71335
+Node: Function Writing\7f72969
+Node: Readline Variables\7f74283
+Node: Readline Convenience Functions\7f86955
+Node: Function Naming\7f88027
+Node: Keymaps\7f89289
+Node: Binding Keys\7f92368
+Node: Associating Function Names and Bindings\7f96916
+Node: Allowing Undoing\7f99695
+Node: Redisplay\7f102245
+Node: Modifying Text\7f106269
+Node: Character Input\7f107516
+Node: Terminal Management\7f109414
+Node: Utility Functions\7f111237
+Node: Miscellaneous Functions\7f114565
+Node: Alternate Interface\7f117984
+Node: A Readline Example\7f120726
+Node: Alternate Interface Example\7f122665
+Node: Readline Signal Handling\7f126197
+Node: Custom Completers\7f135456
+Node: How Completing Works\7f136176
+Node: Completion Functions\7f139483
+Node: Completion Variables\7f143057
+Node: A Short Completion Example\7f158850
+Node: GNU Free Documentation License\7f171630
+Node: Concept Index\7f196804
+Node: Function and Variable Index\7f198325
\1f
End Tag Table
%!PS-Adobe-2.0
%%Creator: dvips(k) 5.999 Copyright 2019 Radical Eye Software
%%Title: readline.dvi
-%%CreationDate: Wed Sep 9 19:34:50 2020
+%%CreationDate: Fri Oct 30 14:07:46 2020
%%Pages: 82
%%PageOrder: Ascend
%%BoundingBox: 0 0 612 792
%DVIPSWebPage: (www.radicaleye.com)
%DVIPSCommandLine: dvips -D 600 -t letter -o readline.ps readline.dvi
%DVIPSParameters: dpi=600
-%DVIPSSource: TeX output 2020.09.09:1534
+%DVIPSSource: TeX output 2020.10.30:1007
%%BeginProcSet: tex.pro 0 0
%!
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
%%Page: 1 1
TeXDict begin 1 0 bop 150 1318 a Fu(GNU)65 b(Readline)g(Library)p
150 1418 3600 34 v 1873 1515 a Ft(Edition)30 b(8.1,)i(for)e
-Fs(Readline)e(Library)h Ft(V)-8 b(ersion)31 b(8.1.)3367
-1623 y(July)f(2020)150 4927 y Fr(Chet)45 b(Ramey)-11
+Fs(Readline)e(Library)h Ft(V)-8 b(ersion)31 b(8.1.)3217
+1623 y(Octob)s(er)f(2020)150 4927 y Fr(Chet)45 b(Ramey)-11
b(,)46 b(Case)g(W)-11 b(estern)46 b(Reserv)l(e)g(Univ)l(ersit)l(y)150
5068 y(Brian)f(F)-11 b(o)l(x,)45 b(F)-11 b(ree)45 b(Soft)l(w)l(are)h(F)
-11 b(oundation)p 150 5141 3600 17 v eop end
%%Page: 2 2
-TeXDict begin 2 1 bop 150 4413 a Ft(This)40 b(man)m(ual)g(describ)s(es)
-g(the)g(GNU)h(Readline)g(Library)f(\(v)m(ersion)h(8.1,)j(17)e(July)d
-(2020\),)46 b(a)40 b(library)150 4523 y(whic)m(h)f(aids)g(in)g(the)g
+TeXDict begin 2 1 bop 150 4413 a Ft(This)28 b(man)m(ual)i(describ)s(es)
+e(the)i(GNU)f(Readline)h(Library)e(\(v)m(ersion)i(8.1,)h(29)f(Octob)s
+(er)f(2020\),)j(a)d(library)150 4523 y(whic)m(h)39 b(aids)g(in)g(the)g
(consistency)h(of)g(user)e(in)m(terface)j(across)f(discrete)g(programs)
e(whic)m(h)h(pro)m(vide)h(a)150 4633 y(command)30 b(line)h(in)m
(terface.)150 4767 y(Cop)m(yrigh)m(t)602 4764 y(c)577
5230 y(b)s(een)e(read)i(from)e(the)i(k)m(eyb)s(oard.)49
b(This)32 b(can)h(prev)m(en)m(t)h(pasted)f(c)m(haracters)1110
5340 y(from)d(b)s(eing)g(in)m(terpreted)h(as)f(editing)h(commands.)41
-b(The)29 b(default)i(is)f(`)p Fs(off)p Ft('.)p eop end
+b(The)29 b(default)i(is)f(`)p Fs(On)p Ft('.)p eop end
%%Page: 7 11
TeXDict begin 7 10 bop 150 -116 a Ft(Chapter)30 b(1:)41
b(Command)29 b(Line)i(Editing)2153 b(7)630 299 y Fs(enable-keypad)1110
%!PS-Adobe-3.0
%%Creator: groff version 1.22.4
-%%CreationDate: Fri Jul 17 15:13:14 2020
+%%CreationDate: Fri Oct 30 10:07:47 2020
%%DocumentNeededResources: font Times-Roman
%%+ font Times-Bold
%%+ font Times-Italic
(re).15 G(xample, placing)-2.65 E(M\255Control\255u: uni)144 698.4 Q
-.15(ve)-.25 G(rsal\255ar).15 E(gument)-.18 E(or)108 710.4 Q
(C\255Meta\255u: uni)144 722.4 Q -.15(ve)-.25 G(rsal\255ar).15 E(gument)
--.18 E(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(1)198.45 E 0 Cg
-EP
+-.18 E(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(1)195.395 E 0
+Cg EP
%%Page: 2 2
%%BeginPageSetup
BP
(Unquoted te)108 720 R .089(xt is assumed to be a function name.)-.15 F
.09(In the macro body)5.089 F 2.59(,t)-.65 G .09
(he backslash escapes described abo)-2.59 F -.15(ve)-.15 G
-(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(2)198.45 E 0 Cg EP
+(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(2)195.395 E 0 Cg EP
%%Page: 3 3
%%BeginPageSetup
BP
(re simply)-2.868 F(listed on the terminal.)144 720 Q 2.5(An)5 G -2.25
-.15(eg a)-2.5 H(ti).15 E .3 -.15(ve v)-.25 H
(alue causes readline to ne)-.1 E -.15(ve)-.25 G 2.5(ra).15 G(sk.)-2.5 E
-(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(3)198.45 E 0 Cg EP
+(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(3)195.395 E 0 Cg EP
%%Page: 4 4
%%BeginPageSetup
BP
(ailable. Use)-.05 F .298(the \\1 and \\2 escapes to be)2.798 F .298
(gin and end sequences of non-printing characters, which)-.15 F
(can be used to embed a terminal control sequence into the mode string.)
-144 312 Q F1(enable\255brack)108 324 Q(eted\255paste \(Off\))-.1 E F0
+144 312 Q F1(enable\255brack)108 324 Q(eted\255paste \(On\))-.1 E F0
1.222(When set to)144 336 R F1(On)3.721 E F0 3.721(,r)C 1.221
(eadline will con\214gure the terminal in a w)-3.721 F 1.221
(ay that will enable it to insert each)-.1 F .353
earch without subsequently e)144 708 R -.15(xe)-.15 G(cut-).15 E .935
(ing the character as a command.)144 720 R .935(If this v)5.935 F .935
(ariable has not been gi)-.25 F -.15(ve)-.25 G 3.434(nav).15 G .934
-(alue, the characters)-3.684 F F2(ESC)3.434 E F0(GNU Readline 8.0)72 768
-Q(2020 March 24)128.74 E(4)198.45 E 0 Cg EP
+(alue, the characters)-3.684 F F2(ESC)3.434 E F0(GNU Readline 8.1)72 768
+Q(2020 October 29)125.685 E(4)195.395 E 0 Cg EP
%%Page: 5 5
%%BeginPageSetup
BP
(ginning of the prompt indicating the editing mode: emacs, vi)-.15 F
(command, or vi insertion.)144 720 Q(The mode strings are user)5 E
(-settable \(e.g.,)-.2 E F1(emacs\255mode\255string)2.5 E F0(\).)A
-(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(5)198.45 E 0 Cg EP
+(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(5)195.395 E 0 Cg EP
%%Page: 6 6
%%BeginPageSetup
BP
(ey s)-.1 H .397(equence that quotes the).15 F(current or pre)180 688.8
Q(vious w)-.25 E(ord in)-.1 E F1(bash)2.5 E F0(:)A F1($if)180 712.8 Q F0
(Bash)2.5 E 2.5(#Q)180 724.8 S(uote the current or pre)-2.5 E(vious w)
--.25 E(ord)-.1 E(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(6)
-198.45 E 0 Cg EP
+-.25 E(ord)-.1 E(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(6)
+195.395 E 0 Cg EP
%%Page: 7 7
%%BeginPageSetup
BP
664.8 S(rward\255char \(C\255f\)).25 E F0(Mo)144 676.8 Q .3 -.15(ve f)
-.15 H(orw).15 E(ard a character)-.1 E(.)-.55 E F1
(backward\255char \(C\255b\))108 688.8 Q F0(Mo)144 700.8 Q .3 -.15(ve b)
--.15 H(ack a character).15 E(.)-.55 E(GNU Readline 8.0)72 768 Q
-(2020 March 24)128.74 E(7)198.45 E 0 Cg EP
+-.15 H(ack a character).15 E(.)-.55 E(GNU Readline 8.1)72 768 Q
+(2020 October 29)125.685 E(7)195.395 E 0 Cg EP
%%Page: 8 8
%%BeginPageSetup
BP
/Times-Italic@0 SF(point)2.62 E F0 2.62(\). The)B .12
(search string must match at the be)2.62 F .12(ginning of a)-.15 F
(history line.)144 700.8 Q(This is a non-incremental search.)5 E
-(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(8)198.45 E 0 Cg EP
+(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(8)195.395 E 0 Cg EP
%%Page: 9 9
%%BeginPageSetup
BP
(ving point forw)-.15 F .321(ard as well.)-.1 F 1.182
(If point is at the end of the line, then this transposes the tw)144
724.8 R 3.683(oc)-.1 G 1.183(haracters before point.)-3.683 F(Ne)6.183 E
--.05(ga)-.15 G(ti).05 E -.15(ve)-.25 G(GNU Readline 8.0)72 768 Q
-(2020 March 24)128.74 E(9)198.45 E 0 Cg EP
+-.05(ga)-.15 G(ti).05 E -.15(ve)-.25 G(GNU Readline 8.1)72 768 Q
+(2020 October 29)125.685 E(9)195.395 E 0 Cg EP
%%Page: 10 10
%%BeginPageSetup
BP
(ord follo)-.1 F 2.008(wing point to the kill b)-.25 F(uf)-.2 E(fer)-.25
E 7.007(.T)-.55 G 2.007(he w)-7.007 F 2.007
(ord boundaries are the same as)-.1 F F1 -.25(fo)4.507 G -.37(r-).25 G
-(ward\255w)144 712.8 Q(ord)-.1 E F0(.)A(GNU Readline 8.0)72 768 Q
-(2020 March 24)128.74 E(10)193.45 E 0 Cg EP
+(ward\255w)144 712.8 Q(ord)-.1 E F0(.)A(GNU Readline 8.1)72 768 Q
+(2020 October 29)125.685 E(10)190.395 E 0 Cg EP
%%Page: 11 11
%%BeginPageSetup
BP
E F0(Re-e)144 698.4 Q -.15(xe)-.15 G .999(cute the last k).15 F -.15(ey)
-.1 G .999(board macro de\214ned, by making the characters in the macro\
appear as if).15 F(typed at the k)144 710.4 Q -.15(ey)-.1 G(board.).15
-E(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(11)193.45 E 0 Cg EP
+E(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(11)190.395 E 0 Cg
+EP
%%Page: 12 12
%%BeginPageSetup
BP
5.283 F(gu-)-.18 E
(ment is supplied, the output is formatted in such a w)144 700.8 Q
(ay that it can be made part of an)-.1 E F2(inputr)2.5 E(c)-.37 E F0
-(\214le.)2.5 E(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(12)
-193.45 E 0 Cg EP
+(\214le.)2.5 E(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(12)
+190.395 E 0 Cg EP
%%Page: 13 13
%%BeginPageSetup
BP
(":" to)151.2 657.6 R 2.5("~" self-insert)2.5 F 2.5("C-?" backw)151.2
669.6 R(ard-delete-char)-.1 E(Emacs Meta bindings)151.2 686.4 Q 2.5
("M-C-G" abort)151.2 710.4 R 2.5("M-C-H" backw)151.2 722.4 R(ard-kill-w)
--.1 E(ord)-.1 E(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(13)
-193.45 E 0 Cg EP
+-.1 E(ord)-.1 E(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(13)
+190.395 E 0 Cg EP
%%Page: 14 14
%%BeginPageSetup
BP
652.8 R 2.5("C-XC-X" e)151.2 664.8 R(xchange-point-and-mark)-.15 E 2.5
("C-X\(" start-kbd-macro)151.2 676.8 R 2.5("C-X\)" end-kbd-macro)151.2
688.8 R 2.5("C-XE" call-last-kbd-macro)151.2 700.8 R 2.5("C-XC-?" backw)
-151.2 712.8 R(ard-kill-line)-.1 E(GNU Readline 8.0)72 768 Q
-(2020 March 24)128.74 E(14)193.45 E 0 Cg EP
+151.2 712.8 R(ard-kill-line)-.1 E(GNU Readline 8.1)72 768 Q
+(2020 October 29)125.685 E(14)190.395 E 0 Cg EP
%%Page: 15 15
%%BeginPageSetup
BP
("." vi-redo)151.2 676.8 R 2.5("/" vi-search)151.2 688.8 R 2.5("0" be)
151.2 700.8 R(ginning-of-line)-.15 E("1" to "9")151.2 712.8 Q(vi-ar)5 E
(g-digit)-.18 E 2.5(";" vi-char)151.2 724.8 R(-search)-.2 E
-(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(15)193.45 E 0 Cg EP
+(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(15)190.395 E 0 Cg
+EP
%%Page: 16 16
%%BeginPageSetup
BP
(ox and Chet Rame)-.15 E(y)-.15 E F2(bash)108 676.8 Q F0(\(1\))A F1
(FILES)72 693.6 Q F2(~/.inputr)109.666 705.6 Q(c)-.37 E F0(Indi)144
717.6 Q(vidual)-.25 E/F3 10/Times-Bold@0 SF -.18(re)2.5 G(adline).18 E
-F0(initialization \214le)2.5 E(GNU Readline 8.0)72 768 Q(2020 March 24)
-128.74 E(16)193.45 E 0 Cg EP
+F0(initialization \214le)2.5 E(GNU Readline 8.1)72 768 Q
+(2020 October 29)125.685 E(16)190.395 E 0 Cg EP
%%Page: 17 17
%%BeginPageSetup
BP
(ug reports concerning this manual page should be directed to)-.2 E F3
-.15(ch)2.5 G(et.r).15 E(ame)-.15 E(y@case)-.3 E(.edu)-.15 E F0(.).25 E
F1 -.11(BU)72 252 S(GS).11 E F0(It')108 264 Q 2.5(st)-.55 G
-(oo big and too slo)-2.5 E -.65(w.)-.25 G(GNU Readline 8.0)72 768 Q
-(2020 March 24)128.74 E(17)193.45 E 0 Cg EP
+(oo big and too slo)-2.5 E -.65(w.)-.25 G(GNU Readline 8.1)72 768 Q
+(2020 October 29)125.685 E(17)190.395 E 0 Cg EP
%%Trailer
end
%%EOF
that will enable it to insert each paste into the editing buffer as a
single string of characters, instead of treating each character as if
it had been read from the keyboard. This can prevent pasted characters
-from being interpreted as editing commands. The default is @samp{off}.
+from being interpreted as editing commands. The default is @samp{On}.
@item enable-keypad
@vindex enable-keypad
<HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!-- Created on September, 9 2020 by texi2html 1.64 -->
+<!-- Created on October, 30 2020 by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
that will enable it to insert each paste into the editing buffer as a
single string of characters, instead of treating each character as if
it had been read from the keyboard. This can prevent pasted characters
-from being interpreted as editing commands. The default is <SAMP>`off'</SAMP>.
+from being interpreted as editing commands. The default is <SAMP>`On'</SAMP>.
<P>
<DT><CODE>enable-keypad</CODE>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="rluserman.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>About this document</H1>
-This document was generated by <I>Chet Ramey</I> on <I>September, 9 2020</I>
+This document was generated by <I>Chet Ramey</I> on <I>October, 30 2020</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
<P></P>
<BR>
<FONT SIZE="-1">
This document was generated
-by <I>Chet Ramey</I> on <I>September, 9 2020</I>
+by <I>Chet Ramey</I> on <I>October, 30 2020</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
rluserman.texi.
This manual describes the end user interface of the GNU Readline Library
-(version 8.1, 17 July 2020), a library which aids in the consistency of
-user interface across discrete programs which provide a command line
+(version 8.1, 29 October 2020), a library which aids in the consistency
+of user interface across discrete programs which provide a command line
interface.
Copyright (C) 1988-2020 Free Software Foundation, Inc.
buffer as a single string of characters, instead of treating
each character as if it had been read from the keyboard. This
can prevent pasted characters from being interpreted as
- editing commands. The default is 'off'.
+ editing commands. The default is 'On'.
'enable-keypad'
When set to 'on', Readline will try to enable the application
\1f
Tag Table:
-Node: Top\7f904
-Node: Command Line Editing\7f1426
-Node: Introduction and Notation\7f2080
-Node: Readline Interaction\7f3705
-Node: Readline Bare Essentials\7f4898
-Node: Readline Movement Commands\7f6683
-Node: Readline Killing Commands\7f7645
-Node: Readline Arguments\7f9565
-Node: Searching\7f10611
-Node: Readline Init File\7f12765
-Node: Readline Init File Syntax\7f13920
-Node: Conditional Init Constructs\7f34180
-Node: Sample Init File\7f38378
-Node: Bindable Readline Commands\7f41504
-Node: Commands For Moving\7f42560
-Node: Commands For History\7f44320
-Node: Commands For Text\7f49084
-Node: Commands For Killing\7f52788
-Node: Numeric Arguments\7f55503
-Node: Commands For Completion\7f56644
-Node: Keyboard Macros\7f58614
-Node: Miscellaneous Commands\7f59303
-Node: Readline vi Mode\7f63226
-Node: GNU Free Documentation License\7f64140
+Node: Top\7f907
+Node: Command Line Editing\7f1429
+Node: Introduction and Notation\7f2083
+Node: Readline Interaction\7f3708
+Node: Readline Bare Essentials\7f4901
+Node: Readline Movement Commands\7f6686
+Node: Readline Killing Commands\7f7648
+Node: Readline Arguments\7f9568
+Node: Searching\7f10614
+Node: Readline Init File\7f12768
+Node: Readline Init File Syntax\7f13923
+Node: Conditional Init Constructs\7f34182
+Node: Sample Init File\7f38380
+Node: Bindable Readline Commands\7f41506
+Node: Commands For Moving\7f42562
+Node: Commands For History\7f44322
+Node: Commands For Text\7f49086
+Node: Commands For Killing\7f52790
+Node: Numeric Arguments\7f55505
+Node: Commands For Completion\7f56646
+Node: Keyboard Macros\7f58616
+Node: Miscellaneous Commands\7f59305
+Node: Readline vi Mode\7f63228
+Node: GNU Free Documentation License\7f64142
\1f
End Tag Table
%!PS-Adobe-2.0
%%Creator: dvips(k) 5.999 Copyright 2019 Radical Eye Software
%%Title: rluserman.dvi
-%%CreationDate: Wed Sep 9 19:34:51 2020
+%%CreationDate: Fri Oct 30 14:07:47 2020
%%Pages: 35
%%PageOrder: Ascend
%%BoundingBox: 0 0 612 792
%DVIPSWebPage: (www.radicaleye.com)
%DVIPSCommandLine: dvips -D 600 -t letter -o rluserman.ps rluserman.dvi
%DVIPSParameters: dpi=600
-%DVIPSSource: TeX output 2020.09.09:1534
+%DVIPSSource: TeX output 2020.10.30:1007
%%BeginProcSet: tex.pro 0 0
%!
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
TeXDict begin 1 0 bop 150 1318 a Fp(GNU)65 b(Readline)g(Library)g(User)
g(In)-5 b(terface)p 150 1418 3600 34 v 1873 1515 a Fo(Edition)30
b(8.1,)i(for)e Fn(Readline)e(Library)h Fo(V)-8 b(ersion)31
-b(8.1.)3367 1623 y(July)f(2020)150 4927 y Fm(Chet)45
+b(8.1.)3217 1623 y(Octob)s(er)f(2020)150 4927 y Fm(Chet)45
b(Ramey)-11 b(,)46 b(Case)g(W)-11 b(estern)46 b(Reserv)l(e)g(Univ)l
(ersit)l(y)150 5068 y(Brian)f(F)-11 b(o)l(x,)45 b(F)-11
b(ree)45 b(Soft)l(w)l(are)h(F)-11 b(oundation)p 150 5141
3600 17 v eop end
%%Page: 2 2
-TeXDict begin 2 1 bop 150 4413 a Fo(This)29 b(man)m(ual)g(describ)s(es)
-g(the)h(end)e(user)h(in)m(terface)i(of)f(the)f(GNU)h(Readline)g
-(Library)f(\(v)m(ersion)h(8.1,)h(17)150 4523 y(July)25
-b(2020\),)j(a)e(library)f(whic)m(h)f(aids)i(in)f(the)g(consistency)h
-(of)f(user)g(in)m(terface)i(across)e(discrete)h(programs)150
-4633 y(whic)m(h)k(pro)m(vide)h(a)f(command)g(line)h(in)m(terface.)150
+TeXDict begin 2 1 bop 150 4413 a Fo(This)38 b(man)m(ual)h(describ)s(es)
+f(the)h(end)f(user)g(in)m(terface)i(of)f(the)g(GNU)g(Readline)g
+(Library)f(\(v)m(ersion)i(8.1,)150 4523 y(29)35 b(Octob)s(er)f(2020\),)
+k(a)d(library)f(whic)m(h)g(aids)g(in)g(the)h(consistency)g(of)g(user)e
+(in)m(terface)j(across)f(discrete)150 4633 y(programs)30
+b(whic)m(h)g(pro)m(vide)h(a)f(command)g(line)h(in)m(terface.)150
4767 y(Cop)m(yrigh)m(t)602 4764 y(c)577 4767 y Fl(\015)f
Fo(1988{2020)35 b(F)-8 b(ree)31 b(Soft)m(w)m(are)h(F)-8
b(oundation,)31 b(Inc.)390 4902 y(P)m(ermission)21 b(is)f(gran)m(ted)h
5230 y(b)s(een)e(read)i(from)e(the)i(k)m(eyb)s(oard.)49
b(This)32 b(can)h(prev)m(en)m(t)h(pasted)f(c)m(haracters)1110
5340 y(from)d(b)s(eing)g(in)m(terpreted)h(as)f(editing)h(commands.)41
-b(The)29 b(default)i(is)f(`)p Fn(off)p Fo('.)p eop end
+b(The)29 b(default)i(is)f(`)p Fn(On)p Fo('.)p eop end
%%Page: 7 10
TeXDict begin 7 9 bop 150 -116 a Fo(Chapter)30 b(1:)41
b(Command)29 b(Line)i(Editing)2153 b(7)630 299 y Fn(enable-keypad)1110
@set EDITION 8.1
@set VERSION 8.1
-@set UPDATED 17 July 2020
-@set UPDATED-MONTH July 2020
+@set UPDATED 29 October 2020
+@set UPDATED-MONTH October 2020
-@set LASTCHANGE Fri Jul 17 09:35:36 EDT 2020
+@set LASTCHANGE Thu Oct 29 16:49:01 EDT 2020
/* XXX - experimental code to allow users to bracketed-paste into the search
string even when ESC is one of the isearch-terminators. Not perfect yet. */
- if (_rl_enable_bracketed_paste && c == ESC && strchr (cxt->search_terminators, c) && (n = _rl_nchars_available ()) > (2*BRACK_PASTE_SLEN-1))
+ if (_rl_enable_bracketed_paste && c == ESC && strchr (cxt->search_terminators, c) && (n = _rl_nchars_available ()) > (BRACK_PASTE_SLEN-1))
{
j = _rl_read_bracketed_paste_prefix (c);
if (j == 1)
free (paste);
break;
}
- rl_activate_mark ();
+ if (_rl_enable_active_region)
+ rl_activate_mark ();
if (cxt->search_string_index + pastelen + 1 >= cxt->search_string_size)
{
cxt->search_string_size += pastelen + 2;
{
cxt->prev_line_found = cxt->lines[cxt->history_pos];
rl_replace_line (cxt->lines[cxt->history_pos], 0);
- rl_activate_mark ();
+ if (_rl_enable_active_region)
+ rl_activate_mark ();
rl_point = cxt->sline_index;
if (rl_mark_active_p () && cxt->search_string_index > 0)
rl_mark = rl_point + cxt->search_string_index;
buf = _rl_bracketed_text (&len);
rl_mark = rl_point;
retval = rl_insert_text (buf) == len ? 0 : 1;
- rl_activate_mark ();
+ if (_rl_enable_active_region)
+ rl_activate_mark ();
xfree (buf);
return (retval);
/* Non-zero means to attempt to put the terminal in `bracketed paste mode',
where it will prefix pasted text with an escape sequence and send
another to mark the end of the paste. */
-int _rl_enable_bracketed_paste = 1; /* XXX - for now */
+int _rl_enable_bracketed_paste = BRACKETED_PASTE_DEFAULT;
+int _rl_enable_active_region = BRACKETED_PASTE_DEFAULT;
/* **************************************************************** */
/* */
extern int _rl_search_getchar PARAMS((_rl_search_cxt *));
/* kill.c */
+#ifndef BRACKETED_PASTE_DEFAULT
+# define BRACKETED_PASTE_DEFAULT 1 /* XXX - for now */
+#endif
+
#define BRACK_PASTE_PREF "\033[200~"
#define BRACK_PASTE_SUFF "\033[201~"
extern int _rl_echo_control_chars;
extern int _rl_show_mode_in_prompt;
extern int _rl_enable_bracketed_paste;
+extern int _rl_enable_active_region;
extern char *_rl_comment_begin;
extern unsigned char _rl_parsing_conditionalized_out;
extern Keymap _rl_keymap;
make_history_line_current (entry);
- if (_rl_enable_bracketed_paste && ((flags & SF_PATTERN) == 0) && ind > 0 && ind < rl_end)
+ if (_rl_enable_active_region && ((flags & SF_PATTERN) == 0) && ind > 0 && ind < rl_end)
{
rl_point = ind;
rl_mark = ind + strlen (string);
DESTDIR =
CFLAGS = @CFLAGS@
-LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"'
+LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"' @BRACKETED_PASTE@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@ @CFLAGS@
{
const char *term;
char *buffer;
- int tty, tgetent_ret;
+ int tty, tgetent_ret, dumbterm;
term = terminal_name ? terminal_name : sh_get_env_value ("TERM");
_rl_term_clrpag = _rl_term_cr = _rl_term_clreol = _rl_term_clrscroll = (char *)NULL;
if (term == 0)
term = "dumb";
+ dumbterm = STREQ (term, "dumb");
+
#ifdef __MSDOS__
_rl_term_im = _rl_term_ei = _rl_term_ic = _rl_term_IC = (char *)NULL;
_rl_term_up = _rl_term_dc = _rl_term_DC = _rl_visible_bell = (char *)NULL;
_rl_term_so = _rl_term_se = (char *)NULL;
_rl_terminal_can_insert = term_has_meta = 0;
+ /* Assume generic unknown terminal can't handle the enable/disable
+ escape sequences */
+ _rl_enable_bracketed_paste = 0;
+
/* Reasonable defaults for tgoto(). Readline currently only uses
tgoto if _rl_term_IC or _rl_term_DC is defined, but just in case we
change that later... */
bind_termcap_arrow_keys (vi_insertion_keymap);
#endif /* VI_MODE */
+ /* There's no way to determine whether or not a given terminal supports
+ bracketed paste mode, so we assume a terminal named "dumb" does not. */
+ if (dumbterm)
+ _rl_enable_bracketed_paste = 0;
+
return 0;
}