bugGNU Octave - Bugs: bug #56757, Starting Octave, q>>...

 
 

bug #56757: Starting Octave, q>> undecodable token: \001b(hex)[6\0020(hex) in command window

Submitter:  None
Submitted:  Wed 14 Aug 2019 11:18:36 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Missed Error or Warning
Status:  Need Info Assigned to:  None
Originator Name:  Teodor Silviu Popescu Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 5.1.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 14 Aug 2019 07:18:01 PM UTC, comment #7: 

Yes, it was exactly the cursor shape when using Readline in vi mode.
This was my .inputrc file


$include /etc/inputrc

set editing-mode vi
$if mode=vi

set show-mode-in-prompt on
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2

set keymap vi-command
# these are for vi-command mode
Control-l: clear-screen
Control-a: beginning-of-line

set keymap vi-insert
# these are for vi-insert mode
Control-l: clear-screen
Control-a: beginning-of-line

$endif


and using the logic from
https://savannah.gnu.org/bugs/?49385
I turned it into


$include /etc/inputrc

set editing-mode vi
$if mode=vi

$if Octave
set show-mode-in-prompt off
$else
set show-mode-in-prompt on
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2

set keymap vi-command
# these are for vi-command mode
Control-l: clear-screen
Control-a: beginning-of-line

set keymap vi-insert
# these are for vi-insert mode
Control-l: clear-screen
Control-a: beginning-of-line
$endif

$endif


and now the octave prompt is alright.

Thank you very much!
(I would mark this topic as fixed, but I don't know how.)

Teodor Silviu Popescu <silviankov>
Wed 14 Aug 2019 06:49:46 PM UTC, comment #6: 

Possibly, some configuration like that shown here

https://stackoverflow.com/a/48449104/384593


set show-mode-in-prompt on
set vi-cmd-mode-string "\1\e[2 q\2"
set vi-ins-mode-string "\1\e[6 q\2"


is meant to change the shape of the cursor when using Readline in vi mode.

Mike Miller <mtmiller>
Group Member
Wed 14 Aug 2019 06:23:54 PM UTC, comment #5: 

Maybe something in an inputrc file that is setting it?

John W. Eaton <jwe>
Group administrator
Wed 14 Aug 2019 05:40:17 PM UTC, comment #4: 

Ah, I just did a little searching and found that the following sequence


\x1b[6 q


is intended to change the shape of the cursor to an IBeam shape in certain terminal emulators. So maybe something in the PS1 setting or some other configuration is trying to use this escape sequence, which is rejected by the Octave terminal emulator.

Does this look familiar to you at all in your settings?

As far as I can tell there is nothing in Octave that would be doing anything close to this, so at worst this is Octave not supporting a particular terminal escape sequence that it may never support, and complaining loudly about it.

Mike Miller <mtmiller>
Group Member
Wed 14 Aug 2019 05:31:03 PM UTC, comment #3: 

Somebody probably set octave's prompt to something too fancy.
What is PS1() value?
Or if you type at octave prompt PS1(">>")  does this junk go away?

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 14 Aug 2019 03:57:19 PM UTC, comment #2: 

It displays each time I press enter or resize the Octave window.

Teodor Silviu Popescu <silviankov>
Wed 14 Aug 2019 03:12:55 PM UTC, comment #1: 

Does this display every time you press Enter to get a new prompt in the command window, or only once at startup?

The output you are seeing is not quite the same as bug #49385, compare


q>> undecodable token: \001b(hex)[6\0020(hex)


with


undecodable token: \001b(hex)[3m
undecodable token: \001b(hex)[23m


Your output is equivalent to "ESC [6 ". That seems like Octave or some program started by Octave is printing an invalid control sequence.

Mike Miller <mtmiller>
Group Member
Wed 14 Aug 2019 11:18:36 AM UTC, original submission:  

Hello!
Each time I start up Octave, this is printed in the command window:


q>> undecodable token: \001b(hex)[6\0020(hex)


I'm using Arch Linux on a T500 ThinkPad with a window environment created by Luke Smith (https://larbs.xyz/).
Octave version is 5.1.0.

I've taken a look over this
https://savannah.gnu.org/bugs/?49385
I've tried the fixes presented there, but they don't work.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by silviankov (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-08-17 rik5 Open/ClosedOpen Closed
    2019-08-14 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code