struct
Termisu::Event::Preedit
- Termisu::Event::Preedit
- Struct
- Value
- Object
Overview
Preedit text from the input method during composition (e.g. partial Hangul syllable as jamo are typed). The TUI should render this at the current cursor position, typically with an underline or other composing indicator (not yet committed to the buffer). When the user completes the composition (e.g. presses space or the next key that commits), the terminal will send the final committed character(s) as normal Key event(s) with 'char', and the preedit will be cleared (a Preedit with empty text or subsequent commit).
Note: Support for actually receiving Preedit events depends on the terminal emulator supporting client-side preedit reporting via the keyboard protocol (e.g. Kitty with report_text) or other mechanisms. termisu delivers them if the terminal sends the appropriate sequences; otherwise only committed chars arrive (as before).