[BUG] Backslash Input via Option + ¥ Outputs Yen Symbol in PyCharm Terminal (Mac Japanese Keyboard)

Resolved 💬 5 comments Opened Jun 6, 2025 by MiuraToya Closed Dec 10, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: <!-- output of claude --version --> 1.0.16
  • Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 --> Mac OS Sonoma 14.7.1
  • Terminal: <!-- e.g. iTerm2, Terminal App --> Pycharm 2025.1.1.1

Bug Description

<!-- A clear and concise description of the bug -->
When attempting to enter a backslash (\\) using the standard Japanese Mac keyboard shortcut (Option + ¥), the terminal instead outputs a yen symbol (¥). This prevents the proper input of backslashes required in command-line operations.

Steps to Reproduce

  1. <!-- First step --> Run Claude Code in the Pycharm terminal
  2. <!-- Second step --> Try to enter a backslash using Option + ¥ (standard shortcut on Japanese Mac keyboards)

Expected Behavior

<!-- What you expected to happen -->
Pressing Option + ¥ should insert a backslash (\\)

Actual Behavior

<!-- What actually happened -->
Pressing Option + ¥ inserts a yen symbol (¥)

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

  • This issue does not occur in the default macOS Terminal app. The same key combination correctly inputs a backslash (\\) there.
  • This issue also does not occur in PhpStorm (2024.1.3) — another JetBrains product. In PhpStorm’s terminal, Option + ¥ correctly results in a backslash.
  • The problem appears to be specific to PyCharm’s built-in terminal, suggesting an inconsistency across JetBrains IDEs.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗