mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Support for \e[3J to clear the history. Also send the corresponding
terminfo code (E3) before locking.
This commit is contained in:
		
							
								
								
									
										11
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								input.c
									
									
									
									
									
								
							@@ -1126,6 +1126,17 @@ input_csi_dispatch(struct input_ctx *ictx)
 | 
			
		||||
		case 2:
 | 
			
		||||
			screen_write_clearscreen(sctx);
 | 
			
		||||
			break;
 | 
			
		||||
		case 3:
 | 
			
		||||
			switch (input_get(ictx, 1, 0, 0)) {
 | 
			
		||||
			case 0:
 | 
			
		||||
				/*
 | 
			
		||||
				 * Linux console extension to clear history
 | 
			
		||||
				 * (for example before locking the screen).
 | 
			
		||||
				 */
 | 
			
		||||
				screen_write_clearhistory(sctx);
 | 
			
		||||
				break;
 | 
			
		||||
			}
 | 
			
		||||
			break;
 | 
			
		||||
		default:
 | 
			
		||||
			log_debug("%s: unknown '%c'", __func__, ictx->ch);
 | 
			
		||||
			break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user