mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Make reset actually work.
This commit is contained in:
		
							
								
								
									
										11
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								tty.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: tty.c,v 1.2 2007-11-27 19:32:15 nicm Exp $ */
 | 
			
		||||
/* $Id: tty.c,v 1.3 2007-11-27 19:43:50 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -121,7 +121,11 @@ tty_close(struct tty *tty)
 | 
			
		||||
 | 
			
		||||
	if (ioctl(tty->fd, TIOCGWINSZ, &ws) == -1)
 | 
			
		||||
		fatal("ioctl(TIOCGWINSZ)");
 | 
			
		||||
	if (tcsetattr(tty->fd, TCSANOW, &tty->tio) != 0)
 | 
			
		||||
		fatal("tcsetattr failed");
 | 
			
		||||
 | 
			
		||||
	if (change_scroll_region != NULL)
 | 
			
		||||
		tty_raw(tty, tparm(change_scroll_region, 0, ws.ws_row - 1));
 | 
			
		||||
	if (keypad_local != NULL)
 | 
			
		||||
		tty_raw(tty, keypad_local);
 | 
			
		||||
	if (exit_ca_mode != NULL)
 | 
			
		||||
@@ -131,13 +135,8 @@ tty_close(struct tty *tty)
 | 
			
		||||
		tty_raw(tty, cursor_normal);
 | 
			
		||||
	if (exit_attribute_mode != NULL)
 | 
			
		||||
		tty_raw(tty, exit_attribute_mode);
 | 
			
		||||
	if (change_scroll_region != NULL)
 | 
			
		||||
		tty_raw(tty, tparm(change_scroll_region, 0, ws.ws_row - 1));
 | 
			
		||||
 | 
			
		||||
	if (tcsetattr(tty->fd, TCSANOW, &tty->tio) != 0)
 | 
			
		||||
		fatal("tcsetattr failed");
 | 
			
		||||
	del_curterm(tty->termp);
 | 
			
		||||
 | 
			
		||||
	tty_keys_free(tty);
 | 
			
		||||
 | 
			
		||||
	close(tty->fd);
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: window-copy.c,v 1.11 2007-11-27 19:32:15 nicm Exp $ */
 | 
			
		||||
/* $Id: window-copy.c,v 1.12 2007-11-27 19:43:50 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -121,6 +121,9 @@ window_copy_draw(
 | 
			
		||||
		data->size = s->hsize;
 | 
			
		||||
	}
 | 
			
		||||
	screen_draw_set_offset(ctx, data->ox, data->oy);
 | 
			
		||||
	screen_draw_set_selection(ctx,
 | 
			
		||||
	    data->selflag, data->selx, data->sely,
 | 
			
		||||
	    data->cx + data->ox, data->size + data->cy - data->oy);
 | 
			
		||||
 | 
			
		||||
	if (py != 0)
 | 
			
		||||
		screen_draw_lines(ctx, py, ny);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user