mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-17 02:57:33 -05:00
Add an API for passing pre-edit text to terminal; call from GTK
The terminal code doesn't yet do anything with the text other than feed it to a debugging printf. The call uses UTF-8 and expects the terminal to copy the string because that's compatible with gtk_im_context_get_preedit_string().
This commit is contained in:
@ -8106,3 +8106,13 @@ void term_notify_window_size_pixels(Terminal *term, int x, int y)
|
||||
term->winpixsize_x = x;
|
||||
term->winpixsize_y = y;
|
||||
}
|
||||
|
||||
/*
|
||||
* Set the pre-edit text as required by an input method. preedit_text
|
||||
* is expected to be in UTF-8. It's NULL if no pre-edit text is
|
||||
* required. It's owned by the caller and must not be freed here.
|
||||
*/
|
||||
void term_set_preedit_text(Terminal *term, char *preedit_text)
|
||||
{
|
||||
debug("Pre-edit: %s\n", preedit_text);
|
||||
}
|
||||
|
Reference in New Issue
Block a user