mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Sync OpenBSD patchset 532:
Emulate the ri (reverse index) capability: this allows tmux to at least start on Sun consoles (TERM=sun or sun-color), even if there appear to still be problems on some boxes (my Blade 100 is fine but edd's Blade 1000 shows odd screen corruption).
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: tty-term.c,v 1.35 2009-10-28 23:01:44 tcunha Exp $ */
 | 
			
		||||
/* $Id: tty-term.c,v 1.36 2009-11-13 16:57:21 tcunha Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -377,10 +377,6 @@ tty_term_find(char *name, int fd, const char *overrides, char **cause)
 | 
			
		||||
		xasprintf(cause, "terminal does not support clear");
 | 
			
		||||
		goto error;
 | 
			
		||||
	}
 | 
			
		||||
	if (!tty_term_has(term, TTYC_RI)) {
 | 
			
		||||
		xasprintf(cause, "terminal does not support ri");
 | 
			
		||||
		goto error;
 | 
			
		||||
	}
 | 
			
		||||
	if (!tty_term_has(term, TTYC_CUP)) {
 | 
			
		||||
		xasprintf(cause, "terminal does not support cup");
 | 
			
		||||
		goto error;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								tty.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: tty.c,v 1.173 2009-11-10 23:27:57 tcunha Exp $ */
 | 
			
		||||
/* $Id: tty.c,v 1.174 2009-11-13 16:57:21 tcunha Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -716,7 +716,8 @@ tty_cmd_reverseindex(struct tty *tty, const struct tty_ctx *ctx)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
 	if (wp->xoff != 0 || screen_size_x(s) < tty->sx ||
 | 
			
		||||
	    !tty_term_has(tty->term, TTYC_CSR)) {
 | 
			
		||||
	    !tty_term_has(tty->term, TTYC_CSR) ||
 | 
			
		||||
	    !tty_term_has(tty->term, TTYC_RI)) {
 | 
			
		||||
		tty_redraw_region(tty, ctx);
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user