mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Add support for OSC 8 hyperlinks (a VTE extension now supported by other
terminals such as iTerm2). Originally written by me then extended and completed by first Will Noble and later Jeff Chiang. GitHub issues 911, 2621, 2890, 3240.
This commit is contained in:
		@@ -53,8 +53,8 @@ const struct cmd_entry cmd_clear_history_entry = {
 | 
			
		||||
	.name = "clear-history",
 | 
			
		||||
	.alias = "clearhist",
 | 
			
		||||
 | 
			
		||||
	.args = { "t:", 0, 0, NULL },
 | 
			
		||||
	.usage = CMD_TARGET_PANE_USAGE,
 | 
			
		||||
	.args = { "Ht:", 0, 0, NULL },
 | 
			
		||||
	.usage = "[-H] " CMD_TARGET_PANE_USAGE,
 | 
			
		||||
 | 
			
		||||
	.target = { 't', CMD_FIND_PANE, 0 },
 | 
			
		||||
 | 
			
		||||
@@ -204,6 +204,8 @@ cmd_capture_pane_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
	if (cmd_get_entry(self) == &cmd_clear_history_entry) {
 | 
			
		||||
		window_pane_reset_mode_all(wp);
 | 
			
		||||
		grid_clear_history(wp->base.grid);
 | 
			
		||||
		if (args_has(args, 'H'))
 | 
			
		||||
			screen_reset_hyperlinks(wp->screen);
 | 
			
		||||
		return (CMD_RETURN_NORMAL);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user