mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-29 22:24:35 +00:00 
			
		
		
		
	Merge pull request #2807 from Oliver-Looney/2783-setting-terminal-title
2783 setting terminal title
This commit is contained in:
		| @@ -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() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user