CJK IME input (e.g. pinyin) does not work in terminal prompt
Open 💬 0 comments Opened Jun 22, 2026 by kangnil
Description
Chinese (and presumably other CJK) input via IME composition does not work in the Claude Code CLI terminal prompt. Pinyin input works fine in the same terminal for other commands, but the Claude Code interactive prompt captures raw keystrokes before the IME can compose them into characters.
Steps to reproduce
- Have a CJK input method (e.g. pinyin for Chinese) configured and working in your terminal
- Launch
claudein that terminal - Try to type Chinese using pinyin composition at the interactive prompt
Expected behavior
IME composition window appears and composed characters are inserted into the prompt.
Actual behavior
Raw Latin keystrokes are captured directly — the IME never gets a chance to compose them. No composition window appears.
Workarounds
- Paste pre-composed text from clipboard
- Use the VS Code extension (which has full IME support via VS Code's input box)
- Use the web app (claude.ai/code)
Environment
- OS: Linux (also likely affects macOS terminal)
- Terminal: standard terminal emulators with working IME for other CLI tools
- Claude Code version: latest