Skip to content
Reenabling colors in Xcode's console
Perl Swift
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ColoredConsole.xcodeproj
ColoredConsole Added a license (same as Fira Mono) and a readme. Aug 17, 2019
ColoredConsole-Bold.colored.ttx Initial Commit Aug 17, 2019
ColoredConsole-Bold.ttf Initial Commit Aug 17, 2019
ColoredConsole-Bold.ttx Initial Commit Aug 17, 2019
LICENSE.txt Added a license (same as Fira Mono) and a readme. Aug 17, 2019
README.md Fixed image size and alignment Aug 17, 2019
color-range.png Fixed image size and alignment Aug 17, 2019
colorify.pl Initial Commit Aug 17, 2019
xcode-console.png Fixed image size and alignment Aug 17, 2019

README.md

Colored Console

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

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 Fitzpatrick Emoji Modifiers: ⁠🏻, ⁠🏼, ⁠🏽, ⁠🏾, or ⁠🏿.

Changing the colors

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

You can’t perform that action at this time.