IT lexicon › Infra & Ops › XIM (X Input Method)

XIM (X Input Method)

Infra & Ops På svenska → Updated: 2026-10-07

X11's framework for typing languages with more characters than the keyboard has keys.

Japanese, Chinese and Korean are typed by entering sounds or components and picking from candidates. That takes a separate program, an input method, sitting between the keyboard and the application. The XIM interface arrived with X11R5 in 1991, and a wire protocol followed in X11R6 so the input method server could run as its own process. The client picks a preedit style: on-the-spot inside the text field, over-the-spot in a small box at the cursor, off-the-spot in a status area.

The environment variable XMODIFIERS=@im=… chooses the server. Modern frameworks such as IBus and fcitx prefer talking to GTK and Qt directly, but still offer XIM for older programs. It works, in roughly the sense that an old bridge works.

← Back to the lexicon