
10/15/2025 · Gal Zahavi, Jack Wotherspoon
What this post added
Introduced pseudo-terminal (PTY) support to Gemini CLI using the `node-pty` library, enabling the execution of interactive shell commands (e.g., vim, top, git rebase -i) within the CLI's context. Implemented a serializer to capture and stream terminal state (text, color, cursor position) for real-time display. Added capabilities for writing input to the terminal and on-the-fly resizing, ensuring two-way communication and adaptive layouts.