Skip to content

Commit f22700a

Browse files
committed
Use the correct environment variable
1 parent ee25a7d commit f22700a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crossterm::{
1212
};
1313

1414
thread_local! {
15-
static VS_CODE: Cell<bool> = Cell::new(env::var_os("TERM").is_some_and(|v| v == "vscode"));
15+
static VS_CODE: Cell<bool> = Cell::new(env::var_os("TERM_PROGRAM").is_some_and(|v| v == "vscode"));
1616
}
1717

1818
/// Terminal progress bar to be used when not using Ratataui.

0 commit comments

Comments
 (0)