Skip to content
Snippets Groups Projects
Commit 04bd3293 authored by Gleb Kashkin's avatar Gleb Kashkin Committed by Igor Munkin
Browse files

console: force disable readline bracketed paste

GNU Readline starting from version 8.1 has bracketed paste[0] enabled by
default which complicates handling pasted multiline text and is not
supported for now.

This patch disables the feature even if it is enabled in inputrc, by user
or by default.

[0] https://cirw.in/blog/bracketed-paste

Needed for #4317

NO_TEST=readline config
NO_DOC=readline config
NO_CHANGELOG=readline config
parent 1051aa7f
No related branches found
No related tags found
No related merge requests found
......@@ -910,6 +910,13 @@ tarantool_lua_console_init(struct lua_State *L)
history_comment_char = '#';
history_write_timestamps = 1;
/*
* Force disable readline bracketed paste in console, even if it's
* set in the inputrc, is enabled by default (eg GNU Readline 8.1),
* or by user.
*/
rl_variable_bind("enable-bracketed-paste", "off");
serializer_yaml = lua_yaml_new_serializer(L);
serializer_yaml->encode_invalid_numbers = 1;
serializer_yaml->encode_load_metatables = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment