You are not logged in.
Pages: 1
I have a minor but irritating fault with terminal short-cuts.
Xubuntu - Desktop: Xfce 4.14.2, Distro: Ubuntu 20.04.5 LTS, xfce4-terminal 0.8.9.1
GNU bash, version 5.0.17
Using KB shortcut CTRL-A (or Home) on short bash commands takes the cursor correctly from end of command to the first character of the command. With longer commands it does not go to the start, eg for command of 23 characters, the cursor goes to character 11. Using CTRL-E (or End) on incorrectly placed cursor eg at character 11, takes cursor beyond end of the command eg by about 11 characters.
How can this be fixed? Suggestions welcome?
Last edited by clive (2022-12-27 14:41:25)
Offline
For bash, user input is processed through the readline(3) library. Your question doesn't fit here, I'm afraid.
You can start by checking whether those key bindings actually do what you expect them to be doing by using bash's built-in bind command:
bind -q beginning-of-line
bind -q end-of-line
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Thanks for the pointer to readline. The key bindings look OK so will mark this solved and look at bash docs. This could be an X-display problem!
Offline
Pages: 1
[ Generated in 0.011 seconds, 8 queries executed - Memory usage: 520.05 KiB (Peak: 520.67 KiB) ]