mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix(cli): set TERM, COLORTERM, and LANG defaults for terminal pty sessions (#495)
This commit is contained in:
@@ -68,6 +68,15 @@ function buildFilteredEnv(): NodeJS.ProcessEnv {
|
||||
}
|
||||
env[key] = value
|
||||
}
|
||||
if (!env.TERM) {
|
||||
env.TERM = 'xterm-256color'
|
||||
}
|
||||
if (!env.COLORTERM) {
|
||||
env.COLORTERM = 'truecolor'
|
||||
}
|
||||
if (!env.LANG) {
|
||||
env.LANG = process.platform === 'darwin' ? 'en_US.UTF-8' : 'C.UTF-8'
|
||||
}
|
||||
return env
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user