aboutsummaryrefslogtreecommitdiff
path: root/package/readline/Config.in
diff options
context:
space:
mode:
authorGravatar Markus Mayer <mmayer@broadcom.com>2021-02-26 12:08:21 -0800
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2021-02-26 22:42:56 +0100
commitba05d014763bb87b07096e9a2c065389ef2d5030 (patch)
tree46dbb7aaaaa833e2425cbdc2c32805d7f92cd899 /package/readline/Config.in
parent8ef20378b7db54a0ccbebb3dfb71dca4f5eb64e7 (diff)
downloadbuildroot-ba05d014763bb87b07096e9a2c065389ef2d5030.tar.gz
buildroot-ba05d014763bb87b07096e9a2c065389ef2d5030.tar.bz2
package/readline: disable bracketed paste by default
As of readline 8.1, "bracketed paste" is enabled by default. However, the feature causes control characters to appear in captured (telnet) session output. This can throw off pattern matching if the output is to be processed by scripts. Let's keep the previous default of leaving this feature disabled and provide a configuration option for users to enable it. Signed-off-by: Markus Mayer <mmayer@broadcom.com> [yann.morin.1998@free.fr: - explicit enable/disable - no indentation in conditional block - rewrap help text ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Diffstat (limited to 'package/readline/Config.in')
-rw-r--r--package/readline/Config.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/readline/Config.in b/package/readline/Config.in
index 7021472623..fd21cfeaf8 100644
--- a/package/readline/Config.in
+++ b/package/readline/Config.in
@@ -7,3 +7,21 @@ config BR2_PACKAGE_READLINE
as they are typed in.
https://tiswww.case.edu/php/chet/readline/rltop.html
+
+config BR2_PACKAGE_READLINE_BRACKETED_PASTE
+ bool "Enable bracketed paste"
+ depends on BR2_PACKAGE_READLINE
+ help
+ Enable the "bracketed paste" feature in libreadline.
+
+ Bracketed paste is helpful for interactive sessions when
+ one wants to prevent pasted text from being interpreted
+ as typed-in commands. However, it also causes control
+ characters to show up in the raw output of a (telnet)
+ session. This can cause issues and throw off pattern
+ matching if the session output is being captured for
+ automated processing.
+
+ For further information on this feature and whether you
+ may want it, see:
+ https://cirw.in/blog/bracketed-paste