mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
slightly changed set terminal command to match docs & broke print line into multiple variables
This commit is contained in:
2 files changed
+13
-8
No files matched your search
+6
-1
@@ -228,7 +228,12 @@ pub fn list_themes(cfg: &Config, config_dir: &Path, cache_dir: &Path) -> Result<
|
||||
}
|
||||
|
||||
fn set_terminal_title_to(new_terminal_title: String) {
|
||||
print!("\x1b]2;{}\x07", new_terminal_title);
|
||||
let osc_command_for_setting_terminal_title = "\x1b]0;";
|
||||
let osc_end_command = "\x07";
|
||||
print!(
|
||||
"{}{}{}",
|
||||
osc_command_for_setting_terminal_title, new_terminal_title, osc_end_command
|
||||
);
|
||||
io::stdout().flush().unwrap();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user