Only invoke "stty sane" if not Windows.

This commit is contained in:
CDrummond 2025-03-02 20:56:47 +00:00
parent 2ac4b9d17f
commit c6f9a7faf5

View File

@ -172,10 +172,12 @@ pub fn analyse_new_files(db: &db::Db, mpath: &PathBuf, track_paths: Vec<String>,
}
// Reset terminal, otherwise typed output does not show? Perhaps Linux only...
match std::process::Command::new("stty").arg("sane").spawn() {
Ok(_) => { },
Err(_) => { },
};
if ! cfg!(windows) {
match std::process::Command::new("stty").arg("sane").spawn() {
Ok(_) => { },
Err(_) => { },
};
}
progress.finish_with_message("Finished!");
log::info!("{} Analysed. {} Failure(s).", analysed, failed.len());