emilk / emilk/loguru

XCode terminal doesn't interpret colorcoding

Open
#105 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.9k
Forks
280
Avg merge
7m
Merged PRs (30d)
4

Description

For some reason my XCode doesn't interpret the color codes correctly. Because of this the log lines become cluttered with garbage.

It looks like this:
`[0m [2m2019-03-24 19:33:34.915 ( 0.002s) [main thread ] cli.cpp:27 INFO| [0mThis is a test [0m`

Copy + pasting a line from XCode terminal looks like this:
`2019-03-24 19:33:34.915 ( 0.002s) [main thread ] cli.cpp:27 INFO| This is a test`

The OS X Terminal app and iTerm do interpret the color code well.

Any idea of what might be going on?

Contributor guide

No contributing guide indexed for this repository

Research direction

The report identifies cli.cpp:27 and compares XCode's terminal with OS X Terminal and iTerm. First reproduce the logged output in each terminal and inspect how the color escape sequences are emitted around that location. Done means XCode displays the log without raw escape-code garbage, or the issue is documented as an XCode terminal limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.