Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-12-24 15:49:12

clive
Member
Registered: 2021-06-17
Posts: 7

Terminal KB shortcuts SOLVED

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

#2 2022-12-24 16:56:07

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: Terminal KB shortcuts SOLVED

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! tongue

Offline

#3 2022-12-27 14:38:46

clive
Member
Registered: 2021-06-17
Posts: 7

Re: Terminal KB shortcuts SOLVED

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 8 queries executed - Memory usage: 520.05 KiB (Peak: 520.67 KiB) ]