From f22700a4eca613f1b3cbbd6f8b3bd4fc37569039 Mon Sep 17 00:00:00 2001 From: mo8it Date: Mon, 26 Aug 2024 02:43:08 +0200 Subject: [PATCH] Use the correct environment variable --- src/term.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term.rs b/src/term.rs index 6efe4d5..9242919 100644 --- a/src/term.rs +++ b/src/term.rs @@ -12,7 +12,7 @@ use crossterm::{ }; thread_local! { - static VS_CODE: Cell = Cell::new(env::var_os("TERM").is_some_and(|v| v == "vscode")); + static VS_CODE: Cell = Cell::new(env::var_os("TERM_PROGRAM").is_some_and(|v| v == "vscode")); } /// Terminal progress bar to be used when not using Ratataui.