summerofcode2021projects:inputmethodinfreebsdvirtualterminal:week7

This is an old revision of the document!


Input method in FreeBSD virtual terminal (Week7)

Date: 07/19-07/25

I hijacked vt_processkey() function and use right CTRL key to toggle the rime mode. If the rime mode is enabled, the key will be passed into the custom function called vt_rime_process_char() to send the key to the rime server.

Now, the problem is how to communicate with the rime server. I list some requirements for implementation:

  1. The kernel need to send character to the Rime server in user space when receiving keyboard events.
  2. The Rime server replies CJK characters. Additionally, word candidates and preedit string.
  3. The kernel output the characters to where the cursor is and display candidates and preedit string.
  • summerofcode2021projects/inputmethodinfreebsdvirtualterminal/week7.1627709886.txt.gz
  • Last modified: 2021/07/31 05:38
  • by FanChung