Closed GoogleCodeExporter closed 9 years ago
This is expected. You can only interact with the shell in insert mode. When you
leave insert mode you can move the cursor around to browse the shell output,
but it won't change the cursor position in bash.
For line editing you have two options depending on how readline is configured.
In either case all of this is in insert mode.
If readline is using Emacs style line editing (the default) you can use those
key commands to edit the current line. E.g. press <C-a> to go to the begging of
the line, or <C-e> to go to the end, or <C-u> to erase everything up to the
cursor.
You can also configure bash/readline to use Vim keys for line editing. Then you
can use Vi commands to edit the line. E.g. <Esc>0i to go to the begging of the
line, etc. You can do this by creating a .inputrc file with the following
options:
set editing-mode vi
set keymap vi
However, by default pressing <Esc> in Conque will leave insert mode, instead of
sending <Esc> to the terminal. Pressing <Esc> twice sends it to the terminal
and leave you in insert mode. In order to send <Esc>0i to the terminal you'll
have to type <Esc><Esc>0i
If you want to use Vi line editing, but don't want to press <Esc> twice, you
can use the ConqueTerm_EscKey option to pick a new key for leaving insert mode
so all <Esc> key presses will be sent to the terminal. (See :help
ConqueTerm_EscKey).
Original comment by nicora...@gmail.com
on 24 Nov 2010 at 9:05
Original issue reported on code.google.com by
archamba...@gmail.com
on 24 Nov 2010 at 8:25