5

I use applications such as Midnight Commander, and htop, however I have a problem when quitting, I am forced to either terminate the process, or to click on the quit button myself, if there is one, because in a lot of TUIs there is not. The problem is is there most of them say to press F10 to quit, however when pressing that, I just get it opening up the File pull-down menu:

enter image description here

So I am unable to quit using the keyboard. I am using gnome-terminal, I have tested this in xfce4-terminal, and the problem is there too. So why is this happening? And is there any fix for this so that it does not launch this pull-down menu and instead does what it's meant to and quit?


OS Information:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.04
Release:    15.04
Codename:   vivid
Flavour: Gnome
Gnome Version: 3.16

2 Answers2

4

Three ways to modify the F10 behaviour

1. Via terminal preferences

  1. Open your gnome-terminal and the Preferences

  2. Disable the entry Enable the menu accelerator key (F10 by default)

    enter image description here


2. Via command line

gsettings set org.gnome.Terminal.Legacy.Settings menu-accelerator-enabled false

3. Via dconf-editor

  1. Open the dconf-editor (sudo apt-get install dconf-editor)

  2. Navigate to org.gnome.terminal.legacy

  3. Deselect the entry menu-accelerator-enabled in the right pane

    enter image description here

A.B.
  • 89,123
  • 21
  • 245
  • 323
0

You can right-click on gnome-terminal window and uncheck "Show Menu" , and it will allow using F10 key.

You can use alternative method for exiting programs,too. For htop you can use Q key to exit. For Midnight Commander or mc you can use the built-in command line to type exit there.

Alternatively, you can switch to another terminal that doesn't rely on F keys for showing the menu for the terminal. For instance, xterm or sakura. I've used the last one as alternative to gnome-terminal many times.

Sergiy Kolodyazhnyy
  • 103,293
  • 19
  • 273
  • 492