2 files changed, 24 insertions, 0 deletions
diff --git a/package/readline/Config.in b/package/readline/Config.in
index 7021472623..fd21cfeaf8 100644
@@ -7,3 +7,21 @@ config BR2_PACKAGE_READLINE
as they are typed in.
+ bool "Enable bracketed paste"
+ depends on BR2_PACKAGE_READLINE
+ 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:
diff --git a/package/readline/readline.mk b/package/readline/readline.mk
index 326cffab18..06a96b67a8 100644
@@ -16,6 +16,12 @@ READLINE_LICENSE = GPL-3.0+
READLINE_LICENSE_FILES = COPYING
READLINE_CPE_ID_VENDOR = gnu
+READLINE_CONF_OPTS += --enable-bracketed-paste-default
+READLINE_CONF_OPTS += --disable-bracketed-paste-default
$(INSTALL) -D -m 644 package/readline/inputrc $(TARGET_DIR)/etc/inputrc