Skip to content

Improve terminal readability (with ANSI colors) #15

Description

@glenux

Enhance the readability of llm-commit interactions in the terminal by introducing ANSI colors for different message types (e.g., success, warnings, errors) to provides clear visual feedback for different message types.

Problem statement

Currently, all output messages from llm-commit are plain text, making it harder to quickly distinguish different types of messages. Adding ANSI colors would improve usability by providing better visual separation between confirmations, prompts, and errors.

Proposed solution

  • Use the colorful library to implement ANSI color support.
  • Apply color conventions such as:
    • Green → Successful actions (e.g., commit confirmed).
    • Yellow → Prompts and questions requiring user input.
    • Red → Errors and critical failures.
  • Implement automatic color detection to ensure compatibility with different terminal environments.
  • Respect the NO_COLOR environment variable to disable colored output when necessary.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions