Set terminal title to ncspot

Fixes #685
This commit is contained in:
Henrik Friedrichsen
2021-12-31 16:18:48 +01:00
parent 17867685ab
commit 075ecd0e24

View File

@@ -93,6 +93,9 @@ struct UserDataInner {
#[tokio::main]
async fn main() -> Result<(), String> {
#[cfg(not(windows))]
print!("\x1b]2;{}\x07", "ncspot");
let backends = {
let backends: Vec<&str> = audio_backend::BACKENDS.iter().map(|b| b.0).collect();
format!("Audio backends: {}", backends.join(", "))