Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

19
vendor/nu-ansi-term/examples/title.rs vendored Normal file
View File

@@ -0,0 +1,19 @@
use nu_ansi_term::AnsiGenericString;
mod may_sleep;
use may_sleep::{parse_cmd_args, sleep};
fn main() {
#[cfg(windows)]
nu_ansi_term::enable_ansi_support().unwrap();
let sleep_ms = parse_cmd_args();
let title = AnsiGenericString::title("My Title");
println!(
"{}Terminal title set for the next {:?} milliseconds",
title, sleep_ms
);
// sleep because often prompts change this before you can see
// the results
sleep(sleep_ms);
}