Hasty Briefsbeta

Bilingual

Run interactive commands in Gemini CLI

7 months ago
  • #productivity
  • #terminal
  • #CLI
  • Gemini CLI now supports running complex, interactive commands like vim, top, and git rebase -i directly within the terminal.
  • Pseudo-terminal (PTY) support allows commands requiring rich capabilities (e.g., text editors, system monitors) to run within Gemini CLI's context.
  • Commands are executed in the background using node-pty, with real-time streaming of terminal output including text, colors, and cursor position.
  • Two-way communication enables input writing and dynamic terminal resizing, mimicking native terminal behavior.
  • Colorful terminal output is now correctly rendered, enhancing the experience for command-line tools.
  • Interactive shell is enabled by default in Gemini CLI v0.9.0; upgrade via npm install -g @google/gemini-cli@latest.
  • Feedback is encouraged on GitHub to refine input handling across platforms.