Render ANSI Color Codes in Q's Chat Shell Execution Window
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
## Problem
When shell scripts that contain ANSI color codes are run inside the Q Chat's shell execution window, the ANSI color codes are not interpreted. Rather the escape characters are emitted directly, which makes the output for some scripts rather difficult to read.
## Expected behavior
It would be _fantastic_ if Q Chat's execution window could render ANSI color codes natively! It would make any colorized output from shell scripts visible (and beautiful) when rendered in the Q chat interface.
If that's too difficult to implement (hope not), it would be better to strip the unrecognized ANSI escape sequences as a fallback.
Contributor guide
Research direction
Start by locating the Q Chat shell execution window and tracing how shell output is rendered in the chat interface. Reproduce the issue with a shell script containing ANSI color codes, then determine whether the execution window can render those sequences or should strip them as a fallback. Done means colorized output is readable without raw escape characters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell, typescript
- Domain
- devtools, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100