Improve terminal readability (with ANSI colors) #6

Open
opened 2025-07-06 15:48:10 +00:00 by glenux · 0 comments
Owner

Note: Copy of issue from upstream project: https://github.com/GNtousakis/llm-commit/issues/15


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

**Note:** Copy of issue from upstream project: https://github.com/GNtousakis/llm-commit/issues/15 --- 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 * [Github: colorful](https://github.com/timofurrer/colorful)
glenux added this to the Default project 2025-07-06 15:52:48 +00:00
glenux changed title from [feature] Improve terminal readability (with ANSI colors) to Improve terminal readability (with ANSI colors) 2025-07-06 16:15:39 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: glenux/llm-commit-gen#6
No description provided.