From 2b739013418ce9b08194ee3bf90aa49babf6dc77 Mon Sep 17 00:00:00 2001 From: Thomas Schroeter Date: Thu, 22 Dec 2016 17:31:00 +0000 Subject: [PATCH] Minor: display emojis in iTerm on OS X --- core/src/main/kotlin/net/corda/core/utilities/Emoji.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/net/corda/core/utilities/Emoji.kt b/core/src/main/kotlin/net/corda/core/utilities/Emoji.kt index add37b2cb2..f1a21c8ebb 100644 --- a/core/src/main/kotlin/net/corda/core/utilities/Emoji.kt +++ b/core/src/main/kotlin/net/corda/core/utilities/Emoji.kt @@ -5,7 +5,7 @@ package net.corda.core.utilities */ object Emoji { // Unfortunately only Apple has a terminal that can do colour emoji AND an emoji font installed by default. - val hasEmojiTerminal by lazy { System.getenv("TERM_PROGRAM") == "Apple_Terminal" } + val hasEmojiTerminal by lazy { listOf("Apple_Terminal", "iTerm.app").contains(System.getenv("TERM_PROGRAM")) } const val CODE_SANTA_CLAUS = "\ud83c\udf85" const val CODE_DIAMOND = "\ud83d\udd37"