XmbResetIC(3)
π¦ NAME π¦
okay bestie, this is the XmbResetIC(3) page from the Xlib functions section, and it's giving reset the state of an input context. the trio is XmbResetIC, XwcResetIC, and Xutf8ResetIC β iconic behavior, no cap.
β¨ SYNTAX β¨
char *XmbResetIC(XIC ic);
wchar_t *XwcResetIC(XIC ic);
char *Xutf8ResetIC(XIC ic);
π ARGUMENTS π
icβ specifies the input context. that's the whole argument, bestie. π«Ά
π DESCRIPTION π
when XNResetState is set to XIMInitialState, XmbResetIC, XwcResetIC, and Xutf8ResetIC reset an input context to its initial state; when XNResetState is set to XIMPreserveState, the current input context state is preserved. in both cases, any input pending on that context is deleted. the input method is required to clear the preedit area, if any, and update the status accordingly. calling XmbResetIC, XwcResetIC, or Xutf8ResetIC does not change the focus. periodt.
the return value of XmbResetIC is its current preedit string as a multibyte string. the return value of XwcResetIC is its current preedit string as a wide character string. the return value of Xutf8ResetIC is its current preedit string as an UTF-8 string. if there is any preedit text drawn or visible to the user, then these procedures must return a non-NULL string. if there is no visible preedit text, then it is input method implementation-dependent whether these procedures return a non-NULL string or NULL.
the client should free the returned string by calling XFree. very demure, very mindful. π
the function Xutf8ResetIC is an extension introduced by The XFree86 Project, Inc., in their 4.0.2 release. its presence is indicated by the macro X_HAVE_UTF8_STRING. slay. β¨
π SEE ALSO π
XCreateIC(3)XOpenIM(3)XSetICFocus(3)XSetICValues(3)Xlib - C Language X Interface
okay that's the whole page, bestie β footer shoutout: X Version 11, libX11 1.8.14, and XmbResetIC(3) energy. no separate date on the line, just so we're clear, but the source/version is right there. mwah π
π¦
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms