octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #59483] GUI prints "undecodable token:" on eve


From: Lars Kindermann
Subject: [Octave-bug-tracker] [bug #59483] GUI prints "undecodable token:" on every prompt
Date: Thu, 19 Nov 2020 15:14:56 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #9, bug #59483 (project octave):

Here is the answer from the readline developer: 


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/


8.1 enables bracketed paste mode by default now. This means from the moment
when libreadline will be finally upgraded to 8.1, all Octave installations on
clean systems suddenly will be affected and have to disable the
'enable-bracketed-paste' manually.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59483>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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