Interface rendering failures on Windows Terminal and iTerm2 with custom themes
What happened?
Gemini CLI interface completely breaks on modern terminal applications, making it unusable for a significant portion of developers. Input prompts render off-screen, colors conflict with themes, and progress indicators leave visual artifacts.
Windows Terminal issues:
- Input prompt renders outside the visible terminal area
- Cannot see what you're typing (invisible input)
- Output text overlaps with input area making both unreadable
- Progress bars don't clear properly, leaving visual artifacts
- Color schemes conflict causing white text on white backgrounds
iTerm2 with custom themes issues:
- Text colors clash with terminal color schemes making output unreadable
- Progress indicators leave permanent visual artifacts that don't clear
- /theme command crashes the entire CLI session
- Status messages become invisible due to color conflicts
- Interface elements render in wrong positions
What did you expect to happen?
Gemini CLI should work correctly on all modern terminal applications with graceful handling of different themes and configurations. The interface should:
- Automatically detect terminal capabilities and adjust accordingly
- Provide fallback rendering modes for compatibility
- Respect terminal color schemes or override them appropriately
- Clear progress indicators and visual elements properly
- Display input prompts in the correct location
- Offer compatibility modes for problematic terminals
Expected: Universal terminal compatibility with automatic detection and fallback options.
Client information
Affected platforms:
- Windows 11: Windows Terminal 1.18+ with custom themes
CLI Version: 0.1.18 Terminals that work: default cmd.exe (Windows) Terminals that break: Windows Terminal, some Linux terminals with themes
Font configurations: Issues worsen with Nerd Fonts and custom font setups
Login information
Both OAuth and API key - rendering issues occur regardless of authentication method
Anything else we need to know?
Implement terminal compatibility detection with automatic fallback modes to ensure Gemini CLI works universally across modern development environments.
Response: Terminal Compatibility Issues – Gemini CLI
Hello,
Thank you for sharing your detailed feedback. You’ve reported several serious compatibility issues with Gemini CLI on modern terminal applications (such as Windows Terminal and iTerm2), including:
- Input prompts rendering off-screen or in the wrong position
- Color conflicts with themes, causing unreadable text
- Progress bars and status messages not clearing correctly, resulting in lingering visual artifacts
- The
/themecommand crashing the CLI session - Severe readability problems with certain font and theme combinations
Your Expectation
- Automatic detection of terminal capabilities with fallback modes for compatibility
- Respecting terminal color schemes or providing appropriate overrides
- Proper rendering and clearing of interface elements
- Universal compatibility across all modern terminal environments
Possible Next Steps
It might be helpful if the Gemini CLI maintainers consider:
- Properly detecting terminal type and color profile, with automatic switching to basic/compatible modes as needed
- Adjusting color and font usage dynamically based on the detected terminal environment
- Ensuring consistent clearing of progress bars and prompts across all platforms
- Fixing crashes/hangs related to the
/themecommand - Adding a dedicated “compatibility mode” for problematic terminals
Additional Information That Could Help
To assist in resolving these issues, it could be beneficial to share:
- Terminal emulator and version
- Theme and font configuration details
- Output of environment variables such as
TERMandCOLORTERM
Temporary Workarounds
- Run the CLI in classic cmd.exe or reset to default terminal themes/fonts
- Minimize use of custom color schemes for both terminal and CLI
- Follow updates and roadmap on the Gemini CLI GitHub repository
Hi @shivas1432 are you still running into this issue? Please let us know if you have additional details that can help us attempt to reproduce this issue.
Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.
It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.
Thank you for your contribution!