console-rs / console-rs/console
Missing emoji support for VSCode
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.2k
- Forks
- 144
- Avg merge
- 8h 24m
- Merged PRs (30d)
- 4
Description
Issue
The current detection of emoji support on Windows (wants_emoji() in windows_term/mod.rs) only works for Windows Terminal.
It would be nice if the integrated terminal of VSCode would be detected and supported. The VSCode terminal has unicode and emoji support similar to Windows Terminal.
Workaround
A workaround exists by manually setting the "WT_SESSION" environment variable, but that seems like a bad hack.
Suggested solution
VSCode already sets the environment variable "TERM_PROGRAM" to the value "vscode". This value could be checked in the wants_emoji() function to enable emoji support for VSCode.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in windows_term/mod.rs at the wants_emoji() function, then review how the existing Windows Terminal detection works. Support the VSCode terminal using its TERM_PROGRAM value of vscode, and verify that emoji support is enabled there without relying on WT_SESSION.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, vscode
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100