is there any short-cut available for moving the cursor at the start of a line and at the end of the line? Rather than moving arrow left and right can we use any shortcut for the same?
Asked
Active
Viewed 98 times
2
-
2like 'home' and 'end'? Those should work in jshell – Jorn Vernee Dec 01 '17 at 00:24
-
1[How much research effort is expected of Stack Overflow users?](https://meta.stackoverflow.com/questions/261592/how-much-research-effort-is-expected-of-stack-overflow-users) The answer, *"A lot. An absurd amount. More than you think you are capable of. After you have reached the end of your rope and the pain of not having the answer exceeds the vast amount of shame received by posting your question, that's when you can go ahead and ask. Because at that point, you will have done whatever research necessary to make it a good question worth asking!"* – Dec 01 '17 at 01:56
1 Answers
1
This one's from the documentation:
The editing capabilities of JShell are similar to that of other common shells. Keyboard keys and key combinations provide line editing shortcuts. The
Ctrl
key andMeta
key are used in key combinations. If your keyboard doesn’t have aMeta
key, then theAlt
key is often mapped to provide Meta key functionality.
You can use:
Ctrl+A
to move the cursor to the beginning of the line and
Ctrl+E
to move the cursor to the end of the line.

Naman
- 27,789
- 26
- 218
- 353