Skip to content
프로젝트

소개

Reenabling colors in Xcode's console

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Colored Console

This project reenables colors in Xcode's console (with a limited palette). Just like this:

Installation

  1. Add the font file named ColoredConsole-Bold.ttf in the repo via the Mac OS application Font Book.
  2. Back to Xcode. Go to "Preference" ⇢ "Texts & Colors" ⇢ "Executable console Output", click the font icon below, then set font to "Colored Console Bold"

How it works

It's been nearly 3 years since the issue "Xcode 8 kills code colors" was raised on the venerable XcodeColors project. Since then we've been limited to using emojis to add color to our console.

Recently I wondered, has the answer been staring us in the face all that time. While Xcode doesn't allow styled text, it does respect colored glyphes such as 😊. That very ticket makes a bunch of suggestions for using them in the console.

ColoredConsole-Bold is a font, based on FiraMono-Bold which adds ligatures for enabling colored variants of the ASCII character set. Here's the default color range:

The 5 colors are enabled by suffixing the character with one of the Variation Selectors 6-10 (FE06, FE07, FE08, FE09 and FE0A).

Changing the colors

You can have different colors and modifier codepoints by changing and running ./colorify.pl. I have not documented this (yet).

관련 프로젝트 살펴보기

불러오는 중…