JetbrainsEkaterina ValeevaAnnouncement
The Terminal in JetBrains IDEs Now Runs on libghostty
Summary
JetBrains replaced the JediTerm terminal emulator in its IDEs with libghostty, the library behind Ghostty, starting with the 2026.3 EAP builds. The change addresses gaps in modern terminal protocol support that JediTerm lacked, which affected AI coding agents, Neovim, and other TUI tools. libghostty now handles parsing and terminal state, while the IDE continues to manage rendering and higher-level features. The new engine supports the Kitty keyboard protocol, xterm’s modifyOtherKeys, and nearly 50 control sequences that JediTerm ignored or misread. The terminal also answers dark/light theme queries and sends notifications when the IDE theme switches, allowing tools like Claude Code and tmux to adapt automatically.
Context
Modern terminal tools such as AI coding agents, Neovim, and tmux rely on terminal protocols that JediTerm never supported, causing gaps in functionality and rendering. JetBrains chose libghostty because it is widely regarded as a reliable, performant library and is already embedded in many projects.
Approach / What changed
JetBrains replaced the JediTerm terminal emulator in its IDEs with libghostty, the library behind Ghostty. The IDE still handles rendering and higher-level features, while libghostty takes over parsing and terminal state. The change is enabled by default in the 2026.3 EAP builds and can be reverted via a registry flag.
Takeaways
The libghostty-based terminal supports the Kitty keyboard protocol, allowing apps to distinguish Enter, Shift+Enter, and Ctrl+Enter, and to request key-release and repeat events.
The terminal answers dark/light theme queries and sends notifications on theme switches, so tools like Claude Code, Neovim, and tmux can switch automatically with the IDE.
The new engine handles nearly 50 control sequences that JediTerm ignored or misread, including REP, colon-separated SGR colors, and left/right margins, fixing broken lines and stray characters.
FAQ
What keyboard protocol improvements does the new terminal bring?
The new terminal supports the Kitty keyboard protocol, xterm's modifyOtherKeys, and many other modern escape sequences. This means multi-line prompts work correctly, keybindings with modifiers reach the app intact, and terminal-based editors respond as expected without extra IDE settings.
How does the terminal handle theme switching with the IDE?
The terminal answers the dark/light query from the current IDE theme and sends a notification when the theme switches. Claude Code, OpenCode, Pi, Neovim, and tmux subscribe to these notifications, so they switch automatically with the IDE.
Can I revert to JediTerm if something goes wrong?
You can switch back to JediTerm by going to Help | Find Action, opening Registry..., and turning off terminal.use.ghostty.emulator. JetBrains asks users to report issues on IJPL-218849 or file a bug report.
Source and freshness
- Source
- blog.jetbrains.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.