How do I leap to the next or previous word with CTRL+arrowhead type in a console?

In terminal emulation applications, pushing CTRL+Left/ Right arrowheads leaps from one word to the previous or next one. Is it feasible to have the very same capability in a Linux console, whether it remains in message or in framebuffer settings?

In my arrangement, the CTRL+arrowhead keys are changed right into run away character series and also not analyzed.

2019-05-13 04:46:29
Source Share
Answers: 3

Emacs - design shortcuts Alt+F, Alt+B job by default with all readline - powered command line programs, like coverings.

2019-05-17 19:27:22

You can set vim as your command line editor and afterwards struck ESC and also leap around vim design (onward, back, end, $, 0, etc)

2019-05-17 17:44:00

This is feasible if and also just if the terminal sends out various retreat series for Ctrl+Left vs Left. This is not the instance by default on the Linux console (at the very least on my equipment). You can make it so by changing the keymap. The specific documents to change might rely on your circulation ; on Debian lenny, the documents to change is /etc/console/boottime.kmap.gz. You require lines like

control keycode 105 = F100
string F100 = "\033O5D"
control keycode 106 = F101
string F101 = "\033O5C"

You could too pick the very same retreat series as your X terminal emulator. To figure out what the control series is, type Ctrl+V Ctrl+Left in a covering ; this inserts (on my equipment) ^[O5D where ^[ is a retreat personality. In the keymap documents, \033 stands for a retreat personality.

Setting up the application in the terminal to translate the retreat series is a different trouble,.

2019-05-17 17:39:18