mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:17:31 +00:00 
			
		
		
		
	Handle OSC 7 (a VTE extension) and put the result in a new format (pane_path).
This commit is contained in:
		
							
								
								
									
										7
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								input.c
									
									
									
									
									
								
							@@ -132,6 +132,7 @@ static void	input_set_state(struct window_pane *,
 | 
			
		||||
static void	input_reset_cell(struct input_ctx *);
 | 
			
		||||
 | 
			
		||||
static void	input_osc_4(struct input_ctx *, const char *);
 | 
			
		||||
static void	input_osc_7(struct input_ctx *, const char *);
 | 
			
		||||
static void	input_osc_10(struct input_ctx *, const char *);
 | 
			
		||||
static void	input_osc_11(struct input_ctx *, const char *);
 | 
			
		||||
static void	input_osc_52(struct input_ctx *, const char *);
 | 
			
		||||
@@ -2211,6 +2212,12 @@ input_exit_osc(struct input_ctx *ictx)
 | 
			
		||||
	case 4:
 | 
			
		||||
		input_osc_4(ictx, p);
 | 
			
		||||
		break;
 | 
			
		||||
	case 7:
 | 
			
		||||
		if (utf8_isvalid(p)) {
 | 
			
		||||
			screen_set_path(sctx->s, p);
 | 
			
		||||
			server_status_window(ictx->wp->window);
 | 
			
		||||
		}
 | 
			
		||||
		break;
 | 
			
		||||
	case 10:
 | 
			
		||||
		input_osc_10(ictx, p);
 | 
			
		||||
		break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user