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

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

[Octave-bug-tracker] [bug #56757] Starting Octave, q>> undecodable token


From: Teodor Silviu Popescu
Subject: [Octave-bug-tracker] [bug #56757] Starting Octave, q>> undecodable token: \001b(hex)[6\0020(hex) in command window
Date: Wed, 14 Aug 2019 15:18:01 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #7, bug #56757 (project octave):

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.)

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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