General keyboard topics, including keyboard hardware and keyboard functionality in software.
Questions tagged [keyboard]
1209 questions
901
votes
3 answers
How to unfreeze after accidentally pressing Ctrl-S in a terminal?
It's a situation that has happened quite often to me: after I press (with a different intention) Ctrl-S in a terminal, the interaction (input or output) with it is frozen. It's probably a kind of "scroll lock" or whatever.
How do I unfreeze the…

imz -- Ivan Zakharyaschev
- 14,533
- 12
- 58
- 118
189
votes
4 answers
What is the point of Ctrl-S?
Ctrl+S stops all output to the terminal which can be restarted with Ctrl+Q.
But, why does Ctrl+S exist in the first place? What problem was trying to be solved by putting that control sequence in place?

Jeff King
- 2,025
- 2
- 14
- 8
138
votes
10 answers
Keyboard set to "cat mode"
I am a cat-owner and a cat-lover. But I don't like it when my cat sits on my keyboard and pushes randoms keys and messes everything up.
I have an idea to have a function key that turns off the keyboard (except for one special key combination). I…

psitae
- 1,481
- 2
- 8
- 7
115
votes
2 answers
How do keyboard input and text output work?
Suppose I press the A key in a text editor and this inserts the character a in the document and displays it on the screen. I know the editor application isn't directly communicating with the hardware (there's a kernel and stuff in between), so what…

Gilles 'SO- stop being evil'
- 766,554
- 187
- 1,586
- 2,083
114
votes
6 answers
How to get keycodes for xmodmap?
I'm trying to use xmodmap to remap Alt / Super keys on Dell L100 keyboard, and have trouble getting the keycodes.
For instance, using xev doesn't give me keycode for Alt
FocusOut event, serial 36, synthetic NO, window 0x4a00001,
mode…

Yaroslav Bulatov
- 1,241
- 2
- 9
- 5
89
votes
2 answers
List of terminal generated signals (eg Ctrl-C -> SIGINT)
Where can I find a complete list of the keyboard combinations which send signals in Linux?
Eg:
Ctrl+C - SIGINT
Ctrl+\ - SIGQUIT

Tom Hale
- 25,806
- 27
- 125
- 217
88
votes
15 answers
How do I get current keyboard layout?
I'm wondering if there is any command line tool that returns the current keyboard layout.
I have XkbLayout set to us, ru.
Update: setxkbmap returns layout settings, not selected layout. E.g.:
$ setxkbmap -print | grep xkb_symbols
xkb_symbols {…

Andrew
- 1,312
- 2
- 10
- 14
82
votes
6 answers
List all valid kbd layouts, variants and toggle options (to use with setxkbmap)
Is there a way from command line to retrieve the list of all available
keyboard layouts and relative variants?
I need to list all the valid layout/variants choices to be used then from setxkbmap.
Also about the layout toggle options, is there a way…

giuspen
- 1,215
- 2
- 12
- 14
82
votes
3 answers
ESC key causes a small delay in terminal due to its Alt+ behavior
My terminal setup is gnome-terminal + tmux + zsh with vi bindings.
In applications like vim or even in the zsh's command line vi editing mode, I need to frequently hit the ESC key but there is a small delay before the effects of this key take place.…

sharat87
- 4,009
- 4
- 22
- 17
71
votes
8 answers
AutoHotkey equivalent
Is there an equivalent product/method for AutoHotkey?
For those that don't know, it's a product that allows you to program your mouse movements and keyboard. This allows me to "macro" certain functions on programs instead of having to do it…

Meer Borg
- 926
- 2
- 8
- 12
66
votes
7 answers
On an Apple Keyboard under Linux, how do I make the Function keys work without the fn modifier key?
I use an Apple wired keyboard on Linux. By default the function keys (F1, F2, F3, etc) require the fn key to be pressed for them to work. Without the fn key, these keys control the features like Screen Brightness, Volume, and Music Track Control.
Is…

ryanlerch
- 815
- 1
- 7
- 8
55
votes
7 answers
Is there any reason why I get ^[[A when I press up arrow at the console login screen?
Whenever I'm at the console login, I press up arrow intentionally to see the previously typed commands. But I see this ^[[A.
But when I press Ctrl Alt Print Screen Scroll Lock Pause Break Page Up Page Down Win keys doesn't echo any characters.
What…

Ruban Savvy
- 8,061
- 7
- 28
- 43
40
votes
15 answers
Keep NumLock always on
I have a standard keyboard with numerical keys on the right side (I guess it's called 104-key keyboard). I want to use the numerical keys only as numerical keys. That means I don't want the NumLock to switch on and off the numerical keys.
However,…

Martin Vegter
- 123
- 59
- 190
- 314
40
votes
1 answer
What happens when Ctrl + Alt + F is pressed?
I am looking for an explanation of what happens in Linux when this key combination is pressed to change the current terminal. In particular, what software component intercepts this key combination and changes the terminal? Is it the kernel? If it…

user31765
- 547
- 5
- 7
39
votes
3 answers
What is the Mode_switch modifier for?
Playing with xmodmap I encountered a modifier key I hadn't heard of: Mode_switch. It seems to have something to do with inserting special characters.
I assigned it to a key but it seems to have no effect. What is it for? Is it different from…

deprecated
- 2,771
- 4
- 23
- 22