how to write program to detect and change scim input method.

1 message Options
Embed this post
Permalink
Nobuko Three

how to write program to detect and change scim input method.

Reply Threaded More More options
Print post
Permalink
how can I write a simple program, lets say scimcontrol, that does the following two things?

$ scimcontrol --show-method
outputs the name of the scim input method for the active X window.

$ scimcontrol --change-method Anthy
changes the scim input method to Japanese/Anthy

This program makes it possible for vim scripts to provide automatic scim input method switching for vim.