Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I'm pressing the function keys, for example F12, I get a tilde symbol on my cursor position (~ sign). How can I turn this of ? This issue affects both shells, Bash and the Zsh.

What dotfiles should I paste ?

share|improve this question

On bash from version 4.1, you can stop that from happening by sticking this into ~/.inputrc:

"\e[": skip-csi-sequence

That will make it ignore any keycode that isn't bound to anything else.

share|improve this answer

You can assign something to each of those keys. You can also assign a null string.

To find out the sequence emitted by each key, press Ctrl-v then the function key. On my system, for F12, I see ^[[24~. The "^[" represents Escape which will be represented by \e in the lines below.

In Bash, in your ~/.inputrc file, add lines like this:

"\e[24~": ""

or, if you want to make it output something:

"\e[24~": "Super User"

which will make the corresponding key do nothing.

In Z shell, you can add bindkey commands to your ~/.zshrc file like this:

bindkey -s "\e[24~" ""

or, if you want to make it output something:

bindkey -s "\e[24~" "Super User"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.