mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	CUD is not a requirement and tweak some comments.
This commit is contained in:
		@@ -28,10 +28,9 @@
 | 
				
			|||||||
 * - mouse (under kmous capability);
 | 
					 * - mouse (under kmous capability);
 | 
				
			||||||
 * - default colours (under AX or op capabilities);
 | 
					 * - default colours (under AX or op capabilities);
 | 
				
			||||||
 * - AIX colours (under colors >= 16);
 | 
					 * - AIX colours (under colors >= 16);
 | 
				
			||||||
 * - alternate escape (under XT).
 | 
					 * - alternate escape (if terminal is VT100-like).
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Also:
 | 
					 * Also:
 | 
				
			||||||
 * - XT is used to decide whether to send DA and XDA;
 | 
					 | 
				
			||||||
 * - DECFRA uses a flag instead of capabilities;
 | 
					 * - DECFRA uses a flag instead of capabilities;
 | 
				
			||||||
 * - UTF-8 is a separate flag on the client; needed for unattached clients.
 | 
					 * - UTF-8 is a separate flag on the client; needed for unattached clients.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -555,15 +555,9 @@ tty_term_create(struct tty *tty, char *name, int *feat, int fd, char **cause)
 | 
				
			|||||||
		goto error;
 | 
							goto error;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* These can be emulated so one of the two is required. */
 | 
					 | 
				
			||||||
	if (!tty_term_has(term, TTYC_CUD1) && !tty_term_has(term, TTYC_CUD)) {
 | 
					 | 
				
			||||||
		xasprintf(cause, "terminal does not support cud1 or cud");
 | 
					 | 
				
			||||||
		goto error;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	/*
 | 
						/*
 | 
				
			||||||
	 * If TERM has XT or clear starts with CSI then it is safe to assume
 | 
						 * If TERM has XT or clear starts with CSI then it is safe to assume
 | 
				
			||||||
	 * the terminal is derived from a VT100. This controls whether device
 | 
						 * the terminal is derived from the VT100. This controls whether device
 | 
				
			||||||
	 * attributes requests are sent to get more information.
 | 
						 * attributes requests are sent to get more information.
 | 
				
			||||||
	 *
 | 
						 *
 | 
				
			||||||
	 * This is a bit of a hack but there aren't that many alternatives.
 | 
						 * This is a bit of a hack but there aren't that many alternatives.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user