1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/// bell(text: &str) -> String - Makes a bell sound when text is printed
///
/// bell returns an string, that when printing, makes a bell sound (if enabled on the
/// terminal)
///
/// # Example
///
/// ```
/// use ransi::term::bell;
/// use std::{thread, time};
///
/// fn main() {
/// println!("Starting long process");
/// println!("We'll notify you when it finishes");
///
/// let ten_secs = time::Duration::from_millis(10000);
///
/// thread::sleep(ten_secs);
///
/// let mesg: &str = "Finished in 10 seconds!";
///
/// println!("{}", bell(mesg));
///
/// }
/// ```
/// set_title() -> String - Changes the terminal title
///
/// set_title() sets the terminal title to what is set on title.
///
/// This works in all modern terminals (xTerm, GNOME terminal, Windows Terminal, iTerm2, Kitty,
/// Alacritty, and more!)
///
/// # Example
///
/// ```
/// use ransi::term::set_title;
///
/// println!("{}", set_title("My program is running!"));
///
/// ```