mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	|PatchSet 872
|Date: 2011/03/27 21:36:19 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |Set the terminal blocking again earlier, before sending the reset |sequences.
This commit is contained in:
		
							
								
								
									
										6
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								tty.c
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | |||||||
| /* $Id: tty.c,v 1.206 2011-03-24 17:03:29 micahcowan Exp $ */ | /* $Id: tty.c,v 1.207 2011-04-06 22:18:05 nicm Exp $ */ | ||||||
|  |  | ||||||
| /* | /* | ||||||
|  * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> |  * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> | ||||||
| @@ -230,6 +230,8 @@ tty_stop_tty(struct tty *tty) | |||||||
| 	if (tcsetattr(tty->fd, TCSANOW, &tty->tio) == -1) | 	if (tcsetattr(tty->fd, TCSANOW, &tty->tio) == -1) | ||||||
| 		return; | 		return; | ||||||
|  |  | ||||||
|  | 	setblocking(tty->fd, 1); | ||||||
|  |  | ||||||
| 	tty_raw(tty, tty_term_string2(tty->term, TTYC_CSR, 0, ws.ws_row - 1)); | 	tty_raw(tty, tty_term_string2(tty->term, TTYC_CSR, 0, ws.ws_row - 1)); | ||||||
| 	if (tty_use_acs(tty)) | 	if (tty_use_acs(tty)) | ||||||
| 		tty_raw(tty, tty_term_string(tty->term, TTYC_RMACS)); | 		tty_raw(tty, tty_term_string(tty->term, TTYC_RMACS)); | ||||||
| @@ -242,8 +244,6 @@ tty_stop_tty(struct tty *tty) | |||||||
| 		tty_raw(tty, "\033[?1000l"); | 		tty_raw(tty, "\033[?1000l"); | ||||||
|  |  | ||||||
| 	tty_raw(tty, tty_term_string(tty->term, TTYC_RMCUP)); | 	tty_raw(tty, tty_term_string(tty->term, TTYC_RMCUP)); | ||||||
|  |  | ||||||
| 	setblocking(tty->fd, 1); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| void | void | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott