Skip to content
atsuoishimoto edited this page Feb 15, 2012 · 1 revision

With simple Python script like this:

import sys
if sys.argv[1] == 'off':
    print "\x1b[0v"
else:
    print "\x1b[1v"

You can control IME status from console.

$ python ime.py on

or

$ python ime.py on

I'm not tried yet, but I'm sure we can use this escape sequence for PS1, or to let vim to manage IME status.

Clone this wiki locally