mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Handle DECCOLM by just emulating its side-effect of clearing the screen.
This commit is contained in:
		
							
								
								
									
										8
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								input.c
									
									
									
									
									
								
							| @@ -1185,6 +1185,10 @@ input_handle_sequence_sm(struct input_ctx *ictx) | |||||||
| 			screen_write_kcursormode(&ictx->ctx, 1); | 			screen_write_kcursormode(&ictx->ctx, 1); | ||||||
| 			log_debug("kcursor on"); | 			log_debug("kcursor on"); | ||||||
| 			break; | 			break; | ||||||
|  | 		case 3:		/* DECCOLM */ | ||||||
|  | 			screen_write_cursormove(&ictx->ctx, 0, 0);			 | ||||||
|  | 			screen_write_clearscreen(&ictx->ctx); | ||||||
|  | 			break; | ||||||
| 		case 25:	/* TCEM */ | 		case 25:	/* TCEM */ | ||||||
| 			screen_write_cursormode(&ictx->ctx, 1); | 			screen_write_cursormode(&ictx->ctx, 1); | ||||||
| 			log_debug("cursor on"); | 			log_debug("cursor on"); | ||||||
| @@ -1257,6 +1261,10 @@ input_handle_sequence_rm(struct input_ctx *ictx) | |||||||
| 			screen_write_kcursormode(&ictx->ctx, 0); | 			screen_write_kcursormode(&ictx->ctx, 0); | ||||||
| 			log_debug("kcursor off"); | 			log_debug("kcursor off"); | ||||||
| 			break; | 			break; | ||||||
|  | 		case 3:		/* DECCOLM */ | ||||||
|  | 			screen_write_cursormove(&ictx->ctx, 0, 0);			 | ||||||
|  | 			screen_write_clearscreen(&ictx->ctx); | ||||||
|  | 			break; | ||||||
| 		case 25:	/* TCEM */ | 		case 25:	/* TCEM */ | ||||||
| 			screen_write_cursormode(&ictx->ctx, 0); | 			screen_write_cursormode(&ictx->ctx, 0); | ||||||
| 			log_debug("cursor off"); | 			log_debug("cursor off"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott