mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Clear current line properly on clear eos.
This commit is contained in:
		
							
								
								
									
										1
									
								
								TODO
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								TODO
									
									
									
									
									
								
							@@ -63,3 +63,4 @@
 | 
			
		||||
- restore term cap checks
 | 
			
		||||
- anything which uses cmd_{send,recv}_string will break if the string is
 | 
			
		||||
  split. string length should be part of the command size
 | 
			
		||||
- echo \\033[35\;46m\\033[2J last line quirk (with C-b r)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								input.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: input.c,v 1.39 2007-11-27 19:23:33 nicm Exp $ */
 | 
			
		||||
/* $Id: input.c,v 1.40 2007-11-27 22:12:14 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -836,7 +836,8 @@ input_handle_sequence_ed(struct input_ctx *ictx)
 | 
			
		||||
		screen_display_fill_cursor_eos(
 | 
			
		||||
		    s, SCREEN_DEFDATA, s->attr, s->colr);
 | 
			
		||||
 | 
			
		||||
		for (i = s->cy; i < screen_size_y(s); i++) {
 | 
			
		||||
		input_write(ictx, TTY_CLEARENDOFLINE);
 | 
			
		||||
		for (i = s->cy + 1; i < screen_size_y(s); i++) {
 | 
			
		||||
			input_write(ictx, TTY_CURSORMOVE, i, 0);
 | 
			
		||||
			input_write(ictx, TTY_CLEARENDOFLINE);
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user