Skip to content

Feature Request: Fix Missing Stdout and Enhance ANSI Color Support #16159

@jk123

Description

@jk123

What would you like to be added?

Feature Request: Fix Missing Stdout and Enhance ANSI Color Support

Description

There are currently two primary issues when executing commands via the ai interface in Gemini-cli:

  1. Missing Output: In certain scenarios, stdout is not being displayed at all, leaving the user without feedback on the command's execution.
  2. Lack of Color Support: When output is visible, ANSI escape sequences for colors are not consistently rendered.

Proposed Changes

  • Fix Stdout Stream: Ensure that all standard output from executed commands is captured and displayed reliably to the user.
  • Implement ANSI Support: Enable full rendering for standard ANSI color codes (8/16 colors) so that status messages and logs are readable.

Example Issues

  • Running a command that should return text results in an empty response.
  • Commands like echo -e "\e[31mError\e[0m" display the raw escape codes instead of colored text.

Use Case & Benefits

  • Transparency: Users need to see the output to verify that commands have run correctly.
  • Error Identification: Visual cues (red for errors, green for success) significantly improve the speed of troubleshooting.
  • Reliability: Ensures Gemini-cli behaves like a standard, dependable terminal environment.

Note: This request specifically addresses the Gemini-cli interface and its handling of process output.

Why is this needed?

Why is this needed?

  1. Visibility: Missing stdout makes it impossible to verify if a command succeeded, failed, or is hung. Users are effectively "blind" to the process execution.
  2. Standardization: ANSI color support is a baseline requirement for modern CLI tools to distinguish between errors, warnings, and success states.
  3. Reliability: For AI-assisted workflows, consistent feedback from the terminal is critical for accuracy and debugging. Without it, the interface is unreliable for technical tasks.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions