mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Write raw strings in one go rather than character at a time.
This commit is contained in:
		
							
								
								
									
										6
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								tty.c
									
									
									
									
									
								
							@@ -1228,11 +1228,7 @@ tty_cmd_setselection(struct tty *tty, const struct tty_ctx *ctx)
 | 
				
			|||||||
void
 | 
					void
 | 
				
			||||||
tty_cmd_rawstring(struct tty *tty, const struct tty_ctx *ctx)
 | 
					tty_cmd_rawstring(struct tty *tty, const struct tty_ctx *ctx)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	u_int	 i;
 | 
						tty_add(tty, ctx->ptr, ctx->num);
 | 
				
			||||||
	u_char	*str = ctx->ptr;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	for (i = 0; i < ctx->num; i++)
 | 
					 | 
				
			||||||
		tty_putc(tty, str[i]);
 | 
					 | 
				
			||||||
	tty_invalidate(tty);
 | 
						tty_invalidate(tty);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user