[Top][All Lists]

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

[Octave-bug-tracker] [bug #49323] Readline library does not support vi-m

From: Rik
Subject: [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly
Date: Wed, 12 Oct 2016 21:11:07 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #2, bug #49323 (project octave):

It seems there is quite a bit going on.  Try this .inputrc file:

set editing-mode vi
set show-mode-in-prompt on
set keyseq-timeout 250

set keymap vi-insert
"\e[A": "Hello"

"\C-f": dump-functions
"\C-g": dump-macros

set keymap vi-command

"\C-f": dump-functions
"\C-g": dump-macros

Now, if you start a bash shell you can type Ctrl+g to see what macros are
defined.  There should be only the one that substitutes "Hello" each time the
up arrow key is pressed.  Verify that this macro works.

I am using a up-to-date version of octave that I install in a local directory.
 For this sequence, the first left arrow works correctly.  However, after I
have switched toolkits, it fails.

octave-cli -f
123<left arrow><return>
graphics_toolkit fltk
123<left arrow>

Interestingly enough, the default toolkit on start-up is already fltk.  Also,
setting the graphics toolkit to gnuplot, rather than fltk, doesn't create a
problem.  Nor does setting the toolkit to 'qt' which emits an error because
the CLI is not linked with qt.

The test below already fails on the first time even though fltk is not the
default toolkit for the --no-gui option.

octave -f --no-gui
123<left arrow>


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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