From 46dfed8116ef95e35a80a36b4e18bd8b69f9b82f Mon Sep 17 00:00:00 2001 From: dlionz Date: Wed, 15 May 2019 15:34:57 -0700 Subject: [PATCH 1/2] tty: add color support for iterm2 --- lib/internal/tty.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/internal/tty.js b/lib/internal/tty.js index fc7bde724552d5..55914145feb44d 100644 --- a/lib/internal/tty.js +++ b/lib/internal/tty.js @@ -58,7 +58,8 @@ const TERM_ENVS = { // https://github.com/da-x/rxvt-unicode/tree/v9.22-with-24bit-color 'rxvt-unicode-24bit': COLORS_16m, // https://gist.github.com/XVilka/8346728#gistcomment-2823421 - 'terminator': COLORS_16m + 'terminator': COLORS_16m, + 'iterm2': COLORS_256 }; const TERM_ENVS_REG_EXP = [ From 6d2874e765dc66d192e1040b1fbadb53e923f3a4 Mon Sep 17 00:00:00 2001 From: dlionz Date: Wed, 15 May 2019 16:12:55 -0700 Subject: [PATCH 2/2] tty: add color support for iterm2 --- lib/internal/tty.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/tty.js b/lib/internal/tty.js index 55914145feb44d..f8b2398005520f 100644 --- a/lib/internal/tty.js +++ b/lib/internal/tty.js @@ -49,6 +49,7 @@ const TERM_ENVS = { 'dtterm': COLORS_16, 'gnome': COLORS_16, 'hurd': COLORS_16, + 'iterm2': COLORS_256, 'jfbterm': COLORS_16, 'konsole': COLORS_16, 'kterm': COLORS_16, @@ -58,8 +59,7 @@ const TERM_ENVS = { // https://github.com/da-x/rxvt-unicode/tree/v9.22-with-24bit-color 'rxvt-unicode-24bit': COLORS_16m, // https://gist.github.com/XVilka/8346728#gistcomment-2823421 - 'terminator': COLORS_16m, - 'iterm2': COLORS_256 + 'terminator': COLORS_16m }; const TERM_ENVS_REG_EXP = [