LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disable Shift+Home & Shift+End Keybindings In Terminal (https://www.linuxquestions.org/questions/linux-newbie-8/disable-shift-home-and-shift-end-keybindings-in-terminal-4175679512/)

blueray 07-28-2020 01:15 AM

Disable Shift+Home & Shift+End Keybindings In Terminal
 
I am using Linux Mint 20 Ulyana. Desktop Environment is Cinnamon 4.6.6.

Terminal emulator is, GNOME Terminal, 3.36.1.1

In terminal Shift+Home takes me to the top of the terminal.
Shift+End takes me to the bottom of the terminal.

How can I disable these keybindings.

pan64 07-28-2020 01:32 AM

although it is a bit old, but this is the way: https://unix.stackexchange.com/quest...gnome-terminal

blueray 07-28-2020 02:09 AM

I actually disabled all keyboard shortcut from the terminal.

Edit > Preferences > Shortcut > Unchecked "Enable shortcuts".

The behaviour is still there.

blueray 07-28-2020 02:11 AM

I am trying to use
Code:

bindkey '^[1;2H' _shift-home-key
bindkey '^[1;2F' _shift-end-key

But this is not working probably because of the "top of the terminal, end of the terminal" thing.

blueray 07-28-2020 02:13 AM

I also found https://superuser.com/questions/5825...l-ubuntu-12-04

But the instructions are old and sort of risky for me.

ondoho 07-28-2020 03:10 AM


  1. Why?

  2. This is a keyboard shortcut that works in all terminals, even the non-gui tty console. If you want to completely change or disable it, that's where you need to search. I just did, for about 5min, and don't have an answer.

  3. Other searches suggest that this is not possible with gnome-terminal, so if you want to override it you might need to start using a different terminal.

pan64 07-28-2020 03:29 AM

(probably) you need bind shift-home and shift-end to something different (to see if that work).
Or probably you need to unbind both.
Either in the config of Gnome-Terminal or the terminal settings (https://unix.stackexchange.com/quest...-linux-console).

blueray 07-28-2020 08:18 AM

Thank you very much for directing me to xmodmap and loadkeys. Let me try those out.


All times are GMT -5. The time now is 10:55 AM.