t-rec 0.7.10

Blazingly fast terminal recorder that generates animated gif images for the web written in rust.
use simplerand::rand_range;

const TIPS: &[&str] = &[
    "For different gif border colors, checkout the `--bg` option",
    "To add a pause at the end of the gif loop, use e.g. option `-e 3s`",
    "To add a pause at the beginning of the gif loop, use e.g. option `-s 500ms` option",
    "To prevent cutting out stall frames, checkout the `-n` option",
    "To remove the shadow around the gif, use the `-d none` option",
    "For a mp4 video, use the `-m` option",
    "To suppress the 'Ctrl+D' banner, use the `-q` option",
    "Add `--idle-pause <time>` to increase the time before idle frame optimization starts, this can improve readability in Demos"
];

///
/// needs to become random
pub fn show_tip() {
    let i = rand_range(0, TIPS.len() - 1);
    println!("💡 Tip: {}", &TIPS[i]);
}