diff --git a/third_party/lua/README-luadebug.md b/third_party/lua/README-luadebug.md index 4a94dd03f653298e1370b3107918008368ae70fd..c92479bede8835f4fed374450b1b09bc63aeccaf 100644 --- a/third_party/lua/README-luadebug.md +++ b/third_party/lua/README-luadebug.md @@ -110,7 +110,7 @@ There are also some goodies you can use to make debugging easier. Environment Variables: - -Want to disable ANSI color support or disable GNU readline? Set the `DBG_NOCOLOR` and/or `DBG_NOREADLINE` environment variables. +Want to disable ANSI color support or disable GNU readline? Set the `NO_COLOR`. Known Issues: - diff --git a/third_party/lua/luadebug.lua b/third_party/lua/luadebug.lua index d45bca057b14b4de7f3e978cd9ab85329688735d..11bc3c959c84df1fece04f1b0fb4d16627bc5a9f 100644 --- a/third_party/lua/luadebug.lua +++ b/third_party/lua/luadebug.lua @@ -750,7 +750,7 @@ local stdout_isatty = ffi.C.isatty(1) -- Conditionally enable color support. local color_maybe_supported = (stdout_isatty and os.getenv("TERM") and os.getenv("TERM") ~= "dumb") -if color_maybe_supported and not os.getenv("DBG_NOCOLOR") then +if color_maybe_supported and not os.getenv("NO_COLOR") then COLOR_GRAY = string.char(27) .. "[90m" COLOR_RED = string.char(27) .. "[91m" COLOR_BLUE = string.char(27) .. "[94m"