better Input Method Editor (IME) support

Features:

- Allow input methods swap with hotkey (E.g. left ctrl + left shift).
- Over-the-spot pre-editing style, pre-edit data placed over insertion point.
- Restart IME without segmentation fault.

TODO:

- Automatically pickup IME if st started before IME
This commit is contained in:
Ivan Tham
2019-02-12 18:41:41 +01:00
committed by Hiltjo Posthuma
parent 75f92eb348
commit e85b6b6466
3 changed files with 54 additions and 17 deletions

1
st.c
View File

@ -2594,6 +2594,7 @@ draw(void)
term.ocx, term.ocy, term.line[term.ocy][term.ocx]);
term.ocx = cx, term.ocy = term.c.y;
xfinishdraw();
xximspot(term.ocx, term.ocy);
}
void