bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Version of libreadline leads to problems in GNU Octave


From: Lars Kindermann
Subject: Re: New Version of libreadline leads to problems in GNU Octave
Date: Thu, 19 Nov 2020 22:22:57 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

to clarify:
bracketed paste mode works fine in octave commandline/text mode but
triggers a bug in the qt based gui which is not yet fixed.


Am 19.11.20 um 21:37 schrieb frederik@ofb.net:
> I'm a little confused, is there an option for keeping bracketed paste
> mode enabled and just fixing Octave? Wasn't there a reason for wanting
> this feature in the first place? ...
> 
> On Thu, Nov 19, 2020 at 03:00:54PM -0500, Chet Ramey wrote:
>> 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/
>>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]