Skip to content

Commit

Permalink
Minor: display emojis in iTerm on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
thschroeter committed Dec 22, 2016
1 parent 1bcabc8 commit 2b73901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/kotlin/net/corda/core/utilities/Emoji.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2b73901

Please sign in to comment.