mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
fix(core): ensure true fallbacks for TERM and COLORTERM variables
This commit is contained in:
@@ -313,10 +313,11 @@ export class ShellExecutionService {
|
|||||||
shell: false,
|
shell: false,
|
||||||
detached: !isWindows,
|
detached: !isWindows,
|
||||||
env: {
|
env: {
|
||||||
|
TERM: 'xterm-256color',
|
||||||
|
COLORTERM: 'truecolor',
|
||||||
...sanitizeEnvironment(process.env, sanitizationConfig),
|
...sanitizeEnvironment(process.env, sanitizationConfig),
|
||||||
[GEMINI_CLI_IDENTIFICATION_ENV_VAR]:
|
[GEMINI_CLI_IDENTIFICATION_ENV_VAR]:
|
||||||
GEMINI_CLI_IDENTIFICATION_ENV_VAR_VALUE,
|
GEMINI_CLI_IDENTIFICATION_ENV_VAR_VALUE,
|
||||||
TERM: 'xterm-256color',
|
|
||||||
PAGER: 'cat',
|
PAGER: 'cat',
|
||||||
GIT_PAGER: 'cat',
|
GIT_PAGER: 'cat',
|
||||||
},
|
},
|
||||||
@@ -575,12 +576,13 @@ export class ShellExecutionService {
|
|||||||
cols,
|
cols,
|
||||||
rows,
|
rows,
|
||||||
env: {
|
env: {
|
||||||
|
TERM: 'xterm-256color',
|
||||||
|
COLORTERM: 'truecolor',
|
||||||
...sanitizeEnvironment(
|
...sanitizeEnvironment(
|
||||||
process.env,
|
process.env,
|
||||||
shellExecutionConfig.sanitizationConfig,
|
shellExecutionConfig.sanitizationConfig,
|
||||||
),
|
),
|
||||||
GEMINI_CLI: '1',
|
GEMINI_CLI: '1',
|
||||||
TERM: 'xterm-256color',
|
|
||||||
PAGER: shellExecutionConfig.pager ?? 'cat',
|
PAGER: shellExecutionConfig.pager ?? 'cat',
|
||||||
GIT_PAGER: shellExecutionConfig.pager ?? 'cat',
|
GIT_PAGER: shellExecutionConfig.pager ?? 'cat',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user