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 [email protected]: > 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 [email protected] http://tiswww.cwru.edu/~chet/ >>
