mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix(runtime): refresh perm prompt 3 lines instead of 4 (#16049)
This commit is contained in:
parent
4ad48d5dab
commit
f3dd13730c
1 changed files with 2 additions and 2 deletions
|
@ -2104,13 +2104,13 @@ fn permission_prompt(message: &str, name: &str) -> bool {
|
|||
};
|
||||
match ch.to_ascii_lowercase() {
|
||||
'y' => {
|
||||
clear_n_lines(4);
|
||||
clear_n_lines(3);
|
||||
let msg = format!("Granted {}.", message);
|
||||
eprintln!("✅ {}", colors::bold(&msg));
|
||||
return true;
|
||||
}
|
||||
'n' => {
|
||||
clear_n_lines(4);
|
||||
clear_n_lines(3);
|
||||
let msg = format!("Denied {}.", message);
|
||||
eprintln!("❌ {}", colors::bold(&msg));
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue