mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Add support for the SD (scroll down) escape sequence, GitHub issue 1861.
This commit is contained in:
		
							
								
								
									
										7
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								input.c
									
									
									
									
									
								
							@@ -244,6 +244,7 @@ enum input_csi_type {
 | 
			
		||||
	INPUT_CSI_RM,
 | 
			
		||||
	INPUT_CSI_RM_PRIVATE,
 | 
			
		||||
	INPUT_CSI_SCP,
 | 
			
		||||
	INPUT_CSI_SD,
 | 
			
		||||
	INPUT_CSI_SGR,
 | 
			
		||||
	INPUT_CSI_SM,
 | 
			
		||||
	INPUT_CSI_SM_PRIVATE,
 | 
			
		||||
@@ -270,6 +271,7 @@ static const struct input_table_entry input_csi_table[] = {
 | 
			
		||||
	{ 'M', "",  INPUT_CSI_DL },
 | 
			
		||||
	{ 'P', "",  INPUT_CSI_DCH },
 | 
			
		||||
	{ 'S', "",  INPUT_CSI_SU },
 | 
			
		||||
	{ 'T', "",  INPUT_CSI_SD },
 | 
			
		||||
	{ 'X', "",  INPUT_CSI_ECH },
 | 
			
		||||
	{ 'Z', "",  INPUT_CSI_CBT },
 | 
			
		||||
	{ '`', "",  INPUT_CSI_HPA },
 | 
			
		||||
@@ -1525,6 +1527,11 @@ input_csi_dispatch(struct input_ctx *ictx)
 | 
			
		||||
		if (n != -1)
 | 
			
		||||
			screen_write_scrollup(sctx, n, bg);
 | 
			
		||||
		break;
 | 
			
		||||
	case INPUT_CSI_SD:
 | 
			
		||||
		n = input_get(ictx, 0, 1, 1);
 | 
			
		||||
		if (n != -1)
 | 
			
		||||
			screen_write_scrolldown(sctx, n, bg);
 | 
			
		||||
		break;
 | 
			
		||||
	case INPUT_CSI_TBC:
 | 
			
		||||
		switch (input_get(ictx, 0, 0, 0)) {
 | 
			
		||||
		case -1:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user