mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Do not set Hls for hyperlinks on ncurses older than 5.9 (for example macOS).
This commit is contained in:
		@@ -89,7 +89,11 @@ static const struct tty_feature tty_feature_clipboard = {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* Terminal supports OSC 8 hyperlinks. */
 | 
					/* Terminal supports OSC 8 hyperlinks. */
 | 
				
			||||||
static const char *tty_feature_hyperlinks_capabilities[] = {
 | 
					static const char *tty_feature_hyperlinks_capabilities[] = {
 | 
				
			||||||
 | 
					#if defined (__OpenBSD__) || (defined(NCURSES_VERSION_MAJOR) && \
 | 
				
			||||||
 | 
						(NCURSES_VERSION_MAJOR > 5 || \
 | 
				
			||||||
 | 
						(NCURSES_VERSION_MAJOR == 5 && NCURSES_VERSION_MINOR > 8)))
 | 
				
			||||||
	"*:Hls=\\E]8;%?%p1%l%tid=%p1%s%;;%p2%s\\E\\\\",
 | 
						"*:Hls=\\E]8;%?%p1%l%tid=%p1%s%;;%p2%s\\E\\\\",
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
	NULL
 | 
						NULL
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
static const struct tty_feature tty_feature_hyperlinks = {
 | 
					static const struct tty_feature tty_feature_hyperlinks = {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user