What is the actual course of action when I press a key on the keyboard and it is displayed on the shell?

I am using a universal usb keyboard, Linux 2.6.27 with gnome desktop, gnome-terminal and bash shell. I am interested to know what is happening in the software. How are special characters from my keyboard interpreted with some character encoding and where do character images come from?

+5
source share
2 answers

Linux input level with USB drivers gets from scancodes keyboard (mainly "KEY 1 DOWN" "KEY 1 UP").

X uses its layout to convert scancodes to key codes and X input events.

GTK Unicode.

Gnome-terminal UTF-8 .

. , .

TTY.

Gnome-terminal .

Gnome-terminal GTK +.

GTK + Pango X .

X .

:

alt text http://osoft.us/system_layers.png

+8

. -, , Linux , .

​​Linux, , . , .

- , /dev. , , , /dev.

/ ioctl. (. ), ​​ , .

( ) ( ) , , . ( , ).

?

+2

All Articles