aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-06-13 11:25:21 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-06-13 11:25:21 -0400
commita6f52ebb1744c1c36302c1cd244483ea55bc1ca9 (patch)
tree3599e8dc4c24179370b9badd80f3cbb6255f86ee /src/lpm.lua
parentefa75cb17fd413f47e3eba4997bfd4c46494bffb (diff)
downloadlite-xl-plugin-manager-a6f52ebb1744c1c36302c1cd244483ea55bc1ca9.tar.gz
lite-xl-plugin-manager-a6f52ebb1744c1c36302c1cd244483ea55bc1ca9.zip
Fixed term env.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r--src/lpm.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 02e5c6f..0fce4f7 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -489,7 +489,7 @@ local colors = {
}
local TERM = os.getenv("TERM")
local function colorize(text, color)
- if TERM and not TTY or NO_COLOR or not color then return text end
+ if not TERM or not TTY or NO_COLOR or not color then return text end
return "\x1B[" .. colors[color] .. "m" .. text .. "\x1B[0m"
end
@@ -1868,6 +1868,7 @@ Usage: lpm COMMAND [...ARGUMENTS] [--json] [--userdir=directory]
[--ssl-certs=directory/file] [--force] [--arch=]] .. _G.ARCH .. [[]
[--assume-yes] [--no-install-optional] [--verbose] [--mod-version=3]
[--datadir=directory] [--binary=path] [--symlink] [--post] [--reinstall]
+ [--no-color]
LPM is a package manager for `lite-xl`, written in C (and packed-in lua).