On 11/19/20 2:42 PM, Lars Kindermann wrote:
Hi,
Debian testing yesterday updated libreadline8 to 8.1~rc2-2
Since then the GUI of GNU Octave (all versions) throws the error message
"undecodable token: \001b(hex)[?2004l"
See: https://savannah.gnu.org/bugs/?59483
Any idea what the cause may be?
This is the termination sequence for bracketed paste mode, which is
enabled by default in readline-8.1:
rlprivate.h:#define BRACK_PASTE_INIT "\033[?2004h"
rlprivate.h:#define BRACK_PASTE_FINI "\033[?2004l\r"
You can either require the user to disable it, disable it from inside
octave:
rl_variable_bind ("enable-bracketed-paste", "off");
or set the terminal to "dumb"
rl_terminal_name = "dumb";
in which case it's turned off.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/