[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New Version of libreadline leads to problems in GNU Octave
From: |
Chet Ramey |
Subject: |
Re: New Version of libreadline leads to problems in GNU Octave |
Date: |
Thu, 19 Nov 2020 15:00:54 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 |
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/