From 538f885884ce4b5b3dbb2f5ea426f6a9d824d229 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 9 Jan 2024 16:56:25 -0300 Subject: [PATCH] feat: ghostty is truecolor Signed-off-by: Carlos Alexandro Becker --- README.md | 2 +- termenv_unix.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 42273fc..fa7929d 100644 --- a/README.md +++ b/README.md @@ -307,7 +307,7 @@ termenv.DisableBracketedPaste() ### Color Support -- 24-bit (RGB): alacritty, foot, iTerm, kitty, Konsole, st, tmux, vte-based, wezterm, Windows Terminal +- 24-bit (RGB): alacritty, foot, iTerm, kitty, Konsole, st, tmux, vte-based, wezterm, Ghostty, Windows Terminal - 8-bit (256): rxvt, screen, xterm, Apple Terminal - 4-bit (16): Linux Console diff --git a/termenv_unix.go b/termenv_unix.go index 60a8854..847fa9b 100644 --- a/termenv_unix.go +++ b/termenv_unix.go @@ -50,7 +50,7 @@ func (o *Output) ColorProfile() Profile { } switch term { - case "xterm-kitty", "wezterm": + case "xterm-kitty", "wezterm", "xterm-ghostty": return TrueColor case "linux": return ANSI