From 9b3e79975a48df063aa7a7c1ca0c20c3c868332c Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 20 Mar 2023 14:53:05 +0100 Subject: [PATCH] fix: Cloud Shell supports RGB colors --- termenv_unix.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/termenv_unix.go b/termenv_unix.go index 11746d2..9d0d9b1 100644 --- a/termenv_unix.go +++ b/termenv_unix.go @@ -25,6 +25,10 @@ func (o *Output) ColorProfile() Profile { return Ascii } + if o.environ.Getenv("GOOGLE_CLOUD_SHELL") == "true" { + return TrueColor + } + term := o.environ.Getenv("TERM") colorTerm := o.environ.Getenv("COLORTERM")