Merge pull request #2807 from Oliver-Looney/2783-setting-terminal-title

2783 setting terminal title
This commit is contained in:
David Peter authored and GitHub committed 2024-02-23 21:37:28 +01:00
commit 7604fe5567
7 files changed
+52

No files matched your search

+12
View File
@@ -936,6 +936,18 @@ fn env_var_bat_paging() {
});
}
#[test]
fn basic_set_terminal_title() {
bat()
.arg("--paging=always")
.arg("--set-terminal-title")
.arg("test.txt")
.assert()
.success()
.stdout("\u{1b}]0;bat: test.txt\x07hello world\n")
.stderr("");
}
#[test]
fn diagnostic_sanity_check() {
bat()