[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:
<http://savannah.gnu.org/bugs/?49323>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly, Rik, 2016/10/12
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly, John W. Eaton, 2016/10/12
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly,
Rik <=
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly, Rik, 2016/10/12
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly, Rik, 2016/10/12
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly, Mike Miller, 2016/10/12
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly, Rik, 2016/10/12
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly, Mike Miller, 2016/10/12
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly, Rik, 2016/10/12
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly, Rik, 2016/10/12
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly, John W. Eaton, 2016/10/12
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly, Rik, 2016/10/12
- [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly, John W. Eaton, 2016/10/13