mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-07-13 01:20:42 +02:00
Use the correct environment variable
This commit is contained in:
@ -12,7 +12,7 @@ use crossterm::{
|
||||
};
|
||||
|
||||
thread_local! {
|
||||
static VS_CODE: Cell<bool> = Cell::new(env::var_os("TERM").is_some_and(|v| v == "vscode"));
|
||||
static VS_CODE: Cell<bool> = Cell::new(env::var_os("TERM_PROGRAM").is_some_and(|v| v == "vscode"));
|
||||
}
|
||||
|
||||
/// Terminal progress bar to be used when not using Ratataui.
|
||||
|
Reference in New Issue
Block a user