mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		@@ -438,17 +438,24 @@ screen_redraw_screen(struct client *c)
 | 
			
		||||
	tty_sync_start(&c->tty);
 | 
			
		||||
 | 
			
		||||
	if (flags & (CLIENT_REDRAWWINDOW|CLIENT_REDRAWBORDERS)) {
 | 
			
		||||
		log_debug("%s: redrawing borders", c->name);
 | 
			
		||||
		if (ctx.pane_status != PANE_STATUS_OFF)
 | 
			
		||||
			screen_redraw_draw_pane_status(&ctx);
 | 
			
		||||
		screen_redraw_draw_borders(&ctx);
 | 
			
		||||
	}
 | 
			
		||||
	if (flags & CLIENT_REDRAWWINDOW)
 | 
			
		||||
	if (flags & CLIENT_REDRAWWINDOW) {
 | 
			
		||||
		log_debug("%s: redrawing panes", c->name);
 | 
			
		||||
		screen_redraw_draw_panes(&ctx);
 | 
			
		||||
	}
 | 
			
		||||
	if (ctx.statuslines != 0 &&
 | 
			
		||||
	    (flags & (CLIENT_REDRAWSTATUS|CLIENT_REDRAWSTATUSALWAYS)))
 | 
			
		||||
	    (flags & (CLIENT_REDRAWSTATUS|CLIENT_REDRAWSTATUSALWAYS))) {
 | 
			
		||||
		log_debug("%s: redrawing status", c->name);
 | 
			
		||||
		screen_redraw_draw_status(&ctx);
 | 
			
		||||
	if (c->overlay_draw != NULL && (flags & CLIENT_REDRAWOVERLAY))
 | 
			
		||||
	}
 | 
			
		||||
	if (c->overlay_draw != NULL && (flags & CLIENT_REDRAWOVERLAY)) {
 | 
			
		||||
		log_debug("%s: redrawing overlay", c->name);
 | 
			
		||||
		c->overlay_draw(c, &ctx);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	tty_reset(&c->tty);
 | 
			
		||||
	tty_sync_end(&c->tty);
 | 
			
		||||
 
 | 
			
		||||
@@ -1739,6 +1739,7 @@ server_client_check_redraw(struct client *c)
 | 
			
		||||
		 */
 | 
			
		||||
		TAILQ_FOREACH(wp, &c->session->curw->window->panes, entry) {
 | 
			
		||||
			if (wp->flags & PANE_REDRAW) {
 | 
			
		||||
				log_debug("%s: redrawing pane %%%u", __func__, wp->id);
 | 
			
		||||
				tty_update_mode(tty, tty->mode, NULL);
 | 
			
		||||
				screen_redraw_pane(c, wp);
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								tmux.h
									
									
									
									
									
								
							@@ -1246,6 +1246,7 @@ struct tty {
 | 
			
		||||
#define TTY_BLOCK 0x80
 | 
			
		||||
#define TTY_HAVEDA 0x100
 | 
			
		||||
#define TTY_HAVEDSR 0x200
 | 
			
		||||
#define TTY_SYNCING 0x400
 | 
			
		||||
	int		 flags;
 | 
			
		||||
 | 
			
		||||
	struct tty_term	*term;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								tty.c
									
									
									
									
									
								
							@@ -1438,15 +1438,19 @@ tty_draw_line(struct tty *tty, struct window_pane *wp, struct screen *s,
 | 
			
		||||
void
 | 
			
		||||
tty_sync_start(struct tty *tty)
 | 
			
		||||
{
 | 
			
		||||
	if (tty_get_flags(tty) & TERM_SYNC)
 | 
			
		||||
	if ((~tty->flags & TTY_SYNCING) && (tty_get_flags(tty) & TERM_SYNC)) {
 | 
			
		||||
		tty_puts(tty, "\033P=1s\033\\");
 | 
			
		||||
		tty->flags |= TTY_SYNCING;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
tty_sync_end(struct tty *tty)
 | 
			
		||||
{
 | 
			
		||||
	if (tty_get_flags(tty) & TERM_SYNC)
 | 
			
		||||
	if (tty_get_flags(tty) & TERM_SYNC) {
 | 
			
		||||
		tty_puts(tty, "\033P=2s\033\\");
 | 
			
		||||
		tty->flags &= ~TTY_SYNCING;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user