What the system's input method is composing (pinyin, kana, hangul, a phone keyboard's word) is drawn underlined in the text box at the caret, and typed when it is settled: XIM on X11, IMM on Windows, ...