Does the linux command line have a shortcut to move the cursor to the middle of the line?

< H1 > explanation: < / H1 >

linux command line input has a lot of shortcut, which is very convenient;
for example: ctrl+a jumps to the beginning of the input line; ctrl+e cursor moves to the end of the line;
but has not been able to find the middle of the line;
is interesting,
or do you have other faster editing commands shortcut keys (not the beginning of the line)?

Jun.30,2022

No. Or it can be, but it's not necessary.

is actually the function provided by the bash program. I remember that some implementations have shortcuts to jump to the next space-separated word?

in any case, the underlying library is libcurses. Use tigetstr () tparm () putp () to move the cursor

.

if you don't think it's enough, you can write a shell yourself to capture these shortcuts, which is basically something to write terminal programming.

you can refer to a simple shell , and I'll add a README file in the evening.

Menu