mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
fix: hide progress bars when showing permission prompt (#17130)
Also adds download bytes progress when downloading remote specifiers. Closes #16860
This commit is contained in:
parent
5a8adc342b
commit
2ff27a1f93
6 changed files with 120 additions and 86 deletions
|
@ -260,6 +260,10 @@ pub fn main() {
|
|||
util::windows::ensure_stdio_open();
|
||||
#[cfg(windows)]
|
||||
colors::enable_ansi(); // For Windows 10
|
||||
deno_runtime::permissions::set_prompt_callbacks(
|
||||
Box::new(util::draw_thread::DrawThread::hide),
|
||||
Box::new(util::draw_thread::DrawThread::show),
|
||||
);
|
||||
|
||||
let args: Vec<String> = env::args().collect();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue